Search

CN-122021563-A - Local area network power engineering cost collaborative programming method

CN122021563ACN 122021563 ACN122021563 ACN 122021563ACN-122021563-A

Abstract

The invention belongs to the field of electric power engineering cost, and mainly relates to a local area network electric power engineering cost collaborative programming method, which comprises the steps of installing electric power engineering cost programming software on a plurality of computer devices, initiating an engineering collaborative programming request from a main device, building a local area network collaborative programming network, and realizing that the plurality of devices can share and edit files in real time; the method comprises the steps of designing and initializing an engineering file structure adapting to multi-user cooperation, dividing respective responsible file parts according to division of engineering participants, ensuring smooth file editing through locking authority control and transaction data processing mechanisms, integrating and synchronizing modification contents of all parties through a software operation module, and finally realizing file updating and modification through a version control mechanism.

Inventors

  • ZENG JIANGYOU
  • LI DUO
  • WANG YU
  • LIU JINGTONG

Assignees

  • 江西博微新技术有限公司

Dates

Publication Date
20260512
Application Date
20260107

Claims (10)

  1. 1. A cooperative programming method for local area network power engineering cost is characterized in that: Step S1, installing power engineering cost programming software on a plurality of devices, and automatically enabling the plurality of devices to build a collaborative programming network according to an engineering collaborative programming request; Step S2, designing and initializing a collaborative engineering file, including the related content of the power engineering cost file, and constructing a file structure which is suitable for the compiling requirements of multiple users; Step S3, dividing attribution of the collaborative engineering file according to division of engineering participators, and designating authority of each collaborator; S4, compiling a collaborative engineering file through a locking authority control and transaction data processing mechanism; s5, synchronizing transaction sets of different users into the same engineering file package through an operation module of software, and integrating modification contents of all parties; And step S6, after the file synchronization is completed, downloading and modifying the file through a version control mechanism of the collaborative file, and updating the engineering file.
  2. 2. The method for collaborative planning of local area network power engineering costs according to claim 1, wherein installing power engineering costs software on a plurality of devices and automatically configuring a multi-device collaborative planning network according to an initiation of an engineering collaborative planning request comprises: Setting the main equipment as the initiating equipment and broadcasting communication information including IP addresses, port numbers and relevant configuration of the main equipment to other equipment in the local area network so that the other equipment can establish connection with the main equipment; after receiving the broadcast message, the other devices actively establish TCP connection with the main device according to the network condition of the devices to form cooperative devices, so as to form a cooperative programming network.
  3. 3. The method for collaborative programming of local area network power engineering costs according to claim 1, wherein the designing and initializing collaborative engineering files, including the relevant content of the power engineering costs files, comprises: Designing the content of an integral frame according to the specific content characteristics of the power engineering cost file, and determining the file types to be contained according to actual compiling requirements; Setting corresponding roles with authority to participate in editing according to the characteristics of different files; when setting the roles participating in editing, assigning the roles with compiling authorities to each file; designing a file structure adapting to a cooperative work mode, designing leaf node project division into a cooperative minimum unit according to a multiuser compiling and distributing standard, and independently storing one file in each project division; For the relevance between various types of data, the data storage structure is designed to ensure that the data can be correctly associated and synchronized in the event of multiple collaborators modifying.
  4. 4. The method for collaborative programming of local area network power engineering cost according to claim 1, wherein the assigning rights of each collaborator comprises the steps of: Dividing attribution of collaborative engineering files according to division of engineering participants, designating authority of each collaborator, distributing roles of equipment participating in a local area network according to requirements of engineering projects and specific roles of the participants, and determining file parts responsible by each collaborator; On the basis of the attribution of the divided files, the multi-person cooperation authority is further distributed; and for each collaborator, a mechanism to lock the rights is provided.
  5. 5. The collaborative programming method for the manufacturing cost of the local area network power engineering according to claim 1, wherein the locking authority control specifically comprises the following steps: after the authority and the role are distributed, other equipment downloads corresponding engineering file contents from the main equipment to the local equipment through a local area network to carry out local programming, and records the version of the engineering file at the moment; After the locking authority is applied to the main equipment according to the project division file to be edited and the main equipment license is obtained, the corresponding sub-files are bound to the local equipment in the main equipment, the corresponding sub-files are only modified by the bound local equipment when the next version is updated, and the binding relation is automatically released after the version is updated; the rights are locked to the master device by default for the non-shared files.
  6. 6. The method for collaborative programming of local area network power engineering costs according to claim 1, wherein the transaction data processing comprises: When a user selects a programmable file, software starts a monitoring transaction for the operation behavior of the user, and when the user operates the data in the programmable file, an operation transaction record is generated and the data node ID operated by the user and the data change caused by the corresponding operation are recorded; when linkage modification exists in the process of adding and deleting data, a transaction corresponding to modified content is correspondingly added; After the user confirms that the compiling operation of the sub-file is finished, the software finishes monitoring the transaction, collates and submits the modified transaction set, and serially uploads the local transaction modified data to the transaction set of the master device.
  7. 7. The collaborative programming method for local area network power engineering cost according to claim 1, wherein the operating module of the software synchronizes transaction sets of different users into a same engineering file package, and integrating modification contents of all parties comprises: The method comprises the steps that a master device checks a project cost compiling file of a current version, confirms that each device confirms modification of the divided file, and pops up a prompt on an operation interface of the master device for devices with modification permission but without any operation to remind a master operator of checking; After all the devices complete the modification of the files, different transaction sets are needed to be synchronized into the same engineering file package through the operation module of the electric power engineering cost programming software; traversing the transaction set, acquiring each modification transaction, and executing all the acquired modification transactions in an engineering file package of the main equipment; after the importing is completed, the master device checks the current engineering file.
  8. 8. The collaborative programming method for local area network power engineering cost of claim 7, wherein the master device checking the current engineering file comprises: the master device checks the current engineering file, and confirms the integrity of all necessary filling items and non-null values in the file, so as to ensure that no necessary data is missed; verifying the data dependency relationship in the file to ensure that the linkage between related data is correctly processed; The main equipment confirms the rationality of the data value, checks whether the numerical range and the format meet the preset specification, and ensures that the calculation result is reasonable and meets the conventional expectation; When the abnormality exists, generating a transaction record, and reversely transmitting the transaction record to a collaborator with modification authority to require confirmation and correction; updating the engineering file and incrementing the version number ensures that all cooperating devices use the latest version of the file.
  9. 9. The collaborative programming method for local area network power engineering cost of claim 1, wherein after the file synchronization is completed, downloading and modifying the file is realized through a version control mechanism of the collaborative file, and updating the engineering file specifically comprises: When other devices have the requirement of modifying the corresponding sub-files, the latest engineering file version is checked to the main device, the consistency of the version is judged, the version used is ensured to be the latest version according to the consistency of the version, a normal compiling flow is entered, the local modification transaction set is synchronized to the main device, the main device modifies the engineering file locally, and the file version is increased.
  10. 10. The method for collaborative programming of local area network power engineering costs according to claim 1, wherein the power engineering costs programming software data model specifically comprises: In the power engineering cost programming software, a set of data objects is defined as an ordered set of pairs consisting of object identifiers and object state vectors: ; Wherein, the In order to be in the object state space, For a set of object identifiers; when a file modification transaction is submitted, the modification record format of the transaction is: Modifying segment value operation: ; data addition operation: ; Delete entry operation: ; Wherein S is a data entry ID, In order to select the conditional predicate, For the field identification, As a function of the field conversion, In order to be in the state of a new object, A function is generated for the identity.

Description

Local area network power engineering cost collaborative programming method Technical Field The invention belongs to the field of power engineering cost, and mainly relates to a cooperative programming method for local area network power engineering cost. Background The electric power engineering cost collaborative compiling technology is to utilize a computer network platform (such as a local area network, the Internet and the like) to realize the cost compiling of electric power engineering projects in a multi-person collaborative mode, and aims to improve the efficiency, accuracy and collaboration of engineering cost compiling processes through collaborative work, real-time data exchange, version control, authority management and other means. However, the traditional electric power engineering construction cost compiling method still faces some remarkable problems, the traditional mode mainly relies on a desktop end (Windows/Linux) to carry out engineering construction cost compiling, and a mode that parts are finished firstly and then files are exchanged or the same equipment is used alternately is adopted when a plurality of persons are compiling, so that the mode is complex in operation and easy to make mistakes, the compiling efficiency is remarkably reduced, in addition, the power generation and nuclear power engineering project is huge in scale, the time required for construction cost compiling is long, and as the number of engineering is continuously increased, version control and cooperative work become more and more complex, and the difficulty of maintaining engineering versions is greatly increased. In the method, a client sends an instruction to a server and waits for the server to return an instruction result, the server receives the instruction and processes the instruction at a platform layer and a component layer respectively, the processed result data are integrated and sent to a designated client, and the client displays and presents the result data. By the technical scheme, the transmission data quantity and task delay of the large-scale multi-person instant online task can be reduced, the concurrency number and user experience are improved, and meanwhile, the serious defects of traditional frame synchronization and state synchronization are avoided. The patent provides a perfect multi-user data synchronization method which has value used in the construction of a power engineering cost file, but has some problems in the construction of the power engineering cost file, namely that the power engineering cost file contains a plurality of different types of data, the existing synchronization method cannot ensure the consistency and the integrity of the data when a plurality of persons cooperate, the prior art cannot effectively support the real-time update of file modification, the modification content cannot always be reflected on the file in time, a cooperator can operate on the files of different versions, the modification cannot be synchronously updated, version conflict and the risk of data loss are generated, and in addition, although the prior art provides a basic framework for data synchronization, a fine version control mechanism and a permission management function are not provided, the non-permission modification cannot be effectively prevented, or the conflict modification of the same data item by the cooperator the file version confusion, the information loss and the error frequency in the cooperation process are easily caused. In order to solve the problems, the invention provides a collaborative programming method for local area network power engineering construction cost, which is characterized in that a collaborative programming network is established based on a local area network, an engineering file structure and a permission system supporting multi-user collaboration are designed, a locking permission control and transaction data processing mechanism is adopted to ensure data consistency, and the synchronization and updating of files are realized by combining version control, so that the problems of version conflict, inconsistent data, low collaborative efficiency and the like in a traditional programming mode are effectively solved, and the accuracy, instantaneity and collaborative efficiency of power engineering construction cost programming are improved. Disclosure of Invention The invention provides a local area network power engineering cost collaborative programming method, which aims to solve the problems of file version conflict, inconsistent data, low multi-user collaborative efficiency, incapability of updating modified contents in real time, conflict modification during multi-user collaborative, data loss and the like in the power engineering cost programming process. In order to solve the problems, the invention is realized by adopting the following technology: A cooperative programming method for local area network power engineering cost comprises the followi