A kind of survey report online examination modification communication method and system
Patent Information
- Application Number
- CN202511264398.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-05
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2045-09-05
AI Technical Summary
[0002]随着工程建设数字化进程的加速,勘察报告的在线审批与协同修改已成为行业核心需求,传统模式下,勘察报告的审批依赖线下流转与人工核对,存在效率低、版本混乱、安全风险高的问题,近年来,虽然部分系统实现了文档在线化,但受限于Windows多用户会话管理机制与权限动态适配的复杂性,仍面临多用户并发操作时的环境冲突、权限更新滞后、数据同步延迟等挑战,例如,在大型工程项目的多角色审批场景中,用户角色可能随流程推进频繁变更,但传统系统需用户手动重新登录以刷新权限,导致操作中断;同时,高敏感文档的时效性管理缺乏动态机制,易因令牌过期引发审批流程停滞,此外,跨会话环境下的应用程序启动依赖静态环境变量配置,难以适配不同用户的个性化设置与依赖库路径,进一步限制了协同效率
一、本发明通过动态权限适配机制与跨会话环境重建技术,显著提升了勘察报告审批流程的安全性与操作效率,系统在生成用户访问令牌时,实时关联用户角色层级及操作权限范围,当审批环节角色变更时,可自动触发令牌更新流程,无需用户重新登录即可动态适配新权限,避免了传统静态权限管理导致的操作中断或越权风险,同时,令牌内置时效管理模块,根据文档敏感级别动态调整有效期,并在过期前10分钟通过前端弹窗提醒续期,续期过程无需中断当前操作,此外,跨会话进程启动算法通过重构用户环境变量块,确保应用程序在不同会话中准确识别依赖路径、个性化配置等环境参数,解决了多用户并发操作时的环境冲突问题,大幅提升了审批系统的兼容性与稳定性。
Smart Images

Figure CN121071946B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of document processing technology, specifically to an online approval and modification communication method and system for survey reports. Background Technology
[0002] With the acceleration of digitalization in engineering construction, online approval and collaborative modification of survey reports have become core industry needs. In the traditional model, the approval of survey reports relies on offline circulation and manual verification, which suffers from low efficiency, version chaos, and high security risks. In recent years, although some systems have achieved online document processing, they still face challenges such as environmental conflicts, delayed permission updates, and data synchronization delays due to the complexity of Windows multi-user session management mechanisms and dynamic permission adaptation. For example, in the multi-role approval scenario of large-scale engineering projects, user roles may change frequently as the process progresses, but traditional systems require users to manually log in again to refresh permissions, resulting in operation interruptions. At the same time, the timeliness management of highly sensitive documents lacks a dynamic mechanism, which can easily cause the approval process to stall due to token expiration. In addition, the application startup in cross-session environments relies on static environment variable configuration, which is difficult to adapt to the personalized settings and dependency library paths of different users, further limiting collaborative efficiency.
[0003] Traditional survey report approval systems suffer from several shortcomings: First, static access control: Traditional systems use a login-based authorization model, where user permissions are bound to roles and cannot be dynamically adjusted. When a role changes during the approval process, the user must log out of the current session and log in again to obtain new permissions, leading to operational interruptions and reduced efficiency. Second, poor environmental adaptability: During cross-session operations, the system environment variables that the application relies on are usually statically configured. Environmental differences between different users or sessions can easily cause program startup failures or operational anomalies, especially in CAD professional software scenarios, where workflow interruptions due to environmental conflicts account for more than 30%. Third, insufficient data synchronization reliability: Traditional automatic saving mechanisms often use fixed-interval triggers, which cannot accurately identify valid modification behaviors and are prone to version overwriting or data loss due to misjudgment. At the same time, the lack of disconnection reconnection and state deduplication functions makes it difficult to guarantee data consistency in network fluctuation scenarios. Under high concurrency, server load surges, and response latency can reach the second level. Summary of the Invention
[0004] The purpose of this invention is to overcome the shortcomings of existing technologies and provide an online approval and modification communication method and system for survey reports. It achieves automatic token updates when user roles change through a dynamic permission adaptation mechanism, and solves the environmental conflict problem of multi-user concurrent operations by combining cross-session environment reconstruction technology. Simultaneously, it employs an intelligent monitoring algorithm to accurately identify valid document modifications and dynamically adjusts the automatic saving strategy based on document type. Combined with WebSocket real-time synchronization and disconnection reconnection mechanisms, it ensures data consistency and operational continuity.
[0005] To solve the above-mentioned technical problems, the present invention provides the following technical solution: On one hand, a communication method for online approval and modification of survey reports, the specific steps of which are as follows: S100, Session and Token Acquisition: In the Windows system service process, all active sessions are obtained through the session enumeration algorithm, valid sessions are filtered out based on the session validity determination algorithm, the current active console SessionID is extracted, and then a user access token is generated according to the user token generation algorithm. S200, Environment Reconstruction and Program Startup: Based on the user access token, a user environment variable block is generated through an environment variable block reconstruction algorithm. Then, an application matching the document type is started in a specified user session using a cross-session process startup algorithm, ensuring that the application can recognize and use the reconstructed user environment variables. S300, Communication Connection and Document Processing: Through a unified Bridge service architecture, the front end sends a document opening request to the corresponding Bridge service via WebSocket. After receiving the request, the Bridge service downloads the document from the document storage module to the local temporary directory via the HTTP protocol, and records the document opening timestamp at the same time. S400, Document Modification Monitoring: After a document is opened, the Bridge service starts an independent file monitoring thread to check the document status at a fixed frequency. The modification status determination algorithm determines whether the document has been modified. The document is considered to have been effectively modified only when the algorithm result is 1. S500, automatic saving and status synchronization: When a document is determined to have been effectively modified, the system starts an intelligent automatic saving process. The saving behavior is controlled by the saving delay and execution algorithm. After the delay timer expires, the modified document is uploaded to the document storage module, and the upload status is pushed to the front end in real time via WebSocket. It also supports disconnection reconnection and deduplication mechanisms. Furthermore, in S100, during session and token acquisition, the calculation formula for the user token generation algorithm is as follows: ,in It is a user access token. This serves as user authentication credentials, including username, role ID, and permission mask. Environmental characteristic parameters for active sessions include terminal device identifier and login domain information. This indicates an active session, meaning a system session that is currently active. It is an encryption algorithm based on SHA-256. This is the current system timestamp. It is a process binding operator.
[0006] Furthermore, in S100, during session and token acquisition, a dynamic permission adaptation mechanism is adopted. When generating a user access token, not only is the user's basic identity credential associated, but the user's current role level and operation permission scope in the approval process are also synchronized in real time. When the user's role changes during the approval process, the system can automatically trigger the token update process, allowing the user to obtain access permissions matching the new role without having to log in again. At the same time, the user access token has a built-in timeliness management module that dynamically adjusts the token's validity period according to the document's sensitivity level. For highly sensitive survey reports, the token's validity period is automatically shortened to 1 hour, and 10 minutes before the token expires, a pop-up window on the front end actively reminds the user to renew the token. The renewal process does not require interrupting the current document operation.
[0007] Furthermore, in S200, during environment reconstruction and program startup, the calculation formula for the environment variable block reconstruction algorithm is as follows: ,in, It is a user environment variable block. This is a set of application runtime paths, including executable file paths and dependency library paths. Parameters for the temporary file storage directory, including the path string and permission settings. Personalize configuration information for users, including interface parameters and default settings. To bind permissions, an operator is used to associate and bind the user token with environment variables. For the number of environmental variable categories, It is a user access token.
[0008] Furthermore, in S400, the calculation formula for the modification status determination algorithm in document modification monitoring is as follows: Sign Diff ,in, This is the document modification status result; 1 indicates it has been modified, and 0 indicates it has not been modified. This is the document modification timestamp at the time of the current detection. The timestamp of modifications recorded when the document was opened. This is a sign function; a result of 1 indicates... A result of 0 indicates otherwise. The MD5 hash value of the document content is used, and Diff() is the hash difference determination function. A result of 1 indicates that the current hash value is different from the hash value when the document was opened, and a result of 0 indicates otherwise.
[0009] On the other hand, an online approval and modification communication system for survey reports includes a session and token management module, an environment reconstruction and program startup module, a communication connection and document processing module, a document modification monitoring module, and an automatic saving and status synchronization module. The session and token management module is used in the Windows system service process to obtain all active sessions through the session enumeration algorithm, filter out valid sessions based on the session validity determination algorithm and extract the current active console session ID, and then generate user access tokens according to the user token generation algorithm, while realizing dynamic permission adaptation and token validity management. The environment reconstruction and program startup module is used to generate a user environment variable block based on the user access token through an environment variable block reconstruction algorithm, and then start the application matching the document type in the specified user session with the help of a cross-session process startup algorithm. The communication connection and document processing module is used to realize communication between the front end and the Bridge service, as well as the recording of document download and opening timestamps, through a unified Bridge service architecture. The document modification monitoring module is used to start an independent file monitoring thread after the document is opened, detect the document status at a fixed frequency, and determine whether the document has been effectively modified through a modification status determination algorithm. The automatic save and status synchronization module is used to start the intelligent automatic save process when it is determined that the document has been effectively modified. It controls the save behavior through save delay and execution algorithm, and pushes the upload status to the front end in real time. It also supports disconnection reconnection and deduplication mechanism.
[0010] Compared with existing technologies, this online approval and modification communication method and system for survey reports has the following advantages: I. This invention significantly improves the security and operational efficiency of the survey report approval process through a dynamic permission adaptation mechanism and cross-session environment reconstruction technology. When generating a user access token, the system associates the user's role level and operation permission scope in real time. When the role changes during the approval process, the token update process can be automatically triggered, dynamically adapting to the new permissions without requiring the user to log in again. This avoids the risks of operation interruption or unauthorized access caused by traditional static permission management. At the same time, the token has a built-in time-limited management module that dynamically adjusts the validity period according to the document's sensitivity level and reminds the user to renew the token 10 minutes before expiration via a front-end pop-up. The renewal process does not require interruption of the current operation. In addition, the cross-session process startup algorithm, by reconstructing the user environment variable block, ensures that the application accurately identifies environment parameters such as dependency paths and personalized configurations in different sessions, solving the problem of environment conflicts when multiple users operate concurrently, and greatly improving the compatibility and stability of the approval system.
[0011] Second, this invention achieves dual optimization of real-time performance and reliability in the modification process of survey reports through intelligent monitoring of file status and adaptive saving strategies. The document modification monitoring module uses an independent thread to detect the document status at a fixed frequency, and combines MD5 hash value comparison and timestamp difference judgment algorithms to accurately identify valid modification behaviors, avoiding version chaos caused by misjudgment or omission. The automatic saving module dynamically adjusts the delay parameters according to the document type, pushes the saving status to the front end in real time through WebSocket, and supports disconnection reconnection and deduplication mechanisms to ensure data consistency in high-concurrency scenarios. This design not only reduces the risk of omissions in manual saving, but also reduces server load through asynchronous communication architecture, enabling the approval process to improve operation response speed while ensuring data security.
[0012] Other advantages, objectives and features of the invention will be set forth in part in the description which follows, and in part will be apparent to those skilled in the art from the following examination or study, or may be learned from the practice of the invention. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the accompanying drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are merely some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without any creative effort.
[0014] Figure 1 Flowchart for modifying the communication method for online approval of survey reports; Figure 2 The diagram showing the steps involved in modifying the communication methods for online approval of survey reports is provided. Figure 3Modify the flowchart of the communication system module for online approval of survey reports. Detailed Implementation
[0015] To further illustrate the technical means and effects of the present invention in achieving its intended purpose, the following detailed description of the specific implementation methods, structures, features, and effects of the present invention, in conjunction with the accompanying drawings and preferred embodiments, is provided below. Example
[0016] This invention relates to specific application scenarios of the online approval and modification communication method for survey reports.
[0017] A geological exploration unit needs to approve and modify an important geological exploration report online. Multiple approvers need to log in to the system from different terminals to complete the operation. Specific steps include... Figure 1 As shown: S100, Session and Token Acquisition: The system runs within a Windows system service process. First, it uses a session enumeration algorithm to traverse all existing sessions in the system, obtaining basic identification information and running status parameters for each session, filtering out all active sessions. Next, it employs a session validity determination algorithm, combining terminal service information (such as startup time and associated user ID) and activity status of each session to determine the currently active console session ID, providing a basis for accurately locating the user's operating environment. Then, based on a user token generation algorithm, it processes the user's identity credentials (username, role ID, permissions), environmental characteristic parameters of the active session (terminal device identifier, login domain information), and the current system timestamp to generate a user access token. The calculation formula for the user token generation algorithm is: ,in It is a user access token. This serves as user authentication credentials, including username, role ID, and permission mask. Environmental characteristic parameters for active sessions include terminal device identifier and login domain information. This indicates an active session, meaning a system session that is currently active. It is an encryption algorithm based on SHA-256. This is the current system timestamp. It is a process binding operator, which serves as a security credential for users to perform various operations in the system. During this process, the system adopts a dynamic permission adaptation mechanism. If the approver changes from the "initial review role" to the "final review role", there is no need to log in again. The token will be automatically updated to match the permissions of the new role, reducing operation interruptions and improving the smoothness of approval. At the same time, because the report is highly sensitive, the token is valid for 1 hour. Ten minutes before the expiration, the front end will pop up a reminder to renew. Renewal will not affect the current operation, ensuring information security while avoiding work interruptions caused by token expiration.
[0018] S200, Environment Reconstruction and Program Startup: Based on the generated user access token, such as Figure 2 As shown, the system uses an environment variable block reconstruction algorithm to integrate application runtime paths (such as the executable file path and dependency library paths of Office software), temporary file storage directory parameters, and user-personalized configuration information (such as interface layout and default settings) to generate user environment variable blocks. The calculation formula for the environment variable block reconstruction algorithm is as follows: ,in, It is a user environment variable block. This is a set of application runtime paths, including executable file paths and dependency library paths. Parameters for the temporary file storage directory, including the path string and permission settings. Personalize configuration information for users, including interface parameters and default settings. To bind permissions, an operator is used to associate and bind the user token with environment variables. For the number of environmental variable categories, It is a user access token, which is bound to the user token to ensure that the environment variables and user identity are accurately matched, avoiding environment conflicts between different users. Then, with the help of the cross-session process launch algorithm, the corresponding Office application is launched in the determined active user session according to the document type of the survey report (in this case, a Word document), allowing users to operate in a familiar and personalized environment, reducing operational errors caused by inconsistent environments and improving document processing efficiency.
[0019] S300, Communication Connection and Document Processing: The front end sends an open request for the survey report to the Bridge service via WebSocket. The real-time communication feature of WebSocket ensures the timeliness of request transmission and reduces waiting time. After receiving the request, the Bridge service downloads the report from the document storage module to the local temporary directory via HTTP protocol, which facilitates the application to quickly access the document content. At the same time, it records the timestamp of the document opening, which provides a time reference for subsequent judgment on whether the document has been modified and facilitates tracking the operation process of the document.
[0020] S400, Document Modification Monitoring: Upon opening a document, the Bridge service immediately starts a dedicated file monitoring thread to check the document status at a fixed frequency, ensuring timely detection of any changes. A modification status determination algorithm compares the current modification timestamp with the timestamp when the document was opened, and also compares the hash value of the current document content with the hash value when it was opened. Only when both show changes is the modification considered valid. The calculation formula for the modification status determination algorithm is as follows: Sign Diff ,in, This is the document modification status result; 1 indicates it has been modified, and 0 indicates it has not been modified. This is the document modification timestamp at the time of the current detection. The timestamp of modifications recorded when the document was opened. This is a sign function; a result of 1 indicates... A result of 0 indicates otherwise. This is the MD5 hash value of the document content. Diff() is the hash difference determination function. A result of 1 indicates that the current hash value is different from the hash value when the document was opened, and a result of 0 indicates otherwise. This avoids triggering unnecessary subsequent processes due to accidental operations or non-substantial changes (such as opening the document for viewing without editing), reduces waste of system resources, and improves the accuracy of modification detection.
[0021] S500, Automatic Saving and Status Synchronization: When a document is determined to have been effectively modified, the system initiates an intelligent automatic saving process. This process controls the saving behavior through a save delay and execution algorithm (a corresponding delay is set for Office documents), and links the delay timer to the WebSocket connection status. This is a communication synchronization signal; 1 indicates a normal connection, and 0 indicates an interrupted connection. Setting a delay time avoids frequent save operations during continuous editing, reducing interference with user operations. After the delay ends, the modified document is uploaded to the document storage module, ensuring no changes are lost. Simultaneously, the upload status is pushed to the front end in real time via WebSocket, allowing users to understand the saving progress and eliminating concerns about whether changes are safely stored. If a network disconnection occurs, the system supports reconnection, resuming the upload after reconnection to prevent loss of changes due to network issues. Furthermore, a deduplication mechanism is employed to prevent duplicate uploads, reducing storage resource consumption and ensuring the uniqueness and consistency of document storage.
[0022] In summary, the above-described method and embodiments demonstrate the complete process of online approval and modification of survey reports. From session and token acquisition, a series of algorithms ensure operational security and permission adaptation; from environment reconstruction to ensure consistent user operating environment; to communication connection for efficient document transmission; coupled with modification monitoring to accurately identify effective changes; and finally, automatic saving and synchronization to ensure data security, each step is closely linked. With the help of dynamic permission adaptation, timeliness management, and disconnection reconnection mechanisms, approval efficiency is improved while also taking into account operational convenience and information security, meeting the stringent requirements of online processing of survey reports. Example
[0023] Specific application scenarios of this invention in the online approval and modification communication system for survey reports An engineering survey company deployed an online approval and modification communication system for survey reports to manage the approval process for survey reports across various projects. The system comprises five core modules, with specific steps as follows: Figure 3 As shown: Session and Token Management Module: When an approver logs into the system, this module operates within a Windows system service process. First, it uses a session enumeration algorithm to retrieve all active sessions in the system, ensuring coverage of all possible user operation scenarios and providing a foundation for accurate user session identification. Then, it uses a session validity determination algorithm to filter out valid sessions and extract the currently active console SessionID, thus clarifying the user's current operating environment and avoiding processing invalid sessions. Subsequently, based on a user token generation algorithm, combined with user identity credentials, active session environment characteristic parameters, and the current timestamp, it generates a user access token as a security identifier for the user to perform various operations within the system. The calculation formula for the user token generation algorithm is as follows: To prevent unauthorized access, the module implements dynamic permission adaptation. If the approver's role changes during the process (e.g., from "professional review" to "department approval"), the token will automatically update to adapt to the new permissions, eliminating the need for repeated logins, reducing operational obstacles, and improving approval continuity. For highly sensitive survey reports involving major projects, the token validity period is set to 1 hour, with a pop-up reminder 10 minutes before expiration. This ensures strict control over permission validity while avoiding work interruptions caused by sudden token expiration, balancing security and operational convenience.
[0024] Environment Reconstruction and Program Startup Module: After the user obtains an access token, this module uses an environment variable block reconstruction algorithm based on the token to integrate information such as the application's runtime path (e.g., paths related to CAD software), temporary file storage directories, and user-personalized configurations (e.g., CAD drawing parameters) to generate a user environment variable block. The calculation formula for the environment variable block reconstruction algorithm is as follows: This is then bound to a user token to ensure that each user's operating environment is accurately associated with their identity, avoiding confusion of environment parameters between different users and ensuring the stability of the application. Subsequently, using a cross-session process startup algorithm, the corresponding CAD application is launched in the specified user session based on the type of the current survey report to be processed (such as a CAD format drawing report). This ensures that the program can accurately identify and use the reconstructed environment variables, allowing users to process documents in an environment that matches their personal usage habits, reducing operational errors caused by environmental differences, and improving document processing efficiency.
[0025] Communication Connection and Document Processing Module: This module relies on a unified Bridge service architecture to realize communication between the front end and the Bridge service. The unified architecture design makes the communication process more standardized and reduces the difficulty of adaptation between different components. When an approver clicks to open a survey report on the front end, the front end sends an open request to the Bridge service via WebSocket. The real-time nature of WebSocket ensures that the request can be transmitted quickly and reduces response latency. After receiving the request, the Bridge service downloads the report from the document storage module to a local temporary directory via the HTTP protocol. Local storage facilitates the application to quickly read the document data, improves the opening speed, and simultaneously records the timestamp of the document opening, providing an accurate time reference for subsequent modification monitoring and facilitating the tracing of the document's operation timeline.
[0026] Document Modification Monitoring Module: Upon a document being opened, this module immediately starts an independent file monitoring thread. It checks the document status at a fixed frequency. The independent thread design avoids interference with the main thread's operations, ensuring smooth system operation. A modification status determination algorithm compares the document's current modification timestamp with the timestamp when it was opened, as well as the current document content hash value with the hash value when it was opened. Only when both show a difference is the document considered validly modified. The calculation formula for the modification status determination algorithm is as follows: Sign Diff This dual verification mechanism can eliminate cases of accidental operation or non-substantive changes (such as opening without editing), reduce invalid triggering of subsequent processes, save system resources, and improve the accuracy of modification detection.
[0027] Automatic Saving and Status Synchronization Module: Once a document is deemed validly modified, this module initiates an intelligent automatic saving process. It controls the saving behavior through saving delays and execution algorithms (e.g., setting appropriate delays for CAD documents). Delay settings prevent frequent saving during continuous editing, improving user experience. After the delay ends, the modified document is uploaded to the document storage module, ensuring timely backup of changes and preventing data loss due to unforeseen circumstances. Simultaneously, upload progress and success / failure status are pushed to the front end in real-time via WebSocket, allowing users to monitor the saving status and eliminating concerns about data security. If the network is interrupted during the upload process, the module supports reconnection and resumes uploading after reconnection, avoiding data transmission failures due to network fluctuations. Furthermore, a deduplication mechanism ensures that the same modifications are not uploaded to the document storage module repeatedly, reducing storage redundancy and guaranteeing the uniqueness and consistency of document data.
[0028] In summary, this system operates through the coordinated efforts of five modules: the session and token management module provides a solid security foundation, the environment reconstruction module ensures operational consistency, the communication module enables efficient interaction, the monitoring module accurately identifies changes, and the automatic saving module ensures data security. Each module relies on specific algorithms to solve problems such as cross-session operations and dynamic permission adjustments, while also improving reliability through deduplication and reconnection features. This fully meets the process requirements for online approval and modification of survey reports, balancing security and operational efficiency.
[0029] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.
Claims
1. A communication method for online approval and modification of survey reports, characterized in that, The specific steps of this communication method are as follows: S100, Session and Token Acquisition: In the Windows system service process, all active sessions are obtained through the session enumeration algorithm, valid sessions are filtered out based on the session validity determination algorithm, the current active console SessionID is extracted, and then a user access token is generated according to the user token generation algorithm. In S100, during session and token acquisition, a dynamic permission adaptation mechanism is adopted. When generating a user access token, not only is the user's basic identity credential associated, but the user's current role level and operation permission scope in the approval process are also synchronized in real time. When the user's role changes during the approval process, the system can automatically trigger the token update process, and the user can obtain access permissions matching the new role without logging in again. At the same time, the user access token has a built-in timeliness management module, which dynamically adjusts the token validity period according to the sensitivity level of the document. For highly sensitive survey reports, the token validity period is automatically shortened to 1 hour, and 10 minutes before the token is about to expire, the user is actively reminded to renew the token through a front-end pop-up window. The renewal process does not require interruption of the current document operation. S200, Environment Reconstruction and Program Startup: Based on the user access token, a user environment variable block is generated through an environment variable block reconstruction algorithm. Then, an application matching the document type is started in a specified user session using a cross-session process startup algorithm, ensuring that the application can recognize and use the reconstructed user environment variables. S300, Communication Connection and Document Processing: Through a unified Bridge service architecture, the front end sends a document opening request to the corresponding Bridge service via WebSocket. After receiving the request, the Bridge service downloads the document from the document storage module to the local temporary directory via the HTTP protocol, and records the document opening timestamp at the same time. S400, Document Modification Monitoring: After a document is opened, the Bridge service starts an independent file monitoring thread to check the document status at a fixed frequency. The modification status determination algorithm determines whether the document has been modified. The document is considered to have been effectively modified only when the algorithm result is 1. S500, automatic saving and status synchronization: When a document is determined to have been effectively modified, the system starts an intelligent automatic saving process. The saving behavior is controlled by the saving delay and execution algorithm. After the delay timer expires, the modified document is uploaded to the document storage module, and the upload status is pushed to the front end in real time via WebSocket. It also supports disconnection reconnection and deduplication mechanisms.
2. The online approval and modification communication method for survey reports according to claim 1, characterized in that, In step S100, during session and token acquisition, the calculation formula for the user token generation algorithm is as follows: ,in It is a user access token. This serves as user authentication credentials, including username, role ID, and permission mask. Environmental characteristic parameters for active sessions include terminal device identifier and login domain information. This indicates an active session, meaning a system session that is currently active. It is an encryption algorithm based on SHA-256. This is the current system timestamp. It is a process binding operator.
3. The online approval and modification communication method for survey reports according to claim 1, characterized in that, In S200, during environment reconstruction and program startup, the calculation formula for the environment variable block reconstruction algorithm is as follows: ,in, It is a user environment variable block. This is a set of application runtime paths, including executable file paths and dependency library paths. Parameters for the temporary file storage directory, including the path string and permission settings. Personalize configuration information for users, including interface parameters and default settings. To bind permissions, an operator is used to associate and bind the user token with environment variables. For the number of environmental variable categories, It is a user access token.
4. The online approval and modification communication method for survey reports according to claim 1, characterized in that, In S400, the calculation formula for the modification status determination algorithm in document modification monitoring is as follows: Sign Diff ,in, This is the document modification status result; 1 indicates it has been modified, and 0 indicates it has not been modified. This is a sign function; a result of 1 indicates... A result of 0 indicates otherwise. This is the document modification timestamp at the time of the current detection. It is the timestamp of the changes recorded when the document was opened. The MD5 hash value of the document content is used, and Diff() is the hash difference determination function. A result of 1 indicates that the current hash value is different from the hash value when the document was opened, and a result of 0 indicates otherwise.
5. An online approval and modification communication system for survey reports, the system being applicable to the online approval and modification communication method for survey reports as described in any one of claims 1-4, characterized in that, The system includes a session and token management module, an environment reconstruction and program startup module, a communication connection and document processing module, a document modification monitoring module, and an automatic saving and status synchronization module. The session and token management module is used in the Windows system service process to obtain all active sessions through the session enumeration algorithm, filter out valid sessions based on the session validity determination algorithm and extract the current active console session ID, and then generate user access tokens according to the user token generation algorithm, while realizing dynamic permission adaptation and token validity management. The environment reconstruction and program startup module is used to generate a user environment variable block based on the user access token through an environment variable block reconstruction algorithm, and then start the application matching the document type in the specified user session with the help of a cross-session process startup algorithm. The communication connection and document processing module is used to realize communication between the front end and the Bridge service, as well as the recording of document download and opening timestamps, through a unified Bridge service architecture. The document modification monitoring module is used to start an independent file monitoring thread after the document is opened, detect the document status at a fixed frequency, and determine whether the document has been effectively modified through a modification status determination algorithm. The automatic save and status synchronization module is used to start the intelligent automatic save process when it is determined that the document has been effectively modified. It controls the save behavior through save delay and execution algorithm, and pushes the upload status to the front end in real time. It also supports disconnection reconnection and deduplication mechanism.
Citation Information
Patent Citations
Cross-browser office approval marking method and system
CN108197166A
Method and device for running application program
CN115879068A