Implementation of marching in the Web Environment

zhaozj2021-02-16  47

First, the status quo and thinking of traces retention

With the gradual completion of government agencies and many enterprise network construction, users are easier to think about how to use the network, how to show the network, but also the most prone to the effect, is the Office Automation System (OA). In the current software development practice, the development of B / S mode (browser / server mode) can be used in three-layer structure, front-end service layer, intermediate business layer, background database. Due to its good expansion, high data security, it is not necessary to consider the compatibility of the client, solve many of the limitations of the C / S mode two-layer structure, and thus extensive applications in the office automation system. The reservation of the modification is a difficult point in the office automation system. Many B / S mode-based OA system processing is that the Word file is just simple as a form attachment, which is called when needed. But the disadvantage of this method is that there is no control for Word documents. The format required by the official document is required to process the Word document by the Secretary or the relevant personnel after the process is completed, generating a formal file, and cannot meet the requirements of the national format of the official document when printing. Another approach is to use an RTF domain to replace Word, but doing so is at the expense of users' habits and word processing functions, and the effect is often not ideal. At present, there are two kinds of reservations for the revision of traces, one is to redesign the dedicated editor, the other is to call the MS Office word processing software, through the programming of Word, the reservation of the revised traces. From theory and practice, the first method is better, using a special graphic mixing control embedded in the HTML page, which we can easily strengthen the client's display and processing functions, reduce the development efforts, and improve software quality.

Second, the introduction of third-party controls

Office Star Control (Ostarocx) is a graphic-based document processing control (similar Word control), office star control (Ostarocx), launched by HTAROCX. Fully encapsulate the function of the office, graphics, forms, charts and other functions, provide hundreds of programming interfaces; in the system of ERP, CRM, HR, OA, development difficulty, statistics, reports, etc. Function can be easily achieved by office star control (Ostarocx), and the effect obtained from it is exactly the same. Office Star Control (Ostarocx) is a standard OCX control for various development tools for Windows environment (such as VB, VC, Delphi, C Builder, PB, Java, etc.), and a large number of web development environments. optimization.

Third, the specific implementation of traces reserved

The application of third-party controls in the office automation program in the Web environment, greatly enriches the functionality and application of office automation procedures. To use Office Star Controls in a web environment, you must first add controls to the web programming environment, then we can use the various interfaces of the office star control. 1. Office Star Control Related Interface Method Description Method BStr getCuruser () Returns the current user name method setCuruser (LPCTSTR STRNAME) Set the current user name method setEmendState (BOOL BEMEND) Set the revision state. B is a revision state when True is amended, for false To the non-revised state method BOOL getEmendState () returns a revision state. B is a revision state, which is a non-revised state method showemendddlg () when false, ShowemendDLG () Display acceptance or reject the revision dialog box method prevfindemend () Remove the revision method nextfindemend Advanced () Accepting a single revision method AcceptalleMend () accepts all revised methods REFUSEEMEND () Reject all revised methods REFUSEALLEMEND () Reject all revisions 2. Set the user's default state of the document in the default state of the document to modify the user is super Administrator (admin), which we usually set the user of the approved operation before operating the document. Example: OSTAR.SETCURUSER ("Zhang 3") The above code (JavaScript foot? Set the operator of the current document as "Zhang 3". "OSTAR" in the above code is the identity office star control in the program. The only name is set by ID when the control is inserted. 3. Implement the modified retaining to make a button in the web document, implement the control of the revised mark. This button implements the function source program (JavaScript script): IF ( Ostar.GetemendState ()) {ostar.semendState (0); window.status = ";} else {ostar.semendState (1); window.status =" revised ... ";} This button is a switch button It is possible to switch between the retaining and normal editing state. 4. View modify each operation button function and implement code as follows: function prevfindemend () {ostar.prevfindemend (); // Amendment amendment} function nextfindemend () {ostar.nextfindemend () (); // Next Amendment} 5. Accept or refuse to modify each operation button function and implementation code as follows: function accept () {ostar.acceptemend (); // Accept revised} function refuseemend () {ostar.refuseemend () {ostar.refuseemend ); // Refuse to revision} Function ACCEPTALLEMEND () {ostar.acceptallemend (); // All Accept} Function RefuseAlleMend () {ostar.refuseallemend; // All Refused} Four, Traces Retention Implementation Effect

Through the above programming, the seamless integration of OA and the graphic mixing document is achieved, ensuring that all malicious operations for modifying traces cannot be recognized by the system, ensuring that the modification of the approved personnel is not distorted or misunderstood, guaranteed information AC security. At the same time, you can fully utilize the powerful editing function of the office star control. You can read the key points of the leadership revision and annotation, and avoid the text and print text existing before printing. It can clarify the responsibility of each link. The effect of traces reserves is as follows:

转载请注明原文地址:https://www.9cbs.com/read-26986.html

New Post(0)