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 the embodiments of the present application, there is provided a method for generating an electronic form, which is applied to a service system, where the service system is configured with a form designer, and the method includes the following steps:
receiving the electronic form label and storing the electronic form label in a background database; the label comprises form text and form attributes;
acquiring first associated data of a control and the label, storing the first associated data to 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 the form attributes of the first electronic form, associating the form attribute values with the tags to form second associated data, and storing the second associated data in a background database;
and receiving an operation of triggering and displaying an electronic form on the service system, loading the second associated data from a background database, and displaying a second electronic form.
According to a second aspect of the embodiments of the present application, there is provided an apparatus for generating an electronic form, which is applied to a business system, where the business system is configured with a form designer, and the apparatus includes:
the tag acquisition module is used for receiving the tags of the electronic forms and storing the tags in a background database; the label comprises form text and form attributes;
the control association module is used for acquiring first association data of the control and the label, storing the first association data to 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 values configured on the form attributes of the first electronic form, associating the form attribute values with the tags to form second associated data, and storing the second associated data to a background database;
and the electronic form triggering module is used for receiving the operation of triggering and displaying the electronic form on the business system, loading the second associated data from the background database and displaying the second electronic form.
According to a third aspect of embodiments of the present application, there is provided a business 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 electronic form generation as defined in any of the above.
According to a fourth aspect of embodiments of the present application, there is provided an electronic apparatus, including: a business system; the business system is provided with a form designer, a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform a method of generating an electronic form as described in any of the above.
According to a fifth aspect of embodiments of the present application, there is provided a computer-readable storage medium, on which a computer program is stored, wherein the computer program is executed by a processor to implement the method for generating an electronic form according to any one of the above-mentioned items.
According to the electronic form manufacturing method and device, the electronic form label is set, the control is associated with the electronic form label, the electronic form control is configured, various electronic forms can be conveniently designed, design and development of users are facilitated, and the electronic form manufacturing efficiency is improved. Furthermore, when the electronic form page made through the form control needs to be adjusted, only the electronic form label needs to be updated, and page-by-page adjustment on the electronic form page is not needed, so that the maintenance of the electronic form 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 conveniently and quickly increased or decreased, and the adjustment of the attribute of the electronic form is realized.
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 practice, the invention is described in detail below with reference to the accompanying drawings.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
It should be understood that the embodiments described are only a few embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the application, as detailed in the appended claims.
In the description of the present application, it is to be understood that the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not necessarily used to describe a particular order or sequence, nor are they to be construed as indicating or implying relative importance. The specific meaning of the above terms in the present application can be understood by those of ordinary skill in the art as appropriate. 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 "when … …" or "in response to a determination". Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The application environment of the method for generating the electronic form 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, and the terminal may specifically include: the device comprises a processor, a memory, a communication module and a display screen, wherein the above components may be connected through a bus or in other ways. A business system runs in the electronic equipment, a form designer is arranged in the business system, and forms 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. A method for generating an electronic form according to an embodiment of the present application will be described in detail below with reference to fig. 1 to 4.
Please 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 method for generating the electronic form of the embodiment of the application is applied to a business system, the business system is provided with a form designer, in the embodiment of the application, the business system is an electronic government system, and the method comprises the following steps:
step S101: receiving the electronic form label and storing the electronic form label in a background database; the labels include form text and form attributes.
The tag of the exemplary embodiment of the application is an XML element, and by the tag, a dynamic web page development technology (JSP) web page can be simplified and easily maintained, and it can be conveniently realized that the same JSP file supports multiple language versions. The tags of the electronic forms of the embodiment of the application are elements for electronic government affairs, mainly refer to JSP tags, are similar to javaBean in functional logic, encapsulate Java code, are reusable component code, and allow developers to provide logic names for complex operations.
The labels include form text and form attributes. The form text is the name of the text in each column of the electronic form, such as the title, the file title, the issuing authority, etc. The form attributes comprise the length, width, height, line number, column number, color and the like of the electronic form, the attributes of the step are the properties of the electronic form, the specific attribute configuration is how many, namely the attribute value is, for example, how long the form is, what the color is, and the attribute configuration is determined in the subsequent steps by configuring the attribute value.
Step S102: and acquiring first associated data of the control and the label, storing the first associated data to 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 business system, and a user can select the controls to associate the labels according to needs.
Step S103: 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.
In the embodiment of the application, the first electronic form is an electronic form without any attribute value, and form designers are required to configure beautification according to needs 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 tags to form second associated data, and storing the second associated data to a background database.
Step S105: and the operation for triggering and displaying the electronic form on the business system is received, the second associated data is loaded from the 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 manufacturing method and device, the electronic form label is set, the control is associated with the electronic form label, the electronic form control is configured, various electronic forms can be conveniently designed, design and development of users are facilitated, and the electronic form manufacturing efficiency is improved. Furthermore, when the electronic form page made through the form control needs to be adjusted, only the electronic form label needs to be updated, and page-by-page adjustment on the electronic form page is not needed, so that the maintenance of the electronic form 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 conveniently and quickly increased or decreased, and the adjustment of the attribute of the electronic form is realized.
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: and 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 characters capable of being recognized by a machine, such as numbers, letters, symbols, and the like, and the tag is an XML element, so the tag name in the embodiment of the present application is case-sensitive. By configuring the control name as the same name as the label name, the control can be conveniently associated with the note.
Referring to fig. 2, further, the label further includes a control attribute; the detecting the control with the same label name and associating the control with the label to form the first associated data further comprises the following steps: receiving the configured control attribute value of the control, and if the 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 of the business system in the embodiment of the application also has control attributes correspondingly, and the control attributes at this time need to be configured with the control attributes in the label, that is, need to be configured according to whether the label attributes of the label exist, and if the label attributes are not configured, the correspondingly configured control attributes cannot be effective.
Referring to fig. 3 and 4, in an exemplary embodiment of the present application, the operation of 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 a trigger 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-associated interface calling configuration according to the background configuration data.
Please refer to fig. 5, which illustrates a schematic structural diagram of an apparatus for generating an electronic form according to an embodiment of the present application. Theapparatus 200 for generating an electronic form is applied to a business system, where the business system is configured with a form designer, and the apparatus includes:
thetag acquisition module 201 is used for receiving the tags of the electronic form and storing the tags in a background database; the label comprises form text and form attributes;
thecontrol association module 202 is configured to obtain first association data that associates a control with the tag, store the first association data in a background database, and display the control on the form designer;
thecontrol triggering module 203 is configured to receive an operation of triggering the control on the form designer, load the first associated data from the background database, and display a first electronic form on the form designer according to the form text;
the attributevalue 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.
And the electronicform triggering module 205 is configured to receive an operation of triggering and displaying an electronic form on the business 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 a second electronic form is displayed by triggering the form plug-in
According to the electronic form manufacturing method and device, the electronic form label is set, the control is associated with the electronic form label, the electronic form control is configured, various electronic forms can be conveniently designed, design and development of users are facilitated, and the electronic form manufacturing efficiency is improved. Furthermore, when the electronic form page made through the form control needs to be adjusted, only the electronic form label needs to be updated, and page-by-page adjustment on the electronic form page is not needed, so that the maintenance of the electronic form 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 conveniently and quickly increased or decreased, and the adjustment of the attribute of the electronic form is realized.
In an exemplary embodiment of the present application, the tag further comprises a tag name; thecontrol association module 202 includes an association detection module, configured to detect a control with the same label name, and associate the control with the label to form the first association data. By configuring the control name as the same name as the label name, the control can be conveniently associated with the note.
Further, the label also includes a control attribute; the association detection module is further configured to receive a configured control attribute value of the control, and if the 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 of the business system in the embodiment of the application also has control attributes correspondingly, and the control attributes at this time need to be configured with the control attributes in the label, that is, need to be configured according to whether the label attributes of the label exist, and if the label attributes are not configured, the correspondingly configured control attributes cannot be effective.
In an exemplary embodiment of the present application, the operation of 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 application, in order to display the first electronic form after receiving the trigger operation, 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 of the tag and display configuration data, and perform data filling and function-related interface calling configuration according to the background configuration data.
The present application further provides a business system, where the business system is configured with a form designer, including: a processor and a memory. The processor may be configured to invoke an application program of the method for generating an electronic form stored in the memory, and specifically perform the following operations: receiving the electronic form label and storing the electronic form label in a background database; the label comprises form text and form attributes; acquiring first associated data of a control and the label, storing the first associated data to 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 the form attributes of the first electronic form, associating the form attribute values with the tags to form second associated data, and storing the second associated data in a background database; and receiving an operation of triggering and displaying 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 view the electronic form.
According to the electronic form manufacturing method and device, the electronic form label is set, the control is associated with the electronic form label, the electronic form control is configured, various electronic forms can be conveniently designed, design and development of users are facilitated, and the electronic form manufacturing efficiency is improved. Furthermore, when the electronic form page made through the form control needs to be adjusted, only the electronic form label needs to be updated, and page-by-page adjustment on the electronic form page is not needed, so that the maintenance of the electronic form 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 conveniently and quickly increased or decreased, and the adjustment of the attribute of the electronic form is realized.
In an exemplary embodiment of the present application, the tag further comprises a tag name; the processor further specifically performs the following: and 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 characters capable of being recognized by a machine, such as numbers, letters, symbols, and the like, and the tag is an XML element, so the tag name in the embodiment of the present application is case-sensitive. By configuring the control name as the same name as the label name, the control can be conveniently associated with the note.
Further, the label also includes a control attribute; the processor further specifically performs the following: receiving the configured control attribute value of the control, and if the 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 of the business system in the embodiment of the application also has control attributes correspondingly, and the control attributes at this time need to be configured with the control attributes in the label, that is, need to be configured according to whether the label attributes of the label exist, and if the label attributes are not configured, the correspondingly configured control attributes cannot be effective.
In an exemplary embodiment of the present application, the operation of 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 a trigger 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-associated interface calling configuration according to the background configuration data.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the methods of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 6, the present application further provides anelectronic device 300, where theelectronic device 300 may be any smart terminal including a touch display screen, for example, a computer, a mobile phone, a tablet computer, an interactive smart tablet, and the like. Theelectronic device 300 may include: at least oneprocessor 301, at least onememory 302, at least onenetwork interface 303, auser interface 304, and at least onecommunication bus 305.
Theuser 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 terminal and a camera terminal. Optionally, theuser interface 304 may also include a standard wired interface, a wireless interface.
Thenetwork interface 303 may optionally include a standard wired interface or a wireless interface (e.g., WI-FI interface).
Wherein thecommunication bus 305 is used to enable connection communication between these components.
Theprocessor 301 may include one or more processing cores. Theprocessor 301, using various interfaces and lines to connect various parts throughout theelectronic device 300, performs various functions of theelectronic device 300 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in thememory 302, and calling data stored in thememory 302. Optionally, theprocessor 301 may be implemented in at least one hardware form of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). Theprocessor 301 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, 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 is understood that the modem may not be integrated into theprocessor 301, but may be implemented by a single chip.
TheMemory 302 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, thememory 302 includes a non-transitory computer-readable medium. Thememory 302 may be used to store instructions, programs, code, sets of codes, or sets of instructions. Thememory 302 may include a program storage area and a data storage area, wherein the program storage 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 method embodiments, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. Thememory 302 may alternatively be at least one storage device located remotely from theprocessor 301. As shown in fig. 6, thememory 302, which is a kind of computer storage medium, may include an operating system, a network communication module, and a user therein.
Theprocessor 301 of the present application may be configured to execute any one of the above-described methods for generating an electronic form by an application program calling the method for generating an electronic form stored in thememory 302.
The present application further provides a computer-readable storage medium, on which a computer program is stored, where the instructions are suitable for being loaded by a processor and executing the method steps of the foregoing illustrated embodiments, and specific execution processes may refer to specific descriptions shown in embodiment 1, which are not described herein again. The device where the storage medium is located can be an electronic device such as a personal computer, a notebook computer, a smart phone and a tablet computer.
For the apparatus embodiment, since it basically corresponds to the method embodiment, reference may be made to the partial description of the method embodiment for relevant points. The above-described device embodiments are merely illustrative, wherein the components described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
As will be appreciated by one skilled in the art, 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 flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams 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 block or blocks and/or flowchart 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 flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The 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 computer storage media 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 that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium, such as a modulated data signal and a carrier wave
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 an … …" does not exclude the presence of other identical elements in the process, method, article, or apparatus that comprises the element.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.