CN114385170A - Form generation method, device, equipment, medium and program product - Google Patents

Form generation method, device, equipment, medium and program product Download PDF

Info

Publication number
CN114385170A
CN114385170A CN202210046197.7A CN202210046197A CN114385170A CN 114385170 A CN114385170 A CN 114385170A CN 202210046197 A CN202210046197 A CN 202210046197A CN 114385170 A CN114385170 A CN 114385170A
Authority
CN
China
Prior art keywords
target page
service
business
implementation
user
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.)
Pending
Application number
CN202210046197.7A
Other languages
Chinese (zh)
Inventor
张爱
岳飞虎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202210046197.7A priority Critical patent/CN114385170A/en
Publication of CN114385170A publication Critical patent/CN114385170A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Abstract

The disclosure provides a form generation method, which can be applied to the technical field of computers. The method comprises the following steps: the method comprises the steps of obtaining all form elements contained in each business type and implementation controls in all the form elements, respectively laying out the implementation controls of all the form elements contained in the business type on a target page aiming at each business type, responding to the operation of triggering and generating a business form based on current business requirements of a user, analyzing the current business type corresponding to the current business requirements, and loading the implementation controls of the form elements corresponding to the current business types on the target page so as to generate the business form corresponding to the current business requirements. The present disclosure also provides a form generation apparatus, device, storage medium and program product.

Description

Form generation method, device, equipment, medium and program product
Technical Field
The present disclosure relates to the field of computers, and in particular, to a form generation method, apparatus, device, medium, and program product.
Background
The form is the most main scene for a user to input information, and each information modification and input must input the information into the system through the form of the page.
And when the input needs to be changed, the form needs to be redeveloped by front-end and back-end engineers. For projects with complex business scenes and frequent changes, the development and maintenance of the forms bring heavy cost.
Disclosure of Invention
In view of the foregoing, the present disclosure provides a form generation method, apparatus, device, medium, and program product.
According to a first aspect of the present disclosure, there is provided a form generation method, including:
acquiring all form elements contained in each service type and implementation controls in all the form elements;
for each service type, respectively laying out implementation controls of all form elements contained in the service type on a target page;
responding to an operation of a user for generating a business form based on current business requirement triggering, and analyzing a current business type corresponding to the current business requirement and a form element corresponding to the current business requirement;
and loading the implementation control of the corresponding table element in the current business type on the target page to generate the business table corresponding to the current business requirement.
In an embodiment of the present disclosure, the implementing control for respectively laying out all form elements included in the service type on the target page includes:
all table elements contained in the service type are displayed to the user;
receiving layout information input by the user, wherein the layout information is the layout information set on the target page by the user based on all form elements contained in the service type;
and based on the layout information, arranging the implementation controls of all form elements contained in the service type on a target page.
In an embodiment of the present disclosure, the loading, on the target page, the implementation control of the corresponding table element in the current service type to generate the service form corresponding to the current service requirement includes:
acquiring form elements corresponding to the current service requirements and form description data of the form elements, wherein the form description data is used for describing attribute information of the form elements;
configuring the realization control of the form element according to the form description data to obtain a configured realization control;
and loading the configured implementation control on the target page.
In an embodiment of the present disclosure, the loading the configured implementation control on the target page includes:
and loading the configured implementation control on the target page by using a dynamic form control.
In an embodiment of the present disclosure, the obtaining of the form description data corresponding to the service requirement includes:
and obtaining form description data corresponding to the service requirement by utilizing an ajax technology.
In an embodiment of the present disclosure, the method further includes:
acquiring service data input by a user, wherein the service data is input based on a service form displayed on the target page;
and storing the service data and the form items corresponding to the service data according to a key value pair form.
A second aspect of the present disclosure provides a form generation apparatus, including:
the acquisition module is used for acquiring all the form elements contained in each service type and the implementation controls in all the form elements;
the layout module is used for respectively laying out the implementation controls of all the table elements contained in the business types on the target page aiming at each business type;
the analysis module is used for responding to the operation that a user triggers and generates a business form based on the current business requirement and analyzing the current business type corresponding to the current business requirement;
and the loading module is used for loading the implementation control of the corresponding table element in the current business type on the target page so as to generate the business table corresponding to the current business requirement.
In an embodiment of the present disclosure, the layout module includes:
the display submodule is used for displaying all table elements contained in the service type to the user;
a receiving submodule, configured to receive layout information input by the user, where the layout information is layout information set by the user on the target page based on all form elements included in the service type;
and the layout submodule is used for laying out the implementation controls of all the table elements contained in the business type on a target page based on the layout information.
In an embodiment of the present disclosure, the loading module includes:
the obtaining submodule is used for obtaining the form element corresponding to the current service requirement and the form description data of the form element, and the form description data is used for describing the attribute information of the form element;
the configuration submodule is used for configuring the realization control of the form element according to the form description data to obtain the configured realization control;
and the loading sub-module is used for loading the configured implementation control on the target page. In an embodiment of the present disclosure, the loading sub-module is specifically configured to load the configured implementation control on the target page by using a dynamic form control.
In an embodiment of the present disclosure, the obtaining sub-module is specifically configured to obtain, by using ajax technology, form description data corresponding to the service requirement.
In an embodiment of the present disclosure, the apparatus further includes:
the service data acquisition module is used for acquiring service data input by a user, and the service data is input based on a service form displayed on the target page;
and the storage module is used for storing the service data and the form items corresponding to the service data according to the key value pair form.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the above form generation method.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described form generation method.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above form generation method.
According to the embodiment of the disclosure, all form elements included in each service type and implementation controls in all form elements are acquired, the implementation controls of all form elements included in the service type are respectively distributed on a target page aiming at each service type, an operation of generating a service form is triggered in response to a current service requirement of a user, the current service type corresponding to the current service requirement is analyzed, and the implementation controls of the form elements corresponding to the current service type are loaded on the target page so as to generate the service form corresponding to the current service requirement. And designing a business form based on the business type, and loading an implementation control of a form element corresponding to the current business type on the target page according to the current business requirement when the form needs to be generated.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a form generation method, apparatus, device, medium and program product according to embodiments of the disclosure;
FIG. 2 schematically illustrates a flow diagram of a form generation method according to an embodiment of the disclosure;
FIG. 3 schematically illustrates a flow diagram of a form generation method according to an embodiment of the disclosure;
FIG. 4 schematically shows a flow diagram of a form generation method according to an embodiment of the disclosure.
FIG. 5 is a block diagram schematically illustrating the structure of a form generation apparatus according to an embodiment of the present disclosure; and
fig. 6 schematically shows a block diagram of an electronic device adapted to implement a form generation method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
The embodiment of the disclosure provides a form generation method, which includes: the method comprises the steps of obtaining all form elements contained in each business type and implementation controls in all the form elements, respectively laying out the implementation controls of all the form elements contained in the business type on a target page aiming at each business type, responding to the operation of triggering and generating a business form based on current business requirements of a user, analyzing the current business type corresponding to the current business requirements, and loading the implementation controls of the form elements corresponding to the current business types on the target page so as to generate the business form corresponding to the current business requirements. And designing a business form based on the business type, and loading an implementation control of a form element corresponding to the current business type on the target page according to the current business requirement when the form needs to be generated.
Fig. 1 schematically illustrates an application scenario diagram of a form generation method, apparatus, device, medium, and program product according to embodiments of the present disclosure.
As shown in fig. 1, the application scenario 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting information entry on a webpage, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for websites browsed by users using the terminal devices 101, 102, 103. The background management server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a webpage, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the form generation method provided by the embodiment of the present disclosure may be generally executed by the server 105. Accordingly, the form generation apparatus provided by the embodiments of the present disclosure may be generally disposed in the server 105. The form generation method provided by the embodiment of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the terminal devices 101, 102, 103 and/or the server 105. Accordingly, the form generation apparatus provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the server 105 and capable of communicating with the terminal devices 101, 102, 103 and/or the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The form generation method of the disclosed embodiment will be described in detail below with fig. 2 to 4 based on the scenario described in fig. 1.
FIG. 2 schematically shows a flow diagram of a form generation method according to an embodiment of the disclosure.
As shown in fig. 2, the form generation method of this embodiment includes operations S210 to S230, and the form generation method may be performed by a terminal.
In operation S210, all form elements included in each service type and the implementation controls in all form elements are obtained.
In operation S220, for each service type, the implementation controls of all form elements included in the service type are respectively laid out on the target page.
In operation S230, in response to an operation that the user triggers generation of a service form based on the current service requirement, the current service type corresponding to the current service requirement is analyzed.
In operation S240, the implementation control of the corresponding form element in the current service type is loaded on the target page to generate the service form corresponding to the current service requirement.
In the present disclosure, the service type may be set by default of the system, or may be set according to the user requirement, for example, the service type may be roughly divided into a contract form, an acceptance form, a transfer form, and the like, or may be finely divided into a contract review form, a contract entry form, an early-stage acceptance form, a medium-stage acceptance form, a late-stage acceptance form, and the like. The present disclosure is not limited thereto, and those skilled in the art can set the setting arbitrarily, and the form elements of different types of business forms may be the same or different.
In the present disclosure, the target page is a form page that is presented to the user and requires the user to input business data. All table elements included in a general service type include table elements such as a single line text box (input), a text search box (search), a multi-line text box (textarea), a filter box (select), a radio box (radio), and a check box (checkbox).
In this disclosure, for example, the service type a includes 5 table elements, which are table element a, table element b, table element c, table element d, and table element e, respectively, then implementation controls of the table element a, the table element b, the table element c, the table element d, and the table element e are laid out on the target page, and the service type corresponding to the current service requirement is service type a, and the table elements corresponding to the current service requirement are table element b, table element c, and table element e, then the implementation controls of the table element b, the table element c, and the table element e in the current service type are loaded on the target page, and the implementation controls of the table element a and the table element d are not loaded, so as to generate the service form corresponding to the current service requirement. For another example, the service type B includes four table elements, which are table element a, table element B, table element f, and table element g, respectively, then implementation controls of the table element a, the table element B, the table element f, and the table element g are laid out on the target page, and the service type corresponding to the current service requirement is service type B, and the table elements corresponding to the current service requirement are table element a, table element B, and table element f, then the implementation controls of the table element a, the table element B, and the table element f in the current service type are loaded on the target page, and the implementation controls of the table element g are not loaded, so as to generate the service form corresponding to the current service requirement.
In an embodiment of the present disclosure, the operation S220 respectively lays out implementation controls of all form elements included in the service type on the target page, including: displaying all form elements contained in the business type to the user, receiving layout information input by the user, wherein the layout information is layout information set by the user on the target page based on all form elements contained in the business type, and arranging implementation controls of all form elements contained in the business type on the target page based on the layout information.
In addition to receiving the user-entered layout information, it is also possible in this disclosure to rely on the system to automatically generate layout information for all form elements on the target page.
In the present disclosure, the implementation control includes attribute information of an form element, and the attribute information of the form element includes a data type corresponding to the form element, whether the form element must be filled, a data length, a display order of the form element, and the like.
In the present disclosure, the manner of implementing the layout of the control is not limited, and for example, the layout may be performed by a general recursive manner, or may be performed by a grid manner.
In the present disclosure, different form elements may be available for different business needs. For example, for transfer service requirements, the service requirements may include that a payee account must be provided, that a transfer amount must be entered, that a debit card account must be provided, that remark information may be entered, and the like. Then, in the table element corresponding to the service requirement, a single line text box can be adopted for the account number of the payee and the transfer amount, a radio box can be adopted for the account number of the payment card, and a multi-line text box can be adopted for the remark information.
According to the embodiment of the disclosure, all form elements included in each service type and implementation controls in all form elements are acquired, the implementation controls of all form elements included in the service type are respectively distributed on a target page aiming at each service type, an operation of generating a service form is triggered in response to a current service requirement of a user, the current service type corresponding to the current service requirement is analyzed, and the implementation controls of the form elements corresponding to the current service type are loaded on the target page so as to generate the service form corresponding to the current service requirement. And designing a business form based on the business type, and loading an implementation control of a form element corresponding to the current business type on the target page according to the current business requirement when the form needs to be generated.
FIG. 3 schematically shows a flow diagram of a form generation method according to an embodiment of the disclosure.
As shown in fig. 3, the form generation method of this embodiment includes operations S210 to S240, where the operation S240 includes operations S310 to S320, and the form generation method may be performed by a terminal.
In operation S310, an form element corresponding to the service requirement and form description data of the form element are obtained.
In operation S320, configuring an implementation control of the form element according to the form description data to obtain a configured implementation control;
in operation S330, the configured implementation control is loaded on the target page.
In an embodiment of the present disclosure, a dynamic form control may be used to load an implementation control of a form element corresponding to the service requirement on the target page. The dynamic form control refers to a web page programming technology relative to the static form control, when a user accesses a target page, page codes are not changed, but dynamic loading can occur along with environment or database operation, and different display information is generated.
In the present disclosure, the form description data corresponding to the service requirement may be obtained from a database or a back end, where the form description data corresponding to the service requirement is stored in the database. And the form description data corresponding to the service requirement is used for describing the attribute information of the form element. The attribute information of the form element includes a data type corresponding to the form element, whether padding is necessary, a data length, a display order of the form element, and the like.
In an embodiment of the present disclosure, when obtaining the form description data corresponding to the service requirement from the back end, the form description data corresponding to the service requirement may be obtained by using ajax technology. By adopting the ajax technology, the target page can asynchronously interact with the back-end server.
In the present disclosure, for the description data of each form element, an implementation control for each form element is configured. And then, loading the realization control of the table element corresponding to the service requirement on the target page.
According to the embodiment of the present disclosure, all form elements included in each service type are obtained, and implementation controls in all form elements are respectively laid out on a target page for each service type, an operation of generating a service form is triggered in response to a user based on a current service requirement, a current service type corresponding to the current service requirement is analyzed, form elements corresponding to the current service requirement and form description data of the form elements are obtained, the form description data is used for describing attribute information of the form elements, the implementation controls of the form elements are configured according to the form description data to obtain configured implementation controls, and when the service type changes, that is, the service requirement changes, the configured implementation controls are loaded on the target page, and automatically configuring the realization control of the form element according to the form description data corresponding to the service requirement, thereby automatically loading the service form corresponding to the service requirement on the page.
FIG. 4 schematically shows a flow diagram of a form generation method according to an embodiment of the disclosure.
As shown in fig. 4, the form generation method of this embodiment includes operations S410 to S420 in addition to operations S210 to S230, and the form generation method may be executed by a terminal.
In operation S410, service data input by a user is acquired, and the service data is input based on the service form displayed on the target page.
In operation S420, the service data and the form entry corresponding to the service data are stored in a form of a key-value pair.
In this disclosure, the service data refers to value information input by the user to the form item corresponding to the form element. For example, for the transfer service, the form items may include the account number of the payee, the transfer amount, the remark information and other form items, and the value input by the user for the form items is the service data.
In the disclosure, the service data and the form items corresponding to the service data are stored in a form of key value pairs. For example, if the form item is a payee account and the service data of the payee account input by the user is 123456, the payee account is a key and the value of 123456 is subjected to key-value pair storage, so that the service data 123456 is directly displayed in the option box of the form item being the payee account when the user transfers money next time.
In the embodiment of the present disclosure, before storing the service data and the form item corresponding to the service data, the agreement or authorization of the user may be obtained. For example, before operation S420, a request for obtaining the stored service data and the list item corresponding to the service data may be issued to the user. In case that the user agrees or authorizes that the service data and the form item corresponding to the service data can be stored, the operation S220 is performed.
Based on the form generation method, the disclosure also provides a form generation device. The apparatus will be described in detail below with reference to fig. 5.
Fig. 5 schematically shows a block diagram of the structure of the form generation apparatus according to the embodiment of the present disclosure.
As shown in fig. 5, the form generation apparatus 500 of this embodiment includes an acquisition module 510, a layout module 520, an analysis module 530, and a loading module 540.
An obtaining module 510, configured to obtain all the form elements included in each service type and the implementation controls in all the form elements. In an embodiment, the layout module 510 may be configured to perform the operation S210 described above, which is not described herein again.
A layout module 520, configured to, for each service type, respectively layout the implementation controls of all form elements included in the service type on the target page. In an embodiment, the obtaining module 520 may be configured to perform the operation S220 described above, which is not described herein again.
An analyzing module 530, configured to respond to an operation that a user triggers generation of a service form based on a current service requirement, and analyze a current service type corresponding to the current service requirement and a form element corresponding to the current service requirement. In an embodiment, the loading module 530 may be configured to perform the operation S230 described above, which is not described herein again.
A loading module 540, configured to load the implementation control of the corresponding table element in the current service type on the target page, so as to generate the service form corresponding to the current service requirement. In an embodiment, the loading module 530 may be configured to perform the operation S240 described above, which is not described herein again.
According to the embodiment of the disclosure, all form elements included in each service type and implementation controls in all form elements are acquired, the implementation controls of all form elements included in the service type are respectively distributed on a target page aiming at each service type, an operation of generating a service form is triggered in response to a current service requirement of a user, the current service type corresponding to the current service requirement is analyzed, and the implementation controls of the form elements corresponding to the current service type are loaded on the target page so as to generate the service form corresponding to the current service requirement. And designing a business form based on the business type, and loading an implementation control of a form element corresponding to the current business type on the target page according to the current business requirement when the form needs to be generated.
In an embodiment of the present disclosure, the layout module 520 includes:
the display submodule is used for displaying all table elements contained in the service type to the user;
a receiving submodule, configured to receive layout information input by the user, where the layout information is layout information set by the user on the target page based on all form elements included in the service type;
and the layout submodule is used for laying out the implementation controls of all the table elements contained in the business type on a target page based on the layout information.
In an embodiment of the present disclosure, the loading module 540 includes:
the obtaining submodule is used for obtaining the form element corresponding to the current service requirement and the form description data of the form element, and the form description data is used for describing the attribute information of the form element;
the configuration submodule is used for configuring the realization control of the form element according to the form description data to obtain the configured realization control;
and the loading sub-module is used for loading the configured implementation control on the target page.
In an embodiment of the present disclosure, the loading sub-module is specifically configured to load the configured implementation control on the target page by using a dynamic form control.
In an embodiment of the present disclosure, the obtaining sub-module is specifically configured to obtain, by using ajax technology, form description data corresponding to the service requirement.
In an embodiment of the present disclosure, the obtaining sub-module is specifically configured to obtain, by using ajax technology, form description data corresponding to the service requirement.
In an embodiment of the present disclosure, the apparatus 500 further includes:
the service data acquisition module is used for acquiring service data input by a user, and the service data is input based on a service form displayed on the target page;
and the storage module is used for storing the service data and the form items corresponding to the service data according to the key value pair form.
According to an embodiment of the present disclosure, any plurality of the obtaining module 510, the layout module 520, the analysis module 530, and the loading module 540 may be combined into one module to be implemented, or any one of the modules may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the obtaining module 510, the layout module 520, the analyzing module 530, and the loading module 540 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or may be implemented by any one of three implementations of software, hardware, and firmware, or any suitable combination of any of the three. Alternatively, at least one of the obtaining module 510, the layout module 520, the analyzing module 530 and the loading module 540 may be at least partially implemented as a computer program module, which when executed may perform the respective functions.
Fig. 6 schematically shows a block diagram of an electronic device adapted to implement a form generation method according to an embodiment of the present disclosure.
As shown in fig. 6, an electronic device 600 according to an embodiment of the present disclosure includes a processor 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. Processor 601 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 601 may also include onboard memory for caching purposes. Processor 601 may include a single processing unit or multiple processing units for performing different actions of a method flow according to embodiments of the disclosure.
In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 600 are stored. The processor 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. The processor 601 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 602 and/or RAM 603. It is to be noted that the programs may also be stored in one or more memories other than the ROM 602 and RAM 603. The processor 601 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 600 may also include input/output (I/O) interface 605, input/output (I/O) interface 605 also connected to bus 604, according to an embodiment of the disclosure. The electronic device 600 may also include one or more of the following components connected to the I/O interface 605: an input portion 606 including a keyboard, a mouse, and the like; an output portion 607 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The driver 610 is also connected to the I/O interface 605 as needed. A removable medium 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 610 as necessary, so that a computer program read out therefrom is mounted in the storage section 608 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement the method according to an embodiment of the disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: 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), 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 the present disclosure, 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. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 602 and/or RAM 603 described above and/or one or more memories other than the ROM 602 and RAM 603.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the item recommendation method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 601. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed in the form of a signal on a network medium, downloaded and installed through the communication section 609, and/or installed from the removable medium 611. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 609, and/or installed from the removable medium 611. The computer program, when executed by the processor 601, performs the above-described functions defined in the system of the embodiments of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (11)

1. A form generation method, comprising:
acquiring all form elements contained in each service type and implementation controls in all the form elements;
for each service type, respectively laying out implementation controls of all form elements contained in the service type on a target page;
responding to an operation of a user for generating a business form based on current business requirement triggering, and analyzing a current business type corresponding to the current business requirement and a form element corresponding to the current business requirement;
and loading the implementation control of the corresponding table element in the current business type on the target page to generate the business table corresponding to the current business requirement.
2. The form generation method of claim 1, wherein the respectively laying out implementation controls for all form elements included in the business type on the target page comprises:
all table elements contained in the service type are displayed to the user;
receiving layout information input by the user, wherein the layout information is the layout information set on the target page by the user based on all form elements contained in the service type;
and based on the layout information, arranging the implementation controls of all form elements contained in the service type on a target page.
3. The form generation method of claim 1, wherein the loading, on the target page, an implementation control of the corresponding form element in the current business type to generate the business form corresponding to the current business requirement comprises:
acquiring form elements corresponding to the current service requirements and form description data of the form elements, wherein the form description data is used for describing attribute information of the form elements;
configuring the realization control of the form element according to the form description data to obtain a configured realization control;
and loading the configured implementation control on the target page.
4. The form generation method of claim 3, the loading the configured implementation control on the target page comprising:
and loading the configured implementation control on the target page by using a dynamic form control.
5. The form generation method of claim 3, the obtaining form description data for the form element comprising:
and obtaining form description data corresponding to the service requirement by utilizing an ajax technology.
6. The form generation method of claim 1, the method further comprising:
acquiring service data input by a user, wherein the service data is input based on a service form displayed on the target page;
and storing the service data and the form items corresponding to the service data according to a key value pair form.
7. A form generation apparatus comprising:
the acquisition module is used for acquiring all the form elements contained in each service type and the implementation controls in all the form elements;
the layout module is used for respectively laying out the implementation controls of all the table elements contained in the business types on the target page aiming at each business type;
the analysis module is used for responding to the operation that a user triggers and generates a business form based on the current business requirement and analyzing the current business type corresponding to the current business requirement;
and the loading module is used for loading the implementation control of the corresponding table element in the current business type on the target page so as to generate the business table corresponding to the current business requirement.
8. The form generating transfer of claim 7, the layout module comprising:
the display submodule is used for displaying all table elements contained in the service type to the user;
a receiving submodule, configured to receive layout information input by the user, where the layout information is layout information set by the user on the target page based on all form elements included in the service type;
and the layout submodule is used for laying out the implementation controls of all the table elements contained in the business type on a target page based on the layout information.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-6.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 6.
11. A computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of claims 1 to 6.
CN202210046197.7A 2022-01-14 2022-01-14 Form generation method, device, equipment, medium and program product Pending CN114385170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210046197.7A CN114385170A (en) 2022-01-14 2022-01-14 Form generation method, device, equipment, medium and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210046197.7A CN114385170A (en) 2022-01-14 2022-01-14 Form generation method, device, equipment, medium and program product

Publications (1)

Publication Number Publication Date
CN114385170A true CN114385170A (en) 2022-04-22

Family

ID=81201228

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210046197.7A Pending CN114385170A (en) 2022-01-14 2022-01-14 Form generation method, device, equipment, medium and program product

Country Status (1)

Country Link
CN (1) CN114385170A (en)

Similar Documents

Publication Publication Date Title
CN113434241A (en) Page skipping method and device
CN113505302A (en) Method, device and system for supporting dynamic acquisition of buried point data and electronic equipment
CN112965916B (en) Page testing method, page testing device, electronic equipment and readable storage medium
CN114237651A (en) Installation method and device of cloud native application, electronic equipment and medium
CN113535565B (en) Interface use case generation method, device, equipment and medium
CN115982491A (en) Page updating method and device, electronic equipment and computer readable storage medium
CN116594683A (en) Code annotation information generation method, device, equipment and storage medium
CN113448578A (en) Page data processing method, processing system, electronic device and readable storage medium
CN113986258A (en) Service publishing method, device, equipment and storage medium
CN113553123A (en) Data processing method and device, electronic equipment and storage medium
CN110888583B (en) Page display method, system and device and electronic equipment
CN113656041A (en) Data processing method, device, equipment and storage medium
CN114385170A (en) Form generation method, device, equipment, medium and program product
CN114510309B (en) Animation effect setting method, device, equipment and medium
CN114268558B (en) Method, device, equipment and medium for generating monitoring graph
CN112965699B (en) Front-end page generation method, device, computer system and readable storage medium
CN111104626B (en) Information storage method and device
CN114218160A (en) Log processing method and device, electronic equipment and medium
CN115309404A (en) File generation method and device, electronic equipment and storage medium
CN114218254A (en) Report generation method, device, equipment and storage medium
CN114119806A (en) Nested flow chart generation method and device, electronic equipment and storage medium
CN114417091A (en) Data screening method and device, electronic equipment and storage medium
CN115098391A (en) Page detection method, device, equipment and medium
CN114237624A (en) Go language-based error processing method, device, equipment, medium and product
CN117743274A (en) Information processing method, information processing device, electronic equipment and storage medium

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