Electronic docketing method, system and electronic device for electronic files

By using electronic file organization methods and systems, the problem of lack of unified standards in electronic record management has been solved, enabling efficient electronic document organization and parsing. It is independent of information systems, provides unified management of heterogeneous systems, and ensures document integrity and reliability.

CN117453624BActive Publication Date: 2026-07-14GUANGDONG ELECTRONIC CERTIFICATION AUTHORITY CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGDONG ELECTRONIC CERTIFICATION AUTHORITY CO LTD
Filing Date
2023-10-25
Publication Date
2026-07-14

AI Technical Summary

Technical Problem

The current technology lacks a unified standard for electronic record management. The organic integration of electronic documents relies on information systems, as does the retrieval and storage of massive amounts of documents. It is difficult to achieve unified management between heterogeneous systems, which can easily lead to information omissions and loss of process management information.

Method used

This paper provides a method for organizing electronic files into electronic case files. Through generation, fast decoding, and complete decoding, it realizes the generation and parsing of electronic case files. It adopts Deflate lossless compression algorithm and electronic signature technology to ensure the integrity and reliability of the files.

Benefits of technology

It enables efficient organization and utilization of electronic records management, operates independently of information systems, unifies the management of heterogeneous systems, avoids information omissions, and improves the efficiency of electronic records management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117453624B_ABST
    Figure CN117453624B_ABST
Patent Text Reader

Abstract

The application discloses an electronic file electronicization file organization method, system and electronic equipment, the method comprises the generation of electronicization file, the quick decoding of electronicization file and the complete decoding of electronicization file, wherein the generation process of electronicization file comprises writing file header, file information, in-vol electronic file, in-vol file directory, in-vol file abstract, in-vol note record and file end; the quick decoding of electronicization file is quick positioning electronic file by reading and analyzing file header, file information, reading file directory and in-vol file abstract; the complete decoding of electronicization file is accurate to find the required electronic file by reading and analyzing the whole electronic file. The application can realize exporting file information, can simultaneously consider two requirements of efficient analysis and fine processing, and can efficiently complete the in-vol sorting and analysis utilization of electronic file, and greatly improves the work efficiency of electronic archive management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the technical field of electronic archives, specifically relating to a method, system, and electronic device for organizing electronic files. Background Technology

[0002] In archival management, filing is the process of combining completed official documents with reference and preservation value into files for the custodian unit based on the connections and certain rules in their formation process. Filing and archiving are necessities for social development. For electronic archives management, it is also necessary to file and organize electronic documents. This requires systematically organizing and assembling processed, valuable, and scattered electronic documents into files according to certain principles and methods. Filing is the endpoint and destination of document processing procedures, and it is also a component of the archives' process of organizing and archiving collected and accumulated scattered historical documents.

[0003] Because there are no substantial standards and methods to guide the filing of electronic documents, the following problems arise: 1. There is no unified standard for electronic case files; 2. The organic integration of electronic documents relies on information systems for maintenance; 3. The retrieval of massive amounts of electronic documents relies on information systems for operational support; 4. The storage of massive amounts of electronic documents relies on information systems; 5. Heterogeneous systems belonging to different institutions lack a unified standard for electronic record management strategies; 6. The migration of electronic documents between heterogeneous systems is prone to information loss; 7. Information on the process management of electronic case files is easily lost.

[0004] Therefore, how to establish electronic records management files has become an urgent problem to be solved. Summary of the Invention

[0005] The main objective of this invention is to overcome the shortcomings and deficiencies of the prior art and provide a method, system, and electronic device for organizing electronic files. Through the generation of electronic files, rapid and complete decoding can be achieved, enabling the export of file information. It can simultaneously meet the requirements of efficient parsing and fine processing, and can efficiently complete the filing, organization, parsing, and utilization of electronic files, greatly improving the efficiency of electronic archives management.

[0006] To achieve the above objectives, the present invention adopts the following technical solution:

[0007] In a first aspect, the present invention provides a method for organizing electronic files of electronic documents, comprising the following steps: generating electronic files, rapidly decoding electronic files, and fully decoding electronic files.

[0008] S1. The generation of electronic case files, specifically:

[0009] S11. Edit the attribute information of the electronic case file, and then record the encoding format of all characters in the file-related information fields. The attribute information includes the file header and version number.

[0010] S12. Extract storage space and write case file information, including the name of the collection, category name, case file title, start and end time of the files in the file, retention period, number of items, number of pages, archive number and file number;

[0011] S13. Record the current write offset and file page number, then compress the electronic case file and its metadata, and then write it into the electronic file within the volume;

[0012] S14. Extract storage space and write the file directory items in the volume according to the writing order of the electronic files in the volume.

[0013] S15. Extract storage space and write the volume file summary information according to the order of the volume file directory items, including the volume file summary start marker, file summary record and volume file summary end marker;

[0014] S16. Write the in-volume preparation record, including the in-volume preparation record start mark, preparation form record, case file metadata record, electronic signature for filing, and electronic signature value data for filing.

[0015] S17. Write the end-of-file marker to complete the generation of the electronic case file;

[0016] S2. Rapid decoding of electronic case files, specifically:

[0017] S21. Mark the file header and check the validity of the file header format. If the file header format is valid, proceed to the next step; otherwise, the parsing ends.

[0018] S22. Read or skip case file information in fixed-length bytes as needed, and then mark it with a name corresponding to the case file information;

[0019] S23. Read the end-of-file character. If there is an end-of-file character, proceed to the next step. Otherwise, read the fixed-length file size in bytes, skip the file according to the file size, and re-execute step S23.

[0020] S24. Read the start marker of the file directory within the volume, and then check the validity of the start marker of the file directory within the volume. If it is valid, proceed to the next step; otherwise, the parsing ends.

[0021] S25. Read the file sequence number. When the file sequence number is 0, the file directory entry in the volume ends and proceed to the next step. When the file sequence number is not 0, read or skip the fixed-length bytes of the file directory entry in the volume as needed.

[0022] S26. Read the start marker of the file summary information within the volume and check the validity of the start marker. If valid, proceed to the next step; otherwise, the parsing ends.

[0023] S27. Read the file sequence number. When the file sequence number is 0, the file summary in the volume ends and proceed to the next step. When the file sequence number is not 0, read or skip the fixed-length bytes of the file summary in the volume as needed.

[0024] S28. End the reading of the summary file directory within the file and complete the rapid decoding of the electronic case file;

[0025] S3. Complete decoding of electronic case files, specifically:

[0026] S31. Read the start marker of the preparation record in the exam paper, check the validity of the start marker of the preparation record in the exam paper. If it is valid, proceed to the next step; otherwise, the parsing ends.

[0027] S32. Read the exam preparation records in the exam paper, and then parse them by value;

[0028] S33. Reset the data stream of the electronic case file, navigate the relevant files within the volume using the offsets of the read volume file directory items and the full text location of the electronic file, then export the file data and decompress to restore the content of the electronic case file, and finally check if there are any electronic case files to be read. If there are any electronic case files to be read, repeat step S33; otherwise, terminate the complete decoding of the electronic case file.

[0029] As a preferred technical solution, step S12 specifically includes:

[0030] Extract 2048 bytes of space and write the following information according to the actual case file: collection name, category name, case file title, start and end dates of the files within the file, retention period, number of files, number of pages, archive number, and file number; the retention period is set to "long-term", "10 years", or "30 years"; the number of files and pages are written in big-endian format.

[0031] As a preferred technical solution, step S13 specifically includes:

[0032] S131. Record the current write offset and file page number. Then, compress the electronic case file and its metadata using the Deflate lossless compression algorithm, and then perform the following operations:

[0033] S132, Write the code of the compression algorithm, the data type is an unsigned integer, the length is 1 byte, where the value 1 represents the Deflate algorithm, and only non-zero values ​​are valid;

[0034] S133. Write the size of the compressed electronic case file in big-endian mode. The data type is an unsigned integer and the length is 8 bytes.

[0035] S134. Write the compressed electronic case file;

[0036] S135, the code name of the compression algorithm, the data type is an unsigned integer, the length is 1 byte, and the value 1 represents the Deflate algorithm;

[0037] S136. Write the size of the compressed metadata in big-endian mode. The data type is an unsigned integer and the length is 8 bytes.

[0038] S137. Write the compressed metadata;

[0039] S138. If there are still electronic files to be written, return to step S131; otherwise, proceed to the next step.

[0040] S139. Write the end-of-file marker. The data type is an unsigned integer, the length is 1 byte, and the value is 0.

[0041] As a preferred technical solution, step S14 specifically includes:

[0042] S141. Write the start marker of the file directory within the volume, 4 bytes in length;

[0043] S142. Extract 1640 bytes of storage space and write the following information according to the order in which the electronic files were written: the beginning mark of the file directory, sequence number, document number, responsible person, document title, document creation time, number of pages, page number, remarks, and the corresponding offset for locating the full text of the electronic file.

[0044] S143. Check the file directory information to be written to the volume. If there is still file directory information to be written, repeat step S141. Otherwise, write the end-of-file directory character, which is 8 bytes long and has a value of 0, and proceed to the next step.

[0045] As a preferred technical solution, step S15 specifically includes:

[0046] S151. Write the start marker for the file digest within the volume, 4 bytes in length;

[0047] S152. Extract 808 bytes of storage space, and then write a summary description and a keyword description of the electronic document content into it; the keyword description of the electronic document content uses multiple keywords separated by ASCII commas;

[0048] S153. Check the file digest information to be written to the volume. If there is still file digest information to be written, repeat step S151. Otherwise, write the end character of the file digest, which is 8 bytes long and has a value of 0, and proceed to the next step.

[0049] As a preferred technical solution, step S16 specifically includes:

[0050] Start marker for writing the exam preparation record within the volume, 4 bytes in length;

[0051] The length of the data written to the preparation table file, the data type is an unsigned integer, and the length is 8 bytes;

[0052] Write the data into the preparation form file;

[0053] Write the length of the case file metadata file. The data type is an unsigned integer, and the length is 8 bytes.

[0054] Write data into the case file metadata file;

[0055] The data length for writing the electronic signature value of the case file is an unsigned integer with a length of 8 bytes. If the electronic case file has not generated a relevant signature, the value is 0, and the process jumps to step S148. If there is a relevant signature, the value is the signature value length, and the process proceeds to the next step.

[0056] The data type to be written into the electronic signature of the filing system is a string with a length of 50 bytes.

[0057] Write the electronic signature value data for the filing, where the scope of the electronic signature data is: all data from the first file marker of the electronic case file to the end of the data in the preparation table file, and then connect all remaining data from the end of the file after skipping the electronic signature value data.

[0058] As a preferred technical solution, step S22 specifically includes:

[0059] Read or skip the fixed-length bytes of the whole domain name as needed, and mark it as the whole domain name;

[0060] Read or skip fixed-length bytes of the category name as needed, and mark them as category names;

[0061] Read or skip the fixed-length bytes of the case file title as needed, and mark them as the case file title;

[0062] Read or skip fixed-length bytes of the start and end times of files within the volume as needed, and mark them as the start and end times of the files within the volume.

[0063] Read or skip the long bytes of the retention period limit as needed, and mark them as the retention period;

[0064] Read or skip a fixed-length byte of the item count as needed, and mark it as the item count;

[0065] Read or skip a fixed number of bytes as needed, and mark them as page numbers;

[0066] Read or skip fixed-length bytes of the archive number as needed, and mark it as the archive number;

[0067] Read or skip fixed-length bytes of the file number as needed, and mark it as the file number.

[0068] As a preferred technical solution, step S32 specifically includes:

[0069] S321. Read and analyze the length of the preparation table file. When the value is 0, it means that the preparation information in the volume has ended. Proceed to step S326. When the value is non-zero, read or skip the preparation table file in the volume as needed and proceed to the next step.

[0070] S322. Read and analyze the data length of the metadata file. When the value is 0, it means that the backup information in the volume has ended. Proceed to step S326. When the value is non-zero, read or skip the case file metadata file as needed and proceed to the next step.

[0071] S323. Read and analyze the data length of the electronic signature value of the filing. When the value is 0, it means that there is no electronic signature value. Proceed to step S326. When the value is non-zero, proceed to the next step.

[0072] S324. Read the OID of the electronic signature of the filing system;

[0073] S325. Read the data according to the data length of the electronic signature value for filing, record it as the electronic signature value for filing, verify the signature. If the signature is valid, the electronic case file is valid and proceed to the next step; otherwise, the electronic case file is invalid and the reading ends.

[0074] S326. Read the end marker of the electronic case file and check its validity. If it is invalid, it means there is an error in the file and the parsing ends. Otherwise, proceed to the next step.

[0075] Secondly, the present invention also discloses an electronic file organization system for electronic documents, applied to the electronic file organization method for electronic documents, including a file generation module, a fast decoding module and a complete decoding module;

[0076] The case file generation module is used to generate electronic case files, and includes the following steps:

[0077] S11. Edit the attribute information of the electronic case file, and then record the encoding format of all characters in the file-related information fields. The attribute information includes the file header and version number.

[0078] S12. Extract storage space and write case file information, including the name of the collection, category name, case file title, start and end time of the files in the file, retention period, number of items, number of pages, archive number and file number;

[0079] S13. Record the current write offset and file page number, then compress the electronic case file and its metadata, and then write it into the electronic file within the volume;

[0080] S14. Extract storage space and arrange the file directory items in the volume according to the writing order of the electronic files in the volume, including the start mark of the file directory, sequence number, document number, responsible person, document title, document creation time, number of pages, page number, remarks, and the offset of the corresponding full text location of the electronic file.

[0081] S15. Extract storage space and write the volume file summary information according to the order of the volume file directory items, including the volume file summary start marker, file summary record and volume file summary end marker;

[0082] S16. Write the in-volume preparation record, including the in-volume preparation record start mark, preparation form record, case file metadata record, electronic signature for filing, and electronic signature value data for filing.

[0083] S17. Write the end-of-file marker to complete the generation of the electronic case file;

[0084] The rapid decoding module is used for the rapid decoding of electronic case files, and includes the following steps:

[0085] S21. Mark the file header and check the validity of the file header format. If the file header format is valid, proceed to the next step; otherwise, the parsing ends.

[0086] S22. Read or skip case file information in fixed-length bytes as needed, and then mark it with a name corresponding to the case file information;

[0087] S23. Read the end-of-file character. If there is an end-of-file character, proceed to the next step. Otherwise, read the fixed-length file size in bytes, skip the file according to the file size, and re-execute step S23.

[0088] S24. Read the start marker of the file directory within the volume, and then check the validity of the start marker of the file directory within the volume. If it is valid, proceed to the next step; otherwise, the parsing ends.

[0089] S25. Read the file sequence number. When the file sequence number is 0, the file directory entry in the volume ends and proceed to the next step. When the file sequence number is not 0, read or skip the fixed-length bytes of the file directory entry in the volume as needed.

[0090] S26. Read the start marker of the file summary information within the volume and check the validity of the start marker. If valid, proceed to the next step; otherwise, the parsing ends.

[0091] S27. Read the file sequence number. When the file sequence number is 0, the file summary in the volume ends and proceed to the next step. When the file sequence number is not 0, read or skip the fixed-length bytes of the file summary in the volume as needed.

[0092] S28. End the reading of the summary file directory within the file and complete the rapid decoding of the electronic case file;

[0093] The complete decoding module is used for the complete decoding of electronic case files, including the following steps:

[0094] S31. Read the start marker of the preparation record in the exam paper, check the validity of the start marker of the preparation record in the exam paper. If it is valid, proceed to the next step; otherwise, the parsing ends.

[0095] S32. Read the exam preparation records in the exam paper, and then parse them by value;

[0096] S33. Reset the data stream of the electronic case file, navigate the relevant files within the volume using the offsets of the read volume file directory items and the full text location of the electronic file, then export the file data and decompress to restore the content of the electronic case file, and finally check if there are any electronic case files to be read. If there are any electronic case files to be read, repeat step S33; otherwise, terminate the complete decoding of the electronic case file.

[0097] Thirdly, the present invention also discloses an electronic device, the electronic device comprising:

[0098] At least one processor; and,

[0099] A memory communicatively connected to the at least one processor; wherein,

[0100] The memory stores computer program instructions that can be executed by the at least one processor to enable the at least one processor to perform the electronic file organization method for electronic documents.

[0101] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0102] (1) By digitizing the case files, the present invention enables the relationships between the collected electronic files to no longer rely on information systems and to exist independently of operating systems and databases.

[0103] (2) Through the rapid decoding of electronic case files, the operator can efficiently retrieve electronic documents, thus no longer relying on information systems for operational support.

[0104] (3) This invention unifies the generation of electronic case files from heterogeneous systems belonging to different institutions. When verifying electronic case file documents, unified identity authentication can be achieved to establish a trust system for the handover of electronic case files.

[0105] (4) This invention migrates electronic files between heterogeneous systems and uses the information and integrity guarantee mechanism provided by the electronic case file to eliminate the problem of information omission.

[0106] (5) The present invention manages the electronic case file process by using the preparation form information provided by the electronic case file file to solve the problem of easy loss of process information;

[0107] (6) The present invention embeds a summary description and keyword information of the electronic documents in the case file, which can greatly improve the utilization efficiency of the case file. Attached Figure Description

[0108] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0109] Figure 1 This is a diagram illustrating the overall structure of the electronic case file according to an embodiment of the present invention.

[0110] Figure 2 This is a flowchart illustrating the electronic case file filing process according to an embodiment of the present invention;

[0111] Figure 3 This is a schematic diagram of the case file information structure of electronic case file documents according to an embodiment of the present invention;

[0112] Figure 4 This is a schematic diagram of the data structure of electronic files within a case file according to an embodiment of the present invention;

[0113] Figure 5 This is a schematic diagram of the file directory data structure within the electronic case file according to an embodiment of the present invention;

[0114] Figure 6 This is a schematic diagram of the file summary data structure within the electronic case file according to an embodiment of the present invention;

[0115] Figure 7This is a schematic diagram of the data structure of the in-file supplementary records in the electronic case file according to an embodiment of the present invention;

[0116] Figure 8 This is a schematic diagram of the signed data structure of electronic case file documents according to an embodiment of the present invention;

[0117] Figure 9 This is a flowchart illustrating the rapid decoding process of electronic case files according to an embodiment of the present invention.

[0118] Figure 10 This is a complete decoding flowchart of electronic case file documents according to an embodiment of the present invention;

[0119] Figure 11 This is a schematic diagram of the structure of the electronic file organization system for electronic documents according to an embodiment of the present invention;

[0120] Figure 12 This is a structural diagram of an electronic device according to an embodiment of the present invention. Detailed Implementation

[0121] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of the present application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present application without creative effort are within the scope of protection of the present application.

[0122] In this application, the reference to "embodiment" means that a specific feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a mutually exclusive, independent, or alternative embodiment. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described in this application can be combined with other embodiments.

[0123] like Figure 1 As shown, this embodiment provides a method for organizing electronic case files. This method enables unified arrangement of electronic case files. In one implemented structure, it includes a file header, case file information, electronic files within the file, a file directory within the file, a file summary within the file, a file notes record within the file, and a file ending. This data structure fully complies with archival management requirements and can be used independently of software and operating system environments. The electronic case file supports self-verification based on electronic signatures, proving its origin and integrity with other files within the file through the file itself.

[0124] Specifically, the electronic file organization method for electronic documents proposed in this embodiment includes the following steps:

[0125] S1. Generation of electronic case files;

[0126] See Figure 1 and Figure 2 Step S1 involves designing the data structure of the electronic case file strictly according to relevant archival management requirements. It uses binary data messages and can be parsed and used independently of software and operating system environments. The electronic case file consists of a header, case information, electronic files within the file, a file directory, a file summary, supplementary notes, and an end note.

[0127] S11. Edit the attribute information of the electronic case file, then record the encoding format of all characters in the file-related information fields. The attribute information includes the file header and version number. See Figure 3 ;

[0128] S12. Extract storage space and write case file information, including the name of the entire collection, category name, case file title, start and end dates of the documents within the file, retention period, number of items, number of pages, archive number, and file number, such as... Figure 3 As shown;

[0129] S121. Next, 2048 bytes of space are extracted for writing case file information;

[0130] S122. Write the first item, mark it as the parcel name, the data type is string, and the length is 400 bytes;

[0131] S123. Write the second item, marked as category name, data type is string, length 400 bytes;

[0132] S124. Write the third item, marked as the case file title, with a data type of string and a length of 400 bytes;

[0133] S125. Write the 4th item, marked with the start and end times of the files within the volume, with a length of 8 bytes;

[0134] S126. Write the 5th item, mark it as the retention period, the data type is string, the length is 5 bytes, and the value can be "long-term", "10 years" or "30 years";

[0135] S127. Write the 6th item, marked as the number of items, the data type is an unsigned integer, big-endian mode, and the length is 8 bytes;

[0136] S128. Write the 7th item, marked as the page number, with data type unsigned integer, big-endian mode, and length 8 bytes;

[0137] S129. Write to the 8th item, marked as archive number, data type is string, length 400 bytes;

[0138] S12X, write to the 9th item, marked as file number, data type is string, length 400 bytes.

[0139] S13. Record the current write offset and file page number, then compress the electronic file and its metadata, and then write it into the electronic file within the volume. See the structure below. Figure 4 ;

[0140] S131. Record the current write offset and file page number, and then compress the electronic case file and its metadata using the Deflate lossless compression algorithm;

[0141] S132, Write the code of the compression algorithm, the data type is an unsigned integer, the length is 1 byte, where the value 1 represents the Deflate algorithm, and only non-zero values ​​are valid;

[0142] S133. Write the size of the compressed electronic case file in big-endian mode. The data type is an unsigned integer and the length is 8 bytes.

[0143] S134. Write the compressed electronic case file;

[0144] S135, the code name of the compression algorithm, the data type is an unsigned integer, the length is 1 byte, and the value 1 represents the Deflate algorithm;

[0145] S136. Write the size of the compressed metadata in big-endian mode. The data type is an unsigned integer and the length is 8 bytes.

[0146] S137. Write the compressed metadata;

[0147] S138. If there are still electronic files to be written, return to step S131; otherwise, proceed to the next step.

[0148] S139. Write the end-of-file marker. The data type is an unsigned integer, the length is 1 byte, and the value is 0.

[0149] Compressing electronic case files and their metadata is merely one feasible solution provided in this embodiment, and not a necessary measure. The present invention can also directly write and export without compression. It should be noted that file compression can effectively reduce file size, thereby saving storage space and making file transfer more convenient. This is because compression tools can analyze the data in the file, identify duplicate and redundant information, and then merge and encode it, thereby reducing the file size. With file compression, this embodiment can save hardware costs and storage space, and improve file transfer speed. In another embodiment, if a larger capacity and better performance hardware is used, an uncompressed method can also be considered for directly writing and exporting electronic files into the device.

[0150] S14. Extract storage space and write the file directory items into the volume according to the order in which the electronic files were written. This includes the volume file directory start marker, sequence number, document number, responsible person, document title, document creation time, document page number, page number, remarks, and the corresponding offset for locating the full text of the electronic file. Figure 5 As shown;

[0151] S141. Write the start marker of the file directory within the volume, 4 bytes in length;

[0152] S142. Allocate 1640 bytes of space for writing the volume's file directory entries, as follows:

[0153] Write the first item, which is the sequence number. The data type is an unsigned integer, big-endian mode, and the length is 8 bytes, starting from 1.

[0154] Write the document number to the second item. The data type is string, and the length is 400 bytes.

[0155] Write the third item, which is the person in charge. The data type is string, and the length is 400 bytes.

[0156] Write the 4th item, which is the file title, with a string data type and a length of 400 bytes;

[0157] Write the 5th item, which is the file creation time. The data type is an unsigned integer, big-endian mode, and the length is 8 bytes. Write it according to the encoding rules of "year, month, day". For example, if the file is created on January 8, 2021, it will be written as "20210108".

[0158] Write the 6th item, which is the page number of the file. The data type is an unsigned integer, big-endian mode, and the length is 8 bytes.

[0159] Write the 7th item, which is the page number. The data type is an unsigned integer, big-endian mode, and the length is 8 bytes. The value is the sum of the page numbers of the existing file information. The page number of the first item, the file directory item in the volume, is 1.

[0160] Write the 8th item as a comment; the data type is string, and the length is 400 bytes.

[0161] Write the 9th item, which is the offset of the corresponding full-text location of the electronic file. The data type is an unsigned integer, big-endian mode, and the length is 8 bytes.

[0162] S143. Check the file directory information to be written to the volume. If there is still file directory information to be written, repeat step S141. Otherwise, write the end-of-file directory character, which is 8 bytes long and has a value of 0, and proceed to the next step.

[0163] S15. Allocate storage space and write the file summary information into the volume according to the order of the file directory items, including the start marker, file summary records, and end marker of the file summary. Figure 6 As shown;

[0164] S151. Write the start marker for the file digest within the volume, 4 bytes in length;

[0165] S152. Next, 808 bytes of space are truncated and used to write the volume file summary information, as follows:

[0166] Write the first item, sequence number, data type is unsigned integer, big-endian mode, length 8 bytes, starting from 1;

[0167] Write the second item, a summary description of the electronic document's content, with a string data type and a length of 400 bytes;

[0168] Write the third item: Keyword description of the electronic document content. The data type is string, the length is 400 bytes, and multiple keywords are separated by ASCII commas, with a decimal value of 44.

[0169] S153. Check the file digest information to be written to the volume. If there is still file digest information to be written, repeat step S151. Otherwise, write the end character of the file digest, which is 8 bytes long and has a value of 0, and proceed to the next step.

[0170] S16. Write the in-volume preparation record, including the in-volume preparation record start marker, preparation table record, case file metadata record, electronic signature for filing, and electronic signature value data for filing, with the following structure: Figure 7 As shown;

[0171] Step S16 is as follows:

[0172] Start marker for writing the exam preparation record within the volume, 4 bytes in length;

[0173] Write the first item, which is the length of the data in the preparation table file. The data type is an unsigned integer, and the length is 8 bytes.

[0174] Write the data into the second item, which is the preparation table file;

[0175] Write the third item, which is the length of the case file metadata file. The data type is an unsigned integer, and the length is 8 bytes.

[0176] Write the fourth item, which contains the case file metadata data;

[0177] Write the data length of the electronic signature value for the file creation in item 5. The data type is an unsigned integer, and the length is 8 bytes. If no relevant signature has been generated for the electronic file, the value is 0, and the process jumps to S52. If there is a relevant signature, the value is the signature value length, and the process proceeds to the next step.

[0178] Write the 6th item, which is the data type of the electronic signature for the filing (signedData OID). The data type is a string with a length of 50 bytes.

[0179] Write the 7th item, which is the electronic signature value data for the filing. The scope of the electronic signature for the filing is: all data from the file marker header of the electronic case file to the end of the data in the preparation table file, and then connect all the remaining data from the "electronic signature value data for the filing" to the end of the file.

[0180] S17. Write the end-of-file marker to complete the generation of the electronic case file.

[0181] After the writing is completed, the signed data structure of the electronic case file consists of, for example... Figure 8 As shown.

[0182] It should be noted that in this invention, electronic signature is not the only way to ensure the integrity of documents. In addition, this invention also uses a variety of other methods such as hash, electronic seal, blockchain, and timestamp to ensure the integrity of documents.

[0183] In terms of data structure parsing, this system offers two parsing modes: "high-speed decoding" and "complete decoding." The application software can export case file information simply by using the correct decoding method, simultaneously meeting the requirements of efficient parsing and refined processing. In archival management, this data structure enables efficient filing, organization, parsing, and utilization of electronic documents, significantly improving the efficiency of electronic archival management. The introduction of this data structure provides a new solution and new information technology support for ensuring the "authenticity, integrity, usability, and security" of electronic archives, promoting the "receipt, management, storage, and use" of electronic archives.

[0184] To locate files, this embodiment can parse an electronic case file and obtain information such as: case file name, case file number, category name, case file title, time, retention period, number of items, number of pages, archive number, catalog number, year, case file number, remarks sheet, file document summary, search keywords, case file catalog, file documents, and file remarks sheet. Parsing electronic case file files requires specialized decoding processing, which supports two modes: fast decoding and full decoding. Fast decoding mode can quickly read key information such as case file information and file document summaries, solving the problem of efficient batch retrieval of electronic case file files; full decoding mode can complete the full parsing of the file, quickly locating any information within it, as detailed below:

[0185] S2, the rapid decoding of the electronic case files, such as Figure 9 As shown, it includes the following steps:

[0186] S21. Mark the file header and check the validity of the file header format. If the file header format is valid, proceed to the next step; otherwise, the parsing ends.

[0187] S22. Read or skip case file information in fixed-length bytes as needed, and then mark it with a name corresponding to the case file information;

[0188] Specifically, step S22 includes the following steps:

[0189] Read or skip the fixed-length bytes of the whole domain name as needed, and mark it as the whole domain name;

[0190] Read or skip fixed-length bytes of the category name as needed, and mark them as category names;

[0191] Read or skip the fixed-length bytes of the case file title as needed, and mark them as the case file title;

[0192] Read or skip fixed-length bytes of the start and end times of files within the volume as needed, and mark them as the start and end times of the files within the volume.

[0193] Read or skip the long bytes of the retention period limit as needed, and mark them as the retention period;

[0194] Read or skip a fixed-length byte of the item count as needed, and mark it as the item count;

[0195] Read or skip a fixed number of pages as needed, and mark them as page numbers;

[0196] Read or skip fixed-length bytes of the archive number as needed, and mark them as archive numbers;

[0197] Read or skip fixed-length bytes of the file number as needed, and mark it as the file number.

[0198] S23. Read 1 byte and determine if it is an end-of-file character. If it is, proceed to the next step. Otherwise, read a fixed length of file size bytes, skip the file according to the file size, and re-execute step S23.

[0199] S24. Read the start marker of the file directory within the volume, and then check the validity of the start marker of the file directory within the volume. If it is valid, proceed to the next step; otherwise, the parsing ends.

[0200] S26. Read 8 bytes and record them as the file sequence number. When the file sequence number is 0, the file directory item in the volume ends and proceed to the next step. When the file sequence number is not 0, read or skip the fixed-length bytes of the file directory item in the volume as needed.

[0201] S27. Read 4 bytes and record them as the volume file digest marker. Check the validity of the volume file digest start marker. If valid, proceed to the next step; otherwise, end the parsing.

[0202] S28. Read 8 bytes and record them as the file sequence number. When the file sequence number is 0, the file summary in the volume ends and proceed to the next step. When the file sequence number is not 0, read or skip the fixed-length bytes of the file summary in the volume as needed.

[0203] S29. End the reading of the summary file directory within the file and complete the rapid decoding of the electronic case file;

[0204] S3, the complete decoding of the aforementioned electronic case file, such as Figure 10 As shown, it includes the following steps:

[0205] S31. Read the start marker of the preparation record in the exam paper, check the validity of the start marker of the preparation record in the exam paper. If it is valid, proceed to the next step; otherwise, the parsing ends.

[0206] S32. Read the exam preparation records within the exam paper, and then parse them by value, specifically:

[0207] S321. Read 8 bytes, which is recorded as the length of the preparation table file. When the value is 0, it means that the preparation information in the volume has ended. Proceed to step S326. When the value is non-zero, read or skip the preparation table file in the volume as needed and proceed to the next step.

[0208] S322. Read 8 bytes, which is recorded as the data length of the case file metadata file. When the value is 0, it means that the case file backup information has ended. Proceed to step S326. When the value is non-zero, read or skip the case file metadata file as needed and proceed to the next step.

[0209] S323. Read 8 bytes, which is the data length of the electronic signature value. When the value is 0, it means there is no electronic signature value. Proceed to step S326. When the value is non-zero, proceed to the next step.

[0210] S324. Read 50 bytes, recorded as the OID of the electronic signature for filing, which is used to provide a method for parsing the electronic signature;

[0211] S325. Read the data according to the data length of the electronic signature value for filing, record it as the electronic signature value for filing, verify the signature. If the signature is valid, the electronic case file is valid and proceed to the next step; otherwise, the electronic case file is invalid and the reading ends.

[0212] S326. Read 4 bytes and record them as the end marker of the electronic case file. Check the validity of the end marker of the electronic case file. If it is invalid, it means that there is an error in the file and the parsing ends. Otherwise, proceed to the next step.

[0213] S33. Reset the data stream of the electronic case file, navigate the relevant files within the volume using the offsets of the read volume file directory items and the full text location of the electronic file, then export the file data and decompress to restore the content of the electronic case file, and finally check if there are any electronic case files to be read. If there are any electronic case files to be read, repeat step S33; otherwise, terminate the complete decoding of the electronic case file.

[0214] In this embodiment, it should also be explained that the writing and decoding steps, including the file directory, file summary information, and case file information, can be adjusted in order according to actual needs. At the same time, the length of all fixed-length data in this embodiment, such as the "fixed-length bytes of the collection name", can be adjusted according to the actual situation. This allows for more flexible and reasonable case file generation and positioning, thereby improving the work efficiency of operators.

[0215] It should be noted that, for the sake of simplicity, the aforementioned method embodiments are all described as a series of actions. However, those skilled in the art should understand that the present invention is not limited to the described order of actions, because according to the present invention, some steps can be performed in other orders or simultaneously.

[0216] Based on the same idea as the electronic file organization method for electronic documents in the above embodiments, the present invention also provides an electronic file organization system for electronic documents, which can be used to execute the above-described electronic file organization method for electronic documents. For ease of explanation, the structural schematic diagram of the electronic file organization system embodiment only shows the parts related to the embodiments of the present invention. Those skilled in the art will understand that the illustrated structure does not constitute a limitation on the device, and may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.

[0217] Please see Figure 11In another embodiment of this application, an electronic file organization system 10 for electronic documents is provided, which includes a file generation module 11, a fast decoding module 12 and a complete decoding module;

[0218] The case file generation module is used to generate electronic case files, and includes the following steps:

[0219] S11. Edit the attribute information of the electronic case file, and then record the encoding format of all characters in the file-related information fields. The attribute information includes the file header and version number.

[0220] S12. Extract storage space and write case file information, including the name of the collection, category name, case file title, start and end time of the files in the file, retention period, number of items, number of pages, archive number and file number;

[0221] S13. Record the current write offset and file page number, then compress the electronic case file and its metadata, and then write it into the electronic file within the volume;

[0222] S14. Extract storage space and arrange the file directory items in the volume according to the writing order of the electronic files in the volume, including the start mark of the file directory, sequence number, document number, responsible person, document title, document creation time, number of pages, page number, remarks, and the offset of the corresponding full text location of the electronic file.

[0223] S15. Extract storage space and write the volume file summary information according to the order of the volume file directory items, including the volume file summary start marker, file summary record and volume file summary end marker;

[0224] S16. Write the in-volume preparation record, including the in-volume preparation record start mark, preparation form record, case file metadata record, electronic signature for filing, and electronic signature value data for filing.

[0225] S17. Write the end-of-file marker to complete the generation of the electronic case file;

[0226] The fast decoding module 12 is used for the fast decoding of electronic case files, and includes the following steps:

[0227] S21. Mark the file header and check the validity of the file header format. If the file header format is valid, proceed to the next step; otherwise, the parsing ends.

[0228] S22. Read or skip case file information in fixed-length bytes as needed, and then mark it with a name corresponding to the case file information;

[0229] S23. Read the end-of-file character. If there is an end-of-file character, proceed to the next step. Otherwise, read the fixed-length file size in bytes, skip the file according to the file size, and re-execute step S23.

[0230] S24. Read the start marker of the file directory within the volume, and then check the validity of the start marker of the file directory within the volume. If it is valid, proceed to the next step; otherwise, the parsing ends.

[0231] S25. Read the file sequence number. When the file sequence number is 0, the file directory entry in the volume ends and proceed to the next step. When the file sequence number is not 0, read or skip the fixed-length bytes of the file directory entry in the volume as needed.

[0232] S26. Read the start marker of the file summary information within the volume and check the validity of the start marker. If valid, proceed to the next step; otherwise, the parsing ends.

[0233] S27. Read the file sequence number. When the file sequence number is 0, the file summary in the volume ends and proceed to the next step. When the file sequence number is not 0, read or skip the fixed-length bytes of the file summary in the volume as needed.

[0234] S28. End the reading of the summary file directory within the file and complete the rapid decoding of the electronic case file;

[0235] The complete decoding module 13 is used for the complete decoding of electronic case files, including the following steps:

[0236] S31. Read the start marker of the preparation record in the exam paper, check the validity of the start marker of the preparation record in the exam paper. If it is valid, proceed to the next step; otherwise, the parsing ends.

[0237] S32. Read the exam preparation records in the exam paper, and then parse them by value;

[0238] S33. Reset the data stream of the electronic case file, navigate the relevant files within the volume using the offsets of the read volume file directory items and the full text location of the electronic file, then export the file data and decompress to restore the content of the electronic case file, and finally check if there are any electronic case files to be read. If there are any electronic case files to be read, repeat step S33; otherwise, terminate the complete decoding of the electronic case file.

[0239] It should be noted that the electronic file organization system for electronic documents of the present invention corresponds one-to-one with the electronic file organization method for electronic documents of the present invention. The technical features and beneficial effects described in the embodiments of the electronic file organization method for electronic documents described above are applicable to the embodiments of the electronic file organization method for electronic documents. For details, please refer to the description in the embodiments of the method of the present invention, which will not be repeated here.

[0240] Furthermore, in the implementation of the electronic file organization system for electronic documents in the above embodiments, the logical division of each program module is only an example. In actual applications, the above functions can be assigned to different program modules as needed, for example, for the sake of corresponding hardware configuration requirements or the convenience of software implementation. That is, the internal structure of the electronic file organization system for electronic documents is divided into different program modules to complete all or part of the functions described above.

[0241] Please see Figure 12 In one embodiment, an electronic device is provided for implementing an electronic file organization method for electronic documents. The electronic device 20 may include a first processor 21, a first memory 22 and a bus, and may also include a computer program stored in the first memory 22 and executable on the first processor 21, such as an electronic file organization program 23 for electronic documents.

[0242] The first memory 22 includes at least one type of readable storage medium, including flash memory, portable hard drive, multimedia card, card-type memory (e.g., SD or DX memory), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the first memory 22 can be an internal storage unit of the electronic device 20, such as the portable hard drive of the electronic device 20. In other embodiments, the first memory 22 can be an external storage device of the electronic device 20, such as a plug-in portable hard drive, smart media card (SMC), secure digital card (SD), flash card, etc., equipped on the electronic device 20. Furthermore, the first memory 22 can include both internal storage units and external storage devices of the electronic device 20. The first memory 22 can be used not only to store application software and various types of data installed on the electronic device 20, such as the code of the electronic file organization program 23 for electronic documents, but also to temporarily store data that has been output or will be output.

[0243] In some embodiments, the first processor 21 may be composed of integrated circuits, such as a single packaged integrated circuit or multiple integrated circuits with the same or different functions, including combinations of one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and various control chips. The first processor 21 is the control unit of the electronic device, connecting various components of the entire electronic device through various interfaces and lines. It executes programs or modules stored in the first memory 22 and calls data stored in the first memory 22 to perform various functions of the electronic device 20 and process data.

[0244] Figure 12 Only electronic devices with components are shown; it will be understood by those skilled in the art that... Figure 12 The structure shown does not constitute a limitation on the electronic device 20, and may include fewer or more components than shown, or combine certain components, or have different component arrangements.

[0245] The electronic file organization program 23 for electronic documents stored in the first memory 22 of the electronic device 20 is a combination of multiple instructions. When run in the first processor 21, it can achieve the following:

[0246] Case file generation module, fast decoding module, and complete decoding module;

[0247] The case file generation module is used to generate electronic case files, and includes the following steps:

[0248] S11. Edit the attribute information of the electronic case file, and then record the encoding format of all characters in the file-related information fields. The attribute information includes the file header and version number.

[0249] S12. Extract storage space and write case file information, including the name of the collection, category name, case file title, start and end time of the files in the file, retention period, number of items, number of pages, archive number and file number;

[0250] S13. Record the current write offset and file page number, then compress the electronic case file and its metadata, and then write it into the electronic file within the volume;

[0251] S14. Extract storage space and arrange the file directory items in the volume according to the writing order of the electronic files in the volume, including the start mark of the file directory, sequence number, document number, responsible person, document title, document creation time, number of pages, page number, remarks, and the offset of the corresponding full text location of the electronic file.

[0252] S15. Extract storage space and write the volume file summary information according to the order of the volume file directory items, including the volume file summary start marker, file summary record and volume file summary end marker;

[0253] S16. Write the in-volume preparation record, including the in-volume preparation record start mark, preparation form record, case file metadata record, electronic signature for filing, and electronic signature value data for filing.

[0254] S17. Write the end-of-file marker to complete the generation of the electronic case file;

[0255] The rapid decoding module is used for the rapid decoding of electronic case files, and includes the following steps:

[0256] S21. Mark the file header and check the validity of the file header format. If the file header format is valid, proceed to the next step; otherwise, the parsing ends.

[0257] S22. Read or skip case file information in fixed-length bytes as needed, and then mark it with a name corresponding to the case file information;

[0258] S23. Read the end-of-file character. If there is an end-of-file character, proceed to the next step. Otherwise, read the fixed-length file size in bytes, skip the file according to the file size, and re-execute step S23.

[0259] S24. Read the start marker of the file directory within the volume, and then check the validity of the start marker of the file directory within the volume. If it is valid, proceed to the next step; otherwise, the parsing ends.

[0260] S25. Read the file sequence number. When the file sequence number is 0, the file directory entry in the volume ends and proceed to the next step. When the file sequence number is not 0, read or skip the fixed-length bytes of the file directory entry in the volume as needed.

[0261] S26. Read the start marker of the file summary information within the volume and check the validity of the start marker. If valid, proceed to the next step; otherwise, the parsing ends.

[0262] S27. Read the file sequence number. When the file sequence number is 0, the file summary in the volume ends and proceed to the next step. When the file sequence number is not 0, read or skip the fixed-length bytes of the file summary in the volume as needed.

[0263] S28. End the reading of the summary file directory within the file and complete the rapid decoding of the electronic case file;

[0264] The complete decoding module is used for the complete decoding of electronic case files, including the following steps:

[0265] S31. Read the start marker of the preparation record in the exam paper, check the validity of the start marker of the preparation record in the exam paper. If it is valid, proceed to the next step; otherwise, the parsing ends.

[0266] S32. Read the exam preparation records in the exam paper, and then parse them by value;

[0267] S33. Reset the data stream of the electronic case file. Navigate the relevant files within the volume using the offsets of the read volume file directory items and the full-text location of the electronic file. Then, export the file data and decompress it to restore the content of the electronic case file. Finally, check if there are any electronic case files to be read. If there are, repeat step S33; otherwise, terminate the complete decoding of the electronic case file. Further, if the modules / units integrated in the electronic device 20 are implemented as software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording media, USB flash drive, portable hard drive, magnetic disk, optical disk, computer memory, or read-only memory (ROM).

[0268] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0269] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0270] The above embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments. Any changes, modifications, substitutions, combinations, or simplifications made without departing from the spirit and principle of the present invention shall be considered equivalent substitutions and shall be included within the protection scope of the present invention.

Claims

1. A method for organizing electronic files of electronic documents, characterized in that, The process includes the following steps: generation of electronic case files, rapid decoding of electronic case files, and complete decoding of electronic case files; S1. The generation of electronic case files, specifically: S11. Edit the attribute information of the electronic case file, and then record the encoding format of all characters in the file-related information fields. The attribute information includes the file header and version number. S12. Extract storage space and write case file information, including the name of the collection, category name, case file title, start and end time of the files in the file, retention period, number of items, number of pages, archive number and file number; S13. Record the current write offset and file page number, then compress the electronic case file and its metadata, and then write it into the electronic file within the volume; S14. Extract storage space and write the file directory items in the volume according to the writing order of the electronic files in the volume. S15. Extract storage space and write the volume file summary information according to the order of the volume file directory items, including the volume file summary start marker, file summary record and volume file summary end marker; S16. Write the in-volume preparation record, including the in-volume preparation record start mark, preparation form record, case file metadata record, electronic signature for filing, and electronic signature value data for filing. S17. Write the end-of-file marker to complete the generation of the electronic case file; S2. Rapid decoding of electronic case files, specifically: S21. Mark the file header and check the validity of the file header format. If the file header format is valid, proceed to the next step; otherwise, the parsing ends. S22. Read or skip case file information in fixed-length bytes as needed, and then mark it with a name corresponding to the case file information; S23. Read the end-of-file character. If there is an end-of-file character, proceed to the next step. Otherwise, read the fixed-length file size in bytes, skip the file according to the file size, and re-execute step S23. S24. Read the start marker of the file directory within the volume, and then check the validity of the start marker of the file directory within the volume. If it is valid, proceed to the next step; otherwise, the parsing ends. S25. Read the file sequence number. When the file sequence number is 0, the file directory entry in the volume ends and proceed to the next step. When the file sequence number is non-zero, read or skip fixed-length bytes of file items in the volume directory as needed; S26. Read the start marker of the file summary information within the volume and check the validity of the start marker. If valid, proceed to the next step; otherwise, the parsing ends. S27. Read the file sequence number. When the file sequence number is 0, the file summary in the volume ends and proceed to the next step. When the file sequence number is not 0, read or skip the fixed-length bytes of the file summary in the volume as needed. S28. End the reading of the summary file directory within the file and complete the rapid decoding of the electronic case file; S3. Complete decoding of electronic case files, specifically: S31. Read the start marker of the preparation record in the exam paper, check the validity of the start marker of the preparation record in the exam paper. If it is valid, proceed to the next step; otherwise, the parsing ends. S32. Read the exam preparation records in the exam paper, and then parse them by value; S33. Reset the data stream of the electronic case file, navigate the relevant files within the volume using the offsets of the read volume file directory items and the full text location of the electronic file, then export the file data and decompress to restore the content of the electronic case file, and finally check if there are any electronic case files to be read. If there are any electronic case files to be read, repeat step S33; otherwise, terminate the complete decoding of the electronic case file.

2. The method for organizing electronic files of electronic documents according to claim 1, characterized in that, Step S12 specifically involves: Extract 2048 bytes of space and write the following information according to the actual case file: collection name, category name, case file title, start and end dates of the files within the file, retention period, number of files, number of pages, archive number, and file number; the retention period is set to "long-term", "10 years", or "30 years"; the number of files and pages are written in big-endian format.

3. The method for organizing electronic files of electronic documents according to claim 1, characterized in that, Step S13 specifically involves: S131. Record the current write offset and file page number. Then, compress the electronic case file and its metadata using the Deflate lossless compression algorithm, and then perform the following operations: S132, Write the code of the compression algorithm, the data type is an unsigned integer, the length is 1 byte, where the value 1 represents the Deflate algorithm, and only non-zero values ​​are valid; S133. Write the size of the compressed electronic case file in big-endian mode. The data type is an unsigned integer and the length is 8 bytes. S134. Write the compressed electronic case file; S135, the code name of the compression algorithm, the data type is an unsigned integer, the length is 1 byte, and the value 1 represents the Deflate algorithm; S136. Write the size of the compressed metadata in big-endian mode. The data type is an unsigned integer and the length is 8 bytes. S137. Write the compressed metadata; S138. If there are still electronic files to be written, return to step S131; otherwise, proceed to the next step. S139. Write the end-of-file marker. The data type is an unsigned integer, the length is 1 byte, and the value is 0.

4. The method for organizing electronic files of electronic documents according to claim 1, characterized in that, Step S14 specifically involves: S141. Write the start marker of the file directory within the volume, 4 bytes in length; S142. Extract 1640 bytes of storage space and write the following information according to the order in which the electronic files were written: the beginning mark of the file directory, sequence number, document number, responsible person, document title, document creation time, number of pages, page number, remarks, and the corresponding offset for locating the full text of the electronic file. S143. Check the file directory information to be written to the volume. If there is still file directory information to be written, repeat step S141. Otherwise, write the end-of-file directory character, which is 8 bytes long and has a value of 0, and proceed to the next step.

5. The method for organizing electronic files of electronic documents according to claim 1, characterized in that, Step S15 specifically involves: S151. Write the start marker for the file digest within the volume, 4 bytes in length; S152. Extract 808 bytes of storage space, and then write a summary description and a keyword description of the electronic document content into it; the keyword description of the electronic document content uses multiple keywords separated by ASCII commas; S153. Check the file digest information to be written to the volume. If there is still file digest information to be written, repeat step S151. Otherwise, write the end character of the file digest, which is 8 bytes long and has a value of 0, and proceed to the next step.

6. The method for organizing electronic files of electronic documents according to claim 1, characterized in that, Step S16 specifically involves: Start marker for writing the exam preparation record within the volume, 4 bytes in length; The length of the data written to the preparation table file, the data type is an unsigned integer, and the length is 8 bytes; Write the data into the preparation form file; Write the length of the case file metadata file. The data type is an unsigned integer, and the length is 8 bytes. Write data into the case file metadata file; The length of the data written into the electronic signature value of the filing system is an unsigned integer with a length of 8 bytes. If the electronic case file has not generated a relevant signature, the value is 0, and the process jumps to step S148; if there is a relevant signature, the value is the signature length, and the process proceeds to the next step. The data type to be written into the electronic signature of the filing system is a string with a length of 50 bytes. Write the electronic signature value data for the filing, where the scope of the electronic signature data is: all data from the first file marker of the electronic case file to the end of the data in the preparation table file, and then connect all remaining data from the end of the file after skipping the electronic signature value data.

7. The method for organizing electronic files of electronic documents according to claim 1, characterized in that, Step S22 specifically involves: Read or skip the fixed-length bytes of the whole domain name as needed, and mark it as the whole domain name; Read or skip fixed-length bytes of the category name as needed, and mark them as category names; Read or skip the fixed-length bytes of the case file title as needed, and mark them as the case file title; Read or skip fixed-length bytes of the start and end times of files within the volume as needed, and mark them as the start and end times of the files within the volume. Read or skip the long bytes of the retention period limit as needed, and mark them as the retention period; Read or skip a fixed-length byte of the item count as needed, and mark it as the item count; Read or skip a fixed number of bytes as needed, and mark them as page numbers; Read or skip fixed-length bytes of the archive number as needed, and mark it as the archive number; Read or skip fixed-length bytes of the file number as needed, and mark it as the file number.

8. The method for organizing electronic files of electronic documents according to claim 1, characterized in that, Step S32 specifically involves: S321. Read and analyze the length of the preparation table file. When the value is 0, it means that the preparation information in the volume has ended. Proceed to step S326. When the value is non-zero, read or skip the preparation table file in the volume as needed and proceed to the next step. S322. Read and analyze the data length of the metadata file. When the value is 0, it means that the backup information in the volume has ended. Proceed to step S326. When the value is non-zero, read or skip the case file metadata file as needed and proceed to the next step. S323. Read and analyze the data length of the electronic signature value of the filing. When the value is 0, it means that there is no electronic signature value. Proceed to step S326. When the value is non-zero, proceed to the next step. S324. Read the OID of the electronic signature of the filing system; S325. Read the data according to the data length of the electronic signature value for filing, record it as the electronic signature value for filing, verify the signature. If the signature is valid, the electronic case file is valid and proceed to the next step; otherwise, the electronic case file is invalid and the reading ends. S326. Read the end marker of the electronic case file and check its validity. If it is invalid, it means there is an error in the file and the parsing ends. Otherwise, proceed to the next step.

9. An electronic file organization system for electronic documents, characterized in that, The method for organizing electronic files of electronic documents according to any one of claims 1-8 includes a file generation module, a fast decoding module, and a complete decoding module; The case file generation module is used to generate electronic case files, and includes the following steps: S11. Edit the attribute information of the electronic case file, and then record the encoding format of all characters in the file-related information fields. The attribute information includes the file header and version number. S12. Extract storage space and write case file information, including the name of the collection, category name, case file title, start and end time of the files in the file, retention period, number of items, number of pages, archive number and file number; S13. Record the current write offset and file page number, then compress the electronic case file and its metadata, and then write it into the electronic file within the volume; S14. Extract storage space and arrange the file directory items in the volume according to the writing order of the electronic files in the volume, including the start mark of the file directory, sequence number, document number, responsible person, document title, document creation time, number of pages, page number, remarks, and the offset of the corresponding full text location of the electronic file. S15. Extract storage space and write the volume file summary information according to the order of the volume file directory items, including the volume file summary start marker, file summary record and volume file summary end marker; S16. Write the in-volume preparation record, including the in-volume preparation record start mark, preparation form record, case file metadata record, electronic signature for filing, and electronic signature value data for filing. S17. Write the end-of-file marker to complete the generation of the electronic case file; The rapid decoding module is used for the rapid decoding of electronic case files, and includes the following steps: S21. Mark the file header and check the validity of the file header format. If the file header format is valid, proceed to the next step; otherwise, the parsing ends. S22. Read or skip case file information in fixed-length bytes as needed, and then mark it with a name corresponding to the case file information; S23. Read the end-of-file character. If there is an end-of-file character, proceed to the next step. Otherwise, read the fixed-length file size in bytes, skip the file according to the file size, and re-execute step S23. S24. Read the start marker of the file directory within the volume, and then check the validity of the start marker of the file directory within the volume. If it is valid, proceed to the next step; otherwise, the parsing ends. S25. Read the file sequence number. When the file sequence number is 0, the file directory entry in the volume ends and proceed to the next step. When the file sequence number is not 0, read or skip the fixed-length bytes of the file directory entry in the volume as needed. S26. Read the start marker of the file summary information within the volume and check the validity of the start marker. If valid, proceed to the next step; otherwise, the parsing ends. S27. Read the file sequence number. When the file sequence number is 0, the file summary in the volume ends and proceed to the next step. When the file sequence number is not 0, read or skip the fixed-length bytes of the file summary in the volume as needed. S28. End the reading of the summary file directory within the file and complete the rapid decoding of the electronic case file; The complete decoding module is used for the complete decoding of electronic case files, including the following steps: S31. Read the start marker of the preparation record in the exam paper, check the validity of the start marker of the preparation record in the exam paper. If it is valid, proceed to the next step; otherwise, the parsing ends. S32. Read the exam preparation records in the exam paper, and then parse them by value; S33. Reset the data stream of the electronic case file, navigate the relevant files within the volume using the offsets of the read volume file directory items and the full text location of the electronic file, then export the file data and decompress to restore the content of the electronic case file, and finally check if there are any electronic case files to be read. If there are any electronic case files to be read, repeat step S33; otherwise, terminate the complete decoding of the electronic case file.

10. An electronic device, characterized in that, The electronic device includes: At least one processor; and, A memory communicatively connected to the at least one processor; wherein, The memory stores computer program instructions executable by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the electronic file organization method for electronic documents as described in any one of claims 1-8.