Construction of ASP.net mvc4+ef5+easyui+unity2.x injection background Management system (14)

Source: Internet
Author: User
Tags date bind continue file upload inheritance static class

Easyui Defect Repair and extension

Unknowingly has passed 13 speak, (would have to say more is, the data validation of the custom verification, based on the park friends or permissions this piece more dare to interest, say not to verify or see everyone's reflection), we should have a summary of the system.

First of all, this is a team development project, based on interface programming, we start from the framework of Easyui build system, began a sample program to the Easyui DataGrid to operate, and achieve unity injection to the container, so that the program

Performance is greatly improved, code quality is increased, better for unit testing, use of log and exceptionally rugged system stability, and so on ....

Of course, you should feel that there are many deficiencies in the system, we should start to optimize.

Below I listed the need to optimize the project, if you think there are optimization, please submit, I will join the future articles to

UI aspect, our Easyui window pop-up form, is not centered, so ugly ah;

DataGrid Although I write in the binding time to adapt to the frame according to the change of the first form, you click on the zoom Out or enlarge button, then your DataGrid is distorted;

JS we introduced the details page JS, should we embed him in the _layout_----? And to bind?

The date format returned by our DataGrid is/date (20130450000365) can you read it?

Our BLL each time to instantiate Dbcontainer db = new Dbcontainer (); Repeat, should we write a BASEBLL base class class inheritance

We have a lot of tips on the front end of the same, should not be packaged, such as clicks: Details did not select the prompt "Please select the record to operate"

Toolbar add, delete, change the same as every time you paste the code is also a lot of, we should expand MVC htmlhelper encapsulation, and then we @html. It's easy to come out, later also for permission control

The optimized system will probably be the last release source version, if unnecessary later no longer provide the source code to download, but said content, will all contain the complete source code, please you will complete the system "treasures" up, because

For this is the fruit of your labor

Finally we will accept a larger goal challenge, the rights management system. I think this is a matter of the greatest concern to all, but before that, we will add some knowledge.

MVC with its own filter usage

MVC Routing Rotun Concept

Permission system finished, we speak T4 template, export reports and charts, file upload, system settings and so on to add. Let our system take out and be used as a project.

Since the logic and coding of the next thing are much more complex than before, the update may be slower than before. Please wait patiently, thank garden friends support, no matter how busy I will continue to update

Now let's solve the above 7 questions first!

1.UI, our Easyui window pop-up form, is not centered, so ugly ah;

Easyui Let window Eject Center

2.DataGrid Although I write in the binding time to adapt to the frame according to the change of the first form, then you click on the zoom Out or enlarge button, then your DataGrid is distorted;

Easyui lets the DataGrid adapt to the browser width

3.JS we introduced JS in the Details page, should we embed him in the _layout_----? And to bind?

I've been compressing it. The source code is taken out.

4. The date format returned by our DataGrid is/date (20130450000365) can you read it?

MVC resolves the JSON DataGrid the date format returned is/date (20130450000365)

5. Our BLL each time to instantiate Dbcontainer db = new Dbcontainer (); Repeat, should we write a BASEBLL base class class inheritance

I have been separated, the source code out.

6. We have a lot of tips on the front end are the same, should not be packaged, such as clicks: Details did not select the prompt "Please select the record to operate"

Add the following class to the App.common suggestion

Using System;
Using System.Collections.Generic;
Using System.Linq;
    
Using System.Text;  namespace App.common {public static class suggestion {public static string plasechoosetooperatingrecords
        {get {return ' Please select the record you want to manipulate;}} public static string Areyoulogoff {getting {return] are you sure you want to unregister the system?
        "; } }
        public static string Cancel {get {return ' Cancel ';}}
        public static string Cannotoperationhastheaudit {getting {return ' cannot manipulate an audited record ';}}
        public static string Check {get {return ' audit ';}}
        public static string Checkfail {get {return ' audit failed ';}}
        public static string Checksucceed {got {return ' audit success ';}}
        public static string Clearlossjobs {get {return "Clean offline task";}}
        public static string Close {get {return ' closed ';}}
        public static string CloseAll {get {return "close All";}}
        public static string Closeleft {get {return "closes left label";}} The public static string Closeother {get {return] is all closed otherwise;} public static string Closeright {get {return "close Right label";}}
        public static string Create {get {return ' Create ';}}
        public static string Delete {get {return ' delete ';}}
        public static string Deletefail {get {return ' delete failed ';}}
        public static string Deletesucceed {got {return ' delete succeeded ';}}
        public static string Details {get {return ' verbose ';}}
        public static string Disable {get {return ' is not available ';}}
        public static string Edit {get {return ' edit ';}}
        public static string Editfail {get {return ' modify failed ';}}
        public static string Editsucceed {got {return ' modified successfully ';}}
        public static string Export {get {return ' export ';}}
        public static string Insertfail {get {return ' Create failed ';}}
        public static string Insertsucceed {got {return ' Create Success ';}}
        public static string Loading {get {return ' Load ';}} public static string Loginsucceed {got {return] login succeeded, you can continue!
        "; } } PublIC static string LogOff {get {return "safe exit";}}
        public static string Noanychanges {got {return "does not make any modifications";}}
        public static string Operate {get {return ' action ';}}
        public static string Primaryrepeat {get {return ' primary key duplicates ';}}
        public static string Query {get {return ' query ';}}
        public static string Reload {get {return ' refresh ';}}
        public static string Returns {get {return ' Back ';}}
        public static string Save {get {return ' save ';}}
        public static string Select {get {return ' SELECT ';}}
        public static string Setfail {get {return ' setting failed ';}}
        public static string Setsucceed {got {return ' Set succeeded ';}}
        public static string Switchingskin {get {return "toggle theme, the system will reload?";}}
        public static string Tip {get {return ' Prompt ';}}
        public static string Uncheck {get {return "anti-Audit";}}
        public static string Uncheckfail {get {return ' anti-audit failed ';}} public static string Unchecksucceed {get {return ' reverse audit succeeded ';}}
        public static string Unselect {get {return ' reverse ';}}
        public static string Update {get {return ' Update ';}}
        public static string Updatefail {get {return ' update failed ';}}
        public static string Updatesucceed {got {return ' update succeeded ';}}
        public static string UpLoad {get {return ' upload ';}}
        public static string Usertimeover {get {return] user logon timeout, please log on again;}
        public static string Welcome {get {return "Hello, welcome";}}
        public static string Youcanonlyoperatearecord {got {return] can only operate one record at a time;} public static string Youwanttodeletetheselectedrecords {getting {return] are you sure you want to delete the selected records? "; } }
    
    }
}

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.