Vi. Background Management and front-end display
By the end of the previous chapter, we have discussed the various components of the system, including database connections and controls. All these results will be immediately presented to us.
All management functions are managed by the backgroundProgram. The backend management platform itself is a scalable platform. After obtaining the information, the customer can expand it by themselves.
The background management platform is a frame framework. The menu is on the left and the body to be displayed on the right. The menu on the left encapsulates a control. This control first reads the menu content in the system table: zr_function, in this table, the menu ID and name are specified. Because the menu is a tree structure, there is also a parent_id field in this table to form a tree structure. This table also specifies the menu item function. You can open An ASPX page or directly display a content_type, which can have different calling methods.
When reading the menu content, the system filters out the user's permissions and only lists the functional menus that can be used by the user. This ensures that the user is not unauthorized.
In the menu item, specifically lists the maintenance of the META-DATA, the user can fully configure the metadata here, because of the relationship between IIS, after the configuration is complete, you need to refresh the cache, this function is available in the system management menu. When you log on, the system automatically reads some frequently used content from the database and puts it into the memory, so it is important to refresh.
Menu controls are inherited from other professional controls. Therefore, each time the menu is transmitted with the client, the menu transmission may be incomplete due to poor network conditions, therefore, a javascript error occurs. Therefore, I add a button "reload menu" on the Management Program Interface and add a connection to it, left. aspx, and set the frame to left to refresh the menu.
One of the highlights of the Management Program is the effectiveness of the MDI form. This is a practical function in BS programs. It is different from the greenbrowser method, you can share the menu on the left. The MDI control is inherited from a tab control and added with a large amount of JavaScript to achieve this effect.
In terms of front-end display, it is different from the back-end. You need to write your own program implementation. Of course, you can modify it based on the demo provided by the system.
The front-end program development mainly calls the system's framework functions, such as the user class and content class. In fact, there is no difference with writing a general aspx program, it greatly simplifies the development difficulty, shortens the development cycle, and reduces the possibility of errors.
Because the front-end website is open to the public for use, unlike the background management program, the background is mainly used by the company's management personnel, so the development strategy is also different: there are very few users in the background, so we can ignore the traffic usage, and the number of users of the front-end members may be quite large. Therefore, we must consider that we should not use too much bandwidth in design, for pages that can be expressed with 10 K, 100 k is definitely not used. Therefore, you cannot put too many custom controls and try to use standard HTML, many of the controls I designed will only appear in the background management program. We do not recommend calling them at the foreground.
In terms of multiple languages, the front-end and back-end implementations are basically the same, all in the multi-language section.
VII. Summary
Hippo is an accumulation of many years of software development experience, absorbing the advantages and features of multiple large systems. However, due to limited personal energy, there are still many good ideas that are still being implemented, of course, there are still many good functions. Because of the length, I will not talk about them here. If you are interested, you can directly communicate with me. My mail: zrsoftcn@yahoo.com.cn