Summary of C/S simple UI framework development (3)

Source: Internet
Author: User

The previous example may be too specific, so we hope to see from the figure below the correspondence between the frame receiving Class and the actual UI element.
 
Workbench is the main form, and the accordion menu in workbench is the complete set of business functions, so it is assembled through folder (For details, refer to the C/S simple UI framework development summary (2) Introduction to folder) A good business function can be triggered by a user at any time, and the system automatically parses and calls the corresponding function to complete the corresponding user request (may be displaying a view or other action ).
Similar to workbench, view (gridview) implements the crud function through the defined entitycontrolhost. Because the basic logic of each object crud function is the same, in addition to its special needs, the system automatically sets the datasource and state of entitycontrolhost to complete the crud UI scheduling part of the actual business entity, and the data access part is defined in entitycontrol, simple Reflection allows you to complete data business operations without the strong dependency on the Dal/El or service layer. For businesses with special requirements, you can expand entitycontrol and entitycontrolhost on your own.
View can also be any user control, such as a map or a file editor. Of course, the specific business needs to be completed in the control. The scheduling process is exactly the same, and the display style is no different from that of custom views such as gridview.
In entitycontrolhost and its related view (gridview), the same command button appears at the same time, such as Save, close, review, delete, and so on. The command button in the view is automatically merged with the main form, but the entitycontolhost is not. This ensures that the interface style and operation style are consistent more effectively.
The following is a class chart, which is derived from vs. You will take a look at it.
 

Summarize the advantages of the Architecture:
1. fast development in a narrow sense (focus on quick UI and business function implementation)
A abstracts UI elements and encapsulates highly repetitive parts for MIS application development, so that users can focus more on complex businesses and avoid repetitive work, this improves development efficiency.
The standardization of B UI elements makes it possible to automatically generate simple business and business parts. (Some codesmith templates already exist)
C font, system skin, color, and keys can be easily set to quickly meet customers' individual requirements.
The D framework allows General programmers to quickly familiarize themselves with and adapt to the situation, and then quickly complete the functions they need to improve productivity.
 
2. Improve Software Quality
Components at each layer of a have clear standardization requirements. Users only need to fill in the blanks or rewrite the corresponding methods as needed. Meanwhile, standard calling levels and automatic business function scheduling can effectively improve the software quality.
Framework B can greatly reduce user-written code, reduce bugs, and improve software quality.
C's Automatic Log and unprocessed exception handling mechanism can be easier for later maintenance.

3. Improved interface Standardization
Applications developed by users within the Framework follow the same interface specifications and operation methods.

In fact, the disadvantages are also obvious.For example, there are some limitations in use. It is a nightmare to use unfamiliar users without training. In some places, it is too hasty and not well planned, it takes a long time to adjust a bug.

The following sections need to be improved:
1. The process of automatic interaction between the entity and the interface control in entitycontrol. The policy mode supports data sources such as datatable, dataset, datarow, and strong object.
2. improved the original plug-in mechanism to make it easier to use and support obtaining plug-ins from XML files and databases.
3. Native supports automatic updates (additional applications are required now ).
4. the adaptive interface boundary is different in the layout of Windows XP, Windows 7, and Vista.
5 ,..........

Thank you for your attention.

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.