A method and device for customizing a planning execution form
Dynamic customization of project execution forms is achieved through dynamic data model technology, which solves the analysis problems caused by changes in the execution form content and the cumbersome code modification problems caused by the implementation form content in traditional methods, reduces technical requirements and workload, and improves the flexibility and stability of the form.
Patent Information
- Application Number
- CN202411222062.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2025-04-29
- Estimated Expiration
- 2044-09-02
AI Technical Summary
During the project execution process, the comprehensive analysis of execution progress and performance data is troubled by changes in the execution form content, and the traditional modification method requires redevelopment of code, which is large in workload and low in stability, and cannot operate by business personnel.
The planning and execution form customization technology based on the dynamic data model is adopted. By configuring and managing the dynamic data model, the data structure is automatically associated, the filling template is generated, and the business data is displayed, so that the dynamic customization of the form is upgraded from rewritten code to the interface configuration method.
It reduces the requirements for the technical level of business personnel, reduces the tedious workload of software modification, improves the flexibility and stability of executing forms, and supports forms with different dynamic data on the same page.
Smart Images

Figure CN119203953B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of information system application, and in particular to a method and device for customizing a planning execution form. Background Art
[0002] Project execution is the key process that determines the quality and effectiveness of project construction. The project execution progress is generally monitored monthly, quarterly, and annually, and the content collected will also change; with the continuous advancement of the annual plan, the differences between the annual plans have brought difficulties to unified management, and the changes in the execution progress collection content have also caused trouble for the comprehensive analysis of project execution progress and performance data. According to business needs, changes in the execution progress collection content will result in modifications to the execution form, which requires modifications to the database structure, page display, reporting template, and corresponding processing logic. Traditional modifications require redevelopment of code for related content, which is labor-intensive, low in stability, and cannot be operated by business personnel. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a method and device for customizing a planning and schedule execution form, a planning and schedule execution form customization technology based on a dynamic data model, which automatically associates data structures, generates reporting templates, and displays business data by configuring and managing dynamic data models. It can provide forms with different dynamic data on the same page according to changes in time or process, so that execution form modification is upgraded from code rewriting to interface configuration, thereby lowering the requirements on the technical level of business personnel and reducing the tedious workload of software modification.
[0004] In order to solve the above technical problems, a first aspect of an embodiment of the present invention discloses a method for customizing a planning execution form, the method comprising:
[0005] S1, using the dynamic data model configuration module to set dynamic data model parameters;
[0006] S2, using a dynamic data model management module to process the dynamic data model parameters to obtain a dynamic data model;
[0007] The dynamic data model includes a data structure model, a reporting template model and a data presentation model;
[0008] S3, using the template data processing module, the data access processing module and the page display processing module, extracting the corresponding dynamic data model from the dynamic data model management module according to the user's demand information, and implementing the execution form customization;
[0009] The user's demand information includes accessing a target page, downloading a template, exporting data, modifying data, or importing file data.
[0010] As an optional implementation manner, in the first aspect of the embodiment of the present invention, the step of using the dynamic data model configuration module to set the dynamic data model parameters includes:
[0011] S11, using the dynamic data model configuration module to set the target page and the associated main form data;
[0012] S12, setting subform data and enabling scope;
[0013] The subform data includes field name, data type and segment length;
[0014] S13, integrating the target page and the associated main form data, the subform data and the enabled scope to obtain dynamic data model parameters.
[0015] As an optional implementation, in the first aspect of the embodiment of the present invention, the using of the dynamic data model management module to process the dynamic data model parameters to obtain the dynamic data model includes:
[0016] S21, using a dynamic data model management module to process the dynamic data model parameters to obtain a data structure model;
[0017] S22, using a dynamic data model management module to process the dynamic data model parameters to obtain a reporting template model;
[0018] S23, using a dynamic data model management module to process the dynamic data model parameters to obtain a data presentation model.
[0019] As an optional implementation, in the first aspect of the embodiment of the present invention, the data structure model includes main form data, sub-form data, a main form and a sub-form;
[0020] The main form and the subform are associated via a preset first field;
[0021] The master form is directly associated with the master form data;
[0022] The subform and the subform data are associated by type, or are associated according to a preset second field.
[0023] As an optional implementation, in the first aspect of the embodiment of the present invention, the filling template model includes a main form and a sub-form file template structure;
[0024] The main form and subform file template structure are used to download data filling templates and export data.
[0025] As an optional implementation, in the first aspect of the embodiment of the present invention, the data presentation model includes a main form and a sub-form display structure;
[0026] The main form and subform display structure include a header format and a data content display format;
[0027] The data content display format is used to display the corresponding table header and data content on the target page.
[0028] As an optional implementation, in the first aspect of the embodiment of the present invention, the use of the template data processing module, the data access processing module and the page display processing module to extract the corresponding dynamic data model from the dynamic data model management module according to the user's demand information includes:
[0029] S31, when the user's demand information is to access the target page, the page display processing module is used to obtain the data presentation model from the dynamic data model management module according to the user's demand information;
[0030] According to the data presentation model, corresponding data is read from the data access processing module, and the corresponding data is displayed in a list;
[0031] S32, when the user's demand information is to download a template, the template data processing module is used to obtain a filling template model from the dynamic data model management module according to the user's demand information, and the corresponding file template is returned to the template data processing module;
[0032] S33, when the user's demand information is to export data, the template data processing module is used to obtain the filling template model from the dynamic data model management module according to the user's demand information, and the corresponding data is read from the data access processing module to generate a file data file and return it to the template data processing module;
[0033] S34, when the user's demand information is to modify data or import file data, the page display processing module or the template data processing module is used to send the user's demand information to the data processing module;
[0034] The data processing module updates data according to the user's demand information.
[0035] A second aspect of an embodiment of the present invention discloses a device for customizing a planning execution form, the device comprising:
[0036] A parameter setting unit, used to set dynamic data model parameters using a dynamic data model configuration module;
[0037] A parameter processing unit, used to process the dynamic data model parameters using the dynamic data model management module to obtain a dynamic data model;
[0038] The dynamic data model includes a data structure model, a reporting template model and a data presentation model;
[0039] A form customization unit is used to extract a corresponding dynamic data model from the dynamic data model management module according to user demand information by using a template data processing module, a data access processing module and a page display processing module to implement form customization;
[0040] The user's demand information includes accessing a target page, downloading a template, exporting data, modifying data, or importing file data.
[0041] As an optional implementation, in the second aspect of the embodiment of the present invention, the step of using the dynamic data model configuration module to set the dynamic data model parameters includes:
[0042] S11, using the dynamic data model configuration module to set the target page and the associated main form data;
[0043] S12, setting subform data and enabling scope;
[0044] The subform data includes field name, data type and segment length;
[0045] S13, integrating the target page and the associated main form data, the subform data and the enabled scope to obtain dynamic data model parameters.
[0046] As an optional implementation, in the second aspect of the embodiment of the present invention, the using of the dynamic data model management module to process the dynamic data model parameters to obtain the dynamic data model includes:
[0047] S21, using a dynamic data model management module to process the dynamic data model parameters to obtain a data structure model;
[0048] S22, using a dynamic data model management module to process the dynamic data model parameters to obtain a reporting template model;
[0049] S23, using a dynamic data model management module to process the dynamic data model parameters to obtain a data presentation model.
[0050] As an optional implementation, in the second aspect of the embodiment of the present invention, the data structure model includes main form data, sub-form data, a main form and a sub-form;
[0051] The main form and the subform are associated via a preset first field;
[0052] The master form is directly associated with the master form data;
[0053] The subform and the subform data are associated by type, or are associated according to a preset second field.
[0054] As an optional implementation, in the second aspect of the embodiment of the present invention, the filling template model includes a main form and a sub-form file template structure;
[0055] The main form and subform file template structure are used to download data filling templates and export data.
[0056] As an optional implementation, in the second aspect of the embodiment of the present invention, the data presentation model includes a main form and a sub-form display structure;
[0057] The main form and subform display structure include a header format and a data content display format;
[0058] The data content display format is used to display the corresponding table header and data content on the target page.
[0059] As an optional implementation, in the second aspect of the embodiment of the present invention, the use of the template data processing module, the data access processing module and the page display processing module to extract the corresponding dynamic data model from the dynamic data model management module according to the user's demand information includes:
[0060] S31, when the user's demand information is to access the target page, the page display processing module is used to obtain the data presentation model from the dynamic data model management module according to the user's demand information;
[0061] According to the data presentation model, corresponding data is read from the data access processing module, and the corresponding data is displayed in a list;
[0062] S32, when the user's demand information is to download a template, the template data processing module is used to obtain a filling template model from the dynamic data model management module according to the user's demand information, and the corresponding file template is returned to the template data processing module;
[0063] S33, when the user's demand information is to export data, the template data processing module is used to obtain the filling template model from the dynamic data model management module according to the user's demand information, and the corresponding data is read from the data access processing module to generate a file data file and return it to the template data processing module;
[0064] S34, when the user's demand information is to modify data or import file data, the page display processing module or the template data processing module is used to send the user's demand information to the data processing module;
[0065] The data processing module updates data according to the user's demand information.
[0066] The third aspect of the present invention discloses another device for customizing a planning execution form, the device comprising:
[0067] A memory storing executable program code;
[0068] a processor coupled to the memory;
[0069] The processor calls the executable program code stored in the memory to execute part or all of the steps in the planning plan execution form customization method disclosed in the first aspect of the embodiment of the present invention.
[0070] The fourth aspect of the present invention discloses a computer-storable medium, which stores computer instructions. When the computer instructions are called, they are used to execute part or all of the steps in the planning plan execution form customization method disclosed in the first aspect of the embodiment of the present invention.
[0071] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
[0072] The present invention proposes a planning and execution form customization technology based on a dynamic data model. By configuring and managing the dynamic data model, it automatically associates data structures, generates filling templates, and displays business data. It can provide forms with different dynamic data on the same page according to time or process changes, and upgrades the execution form modification from rewriting code to interface configuration, which reduces the requirements on the technical level of business personnel and the tedious workload of software modification. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0074] Figure 1 It is a flowchart of a method for customizing a planning execution form disclosed in an embodiment of the present invention;
[0075] Figure 2 It is a flowchart of another method for customizing a planning execution form disclosed in an embodiment of the present invention;
[0076] Figure 3 It is a structural schematic diagram of a planning plan execution form customization device disclosed in an embodiment of the present invention;
[0077] Figure 4 It is a structural schematic diagram of another planning plan execution form customization device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0078] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0079] The terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, device, product or equipment that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or equipment.
[0080] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0081] The present invention discloses a method and device for customizing a planning execution form, the method comprising: using a dynamic data model configuration module to set dynamic data model parameters; using a dynamic data model management module to process the dynamic data model parameters to obtain a dynamic data model; the dynamic data model comprises a data structure model, a reporting template model and a data presentation model; using a template data processing module, a data access processing module and a page display processing module, according to user demand information, extracting the corresponding dynamic data model from the dynamic data model management module to implement execution form customization; the user demand information comprises accessing a target page, downloading a template, exporting data, modifying data or importing file data. The method of the present invention can provide forms with different dynamic data on the same page according to time or process changes, so that the execution form modification is upgraded from the code rewriting method to the interface configuration method, which reduces the requirements on the technical level of business personnel and reduces the cumbersome workload of software modification. The following are detailed descriptions.
[0082] Embodiment 1
[0083] See also Figure 1 , Figure 1 This is a flow chart of a method for customizing a planning execution form disclosed in an embodiment of the present invention. Figure 1 The described planning execution form customization method is applied to the field of information system application technology. It provides forms with different dynamic data on the same page in response to time or process changes, so that the execution form modification is upgraded from code rewriting to interface configuration, which reduces the technical level requirements of business personnel and the tedious workload of software modification. The embodiments of the present invention are not limited. Figure 1 As shown, the planning execution form customization method may include the following operations:
[0084] S1, using the dynamic data model configuration module to set dynamic data model parameters;
[0085] S2, using a dynamic data model management module to process the dynamic data model parameters to obtain a dynamic data model;
[0086] The dynamic data model includes a data structure model, a reporting template model and a data presentation model;
[0087] S3, using the template data processing module, the data access processing module and the page display processing module, extracting the corresponding dynamic data model from the dynamic data model management module according to the user's demand information, and implementing the execution form customization;
[0088] A form refers to a component used to collect data on a web page, which is reflected in the form tag in the front-end HTML. <form>The form fields and backend processing algorithms. Form field types such as <textarea>、< / textarea> <checkbox> 、 <date>wait.
[0089] The user's demand information includes accessing a target page, downloading a template, exporting data, modifying data, or importing file data.
[0090] Optionally, the using the dynamic data model configuration module to set the dynamic data model parameters includes:
[0091] S11, using the dynamic data model configuration module to set the target page and the associated main form data;
[0092] S12, setting subform data and enabling scope;
[0093] The subform data includes field name, data type and field length;
[0094] The enabled scope can be experimentally set according to specific application scenarios;
[0095] S13, integrating the target page and the associated main form data, the subform data and the enabled scope to obtain dynamic data model parameters.
[0096] Optionally, the using a dynamic data model management module to process the dynamic data model parameters to obtain a dynamic data model includes:
[0097] S21, using a dynamic data model management module to process the dynamic data model parameters to obtain a data structure model;
[0098] S22, using a dynamic data model management module to process the dynamic data model parameters to obtain a reporting template model;
[0099] S23, using a dynamic data model management module to process the dynamic data model parameters to obtain a data presentation model.
[0100] The method of obtaining the dynamic data model is: according to the related field names, data types and field lengths of the main form and subform, form fields are generated according to the field types and lengths, and the main form and subform are combined. (For example: the gender field form field is <radio>radio button).
[0101] Optionally, the data structure model includes main form data, sub-form data, a main form and a sub-form;
[0102] The main form and the subform are associated via a preset first field;
[0103] The master form is directly associated with the master form data;
[0104] The subform and the subform data are associated by type, or are associated according to a preset second field.
[0105] There are three main ways to associate the main form and subform. The first is through preset fields, such as associating two forms through the name field; the second is to directly expand the subform field in the data table corresponding to the main form to achieve association; the third is through the ID field in the data table. When the subform is newly created in the database, the two forms are associated through the ID field in the data table.
[0106] Optionally, the reporting template model includes a main form and a sub-form file template structure;
[0107] The main form and subform file template structure is used to download the data filling template and export data. The form file is a template for users to import and export data.
[0108] Optionally, the data presentation model includes a main form and a subform display structure;
[0109] The main form and subform display structure include a header format and a data content display format;
[0110] The data content display format is used to display the corresponding table header and data content on the target page.
[0111] Based on the associated main form and related field names, data types and field lengths of the subforms, the html tag types and header names for display are generated according to the field names, types and lengths, and combined to form a data presentation model.
[0112] The reporting template model generates the relevant columns of the template and export file based on the related main form and subform field names, data types and field lengths, including column names and input format verification. (For example, the column name is gender, and the input is limited to male and female).
[0113] Optionally, the utilizing the template data processing module, the data access processing module and the page display processing module to extract the corresponding dynamic data model from the dynamic data model management module according to the user's demand information includes:
[0114] S31, when the user's demand information is to access the target page, the page display processing module is used to obtain the data presentation model from the dynamic data model management module according to the user's demand information;
[0115] According to the data presentation model, corresponding data is read from the data access processing module, and the corresponding data is displayed in a list;
[0116] S32, when the user's demand information is to download a template, the template data processing module is used to obtain a filling template model from the dynamic data model management module according to the user's demand information, and the corresponding file template is returned to the template data processing module;
[0117] S33, when the user's demand information is to export data, the template data processing module is used to obtain the filling template model from the dynamic data model management module according to the user's demand information, and the corresponding data is read from the data access processing module to generate a file data file and return it to the template data processing module.
[0118] S34, when the user's demand information is to modify data or import file data, the page display processing module or the template data processing module is used to send the user's demand information to the data processing module;
[0119] The data processing module updates data according to the user's demand information.
[0120] It can be seen that the present invention proposes a planning and execution form customization technology based on a dynamic data model. By configuring and managing the dynamic data model, it automatically associates data structures, generates filling templates, and displays business data. It can provide forms with different dynamic data on the same page according to changes in time or process, and upgrades the execution form modification from rewriting code to interface configuration, which reduces the requirements on the technical level of business personnel and reduces the tedious workload of software modification.
[0121] Embodiment 2
[0122] See also Figure 2 , Figure 2 It is a flow chart of another method for customizing a planning execution form disclosed in an embodiment of the present invention. Figure 2 The described planning execution form customization method is applied to the field of information system application technology. It provides forms with different dynamic data on the same page in response to time or process changes, so that the execution form modification is upgraded from code rewriting to interface configuration, which reduces the technical level requirements of business personnel and the tedious workload of software modification. The embodiments of the present invention are not limited. Figure 2 As shown, the planning execution form customization method may include the following operations:
[0123] The method of this embodiment is mainly composed of modules such as dynamic data model management, dynamic data model configuration, data access processing, page display processing, and template data processing.
[0124] The main table is for annual planned projects, and execution data needs to be reported monthly for the projects. The execution data includes fields such as stage, progress, expenditure, and progress evaluation. Through the above configuration, you can generate relevant execution progress reporting pages, download execution progress reporting templates, and import execution progress reporting data.
[0125] 1. Through the dynamic data model configuration module, set the dynamic data model related parameters, including the target page, associated main form data, subform data settings, enabled range, etc. The subform data settings include field name, data type, field length, etc. The range can be set according to the server time, or determined by the Tab page in the target page or related return parameters.
[0126] For example, if you modify the annual plan execution reporting data, the associated data table is the annual plan data, and the execution data includes the current stage, progress, expenditure, progress evaluation and other fields. The current stage is a 32-bit character type, the progress is a 1000-bit field type, the expenditure is a numeric type, and the progress evaluation is a 2-bit character type, and its enumeration items are excellent, good, medium, and poor. The activation range is set to June to December 2024.
[0127] 2. Dynamic data model management generates dynamic data models through configuration information, including data structure models, reporting template models, and data presentation models.
[0128] The data structure model includes main form data and sub-form data. The main form and sub-form are associated through the set fields. The main form directly corresponds to the database table, and the sub-form: one is to use the preset database table and alternative fields to compare and associate by type, and reserve the associated fields with the main table in the preset table; the other is to directly generate a table creation statement based on the field, create a new table in the database, and automatically generate the associated fields with the main table when creating it.
[0129] The reporting template model generates corresponding file template structures for the main form and subforms, which are used to download data reporting templates and export data.
[0130] The data presentation model forms a corresponding display framework by merging the main form and the subform to form a field list, including the header format and the content display format. The content display format configures the display control and size according to the field type length, so as to display the corresponding header and data content on the target page.
[0131] 3. When the user accesses the target page, the page display processing module obtains the corresponding data presentation model from the dynamic data model management module according to the front-end request, and requests the corresponding data from the data access processing module, thereby displaying the corresponding data list on the front-end.
[0132] 4. When the user downloads the template, the template data processing module obtains the corresponding reporting template model from the dynamic data model management module according to the front-end request, and returns the corresponding file template to the front-end.
[0133] 5. When the user exports data, the template data processing module obtains the corresponding reporting template model from the dynamic data model management module according to the front-end request, and requests the corresponding data from the data access processing module to generate a file data file and return it to the front-end.
[0134] 6. The data processing module reads the corresponding data from the database according to the enabled data structure model and returns it to the page display processing module or the template data processing module.
[0135] 7. When the user modifies data or imports file data, the page display processing module / template data processing module obtains the front-end data update request and sends it to the data processing module. The data processing module writes to the database according to the enabled data structure model to complete the data update.
[0136] Key Points:
[0137] Set the field structure of the subform through page editing, establish an association with the corresponding main form, and set the target page and enabled scope.
[0138] Generate the corresponding dynamic data model for the above settings, including data structure model, filling template model, and data presentation model. The data structure model associates the subform field structure in the database by creating or associating corresponding existing fields; the filling module model generates the corresponding file template structure for the main form and subform, which is used to download the data filling template and export data; the data presentation model displays the corresponding table header and data content on the target page.
[0139] When requesting the target page, the corresponding data presentation model is determined according to the enabled scope of the dynamic data model, and the corresponding main form and subform data are displayed. When the data is modified on the target page, the data in the database is modified accordingly.
[0140] When downloading the reporting template, download the corresponding reporting template according to the enabled range of the dynamic data model. When exporting data, export the corresponding file format data according to the current model. When importing data through a file, first compare the header structure in the reporting module model. If the header structure is different, the template error message is returned. If it is the same, read the file data and import the corresponding data package according to the data structure model.
[0141] Embodiment 3
[0142] See also Figure 3 , Figure 3 It is a structural diagram of a planning execution form customization device disclosed in an embodiment of the present invention. Figure 3 The described planning execution form customization device is applied to the field of information system application technology. It provides forms with different dynamic data on the same page according to time or process changes, so that the execution form modification is upgraded from rewriting code to interface configuration, which reduces the technical level requirements of business personnel and the tedious workload of software modification. The embodiments of the present invention are not limited. Figure 3 As shown, the planning execution form customization device may include the following operations:
[0143] S301, a parameter setting unit, used to set dynamic data model parameters using a dynamic data model configuration module;
[0144] S302, a parameter processing unit, configured to process the dynamic data model parameters using a dynamic data model management module to obtain a dynamic data model;
[0145] The dynamic data model includes a data structure model, a reporting template model and a data presentation model;
[0146] S303, a form customization unit, which is used to extract a corresponding dynamic data model from the dynamic data model management module according to user demand information by using a template data processing module, a data access processing module and a page display processing module, so as to implement form customization;
[0147] The user's demand information includes accessing a target page, downloading a template, exporting data, modifying data, or importing file data.
[0148] Embodiment 4
[0149] See also Figure 4 , Figure 4 It is a structural diagram of another device for customizing a planning execution form disclosed in an embodiment of the present invention. Figure 4 The described planning execution form customization device is applied to the field of information system application technology. It provides forms with different dynamic data on the same page according to time or process changes, so that the execution form modification is upgraded from rewriting code to interface configuration, which reduces the technical level requirements of business personnel and the tedious workload of software modification. The embodiments of the present invention are not limited. Figure 4 As shown, the planning execution form customization device may include the following operations:
[0150] A memory 401 storing executable program codes;
[0151] a processor 402 coupled to the memory 401;
[0152] The processor 402 calls the executable program code stored in the memory 401 to execute the steps in the planning plan execution form customization method described in the first and second embodiments.
[0153] Embodiment 5
[0154] An embodiment of the present invention discloses a computer-readable storage medium storing a computer program for electronic data exchange, wherein the computer program enables a computer to execute the steps in the method for customizing a planning plan execution form described in Embodiment 1 and Embodiment 2.
[0155] The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, i.e., they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative work.
[0156] Through the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the above technical solution can be essentially or partly contributed to the prior art in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0157] Finally, it should be noted that the method and device for customizing a planning execution form disclosed in the embodiment of the present invention disclose only the preferred embodiments of the present invention, which are only used to illustrate the technical solution of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present invention.< / radio> < / date> < / checkbox> < / form>
Claims
1. A method for customizing a planning execution form, characterized in that: The method comprises: S1, using the dynamic data model configuration module, set the dynamic data model parameters, including: S11, using the dynamic data model configuration module to set the target page and the associated main form data; S12, setting subform data and enabling scope; The subform data includes field name, data type and field length; S13, integrating the target page and the associated main form data, the subform data and the enabled scope to obtain dynamic data model parameters; S2, using a dynamic data model management module to process the dynamic data model parameters to obtain a dynamic data model, including: S21, using a dynamic data model management module to process the dynamic data model parameters to obtain a data structure model; The data structure model includes main form data, sub-form data, main form and sub-form; The main form and the subform are associated via a preset first field; The master form is directly associated with the master form data; The subform and the subform data are associated by type, or are associated according to a preset second field; S22, using a dynamic data model management module to process the dynamic data model parameters to obtain a reporting template model; The filling template model includes a main form and a sub-form file template structure; The main form and subform file template structure are used to download data filling templates and export data; The reporting template model generates the relevant columns of the template and export file based on the related main form and subform field names, data types and field lengths, including column names and input format verification; S23, using a dynamic data model management module to process the dynamic data model parameters to obtain a data presentation model; The data presentation model includes a main form and a subform display structure; The main form and subform display structure include a header format and a data content display format; The data content display format is used to display the corresponding table header and data content on the target page; Based on the associated main form and related field names, data types and field lengths of the subforms, the HTML tag type and header name for display are generated according to the field names, types and lengths, and combined to form a data presentation model; The dynamic data model includes a data structure model, a reporting template model and a data presentation model; S3, using the template data processing module, the data access processing module and the page display processing module, extracting the corresponding dynamic data model from the dynamic data model management module according to the user's demand information, and implementing form customization, including: S31, when the user's demand information is to access the target page, the page display processing module is used to obtain the data presentation model from the dynamic data model management module according to the user's demand information; According to the data presentation model, corresponding data is read from the data access processing module, and the corresponding data is displayed in a list; S32, when the user's demand information is to download a template, the template data processing module is used to obtain a filling template model from the dynamic data model management module according to the user's demand information, and the corresponding file template is returned to the template data processing module; S33, when the user's demand information is to export data, the template data processing module is used to obtain the filling template model from the dynamic data model management module according to the user's demand information, and the corresponding data is read from the data access processing module to generate file data and return it to the template data processing module; S34, when the user's demand information is to modify data or import file data, the page display processing module or the template data processing module is used to send the user's demand information to the data processing module; The data processing module updates data according to the user's demand information; The user's demand information includes accessing a target page, downloading a template, exporting data, modifying data, or importing file data; A form refers to a component used to collect data on a web page, which is reflected in the form tag in the front-end HTML. <form>The form fields and background processing algorithms in the form field type are <textarea>、< / textarea> <checkbox> 、 <date> 。< / date> < / checkbox> < / form> 2. A planning execution form customization device, characterized in that: The device comprises: The parameter setting unit is used to set the dynamic data model parameters by using the dynamic data model configuration module, including: S11, using the dynamic data model configuration module to set the target page and the associated main form data; S12, setting subform data and enabling scope; The subform data includes field name, data type and field length; S13, integrating the target page and the associated main form data, the subform data and the enabled scope to obtain dynamic data model parameters; The parameter processing unit is used to process the dynamic data model parameters using the dynamic data model management module to obtain the dynamic data model, including: S21, using a dynamic data model management module to process the dynamic data model parameters to obtain a data structure model; The data structure model includes main form data, sub-form data, main form and sub-form; The main form and the subform are associated via a preset first field; The master form is directly associated with the master form data; The subform and the subform data are associated by type, or are associated according to a preset second field; S22, using a dynamic data model management module to process the dynamic data model parameters to obtain a reporting template model; The filling template model includes a main form and a sub-form file template structure; The main form and subform file template structure are used to download data filling templates and export data; The reporting template model generates the relevant columns of the template and export file based on the related main form and subform field names, data types and field lengths, including column names and input format verification; S23, using a dynamic data model management module to process the dynamic data model parameters to obtain a data presentation model; The data presentation model includes a main form and a subform display structure; The main form and subform display structure include a header format and a data content display format; The data content display format is used to display the corresponding table header and data content on the target page; Based on the associated main form and related field names, data types and field lengths of the subforms, the HTML tag type and header name for display are generated according to the field names, types and lengths, and combined to form a data presentation model; The dynamic data model includes a data structure model, a reporting template model and a data presentation model; The form customization unit is used to extract the corresponding dynamic data model from the dynamic data model management module according to the user's demand information by using the template data processing module, the data access processing module and the page display processing module to implement form customization, including: S31, when the user's demand information is to access the target page, the page display processing module is used to obtain the data presentation model from the dynamic data model management module according to the user's demand information; According to the data presentation model, corresponding data is read from the data access processing module, and the corresponding data is displayed in a list; S32, when the user's demand information is to download a template, the template data processing module is used to obtain a filling template model from the dynamic data model management module according to the user's demand information, and the corresponding file template is returned to the template data processing module; S33, when the user's demand information is to export data, the template data processing module is used to obtain the filling template model from the dynamic data model management module according to the user's demand information, and the corresponding data is read from the data access processing module to generate file data and return it to the template data processing module; S34, when the user's demand information is to modify data or import file data, the page display processing module or the template data processing module is used to send the user's demand information to the data processing module; The data processing module updates data according to the user's demand information; The user's demand information includes accessing a target page, downloading a template, exporting data, modifying data, or importing file data; A form refers to a component used to collect data on a web page, which is reflected in the form fields in the form tag in the front-end HTML and the processing algorithm in the back-end. The form field types are <textarea>、< / textarea> <checkbox> 、 <date> 。< / date> < / checkbox>
Citation Information
Patent Citations
Electronic batch record template implementation method based on dynamic form
CN118312175A