A configuration screen generation method, a configuration screen export method, and related devices

By generating and exporting mapping relationships, database files are converted into graphical files and exported, solving the problems of cumbersome operation and lack of visualization in existing configuration software. This achieves efficient generation and export of configuration screens and reduces the rate of human error.

CN116108515BActive Publication Date: 2026-06-26CHINA TECHENERGY

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA TECHENERGY
Filing Date
2023-02-02
Publication Date
2026-06-26

AI Technical Summary

Technical Problem

Existing configuration software has cumbersome and time-consuming configuration methods, resulting in low engineering design efficiency, high human error rate, and the inability to visualize the configured screen.

Method used

By generating mapping relationships, database files are converted into graphic files, enabling batch generation of configuration pages. Based on the export mapping relationships, graphic files are converted into export files, supporting visualization and batch export.

Benefits of technology

It simplifies the operation process, reduces human error, improves engineering design efficiency, and enables the visualization and batch export of configuration screens.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116108515B_ABST
    Figure CN116108515B_ABST
Patent Text Reader

Abstract

The application provides a configuration picture generation method, a configuration picture export method and related devices, and the configuration picture generation method comprises the following steps: acquiring a database file; converting the database file into a graphic file according to a generated mapping relationship; loading the graphic file to generate a corresponding configuration picture. Through the above method, the database file is converted into the graphic file by using the generated mapping relationship, and the graphic file is loaded, so that the batch configuration page generation is realized, and the configuration picture can realize visual display. The above method is simple to operate, short in time consumption, and high in engineering design efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of graphic element editing technology, and in particular to a method for generating configuration screens, a method for exporting configuration screens, and related apparatus. Background Technology

[0002] With the development of science and technology, engineering application design (such as nuclear power plant engineering design, rail transit industry engineering design, chemical plant engineering design, etc.) is becoming increasingly complex. Engineering designers typically use configuration software for engineering application design, which features strong configuration capabilities, high operability, and high reliability.

[0003] In existing technologies, most configuration methods provided by configuration software are based on manual drag-and-drop for single-page visual configuration. This method is cumbersome and time-consuming, resulting in low efficiency in engineering application design. Summary of the Invention

[0004] To address the aforementioned problems, this application provides a method for generating configuration screens, a method for exporting configuration screens, and related apparatus. These solutions resolve the issues of cumbersome operation and high time consumption, thereby improving the efficiency of engineering application design.

[0005] The embodiments of this application disclose the following technical solutions:

[0006] In a first aspect, this application provides a method for generating a configuration screen, characterized in that the method includes:

[0007] Get the database file;

[0008] Based on the generated mapping relationship, the database file is converted into a graphic file; the generated mapping relationship is a one-to-one mapping relationship between the graphic element attributes in the database file and the graphic element attributes in the graphic file.

[0009] Load the graphic file to generate the corresponding configuration screen.

[0010] Optionally, before obtaining the database file, the method further includes:

[0011] Pre-set standard graphics database template;

[0012] Obtain the engineering design type;

[0013] Select the corresponding standard graphic database template based on the engineering design type;

[0014] Based on the configuration requirements of the engineering design, a database file is generated using the corresponding standard graphical database template.

[0015] Optionally, converting the database file into a graphic file based on the generated mapping relationship includes:

[0016] Load the database file;

[0017] Read one piece of data from the database file, wherein the one piece of data is the target data;

[0018] Based on the page name contained in the target data, read all data corresponding to the page name in the database file;

[0019] Based on all the corresponding data, identify all graphic element information within the configuration page corresponding to the page name;

[0020] When all the graphic element information is determined to be correct according to the inspection rules, the corresponding graphic element attributes in the graphic element information are found in the graphic file through the generated mapping relationship.

[0021] Based on all the graphic element information, fill in the corresponding graphic element attributes in the graphic file;

[0022] Determine whether the entire database file has been read;

[0023] If not, continue reading one piece of data from the database file;

[0024] If so, save the graphic file to complete the conversion of the database file into a graphic file.

[0025] Optionally, reading all data corresponding to the page name in the database file based on the page name contained in the target data includes:

[0026] Step 1: Determine whether the entire database file has been read;

[0027] If so, proceed to step 4;

[0028] If not, proceed to step 2;

[0029] Step 2: Read the next record of data from the database file;

[0030] Step 3: Based on the page name contained in the target data, determine whether the page name contained in the next data is the same as the page name contained in the target data;

[0031] If so, repeat step 1;

[0032] If not, proceed to step 4;

[0033] Step 4: Completed reading all the data corresponding to the page name in the database file.

[0034] Optionally, after loading the graphics file to generate the configuration screen, the method further includes:

[0035] Get manual editing operations;

[0036] The configuration screen can be visually modified based on manual editing operations to obtain the modified configuration screen.

[0037] Secondly, this application provides a method for exporting a configuration screen, characterized in that the method includes:

[0038] Read the image file;

[0039] Based on the export mapping relationship, the graphic file is converted into an export file; the export mapping relationship is a one-to-one correspondence between the primitive attributes in the graphic file and the primitive attributes in the export file.

[0040] Output the exported file.

[0041] Thirdly, this application provides a configuration screen generation apparatus, characterized in that the apparatus comprises:

[0042] The acquisition module is used to acquire database files;

[0043] The generation and conversion module is used to convert the database file into a graphic file based on the generation mapping relationship; the generation mapping relationship is a one-to-one mapping relationship between the graphic element attributes in the database file and the graphic element attributes in the graphic file.

[0044] The generation module is used to load the graphic file to generate the corresponding configuration screen.

[0045] Optionally, the device further includes:

[0046] The template preset module is used to pre-set standard graphic database templates;

[0047] The type acquisition module is used to obtain the engineering design type;

[0048] The template selection module is used to select a corresponding standard graphic database template based on the engineering design type.

[0049] The file generation module is used to generate a database file based on the configuration requirements of the engineering design and the corresponding standard graphic database template.

[0050] Optionally, the generation and conversion module is specifically used for:

[0051] Load the database file;

[0052] Read one piece of data from the database file, wherein the one piece of data is the target data;

[0053] Based on the page name contained in the target data, read all data corresponding to the page name in the database file;

[0054] Based on all the corresponding data, identify all graphic element information within the configuration page corresponding to the page name;

[0055] When all the graphic element information is determined to be correct according to the inspection rules, the corresponding graphic element attributes in the graphic element information are found in the graphic file through the generated mapping relationship.

[0056] Based on all the graphic element information, fill in the corresponding graphic element attributes in the graphic file;

[0057] Determine whether the entire database file has been read;

[0058] If not, continue reading one piece of data from the database file;

[0059] If so, save the graphic file to complete the conversion of the database file into a graphic file.

[0060] Fourthly, this application provides a configuration screen export device, characterized in that the device comprises:

[0061] The reading module is used to read image files;

[0062] The export conversion module is used to convert the graphic file into an export file based on the export mapping relationship; the export mapping relationship is a one-to-one correspondence between the primitive attributes in the graphic file and the primitive attributes in the export file.

[0063] The output module is used to output the exported file.

[0064] Compared to existing technologies, this application offers the following advantages: Based on the generation of mapping relationships, database files are converted into graphic files, and these graphic files are loaded, enabling the generation of batch configuration pages. Furthermore, the configured screens can be visualized. The above method is simple to operate, time-efficient, and improves the efficiency of engineering design. Attached Figure Description

[0065] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the 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.

[0066] Figure 1 A flowchart illustrating a configuration screen generation method provided in an embodiment of this application;

[0067] Figure 2 A flowchart illustrating a method for generating a database file, provided in an embodiment of this application;

[0068] Figure 3A A flowchart illustrating a method for converting a database file into a graphic file, provided in an embodiment of this application;

[0069] Figure 3B A flowchart illustrating a method for reading all data corresponding to a page name, provided in an embodiment of this application;

[0070] Figure 4 A flowchart illustrating a configuration screen export method provided in an embodiment of this application;

[0071] Figure 5 This is a schematic diagram of a configuration screen generation device provided in an embodiment of this application;

[0072] Figure 6 This is a schematic diagram of a configuration screen export device provided in an embodiment of this application. Detailed Implementation

[0073] As described above, the most common graphical configuration method in configuration software is to manually drag and drop the required graphic elements one by one onto a single page for configuration. This method allows for single-screen visual configuration. However, with the development of science and technology, the graphical screens in engineering application design are generally hundreds or even thousands of pages long. This manual drag-and-drop single-page visual configuration method is very cumbersome, time-consuming, and results in low design efficiency.

[0074] Furthermore, configuring hundreds or even thousands of pages of graphics requires manual drag-and-drop, which is extremely prone to human error. Even if there is a review process for the configured screens, current technology still relies on manual review of each individual page, which is still time-consuming and has a high error rate due to human factors.

[0075] On the other hand, a small portion of current technology uses batch configuration methods, which are based on tables for graphical configuration. However, the configured screen cannot be visualized. The configuration screen can only be displayed after the graphic code corresponding to the configured screen is downloaded to a separate display device. In other words, the screen after batch configuration cannot be viewed offline.

[0076] To address the aforementioned problems, this invention provides a method for generating configuration screens. The method includes: acquiring a database file; converting the database file into a graphic file based on a mapping relationship; and generating and displaying a configuration screen based on the graphic file. This method enables batch generation of configuration pages, and the configured screens can be visually displayed. The configuration screen generation operation is simple and time-efficient, improving the efficiency of engineering design.

[0077] Furthermore, by acquiring the database file and converting it into a graphical file through mapping relationships, configuration screens can be generated and displayed, reducing errors caused by human factors.

[0078] This invention also provides a method for exporting configuration screens. The method includes: reading a graphic file; finding the corresponding graphic element attributes in the exported file based on mapping relationships according to the graphic element attributes contained in the graphic file; writing the information of the corresponding graphic element attributes into the exported file according to the graphic file; and outputting the exported file. This enables batch export of configuration screens, allowing for the review of engineering designs based on the exported files. Specifically, all configuration screens of an engineering design can be reviewed using exported files of the same format, simplifying manual review operations and reducing manual review time.

[0079] 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 only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present application.

[0080] like Figure 1 The figure described above is a flowchart illustrating a configuration screen generation method provided in an embodiment of this application. The method includes:

[0081] S101, Configure the device to obtain the database file.

[0082] Among them, database files are files in a unified format that are generated by engineers through batch configuration using standard graphic database templates according to the needs of engineering application design.

[0083] The file in the uniform format can be a table (Excel) or a document (Word), and can be set according to actual needs. No specific limitation is made in this embodiment.

[0084] To make it easier to understand, the following will be combined with... Figure 2 The process of generating the database file is explained in detail.

[0085] S201. The configuration device is pre-set with a standard graphic database template.

[0086] In practical applications, different engineering design types require different templates for their configuration screens. For example, nuclear power plant engineering design and the rail transit industry differ in their requirements for screen types, graphic element selection, and graphic element attributes. To facilitate the rapid construction of configuration screens for different engineering design types, standard graphic database templates pre-defined for each engineering design type can be used.

[0087] It should be noted that the number of pre-set standard graphic database templates for each engineering design type can be one or more, and those skilled in the art can set them according to the actual situation. This application does not make specific limitations.

[0088] Furthermore, if there are at least two standard graphic database templates corresponding to an engineering design type, they can be divided based on the function and purpose of each standard graphic database template to quickly and accurately obtain the layout template corresponding to that industry type, so as to meet the configuration requirements corresponding to the engineering design type.

[0089] S202. The configuration device obtains the engineering design type and selects the corresponding standard graphic database template according to the engineering design type.

[0090] The standard image database template selected based on the engineering design type may be one or more, depending on the configuration requirements of the engineering design type, so that the selected standard image database template can meet all the required configuration requirements.

[0091] S203. Based on the configuration requirements of the engineering design, the engineering designers fill in the corresponding data according to the selected standard image database template to form a database file.

[0092] S102. The configuration device converts the database file into a graphic file based on the generated mapping relationship.

[0093] The generation of mapping relationships involves pre-associating the primitive attributes in all standard graphics database templates with the primitive attribute items in the graphics files, thus obtaining the generated mapping relationships. In other words, the generated mapping relationships are a one-to-one mapping between primitive attributes in the database files and primitive attributes in the graphics files.

[0094] Furthermore, generating mapping relationships enhances the flexibility and scalability of database file and graphics file conversion. For example, if a user modifies the standard graphics database template, they only need to modify the corresponding mapping relationship. That is, based on the one-to-one correspondence between the primitive attributes in the modified standard graphics database template and the primitive data in the graphics file, the corresponding generated mapping relationship is modified. This eliminates the need to modify the software program code, maintaining software stability while improving conversion flexibility and scalability.

[0095] Furthermore, the mapping relationships are typically stored in the form of tables to obtain the corresponding mapping relationship table.

[0096] It should be noted that the mapping relationship can be stored in tabular form or other forms; this application does not impose any specific limitations.

[0097] To make it easier to understand, the following will be combined with... Figure 3A Let me explain S102 in detail.

[0098] S310, Configure the device to load the database file.

[0099] The database file is loaded to obtain all the data contained in the database file.

[0100] S320. The configuration device reads a piece of data from the database file, and this piece of data is used as the target data.

[0101] The loaded database file contains at least one record, which includes configuration element information and configuration page information. For example: element name, element size, number of elements, and the page name to which the element belongs, etc.

[0102] The page name associated with a graphic element indicates the page on which that element resides. In practice, engineering design often involves hundreds or even thousands of configuration pages, making the page containing a graphic element a crucial piece of configuration information. Each page name corresponds one-to-one with a configuration page.

[0103] It should be noted that the loaded database file must include at least one page name, that is, at least one configuration page.

[0104] S330: The configuration device reads all data corresponding to the page name in the database file based on the page name contained in the target data.

[0105] Search all data based on the page name in the database file, and retrieve all data that have the same page name as a data entry read from S320.

[0106] Specifically, in combination Figure 3B The flowchart shown provides a detailed explanation of the specific process of step 330.

[0107] S331. The configuration device determines whether the database file has been completely read.

[0108] If so, proceed to S334; if all data has been read, it means that there is no next record in the database file, which means that the configuration screen corresponding to this page name is the last configuration screen of the project design.

[0109] If not, proceed to S332.

[0110] S332, The configuration device reads the next data from the database file.

[0111] S333: The configuration device determines whether the page name contained in the next data is the same as the page name contained in the target data based on the page name contained in the target data.

[0112] If they are the same, then repeat step S331;

[0113] If they are different, proceed with S334, and at the same time mark the data as unread data in the database file so that it can be set as the target data later.

[0114] S334. The configuration device has completed reading all the data corresponding to the page name in the database file.

[0115] S340. The configuration device identifies all graphic element information within the configuration page corresponding to the page name based on all the data corresponding to the page name.

[0116] The process involves identifying all the data corresponding to the page name to obtain all the graphic element information included in the data, which is essentially identifying the graphic element information that constitutes the page name.

[0117] S350: The configuration device determines whether the identified graphic element information is correct according to the inspection rules.

[0118] If the identified graphic element information is determined to be correct according to the inspection rules, then proceed to S360;

[0119] If the identified primitive information is determined to be incorrect according to the inspection rules, the database file conversion will end.

[0120] The inspection rules are determined based on a pre-set standard graphic database template. This template specifies the relevant attributes of graphic element information, such as the data type required for length information (e.g., binary, octal, or decimal characters) and the size range of graphic elements (e.g., the length of a rectangular element cannot exceed a specified value). The inspection rules verify the correctness of the identified graphic element information, identifying errors in the database file caused by human error. This prevents subsequent configuration devices from needing to process erroneous database files, reducing resource waste in the configuration device.

[0121] Furthermore, if the identified graphic element information is determined to be incorrect according to the inspection rules, the configuration device will output an error message to prompt the engineers that there is an error in the database software.

[0122] Furthermore, the error messages output by the configuration device can include corresponding error element information and mark the data corresponding to the error element information, so that engineers can quickly revise the database file based on the error information, reducing the time spent filtering errors and improving overall work efficiency.

[0123] S360: The configuration device finds the corresponding graphic element attributes in the graphic file by exporting the mapping relationship based on the graphic element attributes contained in the identified graphic element information.

[0124] S370. The configuration device writes the graphic element information from the database file into the corresponding graphic element attributes in the graphic file based on the identified graphic element information.

[0125] The graphic element information contained in all data with the same page name is written into the corresponding graphic element attributes in the drawing file through a mapping relationship, thereby completing the batch configuration of the configuration page corresponding to the page name. This avoids writing the graphic element information contained in the data in the database file into multiple configuration pages in a disjointed manner, making the batch configuration of configuration pages more regular and ensuring the integrity of each single configuration page.

[0126] Furthermore, if the database file conversion is interrupted due to some external reasons, the configuration page obtained from the current graphic file will be complete, rather than multiple incomplete single configuration pages, which provides convenience for engineering designers.

[0127] S380, The configuration device determines whether the current database file has been completely read.

[0128] If the current database file has not been completely read, proceed to S320. Continue reading a line of unparsed data. Based on the page name contained in the line of unparsed data, read all data in the database file corresponding to that page name. Identify all graphic element information in the configuration screen corresponding to the page name based on all data. Check whether all graphic element information is correct according to the checking rules. If so, find the corresponding graphic element attribute in the drawing file through the mapping relationship based on the graphic element attribute contained in the graphic element information, and write the graphic element information into the corresponding graphic element attribute in the drawing file.

[0129] If the current database file has been completely read, proceed to S390.

[0130] S390, the configuration device saves the graphic file.

[0131] When the configuration device saves the graphic file, the conversion from the database file to the graphic file is complete.

[0132] S103. The configuration device loads the graphic file to generate the corresponding configuration screen.

[0133] Specifically, the system loads graphic files, generates configuration screens in batches based on the graphic files, and displays them, thereby achieving batch generation of configuration screens and enabling the batch generation of configuration screens to be displayed.

[0134] Furthermore, after generating the configuration screen, engineers can refer to the generated configuration screen and edit the configuration screen generated in batches from the database file by manually dragging and dropping according to the configuration requirements of the engineering design. This avoids the situation where the data in the database file is incorrect due to human error and cannot meet the configuration requirements of the engineering design. Modification can also be made by manually dragging and dropping without rebuilding the database file, reducing repetitive design actions and improving the efficiency of engineering design.

[0135] This application provides a method for generating configuration screens. The method includes: acquiring a database file; converting the database file into a graphic file according to a generation mapping relationship; and loading the graphic file to generate the corresponding configuration screen. By converting the database file into a graphic file and loading the graphic file, batch generation of configuration pages is achieved, and the configured screen can be visualized. This method is simple to operate, time-efficient, and improves the efficiency of engineering design.

[0136] Furthermore, since the configuration is based on a standard graphics database template, some fixed attributes are pre-set by the template, avoiding human error in these attributes and reducing the error rate caused by human factors.

[0137] Furthermore, when standard graphic database templates are modified, only the mapping relationship needs to be modified accordingly, without modifying the software program code, thus maintaining the stability and scalability of the graphic configuration device.

[0138] To address the issues of high workload and significant human error in current technologies, this application provides a method for exporting configuration screens. Combined with... Figure 4 This application provides a detailed description of a method for exporting a configuration screen, which includes:

[0139] S401, The configuration device reads the graphic file.

[0140] Specifically, the graphic file can be obtained by converting a database file based on a mapping relationship; it can also be obtained by manually dragging and dropping configurations; or it can be obtained by converting a database file based on a mapping relationship into a graphic file, and then manually dragging and dropping to edit the configuration page corresponding to the graphic file. Any graphic file corresponding to the configuration screen displayed in the configuration device is acceptable, and this application does not impose any specific limitations.

[0141] S402. The configuration device converts the graphic file into an export file based on the export mapping relationship.

[0142] Specifically, the configuration device finds the corresponding graphic element attributes in the exported file by exporting the mapping relationship based on the graphic element attributes contained in the graphic file; then, based on the graphic file, it writes the information of the corresponding graphic element attributes into the exported file.

[0143] The export mapping relationship is generated by pre-matching the primitive attributes in the drawing file with the primitive attributes in the exported file, creating a one-to-one correspondence. In other words, the export mapping relationship is a one-to-one mapping between the primitive attributes in the drawing file and the primitive attributes in the exported file.

[0144] The element attributes in the exported file do not fully include all attributes of the elements in the configuration screen. For example, the element attribute information that is fixed in the standard graphic database template will not be included in the exported file as the corresponding element attribute in the graphic file. The exported file mainly includes element attributes that need to be manually set and changed, and those that have a significant impact on the engineering design.

[0145] Configuration device

[0146] S403, Configure device output export file.

[0147] The exported file can be in either a table (Excel) format or a document (Word) format; this application does not impose any specific restrictions.

[0148] This application provides a method for exporting configuration screens. The method includes: reading a graphic file; converting the graphic file into an export file based on an export mapping relationship; and outputting the export file. This allows for the review of engineering designs based on the exported file, meaning that all configuration screens of an engineering design can be reviewed using an export file of the same format, simplifying manual review operations and reducing the time required for manual review.

[0149] Furthermore, the exported files in a standardized format can be imported into other review software, allowing these programs to review the engineering design based on the exported files and specific review rules. This accelerates the accuracy and efficiency of the review process, avoids errors caused by manual review, and prevents the waste of human resources.

[0150] like Figure 5 As shown in the figure, this figure is a structural block diagram of a configuration screen generation device provided in an embodiment of this application. The following is a description of the device in conjunction with... Figure 5 Specifically, the device includes: an acquisition module 510, a generation and conversion module 520, and a generation module 530.

[0151] The acquisition module 510 is used to acquire the database file;

[0152] The generation conversion module 520 is used to convert database files into graphic files based on the generated mapping relationship;

[0153] The generation module 530 is used to load the graphic file to generate the corresponding configuration screen.

[0154] Furthermore, the configuration screen generation device also includes:

[0155] The template preset module is used to pre-set standard graphic database templates;

[0156] The type acquisition module is used to obtain the engineering design type;

[0157] The template selection module is used to select the corresponding standard graphic database template based on the acquired engineering design type;

[0158] The file generation module is used to generate a database file based on the configuration requirements of the engineering design and the corresponding standard graphic database template.

[0159] Furthermore, the generation and conversion module 520 is specifically used to load the database file; read a piece of data from the database file, one of which is the target data; read all data in the database file corresponding to the page name contained in the target data; identify all graphic element information in the configuration page corresponding to the page name based on all the corresponding data; when all the graphic element information is determined to be correct according to the checking rules, find the corresponding graphic element attributes in the graphic file based on the graphic element attributes contained in all the graphic element information through the generation mapping relationship; fill in the corresponding graphic element attributes in the graphic file based on all the graphic element information; when the database file is completely read, save the graphic file to complete the conversion of the database file into a graphic file.

[0160] Furthermore, the configuration screen generation device also includes:

[0161] The editing acquisition module is used to acquire manual editing operations;

[0162] The screen modification module is used to visually modify the configuration screen based on manual editing operations, and obtain the modified configuration screen.

[0163] This application provides a configuration screen generation device, comprising: an acquisition module 510 for acquiring a database file; a generation and conversion module 520 for converting the database file into a graphic file based on a generation mapping relationship; and a generation module 530 for loading the graphic file to generate the corresponding configuration screen. Converting the database file into a graphic file and loading the graphic file enables batch generation of configuration screens, and the configured screens can be visually displayed. The operation is simple, time-saving, and improves the efficiency of engineering design.

[0164] like Figure 6 As shown in the figure, this figure is a structural block diagram of a configuration screen export device provided in an embodiment of this application. The following is a description of the device. Figure 6 Specifically, the device includes:

[0165] Reading module 610 is used to read graphic files;

[0166] The export conversion module 620 is used to convert the graphic file into an export file based on the export mapping relationship;

[0167] Output module 630 is used to output exported files.

[0168] This application provides a configuration screen export device, which includes: a reading module 610 for reading graphic files; an export conversion module 620 for converting the graphic files into export files based on export mapping relationships; and an output module 630 for outputting the export files. The exported files allow for the review of engineering designs, meaning that all configuration screens of an engineering design can be reviewed using export files of the same format, simplifying manual review operations and reducing manual review time.

[0169] It should be noted that the various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for the method and apparatus embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiments. The device and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components indicated as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of the solution in this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0170] The above description is merely one specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for generating a configuration screen, characterized in that, The method includes: Get the database file; Based on the generated mapping relationship, the database file is converted into a graphic file; the generated mapping relationship is a one-to-one mapping relationship between the graphic element attributes in the database file and the graphic element attributes in the graphic file. Load the graphic file to generate the corresponding configuration screen; The process of converting the database file into a graphic file based on the generated mapping relationship includes: Load the database file; Read one piece of data from the database file, wherein the one piece of data is the target data; Based on the page name contained in the target data, read all data corresponding to the page name in the database file; Based on all the corresponding data, identify all graphic element information within the configuration page corresponding to the page name; When all the graphic element information is determined to be correct according to the inspection rules, the corresponding graphic element attributes in the graphic element information are found in the graphic file through the generated mapping relationship. Based on all the graphic element information, fill in the corresponding graphic element attributes in the graphic file; Determine whether the entire database file has been read; If not, continue reading one piece of data from the database file; If so, save the graphic file to complete the conversion of the database file into a graphic file.

2. The method according to claim 1, characterized in that, Before obtaining the database file, the method further includes: Pre-set standard graphics database template; Obtain the engineering design type; Select the corresponding standard graphic database template based on the engineering design type; Based on the configuration requirements of the engineering design, a database file is generated using the corresponding standard graphical database template.

3. The method according to claim 1, characterized in that, The step of reading all data corresponding to the page name in the database file based on the page name contained in the target data includes: Step 1: Determine whether the entire database file has been read; If so, proceed to step 4; If not, proceed to step 2; Step 2: Read the next record of data from the database file; Step 3: Based on the page name contained in the target data, determine whether the page name contained in the next data is the same as the page name contained in the target data; If so, repeat step 1; If not, proceed to step 4; Step 4: Completed reading all the data corresponding to the page name in the database file.

4. The method according to claim 1, characterized in that, After loading the graphics file to generate the configuration screen, the method further includes: Get manual editing operations; The configuration screen can be visually modified based on manual editing operations to obtain the modified configuration screen.

5. A method for exporting a configuration screen, characterized in that, The method includes: Read the graphics file; the graphics file is obtained by converting the database file based on the generated mapping relationship, and the graphics file is obtained in the following way: Load the database file; Read one piece of data from the database file, wherein the one piece of data is the target data; Based on the page name contained in the target data, read all data corresponding to the page name in the database file; Based on all the corresponding data, identify all graphic element information within the configuration page corresponding to the page name; When all the graphic element information is determined to be correct according to the inspection rules, the corresponding graphic element attributes in the graphic element information are found in the graphic file through the generated mapping relationship. Based on all the graphic element information, fill in the corresponding graphic element attributes in the graphic file; Determine whether the entire database file has been read; If not, continue reading one piece of data from the database file; If so, save the graphic file to complete the conversion of the database file into a graphic file; Based on the export mapping relationship, the graphic file is converted into an export file; the export mapping relationship is a one-to-one correspondence between the primitive attributes in the graphic file and the primitive attributes in the export file. Output the exported file.

6. A configuration screen generation device, characterized in that, The device includes: The acquisition module is used to acquire database files; The generation and conversion module is used to convert the database file into a graphic file based on the generation mapping relationship; the generation mapping relationship is a one-to-one mapping relationship between the graphic element attributes in the database file and the graphic element attributes in the graphic file. The generation module is used to load the graphic file to generate the corresponding configuration screen; The generation and conversion module is specifically used for: Load the database file; Read one piece of data from the database file, wherein the one piece of data is the target data; Based on the page name contained in the target data, read all data corresponding to the page name in the database file; Based on all the corresponding data, identify all graphic element information within the configuration page corresponding to the page name; When all the graphic element information is determined to be correct according to the inspection rules, the corresponding graphic element attributes in the graphic element information are found in the graphic file through the generated mapping relationship. Based on all the graphic element information, fill in the corresponding graphic element attributes in the graphic file; Determine whether the entire database file has been read; If not, continue reading one piece of data from the database file; If so, save the graphic file to complete the conversion of the database file into a graphic file.

7. The apparatus according to claim 6, characterized in that, The device further includes: The template preset module is used to pre-set standard graphic database templates; The type acquisition module is used to obtain the engineering design type; The template selection module is used to select a corresponding standard graphic database template based on the engineering design type. The file generation module is used to generate database files based on the corresponding standard graphical database template according to the configuration requirements of the engineering design.

8. A configuration screen export device, characterized in that, The device includes: The reading module is used to read the image file; the image file is obtained by converting the database file based on the generated mapping relationship, and the image file is obtained in the following way: Load the database file; Read one piece of data from the database file, wherein the one piece of data is the target data; Based on the page name contained in the target data, read all data corresponding to the page name in the database file; Based on all the corresponding data, identify all graphic element information within the configuration page corresponding to the page name; When all the graphic element information is determined to be correct according to the inspection rules, the corresponding graphic element attributes in the graphic element information are found in the graphic file through the generated mapping relationship. Based on all the graphic element information, fill in the corresponding graphic element attributes in the graphic file; Determine whether the entire database file has been read; If not, continue reading one piece of data from the database file; If so, save the graphic file to complete the conversion of the database file into a graphic file; The export conversion module is used to convert the graphic file into an export file based on the export mapping relationship; the export mapping relationship is a one-to-one correspondence between the primitive attributes in the graphic file and the primitive attributes in the export file. The output module is used to output the exported file.