Joke Collection Website - Public benefit messages - Office automation platform technology

Office automation platform technology

Through the analysis of Huatian Power OA platform, we can know that there are two core technologies of OA platform: one is based on MVC architecture, and the other is based on SOA architecture. MVC (Model-View-Controller) structure is another description of the traditional three-tier structure. Each letter of MVC represents a different meaning, M model, V view and C control. In other words, M stands for data storage (database), V stands for end-user page, and C stands for business logic.

MVC separates data and business rules from presentation layer, which can maximize code reuse. Moreover, the data returned by the model is not formatted, so the same component can be used by different interfaces. The model is self-contained and separated from the controller and view, so it is easy to change the data layer and business rules of the application. If you want to migrate the database from MySQL to Oracle, or change the data source based on RDBMS to LDAP, just change the model. Moreover, as long as the model is implemented correctly, the view will display your data correctly whether it comes from a database or an LDAP server. In addition, the three components of MVC application are opposite to each other, and changing one of them will not affect the other two. According to this design idea, a good coupling part can be constructed.

The advantage of MVC is not reflected in the function of the product, but makes the structure of the software more reasonable and more convenient to modify. If you want to change a page, you only need to change the relationship between the page and the control layer, and you don't need to change any programs.

Application of Huatian Electric Power Office Automation Platform in MVC Architecture

First of all, in the data layer, we can communicate through middleware. In this way, you don't need to write any line of code, and you can add, delete and modify database tables through simple mapping between classes and database tables. The whole program doesn't have a SQL statement, so it can automatically switch to various database types without modifying the code. (such as MySQL/SQLSERVER/ORACLE)

Second, realize the connection with the business layer through the label definition. In the HTML page, there is no line of program code, only tag definition. If the page needs to be changed, just change the connection relationship between the label and the business layer.

Thirdly, internal management through independent subprojects can not only ensure the system independence of each subproject, but also ensure the overall management of the system.

Fourthly, through the separation of pages and programs, different display systems with multiple languages and styles can be realized. Service-oriented architecture (SOA) is a very abstract technical term and one of the most advanced technical architectures at present. IBM is also committed to promoting SOA architecture. Simply put, SOA is based on the WEB, and the WEB provides relevant interfaces for each application, similar to the original API. In this way, other systems outside the system can call related system functions without knowing the specific release mode inside the program.

For example, the interface for sending and receiving short messages, if the short message server provides such a similar interface, then third-party software can easily use it to send short messages. A complex system usually provides thousands of similar interfaces, through which external systems can interact with the original system within certain specifications.

Huatian electric power OA platform generally provides two interface types:

The first interface is BEAN type, which is the initial interface. Other JAVA systems can communicate with this system through its class package and related class package definitions.

The second interface is a WebService type. Other systems can call some or all functions of OA system through the Webservice interface provided by OA platform without knowing the details of OA internal system. For example, the OA assistant of Huatian Power itself has no data storage, is a thin client, and cannot read and write the database. But by calling the interface of OA system, the interaction with OA system can be realized. Different from JAVA class package interface, WebService interface can be called not only by JAVA programs, but also by almost all programming languages such as VB/Delphi/PB. It is not only used in B/S, but also can be called by C/S program, which greatly enhances the expansibility of the program. The whole software is developed based on WebService system, which is the core content of SOA, and this is also the foundation of Huatian Power's SOA-based architecture.