A method for intelligent hierarchical display of official document content in a heterogeneous CPU system
By adopting an intelligent hierarchical display method for official document content in a heterogeneous CPU system, and utilizing document template identifiers and an artificial intelligence hierarchical system, the problem of differences in the display of official document content in a heterogeneous environment is solved. This achieves unified display of official document content, reduces the workload of customized development, and improves the system's flexibility and maintenance efficiency.
Patent Information
- Application Number
- CN202211076199.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-05
- Publication Date
- 2025-12-02
- Estimated Expiration
- 2042-09-05
AI Technical Summary
In heterogeneous CPU systems, the display of official document content varies across different browsers and office plugins, resulting in a large workload for development and maintenance, and a lack of universality and flexibility.
A method for intelligent hierarchical display of official document content under a heterogeneous CPU system is adopted. By adding identifiers to the document template, combined with an artificial intelligence hierarchical system and server-side processing, the display format is automatically judged and converted to adapt to different CPU, operating system and browser environments.
It enables unified display of official document content in a heterogeneous CPU environment, reduces the workload of customized development, improves the flexibility of system migration and maintenance, and utilizes artificial intelligence to achieve automatic hierarchical classification and real-time monitoring.
Abstract
Description
Technical Field
[0001] This invention relates to a method for displaying different official document content according to the user in a heterogeneous environment, within a webpage or an online plugin of streaming office software (such as Kingsoft Office WPS), and belongs to the field of office information technology. Background Technology
[0002] Government office information systems involve a large number of formatted official documents and files. These are typically generated using document templates and displayed intelligently based on user permissions. However, different CPU architectures (including x86, MIPS, ARM, etc.) and different browsers display document content in web pages and office plugins differently. This necessitates balancing the differences in both document content and format, generating numerous repetitive web pages, resulting in a heavy development and maintenance workload and inconvenience for users. Summary of the Invention
[0003] The technical problem this invention aims to solve is that different browsers display official document content in web pages and office plugins differently under different CPU architectures.
[0004] To solve the above-mentioned technical problems, the technical solution of the present invention is to provide a method for intelligent hierarchical display of official document content under a heterogeneous CPU system, characterized by comprising the following steps:
[0005] Step 1: Automatically classify official documents that need to be displayed in a hierarchical manner, and have the administrator review and adjust the content classification.
[0006] Step 2: In the document template, add the string @begindoc-id@ to the beginning of the corresponding paragraph of the official document content that needs to be displayed hierarchically according to user permissions, and add the string @enddoc-id@ to the end. Here, different official document content corresponds to the unique official document content identifier cid in the database, and the id in the string @begindoc-id@ and the string @enddoc-id@ corresponds one-to-one with the official document content identifier cid.
[0007] Step 3: Read the document template in the webpage or online office plugin to obtain all @begindoc-id@ and @enddoc-id@. Read the document content identifier cid corresponding to the id in @begindoc-id@ and @enddoc-id@ from the database. Replace each paragraph in the document template located between @begindoc-id@ and @enddoc-id@ with @@cid@@.
[0008] Step 4: During client-side parsing, read all document content identifiers (cid), and encode the document content identifier (cid), user identifier (uid), CPU model and version, operating system model and version, and browser model and version. The encoding format is: document content identifier (cid), user identifier (uid), CPU model and version, operating system model and version, and browser model and version.
[0009] Step 5: The client sends the encoded data to the server sequentially;
[0010] Step 6: After receiving the encoded data, the server decodes it to restore the document content identifier cid, user identifier uid, CPU model and version, operating system model and version, and browser model and version;
[0011] Step 7: The server reads the document content from the database based on the document content identifier cid and the user identifier uid;
[0012] Step 8: The server inputs the user identifier (uid) and document content into the AI classification system. The AI classification system automatically determines whether the document content matches the level of documents that the user usually obtains. If it matches, no processing is performed on the document content, and the process proceeds directly to the next step. If it does not match, the document is forwarded to the administrator for review, and the document content is updated to "pending review" before proceeding to the next step.
[0013] Step 9: The server converts the format of the official document content displayed to the user corresponding to the user ID (uid) into an appropriate display format based on the CPU model and version, operating system model and version, and browser model and version.
[0014] Step 10: The server encodes the document content identifier cid and the formatted document content. The encoding format is: document content identifier cid, document content;
[0015] Step 10: The server returns the encoded data to the client;
[0016] Step 11: The client decodes the encoded data, restores the document content identifier cid and the document content, and replaces @@cid@@ in the document template with the correct document content using the document content identifier cid.
[0017] Preferably, in step 1, the official document content that needs to be displayed in a hierarchical manner is automatically classified using an artificial intelligence hierarchical system.
[0018] Preferably, in step 2, the content between the strings @begindoc-id@ and @enddoc-id@ in the document template is a description of the official document content.
[0019] Preferably, in step 4, the fields of the encoding format are separated by ASCII code 9.
[0020] Preferably, in step 5, the client sends the encoded data to the server sequentially via AJAX asynchronous calls.
[0021] Preferably, in step 10, the document content is encoded in BASE64, and the fields in the encoding format are separated by ASCII code 9.
[0022] The method provided by this invention solves the problem of intelligent hierarchical display of official document content under heterogeneous CPU architecture. It facilitates the migration of office information systems to multiple CPU architectures, addresses the complex issues of content hierarchical display and webpage compatibility, reduces the workload and difficulty of custom development, and facilitates changes and maintenance of office information systems. Using the method provided by this invention, without increasing webpage complexity, an artificial intelligence hierarchical system can automatically hierarchize and monitor official document content in real time, uniformly handle display formats and content, and is applicable to environments with multiple CPU architectures and browsers. Detailed Implementation
[0023] The present invention will be further illustrated below with reference to specific embodiments. It should be understood that these embodiments are for illustrative purposes only and are not intended to limit the scope of the invention. Furthermore, it should be understood that after reading the teachings of this invention, those skilled in the art can make various alterations or modifications to the invention, and these equivalent forms also fall within the scope defined by the appended claims.
[0024] There is a document analyzing the economic situation that needs to be presented to personnel at different departments and levels within an organization. Some personnel will only see the macroeconomic data analysis, some will see both the macroeconomic data analysis and their department's relevant microeconomic data analysis, and some will see the complete document. Users' terminals include x86 terminals, Loongson CPU terminals, Phytium CPU terminals, etc., and the streaming office software used is WPS.
[0025] Traditional user permission and customized webpage methods require generating numerous webpages for each permission and terminal, lacking versatility, resulting in long development cycles, heavy workloads, and difficult maintenance. However, the intelligent hierarchical display method for official document content proposed in this invention generates display documents in a unified manner through tagging and dynamic content display, without increasing webpage complexity, eliminating the need for customized development.
[0026] Assuming the document analyzing the economic situation is eco.doc, the method for intelligent hierarchical display of official document content under a heterogeneous CPU system provided by this invention includes the following steps:
[0027] Step 1: The document analyzing the economic situation is eco.doc. eco.doc is then fed into the artificial intelligence grading system for automatic grading. The grading results are reviewed and adjusted by administrator A.
[0028] Step 2: In the economic situation analysis document eco.doc, add @begindoc-0001@ to the beginning of the content that needs to be displayed hierarchically, and add @enddoc-0001@ to the end. Replace the document content between @begindoc-0001@ and @enddoc-0001@ with the content description (economic analysis data).
[0029] Step 3: Read the document template from the webpage or the online office plugin to obtain all @begindoc-id@ and @enddoc-id@. In this embodiment, @begindoc-id@ and @enddoc-id@ are @begindoc-0001@ and @enddoc-0001@, respectively. Read the document content identifier cid(C0015) corresponding to id 0001 from the database, and replace each paragraph between @begindoc-0001@ and @enddoc-0001@ with @@C0015@@.
[0030] Step 4: During client-side parsing, all document content identifiers are read, and the document content identifier cid (C0015), user identifier uid (U028), CPU model and version (Loongson3000A), operating system model and version (NeoKylin7), and browser model and version (Firefox45) are encoded. In this embodiment, the encoded data are: C0015, U028, Loongson3000A, NeoKylin7, and Firefox45, with each field separated by ASCII code 9.
[0031] Step 5: The client sends the encoded data (C0015, U028, Loongson3000A, NeoKylin7, Firefox45, with each field separated by ASCII code 9) to the server via an asynchronous AJAX call.
[0032] Step 6: After receiving the encoded data, the server decodes it to restore the document content identifier cid, user identifier uid, CPU model and version, operating system model and version, and browser model and version: C0015, U028, Loongson3000A, NeoKylin7, Firefox45.
[0033] Step 7: The server reads the document content (XX increased by 31% month-on-month) from the database based on the document content identifier cid (C0015) and the user identifier uid (U028).
[0034] Step 8: The server sends the user identifier (uid) (U028) and document content (XX increased by 31% month-on-month) to the artificial intelligence classification system to automatically determine whether the document content matches the level of documents the user usually obtains. If they do not match, the document is forwarded to the administrator for review and the document content is set to pending review.
[0035] Step 9: The server will display the official document content (XX increased by 31% month-on-month; if it is determined to be incompatible in step 8, the document content will be pending review) to the user, and generate an adapted display format (XX increased by 31% month-on-month; if it is determined to be incompatible in step 8, the document content will be pending review) based on the CPU model and version (Loongson3000A), operating system model and version (NeoKylin7), and browser model and version (Firefox45).
[0036] Step 10: The server identifies the document content as cid (C0015) and displays the document content to the user. <tdnowrap>XX increased by 31% month-on-month. If it is determined to be incompatible in step 8, the document content is to be reviewed. In this embodiment, the encoded data is: C0015, JTNDdGQlMjBub3dyYXAlM0UlMjBYWCV1NzNBRiV1NkJENCV1NTg5RSV1OTU3R jMxJTI1JTNDdGQlM0U=, with the fields separated by ASCII code 9.
[0037] Step 11: The server returns the encoded data (C0015, JTNDdGQlMjBub3dyYXAlM0UlMjBYWCV1NzNBRiV1NkJENCV1NTg5RSV1OTU3RjMxJTI1JTNDdGQlM0U=, with fields separated by ASCII code 9) to the client.
[0038] Step 12: The client decodes the encoded data, restoring the document content identifier cid (C0015) and the replaced document content (XX increased by 31% month-on-month; if it was determined to be incompatible in step 8, then the document content is...). <tdnowrap>(Pending review), replace the original @@C0015@@ with the document content identifier cid(C0015).
[0039] Step 13, End.
[0040] The above steps describe the process of implementing intelligent hierarchical display of official document content in a heterogeneous CPU system. By adopting this method, the problem of intelligent hierarchical display of official document content in a heterogeneous CPU system is solved. This facilitates the migration of office information systems to heterogeneous CPU environments, addresses the combined issues of hierarchical content display and webpage compatibility, handles complex office document formats, reduces the workload and difficulty of custom development, and facilitates changes and maintenance of office information systems.< / tdnowrap> < / tdnowrap>
Claims
1. A method for intelligent hierarchical display of official document content under a heterogeneous CPU system, characterized in that, Includes the following steps: Step 1: Automatically classify official documents that need to be displayed in a hierarchical manner, and have the administrator review and adjust the content classification. Step 2: In the document template, add the string @begindoc-id@ to the beginning of the corresponding paragraph of the official document content that needs to be displayed hierarchically according to user permissions, and add the string @enddoc-id@ to the end. Here, different official document content corresponds to the unique official document content identifier cid in the database, and the id in the string @begindoc-id@ and the string @enddoc-id@ corresponds one-to-one with the official document content identifier cid. Step 3: Read the document template in the webpage or online office plugin to obtain all @begindoc-id@ and @enddoc-id@. Read the document content identifier cid corresponding to the id in @begindoc-id@ and @enddoc-id@ from the database. Replace each paragraph in the document template located between @begindoc-id@ and @enddoc-id@ with @@cid@@. Step 4: During client-side parsing, read all document content identifiers (cid), and encode the document content identifier (cid), user identifier (uid), CPU model and version, operating system model and version, and browser model and version. The encoding format is: document content identifier (cid), user identifier (uid), CPU model and version, operating system model and version, and browser model and version. Step 5: The client sends the encoded data to the server sequentially; Step 6: After receiving the encoded data, the server decodes it to restore the document content identifier cid, user identifier uid, CPU model and version, operating system model and version, and browser model and version; Step 7: The server reads the document content from the database based on the document content identifier cid and the user identifier uid; Step 8: The server sends the user ID (uid) and document content to the AI-based classification system. The AI-based classification system automatically determines whether the document content matches the level of documents the user usually obtains. If it matches, no processing is performed on the document content, and the process proceeds directly to the next step. If it does not match, the document is forwarded to the administrator for review, and the document content is updated to "pending review," before proceeding to the next step. Step 9: The server converts the format of the official document content displayed to the user corresponding to the user ID (uid) into an appropriate display format based on the CPU model and version, operating system model and version, and browser model and version. Step 10: The server encodes the document content identifier cid and the formatted document content. The encoding format is: document content identifier cid, document content; Step 11: The server returns the encoded data to the client; Step 12: The client decodes the encoded data, restores the document content identifier cid and the document content, and replaces @@cid@@ in the document template with the correct document content using the document content identifier cid.
2. The method for intelligent hierarchical display of official document content under a heterogeneous CPU system as described in claim 1, characterized in that, In step 1, the official document content that needs to be displayed in a hierarchical manner is automatically classified through an artificial intelligence classification system.
3. The method for intelligent hierarchical display of official document content under a heterogeneous CPU system as described in claim 1, characterized in that, In step 2, the content between the strings @begindoc-id@ and @enddoc-id@ in the document template is a description of the official document content.
4. The method for intelligent hierarchical display of official document content under a heterogeneous CPU system as described in claim 1, characterized in that, In step 4, the fields of the encoding format are separated by ASCII code 9.
5. The method for intelligent hierarchical display of official document content under a heterogeneous CPU system as described in claim 1, characterized in that, In step 5, the client sends the encoded data to the server sequentially via AJAX asynchronous calls.
6. The method for intelligent hierarchical display of official document content under a heterogeneous CPU system as described in claim 1, characterized in that, In step 10, the document content is encoded in BASE64, and the fields in the encoding format are separated by ASCII code 9.
Citation Information
Patent Citations
Compliance risk information display method and device, computer equipment and storage medium
CN109492884A
Webpage consistency display method under heterogeneous CPU system
CN110457616A