ArticleDirectory
- Function navigation
- Database
- Application Structure
- Data Operation Mode
The previous article explains the technical details. This article describes how to think about the framework before and after it is created.CodeIt is only useful to some friends who need it. What is important is experiences and ideas. It took three months to complete the basic ASP. NET page framework.
Function navigation
Let's look at the whole picture. Let's look at the picture and see how each part is done.
The ERP system has many functions. How to design a simple interface and carry its function navigation. The menu here is designed with the Menu Designer. The code is read and displayed as a tree structure. After some time, I separated it into the x_menu table, and then merged the code to directly read the menu table of the framework, so as to unify B/S and C/S. Although it is impossible to have two implementations at the same time, this is the technical pursuit and a good implementation method is sought.
Synchronous comparison, C/SProgramThe object on is almost the same as the interface mode above.
See the interface mode of a specific menu item system administration, as shown in
The tree node on the left and the function type below it are displayed on the right. The design of this part is based on the menu designer. First, the function category is used for specific functions.
Database
SQL Server is the preferred database platform. Second, SQL Server has many versions. Later versions can read data files of lower versions. However, after being appended, SQL Server of lower versions can no longer read this file. I first developed SQL Server 2008 R2, and later realized that it was necessary to be compatible with the customer's choice and migrate all data to SQL Server 2005. Version Information is
Select @ VersionMicrosoftSQLServer 2005-9.00.4035.00 (Intel x86) Nov 24 2008 13:01:59 copyright (c) 1988-2005 Microsoft Corporation Express EditionWithAdvanced servicesOnWindows NT 6.1 (build 7601: Service Pack 1)
A primary database framework. The business database is ts. Configure the master-slave relationship of the database and set the database attributes of TS.
The framework will do a lot of basic work for you. This simple configuration can reduce the repetitive workload of many basic tasks.
Application Structure
Plug-in structure is preferred. The framework only focuses on the reading and writing of basic data. In case of specific business data, it is reflected and handed over to the business type for execution.
Each application is divided into four layers: interface layer presentation, interface layer iservice, interface Implementation Layer manager, and business entity layer businss logic.
The business logic layer is generated by llbl gen. The interface layer and implementation layer are generated by code Smith. The interface is based on the application layout and data attributes are bound.
The extaspnet control is partially customized and a small amount of source code is modified to meet the application requirements of the framework. The original plan was Extension Based on it. Later, it was found that the test time was increased, which was not conducive to modification and maintenance. Therefore, the source code was directly modified. The problem is that when the extaspnet control has a new version, you need to manually merge the code. Select beyond compare to compare the two versions of folders. The differences are distinguished by different colors. Open a file, merge it to the other side, and save it.
Data Operation Mode
There are five data operation modes
1. Example of a single object table, such as the company. ASPX page mentioned above
2. A Master/Slave table, such as a sales order, has a master table sales order header and a sales order list.
There is a relationship between the header and the table that indicates a small, one-to-many relationship.
3. For example, to query one or more tables, the list is displayed on a page.
4 Lookup
5. query custom query convert User-Defined query to page Function
Similar to list, but this is designed by the query designer. List is encoded by the program.
This issue also needs to be discussed in detail in the data operation mode section, which has a great impact on data read/write.