CN107665204B - Method and device for providing form - Google Patents

Method and device for providing form Download PDF

Info

Publication number
CN107665204B
CN107665204B CN201610602044.0A CN201610602044A CN107665204B CN 107665204 B CN107665204 B CN 107665204B CN 201610602044 A CN201610602044 A CN 201610602044A CN 107665204 B CN107665204 B CN 107665204B
Authority
CN
China
Prior art keywords
data
component
self
components
application form
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610602044.0A
Other languages
Chinese (zh)
Other versions
CN107665204A (en
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201610602044.0A priority Critical patent/CN107665204B/en
Publication of CN107665204A publication Critical patent/CN107665204A/en
Application granted granted Critical
Publication of CN107665204B publication Critical patent/CN107665204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Data Mining & Analysis (AREA)
  • Human Resources & Organizations (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Quality & Reliability (AREA)
  • General Business, Economics & Management (AREA)
  • Operations Research (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • General Engineering & Computer Science (AREA)
  • Stored Programmes (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a method and a device for providing a form, which can ensure that developers can customize the form content according to the requirements of different service types and set the check rule of form data, thereby not only meeting the form requirements of different users, but also avoiding the submission of partial invalid form applications, further reducing the workload of related examination and approval personnel and facilitating the automatic processing of subsequent processes. The method for providing the form comprises the following steps: saving the self-defined assemblies set by external operation and the data of each self-defined assembly; combining the self-defined assemblies selected by external operation or combining the system assemblies and the self-defined assemblies to obtain an initial form; and loading the data of the self-defined component included in the initial form into a component corresponding to the data to generate an application form and then providing the application form for a user.

Description

Method and device for providing form
Technical Field
The invention relates to the technical field of computers and software thereof, in particular to a method and a device for providing a form.
Background
The application submitted through the flow center is an effective means for all companies to carry out internal standardized management on the companies at present, and is an online solution for the traditional application method in the past. Various applications such as vacation applications, purchase applications, on-line applications, etc. can be implemented in the flow center at present.
With the increasing application types and the diversification of application contents, the unified and simple form cannot meet the increasing needs of users. For example, the following steps: the filling content of the vacation application is that a person needs to vacate from a certain starting time to a certain ending time for some reason; the filling content of the purchase application is how many certain types of goods are needed to be purchased by a person for some reason. The contents filled in the two types of applications are different, but the forms can be basically multiplexed, and the user can accept the forms; however, online applications are completely different, operations such as adding a system name, an online type, an online software package or other restarting services may be required, application contents filled in for different online types are different, at this time, a simple form cannot meet the requirement, and if more types of applications are expanded, the problem that the form cannot be customized is more prominent.
The existing form loading mechanism is simple, and the flow center provides several simple components, such as: drop-down boxes, text fields, file uploads, and date selection controls, which the user can utilize to generate his form from the composition. Although the scheme can meet the requirements of some simpler application forms at present, the scheme cannot meet the problem of personalized customization; in addition, the form application requiring data verification cannot meet the requirements, for example, the form data verification, different field verification rules of different forms may be different, and the prior art scheme can only verify whether a field is empty, but cannot perform targeted data validity verification according to the requirements of business elements.
Disclosure of Invention
In view of the above, the present invention provides a method and an apparatus for providing a form, where a developer can generate an application form meeting different requirements according to a set custom component, and set a verification rule of form data, so that not only can the form requirements of different users be met, but also submission of a part of invalid form applications is avoided, and thus workload of related approvers is reduced, and automation processing of subsequent processes is facilitated.
To achieve the above object, according to one aspect of the present invention, there is provided a method of providing a form.
The method for providing the form comprises the following steps: saving the self-defined assemblies set by external operation and the data of each self-defined assembly; combining the self-defined assemblies selected by external operation or combining the system assemblies and the self-defined assemblies to obtain an initial form; and loading the data of the self-defined component included in the initial form into a component corresponding to the data to generate an application form user.
Optionally, the data of the custom component comprises association rules and presentation data between components; after the step of loading the data of the component included in the initial form into the component corresponding to the data to generate the application form, the method further includes: and according to the operation of the user on the components in the application form, changing the display data of the components associated with the components according to the association rules among the components.
Optionally, the data of the custom component comprises a validation rule of the component data; after the step of loading the data of the component included in the initial form into the component corresponding to the data to generate the application form, the method further includes: and verifying the data input into the application form by the user according to the verification rule, and submitting the application form data of the user after all the components are verified.
Optionally, after the step of loading the data of the component included in the initial form into the component corresponding to the data to generate the application form, the method further includes: and receiving the audit information of the application form given by external operation, and providing the application form passing the audit for the user after receiving the prompt information representing that the audit information passes.
According to another aspect of the invention, an apparatus for providing forms is provided.
The invention provides a form providing device, comprising: the storage module is used for storing the self-defined assemblies set by external operation and the data of each self-defined assembly; the combination module is used for combining the self-defined assemblies selected by external operation or combining the system assemblies and the self-defined assemblies to obtain an initial form; and the providing module is used for loading the data of the self-defined component included in the initial form into the component corresponding to the data to generate the application form.
Optionally, the data of the custom component comprises association rules and presentation data between components; the system further comprises a changing module which is used for changing the display data of the components related to the components according to the association rules among the components according to the operation of the components in the application form by the user.
Optionally, the data of the custom component comprises a validation rule of the component data; the verification module is used for verifying the data input into the application form by the user according to the verification rule and submitting the application form data of the user after all the components are verified.
Optionally, the method further comprises: and the auditing module is used for receiving auditing information of the application form given by external operation and providing the application form which is approved to the user after receiving prompt information representing that the auditing is passed.
According to still another aspect of embodiments of the present invention, there is provided an electronic apparatus including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a method for providing forms provided by the present invention.
According to a further aspect of the embodiments of the present invention, there is provided a computer-readable medium on which a computer program is stored, the program, when executed by a processor, implementing a method of providing a form provided by the present invention.
According to the technical scheme of the invention, developers can generate application forms meeting different requirements according to the set custom components and set the check rules of form data, so that not only can the form requirements of different users be met, but also the submission of partial invalid form applications is avoided, the workload of related approval personnel is reduced, the automatic processing of subsequent processes is facilitated, and the management efficiency of enterprises is finally improved.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of a method of providing forms according to an embodiment of the invention;
FIG. 2 is a schematic diagram of an apparatus for providing forms, according to an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
FIG. 1 is a diagram illustrating a method of providing a form according to an embodiment of the invention. As shown in fig. 1, the method for providing a form according to the embodiment of the present invention mainly includes the following steps S10 to S12.
Step S10: and saving the custom components set by the external operation and the data of each custom component. In this step, the external operations mentioned refer to the related operations performed by the developer to generate the custom component; in the process of generating the custom assembly through related operations, a developer writes the realized assembly codes, the written assembly codes of a user are submitted and stored in a database through an interface after writing is finished, then the developer can preview the effect and the function of the generated assembly after loading, and if the developer is not satisfied with the effect or the function displayed by the assembly in the process, the developer can generate the custom assembly which is in line with the expected effect through code editing, previewing and testing again; then, after an expected custom assembly is generated, setting custom assembly data and storing the custom assembly data; the data of the custom component mentioned in this step includes, but is not limited to, a component name, a component identification, an association rule between components, presentation data, and a validation rule of component data.
Step S11: and combining the self-defined assemblies selected by external operation or combining the system assembly and the self-defined assemblies to obtain an initial form. In this step, the external operation refers to the relevant selection operation performed by the developer to obtain the initial form, and the developer needs to select the component used in the initial form according to the component name. The components selected by the developer include system components, or a combination of system components and custom components.
Step S12: and loading the data of the self-defined component included in the initial form into a component corresponding to the data to generate an application form. In this step, the data of the custom component saved in step S10 is loaded into the corresponding component according to the component identifier, and the configuration of the component in the initial form is completed, thereby generating the application form. The specific method init (json) for data loading can be set by a developer, so that the data loading method corresponding to the initial form is called in the data loading process. When processing component data in an initial form, whether the component is a custom component or not is not distinguished, wherein an incoming json object refers to some form information and some data of the custom form, which are uniformly packaged, such as: the initial form name, the initial form identification, and data for each component included in the initial form, the data for each component being a separate json object.
After step S12, the auditor audits the application form generated by the developer through the relevant operation, and if the audit is passed, a prompt message indicating that the audit is passed is given; if the audit is not passed, the auditor gives corresponding audit information (for example, the reason of the non-passing audit) representing that the audit is not passed, and then the developer performs corresponding modification on the application form which is not passed according to the reason of the non-passing audit given by the auditor until the auditor gives prompt information representing that the audit is passed; and finally providing the application form passing the audit to the user.
And after the approved application form is provided for the user, changing the display data of the components associated with the components according to association rules among the components according to the operation of the user on the components in the application form. For example: the method comprises the steps that two components are included in an application form, wherein the display data of one component comprises the job time and the job loss time, and the display data of the other component is empty; then, when the user selects to be on duty in one of the components, controlling the other association component to display a text box according to the association rule among the components so that the user fills out a specific work unit; when the user selects to lose business in one of the components, the text box of the other associated component is hidden according to the association rule among the components to prompt that the user does not need to fill in a work unit, so that the form is dynamically adjusted according to data; and when the value in the display data of one component is changed, the values of other components related to the component are correspondingly adjusted, so that the linkage effect among the components is realized, and the use experience of a user is finally improved.
After the application form is provided for the user, after a form command submitted by the user is received, data input by the user in the application form can be verified according to the verification rule of the component data while the data is written, and the application form data of the user is submitted after all the components are verified. After the user form content is filled in, a submission button is clicked, and an instruction of submitting the form by the user is generated; after receiving a form submitting instruction of a user, acquiring form data filled by the user; for example: the application amount needs to be filled in a text box in one component of the application form, and when a user submits a form application, the value filled in the text box needs to be a positive number greater than 0; when the value input by the text box is acquired, whether the value can be converted into a numerical value is judged according to the verification rule of the component data, if not, the user is prompted that the text box needs to be filled with the number, and then, whether the input numerical value is larger than 0 is judged, and if not, the user is prompted that the text box needs to be filled with the positive number. Each component can verify data input by a user according to the verification rule of the component data, when illegal data exist, prompt information that the user wrongly fills is output, form applications cannot be submitted until all the form data filled by the user pass the verification, the number of invalid applications is reduced, and the workload of related examination and approval personnel is reduced.
FIG. 2 is a schematic diagram of an apparatus for providing forms, according to an embodiment of the invention. As shown in fig. 2, the apparatus 20 for providing forms according to the embodiment of the present invention mainly includes a saving module 21, a combining module 22, and a providing module 23; the saving module 21 is used for saving the self-defined components set by the external operation and the data of each self-defined component; the combination module 22 is configured to combine the custom components selected by the external operation, or combine the system components and the custom components to obtain an initial form; the providing module 23 is configured to load the data of the custom component included in the initial form into a component corresponding to the data to generate an application form. The data of the self-defined components comprise association rules among the components, display data and verification rules of the component data.
The apparatus 20 for providing the form may further include a changing module (not shown in the figure) for changing the presentation data of the component associated with the component according to the association rule between the components according to the operation of the user on the component in the application form.
The form providing apparatus 20 may further include a verification module, configured to verify the data in the application form input by the user according to the verification rule of the component data, and submit the application form data of the user after all component verifications pass.
The form providing apparatus 20 further includes an auditing module (not shown in the figure) for receiving auditing information of the application form given by external operations, and providing the approved application form to the user after receiving prompt information representing approval.
According to the technical scheme of the embodiment of the invention, developers can generate the application forms meeting different requirements according to the set custom components and set the check rules of form data, so that not only can the form requirements of different users be met, but also the submission of partial invalid form applications can be avoided, the workload of related examination and approval personnel can be further reduced, the automatic processing of subsequent processes is facilitated, and the management efficiency of enterprises is finally improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method of providing forms, comprising:
saving the self-defined assemblies set by external operation and the data of each self-defined assembly; the external operation refers to the relevant operation performed by generating the custom component; the data of the custom component comprises: the method comprises the following steps of (1) component name, component identification, association rules among components and display data;
combining the self-defined assemblies selected by external operation or combining the system assemblies and the self-defined assemblies to obtain an initial form; the external operation refers to the related selection operation for obtaining an initial form, and components used in the initial form are selected according to component names;
and loading the data of the self-defined component included in the initial form into the component corresponding to the data according to the component identification to generate an application form, and changing the display data of the component associated with the component according to the association rule among the components according to the operation of the user on the component in the application form.
2. The method of claim 1,
the data of the self-defined component comprises a verification rule of the component data;
after the step of loading the data of the component included in the initial form into the component corresponding to the data to generate the application form, the method further includes: and verifying the data input into the application form by the user according to the verification rule, and submitting the application form data of the user after all the components are verified.
3. The method according to any one of claims 1 to 2, wherein after the step of loading the data of the component included in the initial form into the component corresponding to the data to generate the application form, the method further comprises: and receiving the audit information of the application form given by external operation, and providing the application form passing the audit for the user after receiving the prompt information representing that the audit passes.
4. An apparatus for providing forms, comprising:
the storage module is used for storing the self-defined assemblies set by external operation and the data of each self-defined assembly; the external operation refers to the relevant operation for generating the custom component; the data of the custom component comprises: the method comprises the following steps of (1) component name, component identification, association rules among components and display data;
the combination module is used for combining the self-defined assemblies selected by external operation or combining the system assemblies and the self-defined assemblies to obtain an initial form; the external operation refers to the related selection operation for obtaining an initial form, and components used in the initial form are selected according to component names;
the providing module is used for loading the data of the self-defined component included in the initial form into a component corresponding to the data according to the component identification so as to generate an application form;
and the changing module is used for changing the display data of the components related to the components according to the association rules among the components according to the operation of the user on the components in the application form.
5. The apparatus of claim 4,
the data of the self-defined component comprises a verification rule of the component data;
the verification module is used for verifying the data input into the application form by the user according to the verification rule and submitting the application form data of the user after all the components are verified.
6. The apparatus of any of claims 4 to 5, further comprising: and the auditing module is used for receiving auditing information of the application form given by external operation, and providing the application form which is approved for the user after receiving prompt information representing that the auditing is approved.
7. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-3.
8. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-3.
CN201610602044.0A 2016-07-28 2016-07-28 Method and device for providing form Active CN107665204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610602044.0A CN107665204B (en) 2016-07-28 2016-07-28 Method and device for providing form

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610602044.0A CN107665204B (en) 2016-07-28 2016-07-28 Method and device for providing form

Publications (2)

Publication Number Publication Date
CN107665204A CN107665204A (en) 2018-02-06
CN107665204B true CN107665204B (en) 2021-01-26

Family

ID=61115373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610602044.0A Active CN107665204B (en) 2016-07-28 2016-07-28 Method and device for providing form

Country Status (1)

Country Link
CN (1) CN107665204B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110310090A (en) * 2019-06-26 2019-10-08 杭州天宽科技有限公司 Dynamic electron approval process generation method, device, equipment and medium based on modularization
CN111695331B (en) * 2020-04-15 2023-02-28 福建天晴数码有限公司 Evaluation template generation method and terminal
CN111506444A (en) * 2020-04-20 2020-08-07 北京易点淘网络技术有限公司 Form approval method and device, storage medium and electronic equipment
CN111857712A (en) * 2020-06-30 2020-10-30 深圳市中农易讯信息技术有限公司 Form processing method, device, terminal and medium
CN115390719B (en) * 2022-09-07 2023-09-19 中移互联网有限公司 Chat robot message page menu management method, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577165A (en) * 2012-07-20 2014-02-12 杭州勒卡斯广告策划有限公司 Form generation method and form generator
CN103809975A (en) * 2014-02-19 2014-05-21 浪潮软件股份有限公司 Method for achieving intelligent cloud forms

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101719061A (en) * 2009-11-23 2010-06-02 浪潮集团山东通用软件有限公司 Method for changing business form interface assembly and driving relation thereof in operation period
CN102063306A (en) * 2011-01-06 2011-05-18 夏春秋 Technical implementation method for application development through electronic form
CN103593443A (en) * 2013-11-18 2014-02-19 南京新模式软件集成有限公司 Method for electronic file metadata expansion

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577165A (en) * 2012-07-20 2014-02-12 杭州勒卡斯广告策划有限公司 Form generation method and form generator
CN103809975A (en) * 2014-02-19 2014-05-21 浪潮软件股份有限公司 Method for achieving intelligent cloud forms

Also Published As

Publication number Publication date
CN107665204A (en) 2018-02-06

Similar Documents

Publication Publication Date Title
CN107665204B (en) Method and device for providing form
US10742582B2 (en) Launching a client application based on a message
CN110532536B (en) Rule configuration method and device
US20180217921A1 (en) System and method for generating and executing automated test cases
US9589242B2 (en) Integrating custom policy rules with policy validation process
US20100235275A1 (en) Card Processing
CN106485390A (en) The generation method of examination & approval stream and device
US9760552B2 (en) Document renewal and translation
US20190147029A1 (en) Method and system for generating conversational user interface
CN109885290B (en) Application program service description information generation and release method, device and storage medium
US20230199028A1 (en) Techniques for automated capture and reporting of user-verification metric data
CN113360043A (en) Service processing method and device
CN107679937A (en) Customize method, system, storage medium and the equipment of service function
CN107391118A (en) A kind of Web applications Consumer's Experience plateform system
CN111598707A (en) Page generation method and electronic equipment
US11093695B2 (en) Systems and methods for providing writing assistance
CN110737426A (en) Program block creating method, program block creating device, computer equipment and storage medium
CN112989781B (en) Form data automatic execution method, device, electronic equipment and storage medium
US20210287315A1 (en) Architectures and methods for generating and transferring electronically signed document data packages
CN109447806B (en) Front-end control method and device, storage medium and electronic equipment
CN112947963A (en) Interface operation and maintenance method and device, computer equipment and storage medium
CN112598461A (en) Cloud product delivery method, device and medium
JP2014059666A (en) Task input screen customization system
CN117093186B (en) High-reusability standardized batch guide method and system
US20170032449A1 (en) System and Method for Automated Generation and Shipment of Greeting Cards to a User

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant