Source codeDownload:
Http://files.cnblogs.com/isunstudio/iSunStudio.rar
System description:
Lightweight System Architecture
System introduction:
Objectives:
1. Construct an architecture that can easily expand business functions
2. lowering the threshold for Information System Development
3. Implement form Customization
4. Apply Ajax technology to handle most data operation transactions on a single page as much as possible
Conventions:
1. object naming is the table name.
2. the table must contain an auto-increment field.
3. Each table corresponds to a view with the same name, which is mainly used for data display. View fields must contain auto-increment fields to facilitate related data operations.
4. The data input form name can be consistent with the table name. If the table name is inconsistent, you need to pass the parameter (querystring: entitys = table name)
Conventions
1. The control ID of the input form is consistent with the attribute name of the corresponding object.
2. the attribute name of the object is the same as the field name of the data table.
3. Use the label Control for text instructions to switch between multiple languages.
4. Entities are the intermediary between data tables and interfaces.
module Introduction:
core module:
1. SPL data persistence layer
added, deleted, modified, and queried data. the system generates related SQL commands Based on the passed object.
the usage is called by the business logic:
Users u = new users ();
U. username = "a210";
U. password = "1234";
isun. bll. commbll cb = new commbll (U);
CB. insert (); // insert data
U. userid = 1;
U. username = "a210";
U. password = "1234";
CB. update (); // data update
CB. delete (); // delete data
2. Interface entity ing
process entity and Data Convert the data before the input form. It is used in the basic class formbase of the project isun. Web webform.
to implement data conversion in dataedit. CS, you only need to call en2ui () and ui2en.
3. Data access layer
implement data access
Web directory andProgramConventions
Sysform. aspx: System Console
App_code,
1,General data display: datalist. CS,
2. Common Data Storage and updates: dataedit. CS,
Ajax
1. Common data deletion, disabling, and enabling operations are stored in Ajax recordaction. aspx:
Datawindows
Form for storing data input: Its codebindCodePut it in app_code. The codebind of the form with the same name as the table points to dataedit. CS of app_code.
Function
The form that stores the displayed data. For data with the same name as the table, you only need to pass the table name and view name as parameters. The datalist. CS file of app_code corresponding to its codebind
JS
Stores the JavaScript files used by the system, which can be expanded by users.
Roleconfig
Stores the configuration files generated by the code generator.
Application Example (PPT ):
Http://files.cnblogs.com/isunstudio/?application description .rar
:
Isun software Studio
MSN: isunstudio at hotmail.com
Email: isunstudio at yahoo.com.cn