ArticleDirectory
- Three basic functions
- Five Core Components
- Project source code View
Project name: Enterprise Solution
Technical Parameters
1 C # ASP. NET web forms technology, rapid development with the help of extaspnet controls
2. SQL Server database. Use llbl Gen ORM framework to read and write data, and support any database
3. Based on llbl Gen ORM framework, reduce the dependency on SQL scripts and focus on business logic
Login form, displaying the database to be logged on
Go to the main form frame, functional navigation on the left, and function list on the right
Click the tree node, expand the corresponding function item on the right, click the function, open a new tab, and load this function
If you are not familiar with the English interface, you can click Settings in the Quick Start column. The options are simplified or traditional Chinese. The interface is immediately switched to the corresponding language.
The tab is not translated into the corresponding language. The following translation should be added to the Framework database to display the correct language.
ExecSpaddtranslationtext n'Sales order',Null, N'Orders for sale', N'Sales singles'
All translation projects are completed in this way. You can view the languagetranslation table to modify the translation content.
Three basic functions
1. The data input form inherits from this form, allowing you to quickly input, save, and read object data.
2. The report form inherits from this form to facilitate the presentation of Microsoft rdlc client reports
3. Custom query the query design in the query designer can be displayed as an ASP. NET web interface, browsing data records and exporting them as Excel
Five Core Components
1. Menu Designer provides flexible interface navigation for customization
2. The report designer flexibly designs reports and their parameters to facilitate multi-language, multi-parameter transmission, and automatic binding of data sources
3. Design query of the query designer, which can be presented in the C/S and B/S Modes
4. The workflow designer is dragged to meet the changing workflow (Message notification and approval)
5. the development tool provides a sufficient number of auxiliary tools to facilitate various development needs. The preview of the development tool is as follows:
These tools originated from the usual thoughts and collections. For example, data read/write of Enterprise SolutionCodeBy using the code Smith template code, if you need to automatically pass parameters to the Code Smith template and generate the specified file, you need to use the Smith builder code generation auxiliary tool in. For another example, solution converter originated from switching projects in different Visual Studio versions, so it is convenient to use this tool. The source code of this project is from codeproject. Here, I just integrated it into the solution package.
Project
Source code View
Business logic business model entity
Service data read and write code, all generated by the Code builder Smith Builder
Extaspnet third-party control library, extension)
Enterprise Solution Web ApplicationProgramSource code, ASP. NET web forms structure. In a web project, all folders and page names are in lowercase, And the folder Name of the page must match the namespace of its type. Let's look at the background source code of a notebook page.
[Function ( "Aiitrl" , "~ /Module/Note. aspx" )] Public Partial Class Note: entrypagebase { Protected Override Void Pageloadevent (Object Sender, eventargs e ){ If (! Ispostback) transactiontype = "Blotterentity" ; Base . Pageloadevent (sender, e );} Public Override Entitybase2 loadentity ( String Customerno) {iblottermanager manager = clientproxyfactory. createproxyinstance <iblottermanager> (); blotterentity customer = manager. getblotter (convert. toint16 (customerno )); Return Customer ;} Public Override Void Deleteentity (entitybase2 entity) {blotterentity user = (blotterentity) entity; iblottermanager manager = clientproxyfactory. createproxyinstance <iblottermanager> (); manager. deleteblotter (User );} Public Override Void Saveentity (entitybase2 entity) {blotterentity user = (blotterentity) entity; iblottermanager manager = clientproxyfactory. createproxyinstance <iblottermanager> (); manager. saveblotter (User );}}
This is all the basic data read and write code, including reading, deleting, and saving, all exist in the form of override, called by the framework class.
As shown in the notepad function interface, the entrypagebase type greatly simplifies the amount of code in the data input form and focuses on logic.