Web service-oriented electronic form data generation and maintenance method and related equipment

Through the web service-oriented spreadsheet data generation and maintenance method, dictionary and table variables are used to generate and maintain tables in various environments, which solves the problem of table data generation that cannot be adapted to various environments with existing technology, and achieves online and cross- Custom table operations for the operating system.

CN113705183BActive Publication Date: 2024-09-20XIAMEN HYMAKE TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110808722.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-07-16
Publication Date
2024-09-20
Estimated Expiration
2041-07-16

AI Technical Summary

Technical Problem

The existing technology cannot effectively generate and maintain tabular data in various online application environments such as browsers and servers, resulting in the inability to adapt to the tabular data generation needs of different scenarios.

Method used

Adopt a web service-oriented spreadsheet data generation and maintenance method. Through the acquisition, parsing and generation steps, use dictionary and table variables to generate and maintain tables on the table display interface. It supports multiple data sources and format conversions to achieve online and Table operations across operating systems.

Benefits of technology

It realizes the generation and maintenance of table data in various environments such as browsers and servers, supports customization and online operations, and improves the efficiency and adaptability of data generation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113705183B
    Figure CN113705183B
Patent Text Reader

Abstract

The present application discloses a method and related equipment for generating and maintaining electronic table data for web services, wherein the method comprises: an acquisition step, obtaining the main body data to be edited on the web end, the main body data comes from multiple sources; a parsing step, parsing the main body data and confirming the dictionary and / or table variables that match the main body data, the dictionary and table variables carry corresponding descriptions; a generation step, generating a table based on the dictionary and table variables for the main body data on a table display interface. The technical purpose of achieving online table generation and maintenance, cross-operating system operation, and terminal user customization is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of web-side data technology, and in particular to a method and related equipment for generating and maintaining electronic spreadsheet data for web services. Background Art

[0002] In information construction, there are many scenarios that require the preparation of a large number of forms, and the workload of filling in is large. For example, in the fields of archive preparation, budget submission, accounting, etc., there is a need for the preparation of a large number of forms.

[0003] The solution of the prior art is based on specific desktop controls, and cannot generate tables in various online application environments such as browsers and servers. Therefore, the prior art has the technical defect of being unable to solve the generation of table data in different scenarios. Summary of the invention

[0004] The embodiments of the present application provide a method and related equipment for generating and maintaining electronic table data for web services, so as to achieve the technical purpose of generating tables in various online application environments such as browsers and servers.

[0005] On the one hand, the present invention discloses a method for generating and maintaining electronic form data for web services, comprising:

[0006] A method for generating and maintaining electronic table data for web services, comprising:

[0007] An acquisition step is to acquire the main body data to be edited on the web side, where the main body data comes from various sources;

[0008] A parsing step, parsing the subject data and confirming a dictionary and / or table variable matching the subject data, wherein the dictionary and table variable carry a corresponding description;

[0009] The generation step generates a table based on the dictionary and table variables for the main data on the table display interface.

[0010] Preferably, the parsing step further includes:

[0011] Data preparation steps include:

[0012] The main body data to be edited is read and a data structure is constructed according to a preset data format, wherein the data structure includes a hierarchy of the main body data to be edited.

[0013] Preferably, the data filling step includes:

[0014] Extracting a variable of the subject data to be edited, wherein the variable carries a variable definition;

[0015] Processing the format information of the main body data to be edited, and converting the format information according to a preset template;

[0016] Fill the converted main body data according to the variable definition.

[0017] Preferably, the method further comprises:

[0018] In the form of an interface, set the functions and corresponding descriptions of the table variables and / or the dictionary;

[0019] The table variables indicate the data to be assigned to the table according to the current information needs during the data generation process;

[0020] The dictionary indicates the relationship of cells to data dictionary items to establish dynamic associations.

[0021] Preferably, the parsing step is specifically implemented as follows:

[0022] Get the row and column numbers of each cell of the converted main body data;

[0023] Get each cell according to the row and column number, and bind the matching table variable or dictionary code;

[0024] Read the data item according to the encoding and generate the option interface for the cell.

[0025] On the other hand, the present invention discloses a web service-oriented electronic form data generation and maintenance device, comprising:

[0026] An acquisition unit, used for acquiring the main body data to be edited on the web side, where the main body data comes from various sources;

[0027] A parsing unit, configured to parse the subject data and identify dictionary and / or table variables that match the subject data, wherein the dictionary and table variables carry corresponding descriptions;

[0028] The generation step is used to generate a table based on the dictionary and table variables for the main data on the table display interface.

[0029] Preferably, the device further comprises: a data preparation unit, which specifically implements:

[0030] The main body data to be edited is read and a data structure is constructed according to a preset data format, wherein the data structure includes a hierarchy of the main body data to be edited.

[0031] Preferably, the device further comprises: an interface unit for setting the functions and corresponding descriptions of the table variables and / or the dictionary in the form of an interface;

[0032] The table variables indicate the data to be assigned to the table according to the current information needs during the data generation process;

[0033] The dictionary indicates the relationship of cells to data dictionary items to establish dynamic associations.

[0034] On the other hand, the present invention discloses a computer-readable medium storing computer-executable instructions for executing the above method.

[0035] In another aspect, the present invention discloses a computing device, comprising:

[0036] at least one processor; and

[0037] a memory communicatively connected to the at least one processor; wherein,

[0038] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the above method.

[0039] The electronic table data generation and maintenance method and related equipment for web services provided in the embodiments of the present application provide an electronic table data generation and maintenance solution that can support online and customized operation. The data definition adopts a data format that is more friendly to online applications, and the definition of the data format is separated from the specific table implementation form, so that the application can perform corresponding format conversion and adaptation according to different implementation forms, thereby achieving the technical purpose of enabling table generation and maintenance to be online, cross-operating system operation, and customizable by end users.

[0040] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0042] Figure 1 A schematic diagram of a flow chart of a method for generating and maintaining electronic table data for web services in an embodiment of the present application;

[0043] Figure 2 A schematic diagram of a flow chart of a method for generating and maintaining electronic table data for web services in an embodiment of the present application;

[0044] Figure 3 A schematic diagram of a flow chart of a method for generating and maintaining electronic table data for web services in an embodiment of the present application;

[0045] Figure 4 A schematic diagram of a flow chart of a method for generating and maintaining electronic table data for web services in an embodiment of the present application;

[0046] Figure 5 A schematic diagram of the structure of a device for generating and maintaining electronic table data for web services in an embodiment of the present application;

[0047] Figure 6 It is a schematic diagram of the structure of a computing device based on an embodiment of the present application;

[0048] Figure 7 It is a schematic diagram of the computer-readable medium structure based on the implementation mode of the present application. DETAILED DESCRIPTION

[0049] In the information construction, there are many scenarios that require a large number of form preparation and filling in a large amount of work. For example, in the field of construction informationization, the preparation of building data is a typical application scenario. Internal data involves a large number of forms and corresponding filling rules. Data generation is of great help in improving its efficiency. However, the current data generation solution is mainly based on specific desktop controls and cannot adapt to various application environments such as desktops, browsers, and servers.

[0050] The present application provides a web service-oriented electronic table data generation and maintenance method and related equipment to achieve the technical purpose of generating tables in a variety of online application environments such as browsers and servers.

[0051] The following further describes the web service-oriented electronic table data generation and maintenance method provided by the embodiment of the present application with reference to the accompanying drawings.

[0052] like Figure 1 , which is a flow chart of a method for generating and maintaining electronic form data for web services, including the following steps:

[0053] S11: an acquisition step, acquiring the main body data to be edited on the web side, where the main body data comes from various sources;

[0054] The source of the main body data is not limited to the desktop, and is also applicable to sources such as browsers and servers. The present invention is particularly suitable for editing data or importing table data in a WEB environment. Of course, it can also be cross-editing of data from multiple sources. It is not limited.

[0055] The main body data to be edited or to be standardized in a table has row and column structure information including row height, column width and merging information, and in actual use, font, border, color and other information. More specifically, the following table gives a description of the key attributes of the data structure definition:

[0056]

[0057]

[0058] For the data compilation requirements in the table compilation scheme of the present invention, a data structure definition is performed, including: electronic table main body data definition, variable definition, and dictionary association definition:

[0059] The main data represents the electronic table structure and data, the variables represent the data assigned to the table according to the current information needs during the data generation process, and the dictionary is used to declare the relationship between the cell and the data dictionary item to establish a dynamic association. At the same time, the regulations for data reporting can be implanted, that is, the processing methods of variables and dictionaries, such as adding rules attributes, etc.

[0060] In addition to the main data structure, the most important part of data generation is to generate dynamically changing values, such as generating corresponding content according to the current user, current environment, etc. The corresponding logic and table structure can be separated, indicating that the data generated during the data generation process needs to be assigned to the table according to the current information to describe the variables:

[0061]

[0062] Dictionary is a major component of data generation. The relationship between the cells and the data dictionary items in the table during operation is used to establish a dynamic association. The following table describes the dictionary:

[0063]

[0064] Preferably, the parsing step further includes:

[0065] In the present invention, as a preference, it further includes: a data preparation step, including:

[0066] The main body data to be edited is read and a data structure is constructed according to a preset data format, wherein the data structure includes a hierarchy of the main body data to be edited.

[0067] For example, in the table generation of the construction industry, the basic information of the project corresponds to the main data with a large amount of data, many variables and a very complex data structure. Before the table is parsed, it is necessary to construct the required data by reading the database, etc. The constructed data is prepared in JSON format (of course, key-value type databases, caching solutions, etc. can also be used, the data structure definition can be deformed accordingly, and the data format can be described in other protocol formats, such as XML.), and when parsing the table variables, the values ​​are taken out and filled into the corresponding cells.

[0068] It should be noted that when parsing the table, the associated variables are analyzed and the corresponding values ​​can be obtained after splitting by level. For example, the variable project.name is split into two levels, and the corresponding name in the project in the above data structure has a value of "such and such project".

[0069] S12: parsing step, parsing the main body data and confirming the dictionary and / or table variables matching the main body data, the dictionary and table variables carrying corresponding descriptions;

[0070] Preferably, the method further comprises:

[0071] In the form of an interface, set the functions and corresponding descriptions of the table variables and / or the dictionary;

[0072] The table variables indicate the data to be assigned to the table according to the current information needs during the data generation process;

[0073] The dictionary indicates the relationship of cells to data dictionary items to establish dynamic associations.

[0074] S13: a generation step of generating a table based on a dictionary and table variables for the main data on a table display interface.

[0075] During the table compilation process, cells are associated with dictionaries or variables. When operating cells, cell variables and dictionary definitions are parsed in real time to dynamically generate data options and interfaces for the cells.

[0076] refer to Figure 2 The present invention also includes a data filling step, including:

[0077] S21: extracting variables of the subject data to be edited, wherein the variables carry variable definitions;

[0078] S22: Processing the format information of the main body data to be edited, and converting the format information according to a preset template;

[0079] For example, use Key to determine whether a cell is a merged cell, and if it is a merged cell, get the row and column numbers of all cells. Take the relevant content in the prepared data to fill in the corresponding cell, so that the variables in the main data are processed.

[0080] S23: Fill the converted main body data according to the variable definition.

[0081] The parsing template is filled in by itself. This method is flexible and simple and can meet the needs of more scenarios.

[0082] As a way to achieve this, refer to Figure 3 , the parsing step is specifically implemented as follows:

[0083] S31: Obtain the row and column numbers of each cell of the converted main body data.

[0084] S32: Get each cell according to the row and column numbers, and bind the matching table variable or dictionary code.

[0085] Interface adaptation is an important part of data generation, which includes customization of variables and dictionaries, parsing of cell types of main data, and obtaining operation interfaces of variables or dictionaries. For JSON data types, corresponding settings and assembly of the above variables and dictionary definitions are performed to form a table environment, table style, variable description and dictionary configuration suitable for editing the main data, forming an interface interaction with the user.

[0086] S33: Read the data item according to the encoding, and generate an option interface for the cell.

[0087] For example, for the main building data, it includes the project name and the responsible person, and these two fields are variables. In the parsing process of the present invention, the project name and the responsible person can be parsed accordingly, and the variables and dictionaries can be set to complete the automatic filling. If the main data structure type is a referenced dictionary (acceptance opinion, inspection conclusion, structure type, strength grade, etc.), the dictionary options are generated after parsing and the operation interface is generated.

[0088] On the other hand, reference Figure 4 A web service-oriented electronic table data generation and maintenance device, comprising:

[0089] An acquisition unit 41 is used to acquire the main body data to be edited on the web end, where the main body data comes from various sources;

[0090] A parsing unit 42, configured to parse the subject data and identify dictionary and / or table variables that match the subject data, the dictionary and table variables carrying corresponding descriptions;

[0091] The generating unit 43 is used to generate a table based on the dictionary and table variables for the main body data on the table display interface.

[0092] refer to Figure 5 The device further includes: a data preparation unit 51, which specifically implements:

[0093] The main body data to be edited is read and a data structure is constructed according to a preset data format, wherein the data structure includes a hierarchy of the main body data to be edited.

[0094] Preferably, the device further comprises: an interface unit 52 for setting the functions and corresponding descriptions of the table variables and / or the dictionary in the form of an interface;

[0095] The table variables indicate the data to be assigned to the table according to the current information needs during the data generation process;

[0096] The dictionary indicates the relationship of cells to data dictionary items to establish dynamic associations.

[0097] The present invention also discloses a computing device, as shown below: Figure 6 hereinafter, a computing device 60 according to this embodiment of the present application is described. Figure 6 The computing device 60 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0098] like Figure 6 As shown, the computing device 60 is in the form of a general computing device. The components of the computing device 60 may include but are not limited to: at least one processor 61, at least one memory 62, and a bus 63 connecting different system components (including the memory 62 and the processor 61).

[0099] Bus 63 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.

[0100] The memory 62 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 621 and / or a cache memory 622 , and may further include a read-only memory (ROM) 623 .

[0101] The memory 62 may also include a program / utility 625 having a set (at least one) of program modules 624, such program modules 624 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0102] The computing device 60 may also communicate with one or more external devices 64 (e.g., keyboards, pointing devices, etc.), one or more devices that enable a user to interact with the computing device 60, and / or any device that enables the computing device 60 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 65. Furthermore, the computing device 60 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 66. As shown, the network adapter 66 communicates with other modules for the computing device 60 via a bus 63. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computing device 60, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0103] The present invention also discloses a computer readable medium, referring to Figure 7 , storing computer executable instructions, wherein the computer executable instructions are used to execute the method described in the above embodiment.

[0104] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium other than a readable storage medium, which may transmit, propagate, or transfer a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0105] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0106] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0107] In summary:

[0108] The web service-oriented electronic table data generation and maintenance method and related equipment disclosed in the present invention provide an online and customized electronic table data generation and maintenance solution, and adopt a data format that is more friendly to online applications for data definition. The definition of the data format is separated from the specific form of table implementation, so that corresponding format conversion and adaptation can be performed in the application according to different implementation forms, thereby achieving the technical purpose of enabling online table generation and maintenance, cross-operating system operation, and terminal user customization.

[0109] In some possible implementations, various aspects of the web service-oriented electronic form data generation and maintenance method provided in the present application may also be implemented in the form of a program product, which includes program code. When the program product is run on a computer device, the program code is used to enable the computer device to execute the steps of the encryption method for information to be verified and / or the verification method for information to be verified according to various exemplary embodiments of the present application described above in this specification. For example, the computer device may execute the following steps: Figure 1 Follow steps 11-13 as shown in .

[0110] In some possible implementations, the computing device according to the present application may include at least one processor and at least one memory (such as the aforementioned first server). The memory stores program code, and when the program code is executed by the processor, the processor executes the steps of the system permission opening method according to various exemplary implementations of the present application described above in this specification.

[0111] The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0112] The program product for system permission opening of the embodiment of the present application can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a computing device. However, the program product of the present application is not limited to this. In this document, the readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, device or device.

[0113] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0114] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0115] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0116] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0117] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A method for generating and maintaining electronic spreadsheet data for web services. It is characterized in that include: An acquisition step is to acquire the main body data to be edited on the web side, where the main body data comes from various sources; The main body data to be edited has row and column structure information including row height, column width and merging information, and in actual use, also includes font, border and color information; Data preparation step, reading the main body data to be edited and constructing a data structure according to a preset data format, wherein the data structure includes the hierarchy of the main body data to be edited; the following table gives a description of the key attributes of the data structure definition: A parsing step, parsing the subject data and confirming a dictionary and / or table variable matching the subject data, wherein the dictionary and table variable carry a corresponding description; The parsing step is specifically implemented as follows: Get the row and column numbers of each cell of the converted main body data; Get each cell according to the row and column number, and bind the matching table variable or dictionary code; Read data items according to the encoding and generate an option interface for the cell; A generation step, generating a table based on the dictionary and table variables for the subject data on a table display interface; In the form of an interface, set the functions and corresponding descriptions of the table variables and / or the dictionary; The table variables indicate the data to be assigned to the table according to the current information needs during the data generation process; The dictionary indicates the relationship of cells to data dictionary items to establish dynamic associations.

2. The method according to claim 1, It is characterized in that The data preparation step further includes: a data filling step, including: Extracting a variable of the subject data to be edited, wherein the variable carries a variable definition; Processing the format information of the main body data to be edited, and converting the format information according to a preset template; Fill the converted main body data according to the variable definition.

3. A device for generating and maintaining electronic table data for web services, It is characterized in that include: An acquisition unit, used for acquiring the main body data to be edited on the web side, where the main body data comes from various sources; The main body data to be edited has row and column structure information including row height, column width and merging information, and in actual use, also includes font, border and color information; Data preparation step, reading the main body data to be edited and constructing a data structure according to a preset data format, wherein the data structure includes the hierarchy of the main body data to be edited; the following table gives a description of the key attributes of the data structure definition: A parsing unit, configured to parse the subject data and identify dictionary and / or table variables that match the subject data, wherein the dictionary and table variables carry corresponding descriptions; The parsing step is specifically implemented as follows: Get the row and column numbers of each cell of the converted main body data; Get each cell according to the row and column number, and bind the matching table variable or dictionary code; Read data items according to the encoding and generate an option interface for the cell; A generation step, for generating a table based on the dictionary and table variables for the subject data on a table display interface; An interface unit, which sets the functions and corresponding descriptions of the table variables and / or the dictionary in the form of an interface; The table variables indicate the data to be assigned to the table according to the current information needs during the data generation process; The dictionary indicates the relationship of cells to data dictionary items to establish dynamic associations.

4. A computer-readable medium storing computer-executable instructions, It is characterized in that The computer executable instructions are used to execute the method according to any one of claims 1-2.

5. A computing device, It is characterized in that include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 2.