CN112989770B - Form generation method, device and system, electronic equipment and storage medium - Google Patents
Form generation method, device and system, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN112989770B CN112989770B CN202110374103.4A CN202110374103A CN112989770B CN 112989770 B CN112989770 B CN 112989770B CN 202110374103 A CN202110374103 A CN 202110374103A CN 112989770 B CN112989770 B CN 112989770B
- Authority
- CN
- China
- Prior art keywords
- model
- current
- client
- form model
- current form
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 88
- 230000001960 triggered effect Effects 0.000 claims abstract description 43
- 230000000875 corresponding effect Effects 0.000 claims description 45
- 238000012545 processing Methods 0.000 claims description 10
- 238000009877 rendering Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 4
- 230000000007 visual effect Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 23
- 230000008569 process Effects 0.000 description 9
- 230000006870 function Effects 0.000 description 7
- 230000003287 optical effect Effects 0.000 description 6
- 238000012795 verification Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 235000010627 Phaseolus vulgaris Nutrition 0.000 description 1
- 244000046052 Phaseolus vulgaris Species 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000003032 molecular docking Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/174—Form filling; Merging
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention discloses a form generation method, a device, a system, electronic equipment and a storage medium, wherein the method comprises the following steps: receiving a form acquisition request sent by a client, wherein the form acquisition request is triggered based on a current form model; determining current form code data; determining a next form element according to the current form code data; the next form element is sent to the client so that the client assembles the current form model and the next form element to generate an updated form model, and the integrity of the updated form model is higher than that of the current form model; and repeatedly executing the steps until the client generates a complete form model. By the technical scheme of the embodiment of the invention, the form elements are sequentially fetched and the form model is generated, the loading speed of the form model is improved, and when the form model is maintained, only the corresponding form elements are required to be modified, so that the upgrading times of the client side are reduced, and the use experience of a user is improved.
Description
Technical Field
The embodiment of the invention relates to the technical field of information, in particular to a form generation method, a form generation device, a form generation system, electronic equipment and a storage medium.
Background
With the high-speed development of mobile internet technology, more and more work can be migrated to the mobile terminal, so that the application of the mobile terminal is very common, workers can process the work at any time and any place, and the working efficiency is improved.
Forms can be used for realizing data acquisition functions, and with the development of artificial intelligence technology and mobile information systems, many functions can complete data display or collection by means of forms of mobile terminals.
In the process of realizing the invention, the prior art is found to have at least the following technical problems:
1. the form model is slowly loaded, so that the use experience of staff is affected;
2. when the form model is maintained, after form elements are modified or added, the client needs to be updated, and the experience of staff is poor.
Disclosure of Invention
The invention provides a form generation method, a form generation device, a form generation system, electronic equipment and a storage medium, so that the loading speed of a form model is improved, and the use experience of staff is improved.
In a first aspect, an embodiment of the present invention provides a form generating method, applied to a server, including:
step one, receiving a form acquisition request sent by a client, wherein the form acquisition request is triggered based on a current form model, and the current form model is generated based on current form element assembly;
Step two, determining the code data of the current form;
Step three, determining the next form element according to the current form code data;
Step four, the next form element is sent to the client so that the client assembles the current form model and the next form element to generate an updated form model, and the integrity of the updated form model is higher than that of the current form model;
and repeatedly executing the first step, the second step, the third step and the fourth step until the client generates a complete form model.
In a second aspect, an embodiment of the present invention provides a form generating method, applied to a client, including:
step one, acquiring a form acquisition request triggered based on a current form model, and sending the form acquisition request to a server;
Step two, receiving the next form element fed back by the server;
Step three, assembling the current form model and the next form unit element to generate an updated form model, wherein the integrity of the updated form model is higher than that of the current form model;
and repeatedly executing the first step, the second step and the third step until a complete form model is generated.
In a third aspect, an embodiment of the present invention provides a form generating device configured at a server, including:
The receiving request module is used for receiving a form obtaining request sent by a client, wherein the form obtaining request is triggered based on a current form model, and the current form model is generated based on current form element assembly;
A determining data module for determining the current form code data;
a determining element module for determining the next form element according to the current form code data;
The element sending module is used for sending the next form element to the client so that the client assembles the current form model and the next form element to generate an updated form model, and the integrity of the updated form model is higher than that of the current form model;
And the receiving request module, the determining data module, the determining element module and the sending element module repeatedly execute corresponding actions until the client generates a complete form model.
In a fourth aspect, an embodiment of the present invention provides a form generating apparatus configured in a client, including:
The acquisition request module is used for acquiring a form acquisition request triggered based on the current form model and sending the form acquisition request to the server;
the receiving element module is used for receiving the next form element fed back by the server side;
the first assembly module is used for assembling the current form model and the next form unit element to generate an updated form model, and the integrity of the updated form model is higher than that of the current form model;
And the acquisition request module, the receiving element module and the first assembly module repeatedly execute corresponding actions until a complete form model is generated.
In a fifth aspect, an embodiment of the present invention provides a form generating system, including a server and a client, where:
The server side is used for executing and receiving a form acquisition request sent by the client side, wherein the form acquisition request is triggered based on a current form model, and the current form model is generated based on current form element assembly; determining current form code data; determining a next form element according to the current form code data; the next form element is sent to the client so that the client assembles the current form model and the next form element to generate an updated form model, and the integrity of the updated form model is higher than that of the current form model; repeating the steps until the client generates a complete form model;
The client is used for executing and acquiring a form acquisition request triggered based on the current form model and sending the form acquisition request to the server; receiving the next form element fed back by the server; assembling the current form model and the next form unit element to generate an updated form model, wherein the integrity of the updated form model is higher than that of the current form model; and repeatedly executing the steps until a complete form model is generated.
In a sixth aspect, an embodiment of the present invention provides an electronic device, including:
one or more processors;
A memory for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the form generation method as described in the first and second aspects.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the form generating method as described in the first and second aspects.
The embodiments of the above invention have the following advantages or benefits:
the embodiment of the invention receives a form acquisition request sent by a client, wherein the form acquisition request is triggered based on a current form model; determining current form code data; determining a next form element according to the current form code data; the next form element is sent to the client so that the client assembles the current form model and the next form element to generate an updated form model, and the integrity of the updated form model is higher than that of the current form model; and repeatedly executing the steps until the client generates a complete form model. According to the technical scheme, the next form element is determined through the current form code data, the next form element is sent to the client, after the client receives the next form element fed back by the server, the current form model and the next form element are assembled to generate the updated form model until the complete form model is generated, the form elements are sequentially called and the form model is sequentially generated, the loading speed of the form model is further improved, and when the form model is maintained, only the corresponding form element is required to be modified, so that the upgrading times of the client are reduced, and the use experience of staff is improved.
Drawings
FIG. 1 is a flowchart of a form generation method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a current form model in a form generation method according to a first embodiment of the present invention;
FIG. 3 is a flowchart of a form generating method according to a second embodiment of the present invention;
FIG. 4 is a schematic diagram of a form model showing four form elements of configurable rules in a form generation method according to a second embodiment of the present invention;
fig. 5 is a schematic diagram of an intra-group detailed case field of form elements showing four configurable rules by a form model in a form generation method according to a second embodiment of the present invention, where fig. 5a is a schematic diagram of component details fields of WangFormModule, fig. 5b is a schematic diagram of component details fields of WangFormField, fig. 5c is a schematic diagram of component details of WangButton, and fig. 5d is a schematic diagram of component details fields of WangAction;
FIG. 6 is a flowchart of a form generation method according to a third embodiment of the present invention;
FIG. 7 is a flowchart of a form generating method according to a fourth embodiment of the present invention;
FIG. 8 is a flowchart of a form generating method according to a fifth embodiment of the present invention;
fig. 9 is a schematic structural diagram of a form generating device according to a sixth embodiment of the present invention;
fig. 10 is a schematic structural diagram of a form generating device according to a seventh embodiment of the present invention;
FIG. 11 is a schematic diagram of a form generation system according to an eighth embodiment of the present invention;
fig. 12 is a schematic structural diagram of an electronic device according to a ninth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings.
Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like. Furthermore, embodiments of the invention and features of the embodiments may be combined with each other without conflict.
When a worker performs services such as door-to-door maintenance or door-to-door maintenance on a user according to a service list number, the information required to be filled in by a form is often different because the types and brands of equipment required to be maintained or the service list number corresponding to the user are different, namely, form elements are different. The service personnel can acquire the form model corresponding to the class, the brand or the service list number according to the class, the brand or the service list number triggering the form acquisition request, and further fill corresponding form filling data according to the form model by the service personnel, so that data acquisition through the form is realized.
The form generating method provided by the present invention will be described in detail in the following embodiments.
Example 1
Fig. 1 is a flowchart of a form generating method according to an embodiment of the present invention, where the embodiment of the present invention is applicable to a server, and the embodiment of the present invention is applicable to a case where different form models are generated quickly and multiple upgrades are not required to be performed on a client. Alternatively, the form generating means may be configured in a server. As shown in fig. 1, the method specifically includes the following steps:
S110, receiving a form acquisition request sent by a client, wherein the form acquisition request is triggered based on a current form model, and the current form model is generated based on current form element assembly.
The form acquisition request may include a current form model and current form filling data, and the staff may fill in the corresponding current form filling data according to the current form model, click the submit button, and may trigger the form acquisition request.
The current form model may be a form model displayed on a current interface of the user terminal, and the current form elements may be assembled to obtain the current form model. For example, in a form in which personal information is collected, the current form element may include detailed information such as personal information, educational information, and work experience. In addition, fig. 2 is a schematic diagram of a current form model in a form generating method according to the first embodiment of the present invention, as shown in fig. 2, current form elements may include classification settings, brands, an Weishan types, service items, filling bar codes, uploading bar code photographs, uploading finished images, uploading other photographs, remarks of other photographs, uploading evaluation photographs, selected brands, selected settings, docking time, safety notes, and the like, and the current form elements may be used to form the current form model.
Specifically, the server side can acquire the form acquisition request sent by the client side through the form interface, and in the generation process of the form model, the server side can acquire the form acquisition request sent by the client side from the form interface for a plurality of times.
It should be noted that, before receiving the form obtaining request sent by the client, the corresponding form interface may be configured according to the client and the server, so as to implement data interaction between the client and the server.
S120, determining the current form code data.
Specifically, the server can parse the current form code data according to the current form model and the current form filling data.
It should be noted that, the current form filling data herein may be data filling of a part of form elements in the current form model, for example, data filling may be performed on a callback element in the current form model to obtain a linkage form element corresponding to the callback element, so that the current form model is enriched to obtain an updated form model.
S130, determining the next form element according to the current form code data.
The current form code data may be current form bean data.
Specifically, after the current form code data is obtained by parsing, the next form element may be determined according to the current form code data.
For example, in a form for collecting personnel information, the current form code data may be obtained by parsing according to the current form model and study school information in the education information, and after the current form code data is sent to the server, the server may determine that the next form element may be the information of the family school, the information of the study school, or the like according to the study school information included in the current form code data.
In the embodiment of the invention, after the current form model and the current form filling data are sent to the server through the form interface, the server can analyze the current form model and the current form filling data to obtain current form code data, further judge whether the current form code data are only basic service data, if the current form code data are only basic service data, the client is indicated to be the first request form interface, the server can call the background interface to acquire a next form element corresponding to a form acquisition request from the database according to the basic service data, the next form element can comprise a necessary form element, and feed back the next form element to the client, so that the client can acquire an initial form model according to the assembly of the necessary form element; if the current form code data contains more service data, which indicates that the client is a non-first request form interface, the server can call the background interface to acquire the next form element corresponding to the current form code data from the form element factory, and feed back the next form element to the client.
It should be noted that, the basic service data may be a service list number, and after a worker sends the service list number to the service end through the client, the service end may obtain, from the database, a next form element corresponding to the service list number and containing a form element to be filled.
In addition, the server can preset all form elements in the form model, and perform rule configuration on the form elements, and the form element factory can produce form elements conforming to the rules according to the configuration rules.
And S140, sending the next form element to the client so that the client assembles the current form model and the next form element to generate an updated form model, wherein the integrity of the updated form model is higher than that of the current form model.
Specifically, the next form element may be sent to the client through the form interface, where in practical application, the next form element may be an initial form element or a linked form element. The initial form elements may form an initial form model, and the linked form elements may be assembled with the current form model to obtain an updated form model.
Specifically, in the generation process of the form model, the client may acquire, from the form interface, the next form element sent by the server multiple times.
And repeatedly executing S110-S140 until the client generates a complete form model.
Specifically, each time according to the current form model and the current form filling data, the current form code data can be obtained through analysis, further, the next form element can be obtained from the database according to the current code data, the next form element is sent to the client, the client can obtain the updated form model according to the current form model and the next form element, enrichment of the current form model is achieved, further, the updated form model and the next form filling data can continue enriching the updated form model, and the complete form model can be obtained gradually.
The form generation method provided by the embodiment of the invention comprises the following steps: receiving a form acquisition request sent by a client, wherein the form acquisition request is triggered based on a current form model; determining current form code data; determining a next form element according to the current form code data; the next form element is sent to the client so that the client assembles the current form model and the next form element to generate an updated form model, and the integrity of the updated form model is higher than that of the current form model; and repeatedly executing the steps until the client generates a complete form model. According to the technical scheme, the next form element is determined through the current form code data, the next form element is sent to the client, after the client receives the next form element fed back by the server, the current form model and the next form element are assembled to generate the updated form model until the complete form model is generated, the form elements are sequentially called and the form model is sequentially generated, the loading speed of the form model is further improved, and when the form model is maintained, only the corresponding form element is required to be modified, so that the upgrading times of the client are reduced, and the use experience of staff is improved.
Example two
Fig. 3 is a flowchart of a form generating method provided by a second embodiment of the present invention, where the second embodiment of the present invention is applicable to a server, and is applicable to a situation that different form models are generated quickly and multiple upgrades are not required to be performed on a client, and on the basis of the foregoing embodiment, the embodiment of the present invention adds "determine a service type and attribute information of a next form element" after sending the next form element to the client; and sending the service type and the attribute information to the client so that the client assembles the current form model and the next form element based on the service type and the attribute information to generate an updated form model. And receiving the complete form model fed back by the client and corresponding form filling data; and correspondingly storing the complete form model and the form filling data. The explanation of the same or corresponding terms as those of the above embodiments will not be repeated here. Referring to fig. 3, the form generating method provided by the embodiment of the invention includes:
S310, receiving an initial form acquisition request sent by the client, wherein the initial form acquisition request is triggered according to the service list number.
Specifically, when the staff triggers the initial form acquisition request based on the service list number for the first time, the initial form acquisition request may be sent to the service end based on the client.
In addition, the staff can trigger the initial form acquisition request through clicking operation or input operation, and the user can trigger the initial form acquisition request according to an initial input box or an initial selection box of the current interface of the user terminal.
In the embodiment of the invention, the initial form acquisition request can be triggered according to any data capable of determining the current service business, for example, the initial form acquisition request can be triggered according to the service list number, the service address or the service request personnel information and the like.
S311, after the initial form code data is determined, determining initial form elements according to the initial form code data, and sending the initial form elements to the client.
Specifically, after receiving the initial form acquisition request, the server side can analyze and obtain initial form code data, namely basic service data, according to the service form number carried by the initial form acquisition request. The initial form elements may be further retrieved from the database based on the initial form code data and sent to the client.
Of course, after the initial form element is called, the service type and attribute information of the initial form element can be correspondingly called, and the service type and attribute information of the initial form element can be sent to the client.
The initial form element may include a form element to be filled, the initial form element may further include a callback element, and the callback element may perform callback processing to obtain a linkage form element. Of course, the initial form element may not include the callback element, and the initial form model obtained by assembling according to the initial form element is the complete form model.
S312, receiving a form acquisition request sent by the client, wherein the form acquisition request is triggered based on a current form model, and the current form model is generated based on current form element assembly.
S313, determining the current form code data.
Alternatively, the current form model may be parsed to obtain the current form code data. The current form model is assembled by the current form unit elements, the current form elements can comprise callback elements, and the callback elements can carry out callback processing to obtain linkage form unit elements. The current code data may be used to determine a next form element, where the next form element is a linked form element, and the next form element may be retrieved from the form element factory according to the callback element.
S314, determining the next form element according to the current form code data.
Optionally, the current form model includes a callback element, and accordingly, S314 may specifically include: and when the attribute represented by the first attribute information is non-basic service data, performing element callback processing according to the callback element to obtain a linked form element, and determining the linked form element as the next form element.
The first attribute information may be attribute information of current form code data, where the current form code data may include basic service data and non-basic service data.
If the current form code data is basic service data, the client side is indicated to request the form interface for the first time, and the data sent to the server side at this time can be only the data triggered by the initial form acquisition request; if the current form code data is non-basic service data, the client side is indicated to not request the form interface for the first time, at this time, the data sent to the server side can be the form filling data of the current form model and the callback element therein, and then the current form code data can be determined according to the form filling data of the current form model and the callback element therein. After the current form code data is determined, the current form code data can contain a callback element in the current form model, the server side can perform element callback processing on the callback element according to the callback element contained in the current form code data, a linkage form element corresponding to the callback element is obtained from a database, and the linkage form element is determined to be the next form element.
S315, the next form element is sent to the client so that the client can assemble the current form model and the next form element to generate an updated form model, and the integrity of the updated form model is higher than that of the current form model.
S316, determining the service type and the second attribute information of the next form element.
Optionally, the second attribute information includes a default value of the next form element, callback information of the next form element, and a verification rule of the next form element. The default value of the next form element, callback information of the next form element and the verification rule of the next form element can be correspondingly stored in the database, and after the next form element is determined according to the current form code data, the default value of the next form element, the callback information of the next form element and the verification rule of the next form element corresponding to the next form element can be called from the database. In addition, display information of the next form element and whether filling information is needed can be called from the database, the display information can be used for determining a display mode of the next form element in the updated form model, whether filling information is needed can be used for determining whether the next form element contains the filling form element, the filling form element is marked based on marking information, the marking information can comprise star information and color information, and for example, the filling form element can be marked with a red star.
If the current form is a personnel information questionnaire, the business type of the next form element may include basic information, educational information, and work experience.
It should be noted that the form elements may be classified according to the service type.
Form elements may include four configurable rule form elements, such as WangFormModule: the method is used for dividing the table unit elements into groups, and the same kind of service table unit elements are visually displayed in the same group; wangFormField: actual form elements such as single, multiple, date selection, multiple lines of text, pictures, etc.; wangButton: button operations in the form; wangAction: the buttons in the form operate a pre-action, such as clicking a pre-confirmation prompt.
FIG. 4 is a schematic diagram of a form model showing four form elements with configurable rules in a form generating method according to a second embodiment of the present invention, where, as shown in FIG. 4, the form model may include a plurality WangFormModule, that is, may include multiple groups of form elements; each group of form elements can comprise a plurality of WangFormField, i.e. each group of form elements can be filled with various forms filling data, such as image information, sound information or text information with different data types; the form model may also include a plurality WangButton of form models, i.e., the form model may perform multiple selection operations; each WangButton may also include a plurality of WangAction, i.e., before the operator operates the buttons, a plurality of pre-button confirmation operations may also be performed through a plurality of WangAction.
In addition, fig. 5 is a schematic diagram of detailed status fields in a group of form elements showing four configurable rules in a form model in a form generation method according to a second embodiment of the present invention, as shown in fig. 5, fig. 5a is a schematic diagram of component details fields of WangFormModule, fig. 5b is a schematic diagram of component details fields of WangFormField, fig. 5c is a schematic diagram of component details fields of WangButton, and fig. 5d is a schematic diagram of component details fields of WangAction.
The element name WangFormField in fig. 5b is used to determine the name when the submitting server assembles into form code data, and the real name of the form element is added with the value to form the element name, and the element name can be used to upload the form element to the server. The at commit check rule may include a definition of the data type of the form fill data. The button names in FIG. 5c may include save and submit, and when the save button is triggered by a worker, the current form model and current form fill data may be cached locally; when the staff member triggers the submit button, the current form model and the current form fill data may be uploaded to the server.
S317, the service type and the second attribute information are sent to the client, so that the client assembles the current form model and the next form element based on the service type and the second attribute information, and generates an updated form model.
Specifically, the service type of the next form element is determined, the group information of the next form element in the updated form model can be determined, and then the client can display the next form element on the display interface according to WangFormModule, wangFormField, wangButton or WangAction. Determining the second attribute information of the next form element can enable the client to display each next form element in more detail, and is convenient for the staff to fill in correct next form filling data according to the attribute information.
The foregoing steps S312-S317 are repeatedly performed until the client generates the complete form model.
All form elements contained in the generated complete form model, and the service type and the second attribute information corresponding to each form element are stored in the server in advance.
It should be noted that, after S317, the method may further include:
and judging whether the updated form model is a complete form model, if so, continuing to execute S318, otherwise, returning to execute S312.
S318, receiving the complete form model fed back by the client and corresponding form filling data.
Specifically, after the complete form model is generated, the staff can fill in the corresponding form filling data according to all form elements contained in the complete form model, and send the complete form model and the form filling elements corresponding to the filling to the server, and the server receives the complete form model and the form filling elements corresponding to the filling.
S319, correspondingly storing the complete form model and the form filling data.
Specifically, the complete form model and the form filling data can be correspondingly stored at the server. Of course, multiple staff members may correspond to the same complete form model and different form filling data, and may store the complete form model only once, and correspondingly store multiple sets of form filling data.
The form generation method provided by the embodiment of the invention comprises the following steps: receiving a form acquisition request sent by a client, wherein the form acquisition request is triggered based on a current form model; determining current form code data; determining a next form element according to the current form code data; the next form element is sent to the client so that the client assembles the current form model and the next form element to generate an updated form model, and the integrity of the updated form model is higher than that of the current form model; and repeatedly executing the steps until the client generates a complete form model. According to the technical scheme, the next form element is determined through the current form code data, the next form element is sent to the client, after the client receives the next form element fed back by the server, the current form model and the next form element are assembled to generate the updated form model until the complete form model is generated, the form elements are sequentially called and the form model is sequentially generated, the loading speed of the form model is further improved, and when the form model is maintained, only the corresponding form element is required to be modified, so that the upgrading times of the client are reduced, and the use experience of staff is improved.
In addition, the service type and the second attribute information of the next form element can be determined, and the service type and the second attribute information are sent to the client, so that an updated form model generated by the client is more convenient to display on a display interface, and the user experience is improved. And secondly, the complete form model fed back by the client and corresponding form filling data can be received and stored.
Example III
Fig. 6 is a flowchart of a form generating method provided in a third embodiment of the present invention, where the embodiment of the present invention is applicable to a client, and is applicable to a case where different form models are generated quickly and multiple upgrades are not required to be performed on the client, the method may be performed by a form generating device, and the device may be implemented by software and/or hardware. Optionally, the form generating device may be configured in a user terminal, where the user terminal may be an electronic device such as a notebook computer, a smart tablet, a mobile phone, or the like. As shown in fig. 6, the method specifically includes the following steps:
s610, acquiring a form acquisition request triggered based on a current form model, and sending the form acquisition request to a server.
The form acquiring request may be a form acquiring request triggered by a worker through a triggering operation, where the triggering operation may include a clicking operation and an input operation of the worker.
Specifically, the staff can perform clicking operation or input operation on the current display interface of the client to trigger the form acquisition request, and then the form acquisition request can be sent to the server through the form interface.
S620, receiving the next form element fed back by the server side.
Specifically, after the server determines the next form element, the next form element may be sent to the client through the form interface, and then the client may receive the next form element fed back by the server.
S630, assembling the current form model and the next form unit element to generate an updated form model, wherein the integrity of the updated form model is higher than that of the current form model.
The current form model can be an initial form model or a non-initial form model, and the next form element can be obtained by callback according to the callback element in the current form model.
Specifically, after receiving the next form element, the client may assemble the current form model and the next form element to generate an updated form model, and display the updated form model on the display interface. Of course, before the updated form model is displayed, the updated form model can be further rendered based on the dynamic rendering component, so that the form elements in the updated form model can be converted into the UI component to be tiled and displayed on the display interface.
In addition, the elements in the updated form model may include the current form element and the next form element in the current form model, so the integrity of the updated form model is higher than the integrity of the current form model.
During the updating of the form model, the integrity of the form model may be gradually increased until the integrity of the form model is increased to 100%.
S610-S630 are repeatedly performed until a complete form model is generated.
Specifically, after determining to update the form model, the updated form model may be used as a current form model, and the client may continue to receive a form acquisition request triggered by the staff based on the current form model, and continue to execute S610-S630 until a complete form model is generated.
The form generation method provided by the embodiment of the invention comprises the following steps: acquiring a form acquisition request triggered based on a current form model, and sending the form acquisition request to a server; receiving the next form element fed back by the server; assembling the current form model and the next form unit element to generate an updated form model, wherein the integrity of the updated form model is higher than that of the current form model; and repeatedly executing the steps until a complete form model is generated. According to the technical scheme, after the list acquisition request is triggered according to the current form model, the next form element can be received, and then the current form model and the next form element can be assembled to obtain the updated form model until the complete form model is generated, so that the purposes of sequentially calling the form element and sequentially generating the form model are achieved, the loading speed of the form model is further improved, and when the form model is maintained, only the corresponding form element is required to be modified, the upgrading times of a client side are reduced, and the use experience of staff is improved.
Example IV
Fig. 7 is a flowchart of a form generating method provided in a fourth embodiment of the present invention, where the embodiment of the present invention is applicable to a client, and is applicable to a case where different form models are generated quickly and multiple upgrades are not required to be performed on the client. Based on the embodiment, the embodiment of the invention adds the service type and attribute information of the next form element fed back by the server; and assembling the current form model and the next form unit element based on the service type and the attribute information to generate an updated form model. Acquiring form filling data filled by a user according to the complete form model; and sending the complete form model and the form filling data to the server. And rendering the complete form model and displaying the complete form model by a visual interface. The explanation of the same or corresponding terms as those of the above embodiments will not be repeated here. Referring to fig. 7, the page display method provided by the embodiment of the present invention includes:
S710, acquiring an initial form acquisition request based on service single number triggering, and sending the initial form acquisition request to a server.
The initial form acquiring request may be triggered according to any data that may determine the current service, for example, may be triggered according to a service list number, a service address, or service requester information.
In the embodiment of the invention, the initial form acquisition request can be used for establishing connection between a worker and a server through the form interface for the first time and requesting the form interface for the first time.
S720, receiving the initial form element, the service type of the initial form element and the second attribute information fed back by the server side, and generating an initial form model based on the service type and the attribute information of the initial form element.
Specifically, the initial form element, the service type of the initial form element, and the second attribute information may be stored in the database in advance, and the server may search the database for the corresponding initial form element, the service type of the initial form element, and the second attribute information according to the service list number included in the initial form acquisition request, and send the initial form element, the service type of the initial form element, and the second attribute information to the client.
The client can determine the group of the initial form element in the initial form model according to the service type of the initial form element, further determine the position of the initial form element in the initial form model, and determine the default value, callback information, verification rule and the like of the initial form element in the initial form model according to the second attribute information of the initial form element so as to display the richer initial form model in the display interface.
S730, acquiring a form acquisition request triggered based on the current form model, and sending the form acquisition request to a server.
S740, receiving the next form element fed back by the server.
S750, receiving the service type and the second attribute information of the next form element fed back by the server.
The service type may be used to determine the group information of the next form element in the updated form model, and then the client may display the next form element on the display interface according to WangFormModule, wangFormField, wangButton or WangAction.
The second attribute information may determine default values, callback information, check rules, etc. of the next form element in the updated form model.
S760, assembling the current form model and the next form unit element based on the service type and the second attribute information to generate an updated form model, wherein the integrity of the updated form model is higher than that of the current form model.
Specifically, after the updated form model is obtained by assembling the current form model and the next form element, the service type and the second attribute information of the next form element can further enrich the information of the updated form model, so that the updated form model can be displayed more abundantly on a display interface at a client.
S770, after the complete form model is generated, rendering the complete form model, and displaying the complete form model through a visual interface.
In particular, the complete form model may be rendered based on the dynamic rendering component.
It should be noted that, after generating the updated form model each time, the updated form model may be rendered, so as to further increase the loading speed of the form.
S780, acquiring form filling data filled in by a user according to the complete form model.
Specifically, after the complete form model is generated, the staff may fill in the corresponding form filling data according to all form elements contained in the complete form model.
S790, transmitting the complete form model and the form filling data to the server.
Specifically, the complete form model and the form filling data can be sent and correspondingly stored at the server.
The form generation method provided by the embodiment of the invention comprises the following steps: acquiring a form acquisition request triggered based on a current form model, and sending the form acquisition request to a server; receiving the next form element fed back by the server; assembling the current form model and the next form unit element to generate an updated form model, wherein the integrity of the updated form model is higher than that of the current form model; and repeatedly executing the steps until a complete form model is generated. According to the technical scheme, after the list acquisition request is triggered according to the current form model, the next form element can be received, and then the current form model and the next form element can be assembled to obtain the updated form model until the complete form model is generated, so that the purposes of sequentially calling the form element and sequentially generating the form model are achieved, the loading speed of the form model is further improved, and when the form model is maintained, only the corresponding form element is required to be modified, the upgrading times of a client side are reduced, and the use experience of staff is improved.
Example five
Fig. 8 is a flowchart of a form generating method provided in a fifth embodiment of the present invention, where the embodiment of the present invention is applicable to a case where different form models are generated quickly and multiple upgrades to a client are not required. On the basis of the embodiment, the embodiment of the invention mainly reflects the interaction process of the client and the server in the form generation method. As shown in fig. 8, the method specifically includes the following steps:
S810, the client acquires an initial form acquisition request triggered based on the service list number and sends the initial form acquisition request to the server.
S811, the server receives an initial form acquisition request sent by the client and determines initial form code data.
S812, the server side determines the initial form element and the service type and attribute information of the initial form element according to the initial form code data.
S813, the server side sends the initial form element and the service type and attribute information of the initial form element to the client side.
S814, the client receives the initial form element, the service type of the initial form element and the second attribute information fed back by the server, and generates an initial form model based on the service type and the attribute information of the initial form element.
S815, the client acquires a form acquisition request triggered based on the current form model and sends the form acquisition request to the server.
S816, the server receives the form acquisition request sent by the client and determines the current form code data.
S817, the server determines the next form element, the service type of the next form element and the second attribute information according to the current form code data.
S818, the server side sends the next form element, the service type of the next form element and the second attribute information to the client side.
And S819, the client receives the next form element fed back by the server, the service type of the next form element and the second attribute information, assembles the current form model and the next form element based on the service type and the second attribute information, and generates an updated form model, wherein the integrity of the updated form model is higher than that of the current form model.
S820, the client judges whether the updated form model is a complete form model, if so, the S821 is continued, otherwise, the S815 is returned to.
And S821, rendering the complete form model by the client and displaying the complete form model by a visual interface.
S822, the client acquires form filling data filled in by the user according to the complete form model.
S823, the client sends the complete form model and form filling data to the server.
S824, the server receives the complete form model and the corresponding form filling data fed back by the client, and correspondingly stores the complete form model and the form filling data.
The embodiment of the invention realizes the sequential retrieval of the form elements and the sequential generation of the form model, thereby improving the loading speed of the form model, and only modifying the corresponding form elements when maintaining the form model, reducing the upgrading times of the client and improving the use experience of staff.
Example six
Fig. 9 is a schematic structural diagram of a form generating device according to a sixth embodiment of the present invention, where the form generating device may be configured in a server. The apparatus and the form generating method of each embodiment belong to the same inventive concept, and reference may be made to the embodiment of the form generating method for details which are not described in detail in the embodiment of the form generating apparatus.
The specific structure of the form generating apparatus is as shown in fig. 9, and includes:
a receiving request module 910, configured to receive a form obtaining request sent by a client, where the form obtaining request is triggered based on a current form model, and the current form model is generated based on current form element assembly;
a determining data module 920, configured to determine current form code data;
a determining element module 930, configured to determine a next form element according to the current form code data;
A send element module 940, configured to send the next form element to the client, so that the client assembles the current form model and the next form element to generate an updated form model, where the integrity of the updated form model is higher than the integrity of the current form model;
the receiving request module 910, the determining data module 920, the determining element module 930, and the sending element module 940 repeatedly perform corresponding actions until the client generates a complete form model.
Based on the above embodiments, the determining data module 920 is specifically configured to:
And analyzing the current form model to obtain the current form code data.
On the basis of the foregoing embodiment, the current form model includes a callback element, and accordingly, the determining element module 930 is specifically configured to:
and when the attribute represented by the first attribute information is non-basic service data, performing element callback processing according to the callback element to obtain a linked form element, and determining the linked form element as the next form element.
On the basis of the above embodiment, the device further includes:
the business attribute determining module is used for determining the business type and attribute information of the next form element;
And the service attribute sending module is used for sending the service type and the second attribute information to the client so that the client assembles the current form model and the next form element based on the service type and the second attribute information and generates an updated form model.
Optionally, the second attribute information includes a default value of the next form element, callback information of the next form element, and a verification rule of the next form element.
On the basis of the above embodiment, the device further includes:
the receiving model data module is used for receiving the complete form model fed back by the client and corresponding form filling data;
And the storage model data module is used for correspondingly storing the complete form model and the form filling data.
The form generating device provided by the embodiment of the invention can execute the form generating method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
It should be noted that, in the embodiment of the form generating apparatus described above, each unit and module included are only divided according to the functional logic, but not limited to the above-described division, as long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Example seven
Fig. 10 is a schematic structural diagram of a form generating device according to a seventh embodiment of the present invention, where the form generating device may be configured in a client. The apparatus and the form generating method of each embodiment belong to the same inventive concept, and reference may be made to the embodiment of the form generating method for details which are not described in detail in the embodiment of the form generating apparatus.
The specific structure of the form generating apparatus is shown in fig. 10, and includes:
An acquisition request module 1010, configured to acquire a form acquisition request triggered based on a current form model, and send the form acquisition request to a server;
a receiving element module 1020, configured to receive a next form element fed back by the server;
a first assembling module 1030, configured to assemble the current form model and the next form element, and generate an updated form model, where an integrity of the updated form model is higher than an integrity of the current form model;
the acquisition request module 1010, the receiving element module 1020, and the first assembly module 1030 repeatedly perform corresponding actions until a complete form model is generated.
On the basis of the above embodiment, the device further includes:
The receiving service attribute module is used for receiving the service type and the second attribute information of the next form element fed back by the server side;
and the second assembling module is used for assembling the current form model and the next form element based on the service type and the second attribute information to generate an updated form model.
On the basis of the above embodiment, the device further includes:
The model data acquisition module is used for acquiring form filling data filled by a user according to the complete form model;
And the sending model data module is used for sending the complete form model and the form filling data to the server.
The form generating device provided by the embodiment of the invention can execute the form generating method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
It should be noted that, in the embodiment of the form generating apparatus described above, each unit and module included are only divided according to the functional logic, but not limited to the above-described division, as long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Example eight
Fig. 11 is a schematic structural diagram of a form generating system according to an eighth embodiment of the present invention, which is the same as the form generating method according to the foregoing embodiments, and details of the form generating system, which are not described in detail in the foregoing embodiments of the form generating system, may be referred to in the foregoing embodiments of the form generating method.
The specific structure of the form generation system is shown in fig. 11, and includes: a server 1110 and a client 1120.
The server 1110 is configured to receive a form acquisition request sent by a client, where the form acquisition request is triggered based on a current form model, and the current form model is generated based on current form element assembly; determining current form code data; determining a next form element according to the current form code data; the next form element is sent to the client so that the client assembles the current form model and the next form element to generate an updated form model, and the integrity of the updated form model is higher than that of the current form model; repeating the steps until the client generates a complete form model.
The client 1120 is configured to acquire a form acquisition request triggered based on a current form model, and send the form acquisition request to the server; receiving the next form element fed back by the server; assembling the current form model and the next form unit element to generate an updated form model, wherein the integrity of the updated form model is higher than that of the current form model; and repeatedly executing the steps until a complete form model is generated.
The form generation system provided by the embodiment of the invention can execute the form generation method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example nine
Fig. 12 is a schematic structural diagram of an electronic device according to a ninth embodiment of the present invention. Fig. 12 shows a block diagram of an exemplary electronic device 13 suitable for use in implementing embodiments of the invention. The electronic device 13 shown in fig. 12 is only an example and should not be construed as limiting the functionality and scope of use of the embodiments of the invention.
As shown in fig. 12, the electronic device 13 is in the form of a general purpose computing electronic device. Components of the electronic device 13 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, a bus 18 that connects the various system components, including the system memory 28 and the processing units 16.
Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, and a local bus using any of a variety of bus architectures. By way of example, and not limitation, such architectures include Industry Standard Architecture (ISA) bus, micro channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 13 typically includes many types of computer system readable media. Such media can be any available media that is accessible by electronic device 13 and includes both volatile and non-volatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The electronic device 13 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from or write to non-removable, nonvolatile magnetic media (not shown in FIG. 12, commonly referred to as a "hard disk drive"). Although not shown in fig. 12, a magnetic disk drive for reading from and writing to a removable non-volatile magnetic disk (e.g., a "floppy disk"), and an optical disk drive for reading from or writing to a removable non-volatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In such cases, each drive may be coupled to bus 18 through one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to carry out the functions of the embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored in, for example, system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment. Program modules 42 generally perform the functions and/or methods of the embodiments described herein.
The electronic device 13 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with the electronic device 13, and/or with any device (e.g., network card, modem, etc.) that enables the electronic device 13 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 22. Also, the electronic device 13 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 20. As shown in fig. 12, the network adapter 20 communicates with other modules of the electronic device 13 via the bus 18. It should be appreciated that although not shown in fig. 12, other hardware and/or software modules may be used in connection with the electronic device 13, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
The processing unit 16 executes various functional applications and page displays by running programs stored in the system memory 28, for example to implement the form generation method provided by the present embodiment,
When the method is applied to a server, the method comprises the following steps:
step one, receiving a form acquisition request sent by a client, wherein the form acquisition request is triggered based on a current form model, and the current form model is generated based on current form element assembly;
Step two, determining the code data of the current form;
Step three, determining the next form element according to the current form code data;
Step four, the next form element is sent to the client so that the client assembles the current form model and the next form element to generate an updated form model, and the integrity of the updated form model is higher than that of the current form model;
and repeatedly executing the first step, the second step, the third step and the fourth step until the client generates a complete form model.
Wherein, when the method is applied to a client, the method comprises:
step one, acquiring a form acquisition request triggered based on a current form model, and sending the form acquisition request to a server;
Step two, receiving the next form element fed back by the server;
Step three, assembling the current form model and the next form unit element to generate an updated form model, wherein the integrity of the updated form model is higher than that of the current form model;
and repeatedly executing the first step, the second step and the third step until a complete form model is generated.
Of course, those skilled in the art will understand that the processor may also implement the technical solution of the form generating method provided in any embodiment of the present invention.
Examples ten
An embodiment ten of the present invention provides a computer-readable storage medium having stored thereon a computer program, which when executed by a processor implements a form generating method such as provided by the embodiment of the present invention,
When the method is applied to a server, the method comprises the following steps:
step one, receiving a form acquisition request sent by a client, wherein the form acquisition request is triggered based on a current form model, and the current form model is generated based on current form element assembly;
Step two, determining the code data of the current form;
Step three, determining the next form element according to the current form code data;
Step four, the next form element is sent to the client so that the client assembles the current form model and the next form element to generate an updated form model, and the integrity of the updated form model is higher than that of the current form model;
and repeatedly executing the first step, the second step, the third step and the fourth step until the client generates a complete form model.
Wherein, when the method is applied to a client, the method comprises:
step one, acquiring a form acquisition request triggered based on a current form model, and sending the form acquisition request to a server;
Step two, receiving the next form element fed back by the server;
Step three, assembling the current form model and the next form unit element to generate an updated form model, wherein the integrity of the updated form model is higher than that of the current form model;
and repeatedly executing the first step, the second step and the third step until a complete form model is generated.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It will be appreciated by those of ordinary skill in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be centralized on a single computing device, or distributed over a network of computing devices, or they may alternatively be implemented in program code executable by a computer device, such that they are stored in a memory device and executed by the computing device, or they may be separately fabricated as individual integrated circuit modules, or multiple modules or steps within them may be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.
Claims (15)
1. The form generation method is characterized by being applied to a server and comprising the following steps:
step one, receiving a form acquisition request sent by a client, wherein the form acquisition request is triggered based on a current form model, and the current form model is generated based on current form element assembly;
Determining current form code data according to the current form model and current form filling data contained in the form acquisition request, wherein the current form filling data comprises filling data corresponding to callback elements in the current form model;
Step three, determining a next form element according to the callback element contained in the current form code data;
Step four, the next form element is sent to the client so that the client assembles the current form model and the next form element to generate an updated form model, and the integrity of the updated form model is higher than that of the current form model;
and repeatedly executing the first step, the second step, the third step and the fourth step until the client generates a complete form model.
2. The form generation method according to claim 1, wherein determining current form code data from the current form model and current form fill data contained in the form acquisition request includes:
and analyzing the current form model and the current form filling data to obtain the current form code data.
3. The form generation method according to claim 2, wherein the determining a next form element from the callback element contained in the current form code data includes:
And when the attribute represented by the first attribute information is non-basic service data, performing element callback processing according to the callback element contained in the current form code data to obtain a linkage form element, and determining the linkage form element as the next form element.
4. The form generation method according to claim 1, further comprising, after transmitting the next table element to the client:
determining the service type and the second attribute information of the next form element;
and sending the service type and the attribute information to the client so that the client assembles the current form model and the next form element based on the service type and the second attribute information to generate an updated form model.
5. The form generation method according to claim 4, wherein the second attribute information includes a default value of the next form element, callback information of the next form element, and a check rule of the next form element.
6. The form generation method according to claim 1, characterized by further comprising:
Receiving a complete form model fed back by the client and corresponding form filling data;
and correspondingly storing the complete form model and the form filling data.
7. The form generation method is characterized by being applied to a client and comprising the following steps of:
step one, acquiring a form acquisition request triggered based on a current form model, and sending the form acquisition request to a server, wherein the form acquisition request comprises the current form model and current form filling data;
Step two, receiving a next form element fed back by the server, wherein the next form element is determined by a callback element contained in current form code data determined by the current form model contained in the form acquisition request and the current form filling data;
Step three, assembling the current form model and the next form unit element to generate an updated form model, wherein the integrity of the updated form model is higher than that of the current form model;
and repeatedly executing the first step, the second step and the third step until a complete form model is generated.
8. The form generation method according to claim 7, further comprising, after receiving the next table element fed back by the server, the steps of:
Receiving the service type and attribute information of the next form element fed back by the server;
And assembling the current form model and the next form unit element based on the service type and the attribute information to generate an updated form model.
9. The form generation method according to claim 8, further comprising
Acquiring form filling data filled by a user according to the complete form model;
and sending the complete form model and the form filling data to the server.
10. The form generation method according to claim 7, further comprising, after generating the complete form model:
Rendering the complete form model and displaying the complete form model by a visual interface.
11. A form generation apparatus, configured at a server, comprising:
The receiving request module is used for receiving a form obtaining request sent by a client, wherein the form obtaining request is triggered based on a current form model, and the current form model is generated based on current form element assembly;
the data determining module is used for determining current form code data according to the current form model and current form filling data contained in the form obtaining request, wherein the current form filling data comprises filling data corresponding to callback elements in the current form model;
the determining element module is used for determining the next form element according to the callback element contained in the current form code data;
The element sending module is used for sending the next form element to the client so that the client assembles the current form model and the next form element to generate an updated form model, and the integrity of the updated form model is higher than that of the current form model;
And the receiving request module, the determining data module, the determining element module and the sending element module repeatedly execute corresponding actions until the client generates a complete form model.
12. A form generation apparatus, configured in a client, comprising:
The system comprises an acquisition request module, a form acquisition module and a server, wherein the acquisition request module is used for acquiring a form acquisition request triggered based on a current form model and sending the form acquisition request to the server, and the form acquisition request comprises the current form model and current form filling data;
the receiving element module is used for receiving a next form element fed back by the server side, wherein the next form element is determined by the current form model contained in the form acquisition request and a callback element contained in current form code data determined by current form filling data;
the first assembly module is used for assembling the current form model and the next form unit element to generate an updated form model, and the integrity of the updated form model is higher than that of the current form model;
And the acquisition request module, the receiving element module and the first assembly module repeatedly execute corresponding actions until a complete form model is generated.
13. A form generation system, comprising a server and a client, wherein:
The server side is used for executing and receiving a form acquisition request sent by the client side, wherein the form acquisition request is triggered based on a current form model, and the current form model is generated based on current form element assembly; determining current form code data according to the current form model and current form filling data contained in the form acquisition request, wherein the current form filling data comprises filling data corresponding to callback elements in the current form model; determining a next form element according to the callback element contained in the current form code data; the next form element is sent to the client so that the client assembles the current form model and the next form element to generate an updated form model, and the integrity of the updated form model is higher than that of the current form model; repeating the steps until the client generates a complete form model;
The client is used for executing and acquiring a form acquisition request triggered based on a current form model, and sending the form acquisition request to the server, wherein the form acquisition request comprises the current form model and current form filling data; receiving a next form element fed back by the server, wherein the next form element is determined by the callback element contained in the current form model contained in the form acquisition request and the current form code data determined by the current form filling data; assembling the current form model and the next form unit element to generate an updated form model, wherein the integrity of the updated form model is higher than that of the current form model; and repeatedly executing the steps until a complete form model is generated.
14. An electronic device, the device comprising:
one or more processors;
A memory for storing one or more programs;
The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the form generation method of any of claims 1-10.
15. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the form generating method according to any of claims 1-10.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110374103.4A CN112989770B (en) | 2021-04-07 | 2021-04-07 | Form generation method, device and system, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110374103.4A CN112989770B (en) | 2021-04-07 | 2021-04-07 | Form generation method, device and system, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112989770A CN112989770A (en) | 2021-06-18 |
CN112989770B true CN112989770B (en) | 2024-05-17 |
Family
ID=76339428
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110374103.4A Active CN112989770B (en) | 2021-04-07 | 2021-04-07 | Form generation method, device and system, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112989770B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102201009A (en) * | 2011-06-21 | 2011-09-28 | 深圳市凯立德科技股份有限公司 | Form generating method and device |
CN102289428A (en) * | 2010-06-18 | 2011-12-21 | 上海络杰软件有限公司 | Method and device for generating forms in bulk |
CN105573765A (en) * | 2015-12-29 | 2016-05-11 | 武汉传神信息技术有限公司 | Implementation method for dynamic form, client and server |
CN110472207A (en) * | 2018-05-10 | 2019-11-19 | 北京京东尚科信息技术有限公司 | List generation method and device |
CN110717320A (en) * | 2019-10-11 | 2020-01-21 | 上海管和信息科技有限公司 | Form/report designer and method suitable for multiple platforms and information management system |
CN110765746A (en) * | 2019-10-15 | 2020-02-07 | 支付宝(杭州)信息技术有限公司 | Automatic form generation method and system based on event agent |
EP3639129A1 (en) * | 2017-06-15 | 2020-04-22 | HSBC Group Management Services Limited | System for dynamic user interface generation |
CN111124394A (en) * | 2019-11-26 | 2020-05-08 | 泰康保险集团股份有限公司 | Form configuration method and device based on metadata, equipment and medium |
-
2021
- 2021-04-07 CN CN202110374103.4A patent/CN112989770B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102289428A (en) * | 2010-06-18 | 2011-12-21 | 上海络杰软件有限公司 | Method and device for generating forms in bulk |
CN102201009A (en) * | 2011-06-21 | 2011-09-28 | 深圳市凯立德科技股份有限公司 | Form generating method and device |
CN105573765A (en) * | 2015-12-29 | 2016-05-11 | 武汉传神信息技术有限公司 | Implementation method for dynamic form, client and server |
EP3639129A1 (en) * | 2017-06-15 | 2020-04-22 | HSBC Group Management Services Limited | System for dynamic user interface generation |
CN110472207A (en) * | 2018-05-10 | 2019-11-19 | 北京京东尚科信息技术有限公司 | List generation method and device |
CN110717320A (en) * | 2019-10-11 | 2020-01-21 | 上海管和信息科技有限公司 | Form/report designer and method suitable for multiple platforms and information management system |
CN110765746A (en) * | 2019-10-15 | 2020-02-07 | 支付宝(杭州)信息技术有限公司 | Automatic form generation method and system based on event agent |
CN111124394A (en) * | 2019-11-26 | 2020-05-08 | 泰康保险集团股份有限公司 | Form configuration method and device based on metadata, equipment and medium |
Also Published As
Publication number | Publication date |
---|---|
CN112989770A (en) | 2021-06-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110088751B (en) | Search results integrated with interactive dialog service interface | |
US20140059516A1 (en) | Gateway consumption framework | |
CN113791765B (en) | Resource arrangement method, device and equipment of cloud service and storage medium | |
CN113448562B (en) | Automatic logic code generation method and device and electronic equipment | |
US20150180911A1 (en) | Feedback channel for feedback from software | |
CN112558967A (en) | Page automatic generation method and device, electronic equipment and storage medium | |
CN112905262A (en) | Configuration method and device of aerospace measurement and control system | |
CN114282129A (en) | Information system page generation method, system, electronic equipment and storage medium | |
CN113988795A (en) | Task flow processing method, device, equipment, storage medium and program product | |
Muslim et al. | A modular and extensible framework for open learning analytics | |
CN111914528A (en) | Content editing method, editor generation method, device, equipment and medium | |
CN111061522A (en) | Method, device, equipment and storage medium for generating front-end card assembly based on back end | |
CN113220381A (en) | Click data display method and device | |
CN118296116A (en) | Method and device for constructing data analysis agent | |
CN117873486A (en) | Front-end and back-end code automatic generation method, device, equipment and storage medium | |
CN113822033A (en) | Report generation method, device, equipment and storage medium | |
CN112989770B (en) | Form generation method, device and system, electronic equipment and storage medium | |
CN116974929A (en) | Automatic test tool construction method, automatic test method and related equipment thereof | |
CN111598707A (en) | Page generation method and electronic equipment | |
CN115658063A (en) | Page information generation method, device, equipment and storage medium | |
CN111694932A (en) | Conversation method and device | |
CN115098530A (en) | Data acquisition method and device | |
CN115170695A (en) | Method and device for generating chart picture, electronic equipment and storage medium | |
US20220318192A1 (en) | Method and apparatus for displaying event information, storage medium and electronic device | |
US20160092824A1 (en) | System and method for case management information entry |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |