Disclosure of Invention
In order to overcome the problems in the related art, the application provides a method, a device, a system, equipment and a medium for generating an electronic form, which have the advantages of convenient design and development and improved manufacturing efficiency of the electronic form.
According to a first aspect of embodiments of the present application, there is provided a method for generating an electronic form, applied to a service system configured with a form designer, the method including the steps of:
receiving an electronic form label and storing the electronic form label in a background database; the label comprises a form text and a form attribute; the form text is the text name of each column of the electronic form;
acquiring first association data of a control and the label, storing the first association data into a background database, and displaying the control on the form designer;
receiving an operation of triggering the control on the form designer, loading the first associated data from the background database, and displaying a first electronic form on the form designer according to the form text;
receiving form attribute values configured on form attributes of the first electronic form, associating the form attribute values with the labels to form second associated data, and storing the second associated data in a background database;
receiving an operation of triggering display of an electronic form on the service system, loading the second associated data from a background database, and displaying the second electronic form; the service system is provided with a corresponding service function interface, the service system is provided with a corresponding form plug-in, and the second electronic form is displayed by triggering the form plug-in.
According to a second aspect of embodiments of the present application, there is provided an electronic form generating apparatus applied to a service system configured with a form designer, the apparatus including:
the label acquisition module is used for receiving the electronic form label and storing the electronic form label in the background database; the label comprises a form text and a form attribute; the form text is the text name of each column of the electronic form;
the control association module is used for acquiring first association data of the control and the label, storing the first association data into a background database and displaying the control on the form designer;
the control triggering module is used for receiving the operation of triggering the control on the form designer, loading the first associated data from the background database and displaying a first electronic form on the form designer according to the form text;
the attribute value association module is used for receiving the form attribute value configured on the form attribute of the first electronic form, associating the form attribute value with the label to form second association data, and storing the second association data into a background database;
the electronic form triggering module is used for receiving the operation of triggering the display of the electronic form on the service system, loading the second associated data from the background database and displaying the second electronic form; the service system is provided with a corresponding service function interface, the service system is provided with a corresponding form plug-in, and the second electronic form is displayed by triggering the form plug-in.
According to a third aspect of the embodiments of the present application, there is provided a service system configured with a form designer, including: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method of generating an electronic form as claimed in any one of the preceding claims.
According to a fourth aspect of embodiments of the present application, there is provided an electronic device, including: a business system; the business system is configured with a form designer, a processor and a memory; wherein the memory stores a computer program adapted to be loaded and executed by the processor to implement a method of generating an electronic form as described in any one of the preceding claims.
According to a fifth aspect of embodiments of the present application, there is provided a computer-readable storage medium having stored thereon a computer program, characterized in that the computer program is executed by a processor to implement a method for generating an electronic form as described in any one of the above.
According to the electronic form control method and device, the electronic form control is configured by setting the label of the electronic form and associating the control with the label of the electronic form, so that various electronic forms can be conveniently designed, the design and development of a user are facilitated, and the manufacturing efficiency of the electronic form is improved. Furthermore, when the electronic form pages manufactured through the form controls need to be adjusted, only the electronic form labels need to be updated, the electronic form pages do not need to be adjusted page by page, and the electronic form maintenance is convenient. And the attribute of the electronic form is increased or decreased on the label of the electronic form, so that the attribute of the electronic form is increased or decreased conveniently and rapidly, and the attribute of the electronic form is adjusted.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
For a better understanding and implementation, the present invention is described in detail below with reference to the drawings.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, of the embodiments of the present application. All other embodiments, based on the embodiments herein, which would be apparent to one of ordinary skill in the art without making any inventive effort, are intended to be within the scope of the present application.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
In the description of this application, it should be understood that the terms "first," "second," "third," and the like are used merely to distinguish between similar objects and are not necessarily used to describe a particular order or sequence, nor should they be construed to indicate or imply relative importance. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art as the case may be. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. The word "if"/"if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination". Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
The application environment of the electronic form generation method disclosed by the embodiment of the application comprises electronic equipment; the electronic device may be a terminal of an IOS, android, windows or other system, where the terminal may specifically include: the processor, the memory, the communication module and the display screen may be connected through a bus, or may be connected through other manners, which are not limited to the specific manner of connection. The electronic equipment is internally provided with a service system, and the service system is internally provided with a form designer, so that the form can be conveniently designed and displayed through the form designer.
The embodiment of the application discloses a method for generating an electronic form, which is applied to electronic equipment. The following describes in detail a method for generating an electronic form according to an embodiment of the present application with reference to fig. 1 to 4.
Refer to fig. 1, which is a flowchart illustrating a method for generating an electronic form according to an embodiment of the present application. The electronic form generating method of the embodiment of the application is applied to a service system, the service system is configured with a form designer, and in the embodiment of the application, the service system is an electronic government system, and the method comprises the following steps:
step S101: receiving an electronic form label and storing the electronic form label in a background database; the tag includes form text and form attributes.
The tag of the exemplary embodiment of the application is an XML element, and through the tag, a dynamic webpage development technology (JSP) webpage is simplified and easy to maintain, and the same JSP file can be conveniently realized to support multiple language versions. The tag of the electronic form in the embodiment of the application is an element for electronic government affairs, mainly refers to a JSP tag, is similar to a Java bean in function logic, encapsulates Java code, is reusable component code, and allows a developer to provide a logic name for complex operations.
The tag includes form text and form attributes. The form text is the text name of each column of the electronic form, such as title, file title, messaging authority, etc. The form attributes include length, width, height, number of lines, number of columns, color and the like of the electronic form, the attributes of this step are the properties of the electronic form, and how many specific attributes are configured, i.e. how many attribute values are, and what is the color, and the configuration of the attribute values in the subsequent steps determines the attributes.
Step S102: and acquiring first association data of the control and the label, storing the first association data into a background database, and displaying the control on the form designer.
In the embodiment of the application, a plurality of reserved controls are arranged in a background tool of the service system, and a user can select the controls to associate the labels according to the needs.
Step S103: and receiving the operation of triggering the control on the form designer, loading the first associated data from the background database, and displaying a first electronic form on the form designer according to the form text.
In this embodiment of the present application, the first electronic form is an electronic form that is not configured with any attribute value, and a form designer is required to configure and beautify as required to obtain a required electronic form.
Step S104: and receiving form attribute values configured on the form attributes of the first electronic form, associating the form attribute values with the labels to form second associated data, and storing the second associated data in a background database.
Step S105: and the operation for triggering the display of the electronic form on the service system is received, the second associated data is loaded from a background database, and the second electronic form is displayed.
In the embodiment of the application, a corresponding service function interface can be configured on the service system, then a corresponding form plug-in is configured on the service system, and the second electronic form is displayed by triggering the form plug-in.
According to the electronic form control method and device, the electronic form control is configured by setting the label of the electronic form and associating the control with the label of the electronic form, so that various electronic forms can be conveniently designed, the design and development of a user are facilitated, and the manufacturing efficiency of the electronic form is improved. Furthermore, when the electronic form pages manufactured through the form controls need to be adjusted, only the electronic form labels need to be updated, the electronic form pages do not need to be adjusted page by page, and the electronic form maintenance is convenient. And the attribute of the electronic form is increased or decreased on the label of the electronic form, so that the attribute of the electronic form is increased or decreased conveniently and rapidly, and the attribute of the electronic form is adjusted.
Referring to fig. 2, in an exemplary embodiment of the present application, the tag further includes a tag name; the step of obtaining first association data of the control and the label comprises the following steps: detecting a control with the same name as the label, and associating the control with the label to form the first association data. The tag name may be any text that can be recognized by a machine, such as a number, a letter, a symbol, etc., and since the tag is an XML element, the tag name in the embodiment of the present application is case-sensitive. By configuring the control name to be the same as the tag name, convenient association of the control with the note is achieved.
Referring to fig. 2, further, the label further includes a control attribute; the step of detecting the control with the same name as the label, and associating the control with the label to form the first association data, further comprises the steps of: receiving a configured control attribute value of the control, and if a control attribute corresponding to the control attribute value exists in the control attribute of the label, displaying a display effect corresponding to the control attribute value when the second electronic form is displayed; and if the control attribute corresponding to the control attribute value does not exist in the control attribute of the label, not displaying the display effect corresponding to the control attribute value when the second electronic form is displayed. The control attribute is also corresponding to the control of the service system in the embodiment of the application, and the control attribute at the moment needs to be configured with the control attribute in the label, namely whether the label attribute of the label needs to be configured or not, if the label attribute is not configured, the correspondingly configured control attribute cannot be effective.
Referring to fig. 3 and 4, in an exemplary embodiment of the present application, the triggering the control includes: and dragging the control to a form page of the form designer. By dragging the control, a user can conveniently design the electronic form on the form page of the form designer.
In an exemplary embodiment of the present application, to enable the first electronic form to be displayed after receiving the triggering operation, the method further includes the steps of: and receiving background configuration data such as interface data and display configuration data of the tag, and performing data filling and function-related interface calling configuration according to the background configuration data.
Referring to fig. 5, a schematic structural diagram of an electronic form generating apparatus provided in an embodiment of the present application is shown. The electronic form generating apparatus 200 is applied to a service system, where the service system is configured with a form designer, and the apparatus includes:
the tag acquisition module 201 is configured to receive an electronic form tag and store the electronic form tag in a background database; the label comprises a form text and a form attribute;
the control association module 202 is configured to obtain first association data associated with the label by a control, store the first association data in a background database, and display the control on the form designer;
the control triggering module 203 is configured to receive an operation of triggering the control on the form designer, load the first association data from the background database, and display a first electronic form on the form designer according to the form text;
the attribute value association module 204 is configured to receive a form attribute value configured on a form attribute of the first electronic form, associate the form attribute value with the tag to form second association data, and store the second association data in a background database.
The electronic form triggering module 205 is configured to receive an operation of triggering display of an electronic form on the service system, load the second associated data from the background database, and display a second electronic form. In the embodiment of the application, a corresponding service function interface can be configured on the service system, then a corresponding form plug-in is configured on the service system, and the form plug-in is triggered to display a second electronic form
According to the electronic form control method and device, the electronic form control is configured by setting the label of the electronic form and associating the control with the label of the electronic form, so that various electronic forms can be conveniently designed, the design and development of a user are facilitated, and the manufacturing efficiency of the electronic form is improved. Furthermore, when the electronic form pages manufactured through the form controls need to be adjusted, only the electronic form labels need to be updated, the electronic form pages do not need to be adjusted page by page, and the electronic form maintenance is convenient. And the attribute of the electronic form is increased or decreased on the label of the electronic form, so that the attribute of the electronic form is increased or decreased conveniently and rapidly, and the attribute of the electronic form is adjusted.
In an exemplary embodiment of the present application, the tag further includes a tag name; the control association module 202 includes an association detection module, configured to detect a control that is the same as the tag name, and associate the control with the tag to form the first association data. By configuring the control name to be the same as the tag name, convenient association of the control with the note is achieved.
Further, the label also comprises a control attribute; the association detection module is further configured to receive a configured control attribute value of the control, and if a control attribute corresponding to the control attribute value exists in the control attribute of the label, display a display effect corresponding to the control attribute value when the second electronic form is displayed; and if the control attribute corresponding to the control attribute value does not exist in the control attribute of the label, not displaying the display effect corresponding to the control attribute value when the second electronic form is displayed. The control attribute is also corresponding to the control of the service system in the embodiment of the application, and the control attribute at the moment needs to be configured with the control attribute in the label, namely whether the label attribute of the label needs to be configured or not, if the label attribute is not configured, the correspondingly configured control attribute cannot be effective.
In an exemplary embodiment of the present application, the triggering the control includes: and dragging the control to a form page of the form designer. By dragging the control, a user can conveniently design the electronic form on the form page of the form designer.
In an exemplary embodiment of the present application, in order to enable the first electronic form to be displayed after the triggering operation is received, the electronic form generating device further includes a data configuration module (not shown in the figure), where the data configuration module is configured to receive background configuration data such as interface data and display configuration data of the tag, and perform data filling and function-related interface calling configuration according to the background configuration data.
The present application also provides a business system configured with a form designer, comprising: a processor and a memory. The processor may be used for an application program calling a method for generating an electronic form stored in the memory, and specifically performs the following operations: receiving an electronic form label and storing the electronic form label in a background database; the label comprises a form text and a form attribute; acquiring first association data of a control and the label, storing the first association data into a background database, and displaying the control on the form designer; receiving an operation of triggering the control on the form designer, loading the first associated data from the background database, and displaying a first electronic form on the form designer according to the form text; receiving form attribute values configured on form attributes of the first electronic form, associating the form attribute values with the labels to form second associated data, and storing the second associated data in a background database; and receiving an operation of triggering the display of the electronic form on the service system, loading the second associated data from the background database, and displaying the second electronic form so as to facilitate the user to check the electronic form.
According to the electronic form control method and device, the electronic form control is configured by setting the label of the electronic form and associating the control with the label of the electronic form, so that various electronic forms can be conveniently designed, the design and development of a user are facilitated, and the manufacturing efficiency of the electronic form is improved. Furthermore, when the electronic form pages manufactured through the form controls need to be adjusted, only the electronic form labels need to be updated, the electronic form pages do not need to be adjusted page by page, and the electronic form maintenance is convenient. And the attribute of the electronic form is increased or decreased on the label of the electronic form, so that the attribute of the electronic form is increased or decreased conveniently and rapidly, and the attribute of the electronic form is adjusted.
In an exemplary embodiment of the present application, the tag further includes a tag name; the processor also specifically performs the following operations: detecting a control with the same name as the label, and associating the control with the label to form the first association data. The tag name may be any text that can be recognized by a machine, such as a number, a letter, a symbol, etc., and since the tag is an XML element, the tag name in the embodiment of the present application is case-sensitive. By configuring the control name to be the same as the tag name, convenient association of the control with the note is achieved.
Further, the label also comprises a control attribute; the processor also specifically performs the following operations: receiving a configured control attribute value of the control, and if a control attribute corresponding to the control attribute value exists in the control attribute of the label, displaying a display effect corresponding to the control attribute value when the second electronic form is displayed; and if the control attribute corresponding to the control attribute value does not exist in the control attribute of the label, not displaying the display effect corresponding to the control attribute value when the second electronic form is displayed. The control attribute is also corresponding to the control of the service system in the embodiment of the application, and the control attribute at the moment needs to be configured with the control attribute in the label, namely whether the label attribute of the label needs to be configured or not, if the label attribute is not configured, the correspondingly configured control attribute cannot be effective.
In an exemplary embodiment of the present application, the triggering the control includes: and dragging the control to a form page of the form designer. By dragging the control, a user can conveniently design the electronic form on the form page of the form designer.
In an exemplary embodiment of the present application, to enable the first electronic form to be displayed after receiving the triggering operation, the processor further specifically performs the following operations: and receiving background configuration data such as interface data and display configuration data of the tag, and performing data filling and function-related interface calling configuration according to the background configuration data.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the apparatus embodiments of the present application, please refer to the method embodiments of the present application.
Referring to fig. 6, the present application further provides an electronic device 300, where the electronic device 300 may be any smart terminal including a touch display screen, and may, for example, be a computer, a mobile phone, a tablet computer, an interactive smart tablet, etc. The electronic device 300 may include: at least one processor 301, at least one memory 302, at least one network interface 303, a user interface 304, and at least one communication bus 305.
The user interface 304 is mainly used for providing an input interface for a user, and acquiring data input by the user, and may include a display end and a camera end. Optionally, the user interface 304 may also include a standard wired interface, a wireless interface.
The network interface 303 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
Wherein the communication bus 305 is used to enable connection communications between these components.
Wherein the processor 301 may comprise one or more processing cores. The processor 301 utilizes various interfaces and lines to connect various portions of the overall electronic device 300, perform various functions of the electronic device 300, and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 302, and invoking data stored in the memory 302. Alternatively, the processor 301 may be implemented in hardware in at least one of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), programmable logic array (Programmable Logic Array, PLA). The processor 301 may integrate one or a combination of several of a central processing unit (Central Processing Unit, CPU), an image processor (Graphics Processing Unit, GPU), and a modem etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing the content required to be displayed by the display layer; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 301 and may be implemented by a single chip.
The Memory 302 may include a random access Memory (Random Access Memory, RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 302 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 302 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 302 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the above-described various method embodiments, etc.; the storage data area may store data or the like referred to in the above respective method embodiments. The memory 302 may also optionally be at least one storage device located remotely from the aforementioned processor 301. As shown in fig. 6, an operating system, a network communication module, a user may be included in the memory 302 as one type of computer storage medium.
The processor 301 of the present application may be configured to execute any of the above-described methods for generating an electronic form by an application program that invokes the method for generating an electronic form stored in the memory 302.
The present application further provides a computer readable storage medium, on which a computer program is stored, where the instructions are adapted to be loaded by a processor and execute the method steps of the above-described embodiment, and the specific execution process may refer to the specific description shown in embodiment 1, which is not repeated herein. The storage medium can be an electronic device such as a personal computer, a notebook computer, a smart phone, a tablet personal computer and the like.
For the device embodiments, reference is made to the description of the method embodiments for the relevant points, since they essentially correspond to the method embodiments. The above-described apparatus embodiments are merely illustrative, wherein the components illustrated as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purposes of the present application. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (media), such as modulated data signals and carrier waves
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
The foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and changes may be made to the present application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc. which are within the spirit and principles of the present application are intended to be included within the scope of the claims of the present application.