CN111737963B - Configuration file based form filling method and device and computer equipment - Google Patents

Configuration file based form filling method and device and computer equipment Download PDF

Info

Publication number
CN111737963B
CN111737963B CN202010706961.XA CN202010706961A CN111737963B CN 111737963 B CN111737963 B CN 111737963B CN 202010706961 A CN202010706961 A CN 202010706961A CN 111737963 B CN111737963 B CN 111737963B
Authority
CN
China
Prior art keywords
data
fields
filled
field
information
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
CN202010706961.XA
Other languages
Chinese (zh)
Other versions
CN111737963A (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.)
Ping An International Smart City Technology Co Ltd
Original Assignee
Ping An International Smart City 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 Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN202010706961.XA priority Critical patent/CN111737963B/en
Publication of CN111737963A publication Critical patent/CN111737963A/en
Application granted granted Critical
Publication of CN111737963B publication Critical patent/CN111737963B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • 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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application relates to the field of data processing, and discloses a form filling method and device based on a configuration file, computer equipment and a storage medium, wherein the method comprises the following steps: when a filling request of a form to be filled is received, acquiring a preset flow file; screening out an appointed configuration file corresponding to the form to be filled out from the process file; finding out appointed fields which are the same as the database fields in the form to be filled in from the appointed configuration file, and finding out data source fields which respectively correspond to the appointed fields; extracting data values corresponding to the data source fields one by one from the data sources corresponding to the specified configuration files; and according to the data value, performing data filling processing on the database field in the form to be filled. By the method and the device, automatic data filling of the form to be filled can be intelligently and conveniently realized, the processing efficiency of filling the form is effectively improved, and the accuracy of filling data in the form is guaranteed.

Description

Configuration file based form filling method and device and computer equipment
Technical Field
The application relates to the technical field of data processing and the technical field of block chains, in particular to a form filling method and device based on a configuration file and computer equipment.
Background
The form filling is a universal requirement which is faced by the existing business system, and the universal form filling mode is to manually input data, namely, a user needs to fill fields in the form one by one. However, when there are a plurality of forms to be filled in data in a business process and the data to be entered in the forms is excessive, if the data is still entered manually in this case, a great deal of input work is generated, the speed of manually entering the filling content is slow, time and labor are wasted, the efficiency is low, and the probability of data error is increased by manual input. In addition, when most of the data to be entered is data with high repeatability, the data is repeatedly filled, and bad experience is brought to the user.
Disclosure of Invention
The application mainly aims to provide a form filling method, a form filling device, computer equipment and a storage medium based on a configuration file, and aims to solve the technical problems that fields in a form need to be manually filled one by one in the existing form filling mode, when the number of the forms needing to be filled with data is too large and the data needing to be input into the forms are also too large, the speed of manually inputting filling contents is low, time and labor are wasted, the efficiency is low, and the probability of data errors can be increased through manual input.
The application provides a form filling method based on a configuration file, which comprises the following steps:
when a filling request of a form to be filled is received, acquiring a preset flow file;
screening out an appointed configuration file corresponding to the form to be filled out from the process file;
finding out appointed fields which are the same as the database fields in the form to be filled in from the appointed configuration file, and finding out data source fields which respectively correspond to the appointed fields;
extracting data values corresponding to the data source fields one by one from the data sources corresponding to the specified configuration files;
and according to the data value, performing data filling processing on the database field in the form to be filled.
Optionally, the step of screening out the specified configuration file corresponding to the form to be filled out from the process file includes:
acquiring form information of the form to be filled in, wherein the form information at least comprises form name information;
according to the form information, finding out a form information field which is the same as the form information from the process file;
and screening out a specified configuration file corresponding to the form information field from the process file according to the form information field.
Optionally, the step of screening out the specified configuration file corresponding to the form information field from the process file according to the form information field includes:
acquiring the number of the form information fields;
judging whether the number of the form information fields is more than 1;
if the number of the form information fields is judged to be larger than 1, obtaining the comment information of each form information field respectively;
and determining a specified configuration file corresponding to the form information according to the annotation information.
Optionally, the step of extracting data values corresponding to the data source fields one to one from the data sources corresponding to the specified configuration file includes:
extracting data source fields from the specified configuration file;
acquiring a data source corresponding to the data source field;
calling a preset interface to inquire the data source, and searching Chinese text data corresponding to each data source field one by one from the data source;
acquiring data values corresponding to the Chinese field data one by one;
after the step of obtaining the data values corresponding to the Chinese field data one to one, the method includes:
storing the data value onto a blockchain of a blockchain system.
Optionally, the step of performing data filling processing on the database fields in the form to be filled according to the data values includes:
obtaining the corresponding relation between the designated field and the data value according to the corresponding relation between the designated field and the data source field and the corresponding relation between the data source field and the data value;
obtaining the corresponding relation between the database field and the data value according to the corresponding relation between the designated field and the data value;
and filling the data values to field storage positions of the database fields in the form to be filled in a one-to-one correspondence manner according to the corresponding relationship between the database fields and the data values so as to complete data filling processing of the database fields in the form to be filled in.
Optionally, when a filling request of a form to be filled is received, before the step of obtaining a preset process file, the method includes:
receiving an input configuration file, wherein the number of the configuration files comprises one or more;
the configuration file is configured in a preset template file to obtain a process file;
and storing the flow file.
Optionally, after the step of performing data filling processing on the database fields in the form to be filled according to the data values, the method includes:
displaying a specified form obtained after data filling processing is carried out on the database field in the form to be filled;
judging whether feedback information related to the specified form is received or not;
and if the feedback information related to the specified form is judged to be received, adjusting the specified form corresponding to the feedback information according to the feedback information.
The application also provides a device is filled in to form based on configuration file, includes:
the acquisition module is used for acquiring a preset flow file when a filling request of a form to be filled is received;
the screening module is used for screening out the specified configuration file corresponding to the form to be filled out from the flow file;
the searching module is used for searching out the specified fields which are the same as the database fields in the form to be filled in from the specified configuration file and searching out the data source fields which respectively correspond to the specified fields;
the extraction module is used for extracting data values which are in one-to-one correspondence with the data source fields from the data sources corresponding to the specified configuration files;
and the filling module is used for performing data filling processing on the database fields in the form to be filled according to the data values.
The present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above method when executing the computer program.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the above-mentioned method.
The configuration file-based form filling method, device, computer equipment and storage medium provided by the application have the following beneficial effects:
according to the configuration file-based form filling method, device, computer equipment and storage medium, when a filling request of a form to be filled is received, a preset flow file is obtained; screening out an appointed configuration file corresponding to the form to be filled out from the process file; finding out appointed fields which are the same as the database fields in the form to be filled in from the appointed configuration file, and finding out data source fields which respectively correspond to the appointed fields; extracting data values corresponding to the data source fields one by one from the data sources corresponding to the specified configuration files; and according to the data value, performing data filling processing on the database field in the form to be filled. When a filling request of a form to be filled is received, required filling data can be rapidly acquired from a related data source according to a configuration file corresponding to the form to be filled, and then data filling processing on the form to be filled is carried out according to the filling data.
Drawings
Fig. 1 is a schematic flowchart of a method for filling in a form based on a configuration file according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a configuration file-based form filling apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application.
The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
Referring to fig. 1, a method for filling out a form based on a configuration file according to an embodiment of the present application includes:
s1: when a filling request of a form to be filled is received, acquiring a preset flow file;
s2: screening out an appointed configuration file corresponding to the form to be filled out from the process file;
s3: finding out appointed fields which are the same as the database fields in the form to be filled in from the appointed configuration file, and finding out data source fields which respectively correspond to the appointed fields;
s4: extracting data values corresponding to the data source fields one by one from the data sources corresponding to the specified configuration files;
s5: and according to the data value, performing data filling processing on the database field in the form to be filled.
As described in steps S1 to S5, the main implementation of the present method is a form filling apparatus based on configuration files. In practical applications, the form filling device based on the configuration file may be implemented by a virtual device, such as a software code, or may be implemented by an entity device in which a relevant execution code is written or integrated, and may perform human-computer interaction with a user through a keyboard, a mouse, a remote controller, a touch panel, or a voice control device. The form filling device based on the configuration file can automatically and intelligently fill data in the current form to be filled so as to effectively improve the processing efficiency of filling the form. The form filling device based on the configuration file is referred to as a device for short subsequently. Specifically, when a filling request of a form to be filled is received, a preset flow file is acquired first. The filling request can be triggered and generated by a user according to the filling requirement of the form of the user and is input into the device. In addition, the process file can be generated by a plurality of configuration files after configuration processing, different forms correspond to different data source types, the corresponding relation between the data source types and the configuration files can be preset in the device, and the configuration files can be configured as required. And then screening out the specified configuration file corresponding to the form to be filled out from the flow file. The specific configuration file can be screened out from the flow file according to form information of the form to be filled out, such as form name information. After the appointed configuration file is obtained, appointed fields which are the same as the database fields in the form to be filled in are searched from the appointed configuration file, and data source fields which respectively correspond to the appointed fields are searched. And the database fields in the form to be filled are fields needing data filling. In addition, the specified configuration file comprises data source fields, form information fields, data source fields and specified fields which are the same as the database fields in the form to be filled in. For example, the specific configuration file may include: [ { "companyInfo": { "form _ name 1": { "corrpnm": "CORP _ NAME", "corppeaeaname": "DISTRICT" } ], where company info is the data source field, form _ NAME1 is the form information field, corrpnm and corrananame are the data source fields, and CORP _ NAME and DISTRICT are the designated fields. When the data source fields are obtained, data values corresponding to the data source fields one by one are extracted from the data sources corresponding to the specified configuration files. The Chinese text data corresponding to the data source field can be searched from the data source corresponding to the specified configuration file according to the meaning of the data source field, and then the data value corresponding to the Chinese text field is extracted. For example, the Chinese text segment data corresponding to the data source field corpmnm is a company name, and the extraction of the data value corresponding to the data source field corpmnm is completed by acquiring the data value corresponding to the company name; for another example, the chinese text data corresponding to the data source field corpearaname is the area where the company is located, and the extraction of the data value corresponding to the data source field corpearaname is completed by acquiring the data value corresponding to the area where the company is located. And finally, according to the data values, performing data filling processing on the database fields in the form to be filled so as to realize automatic filling of the form to be filled. According to the method and the device, when a filling request of the form to be filled is received, required filling data can be rapidly acquired from a related data source according to the configuration file corresponding to the form to be filled, and then data filling processing on the filling form is carried out according to the filling data, so that automatic assignment of the content to be filled in the form to be filled is intelligently and conveniently realized, data entry work is greatly simplified, the processing efficiency of filling the form is effectively improved, the accuracy of the filling data in the form is guaranteed, the examination and approval workload of an examining and approving staff is reduced, and the use experience of a user is improved.
Further, in an embodiment of the present application, the step S2 includes:
s200: acquiring form information of the form to be filled in, wherein the form information at least comprises form name information;
s201: according to the form information, finding out a form information field which is the same as the form information from the process file;
s202: and screening out a specified configuration file corresponding to the form information field from the process file according to the form information field.
As described in the foregoing steps S200 to S202, the step of screening out the designated configuration file corresponding to the to-be-filled-in form from the flow file may specifically include: first, form information of the form to be filled in is obtained, where the form information at least includes form name information, for example, the form name information may be form _ name 1. And then according to the form information, inquiring form information fields which are the same as the form information from the process file. The process file is configured with a plurality of configuration files corresponding to the forms to be filled of different data source types, the configuration files have a plurality of information fields corresponding to the form information, and the specified configuration files have the form information fields having a mapping relation with the forms to be filled. And finally, according to the form information fields, screening out the specified configuration files corresponding to the form information fields from the process files, so that data values for carrying out data filling processing on the form to be filled can be quickly and accurately extracted from the data sources corresponding to the specified configuration files in the following process, and the data values are further used for automatically and intelligently realizing the data filling processing on the form to be filled.
Further, in an embodiment of the present application, the step S202 includes:
s2020: acquiring the number of the form information fields;
s2021: judging whether the number of the form information fields is more than 1;
s2022: if the number of the form information fields is judged to be larger than 1, obtaining the comment information of each form information field respectively;
s2023: and determining a specified configuration file corresponding to the form information according to the annotation information.
As described in steps S2020 to S2023, since there may be one or more form information fields identical to the form information in the process file, different determination methods need to be adopted according to the specific quantity value of the form information fields obtained by query, so as to accurately screen the specified configuration file from the process file. The step of screening out the designated configuration file corresponding to the form information field from the process file according to the form information field may specifically include: the number of the above form information fields is first obtained. And then judging whether the number is more than 1. And if the number is larger than 1, acquiring the comment information of each form information field respectively. The data source corresponding to the configuration file may be a filled form that has been processed before, and if a plurality of form information fields exist in the flow file, it indicates that, in addition to the situation that the current form to be filled needs to be subjected to data filling processing, a situation that other specified forms to be filled need to be taken from the form to be filled to perform data filling may also occur subsequently. In addition, through the comment information of the form information fields, the field meanings of the form information fields in the corresponding configuration file can be identified. And finally, determining a specified configuration file corresponding to the form information according to the annotation information. The form information fields are fields which are the same as the form names, the field meaning of each form information field can be identified according to the comment information, and whether the form corresponding to each form information field needs to extract data values from a corresponding data source for data filling or needs to be used as a data source for providing the data values which need to be filled for other specified forms to be filled in can be determined according to the field meaning of each form information field. Therefore, the specified configuration file for performing data filling processing on the form to be filled out can be screened out from all the configuration files according to all the annotation information. In the embodiment, when the number of the form information fields same as the form information is greater than 1, the specified configuration file corresponding to the form information is intelligently determined according to the comment information of each form information field, which is beneficial to subsequently and accurately extracting the data value for performing the data filling processing on the form to be filled from the data source corresponding to the specified configuration file, and using the data value to automatically and intelligently realize the data filling processing on the form to be filled. Further, if the number of the form information fields is 1, that is, there is only one form information field, the configuration file containing the form information fields can be directly determined as the specified configuration file.
Further, in an embodiment of the present application, the step S4 includes:
s400: extracting data source fields from the specified configuration file;
s401: acquiring a data source corresponding to the data source field;
s402: calling a preset interface to inquire the data source, and searching Chinese text data corresponding to each data source field one by one from the data source;
s403: acquiring data values corresponding to the Chinese field data one by one;
after the step S403 of obtaining the data values corresponding to the chinese field data one to one, the method includes:
s404: storing the data value onto a blockchain of a blockchain system.
As described in the foregoing steps S400 to S404, the step of extracting the data values corresponding to the data source fields one by one from the data sources corresponding to the specified configuration file may specifically include: first, data source fields are extracted from the specified configuration file. The data source field may be specifically componyinfo or tableContent. And then acquiring a data source corresponding to the data source field. The data source may be a previously processed filled-in form, in addition to some information previously entered by the user. In addition, the data source field and the data source have a preset corresponding relationship, for example: company info-company information, that is, a data source corresponding to the data source field company info is company information; tableContent-form content, that is, a data source corresponding to a data source field tableContent is form content. In addition, the data source refers to a source of fill data needed in the form to be filled. And then calling a preset interface to inquire the data source, and searching Chinese text data corresponding to each data source field one by one from the data source. Wherein, the corresponding relation between the data source field and the Chinese text data is preset. For example, the corpNm-company name, that is, the chinese text data corresponding to the data source field corpNm, is the company name; the coroAreaName is the company address, namely the Chinese text data corresponding to the data source field coroAreaName is the company address. And finally, acquiring data values corresponding to the Chinese field data one by one. For example, when the data source is company information and the data source field is corpNm, the data value of the company name corresponding to the data source field corpNm is extracted from the pre-stored company information through the preset interface. When the data source is the filled-in form _ name1 that has been processed before and the data source field is the corppearaname, the data value of the company address corresponding to the corppearaname is extracted from the corresponding filled-in form through the preset interface. In this embodiment, a data source of a data source field in the specified configuration file is acquired, and chinese text data corresponding to the data source field is found from the data source, so as to acquire a data value corresponding to the chinese text data, so that the data filling processing on the form to be filled in is automatically and accurately implemented according to the acquired data value. Further, after the step of obtaining the data values corresponding to the Chinese text data one to one, the method may further include: and storing the data value to a block chain of the block chain system. By using the block chain to store and manage the data values corresponding to the Chinese character segment data one by one, the safety and the non-tamper property of the data values are effectively ensured.
Further, in an embodiment of the present application, the step S5 includes:
s500: obtaining the corresponding relation between the designated field and the data value according to the corresponding relation between the designated field and the data source field and the corresponding relation between the data source field and the data value;
s501: obtaining the corresponding relation between the database field and the data value according to the corresponding relation between the designated field and the data value;
s502: and filling the data values to field storage positions of the database fields in the form to be filled in a one-to-one correspondence manner according to the corresponding relationship between the database fields and the data values so as to complete data filling processing of the database fields in the form to be filled in.
As described in the foregoing steps S500 to S502, the step of performing data filling processing on the database field in the form to be filled according to the data value may specifically include: first, according to the corresponding relationship between the designated field and the data source field and the corresponding relationship between the data source field and the data value, the corresponding relationship between the designated field and the data value is obtained. For example, if the data source field is corpNm, the designated field corresponding to the data source field is CORP _ NAME, and the data value corresponding to the data source field is aaa, the corresponding relationship between the designated field CORP _ NAME and the data value aaa can be obtained. And then obtaining the corresponding relation between the database field and the data value according to the corresponding relation between the designated field and the data value. And finally, according to the corresponding relation between the database fields and the data values, filling the data values to field storage positions of the database fields in the form to be filled in a one-to-one correspondence manner so as to complete data filling processing of the database fields in the form to be filled in and further realize the functional requirement of automatic assignment of the content to be filled in the form to be filled in. The specified fields and the database fields are the same fields, and the data values are filled in the field storage positions of each database field in the form to be filled in a one-to-one correspondence mode, so that the data values with corresponding relations can be associated with the database fields.
In an embodiment of the present application, before the step S1, the method includes:
s100: receiving an input configuration file, wherein the number of the configuration files comprises one or more;
s101: the configuration file is configured in a preset template file to obtain a process file;
s102: and storing the flow file.
As described in the above steps S100 to S102, before the step of acquiring a preset flow file when a filling request of a form to be filled is received, a creation process for the above flow file is further included. Specifically, an input configuration file is first received, where the number of the configuration files includes one or more. In addition, the generation mode of the configuration file is not specifically limited, and the configuration file may be automatically generated by a form filling device based on the configuration file according to a preset business rule, or may be generated by a user according to actual requirements and input into the device. And after the configuration file is obtained, configuring the configuration file in a preset template file to obtain a process file. The template file is a blank file generated in advance, and the process file can be obtained by adding a configuration file into the template file. In addition, because the form is bound to the flow corresponding to the flow file, and the fields required to be automatically filled in different forms are different, the configuration file also needs to be bound to the flow file as the form. According to the embodiment, different configuration files can be generated for different processes, namely, a user can configure the required configuration files as required, so that the functional requirements that automatic assignment can be realized on different forms of different processes can be met more flexibly according to different types of configuration files, and the processing intelligence of the form to be filled is improved.
Further, in an embodiment of the present application, after the step S5, the method includes:
s510: displaying a specified form obtained after the form to be filled is subjected to data filling processing;
s511: judging whether feedback information related to the specified form is received or not;
s512: and if the feedback information related to the specified form is judged to be received, adjusting the specified form corresponding to the feedback information according to the feedback information.
As described in steps S510 to S512, after the data filling processing for the database fields in the form to be filled according to the data values is completed, the specified form may be further adjusted according to the feedback information of the user on the specified form obtained after the data filling processing. Specifically, a specified form obtained by performing data filling processing on a database field in the form to be filled is displayed, so that a user can judge and evaluate the accuracy of filling data in the specified form on the specified form. And then judging whether feedback information related to the specified form is received or not. The feedback information may be modification information or confirmation information fed back by the user, and the like. The form of the feedback information is not particularly limited, and may be, for example, a text form or a voice form. And if the feedback information related to the specified form is received, performing corresponding adjustment processing on the specified form according to the feedback information. If the received feedback information is modification information, the specified form is modified correspondingly according to the modification information. And if the received feedback information is confirmation information which indicates that the filling data in the specified form has accuracy, the specified form is not changed, and the specified form is directly stored. After the specified form subjected to data filling processing is obtained, the specified form is further adjusted according to the received feedback information to obtain more accurate form content, so that the finally generated form can ensure the accuracy of the filled data, can meet the actual requirements of the user, and effectively ensures the use experience of the user.
Referring to fig. 2, an embodiment of the present application further provides a device for filling in a form based on a configuration file, including:
the system comprises an acquisition module 1, a processing module and a processing module, wherein the acquisition module is used for acquiring a preset flow file when a filling request of a form to be filled is received;
the screening module 2 is used for screening out the specified configuration file corresponding to the form to be filled out from the process file;
the searching module 3 is used for searching out the specified fields which are the same as the database fields in the form to be filled in from the specified configuration file, and searching out the data source fields which respectively correspond to the specified fields;
the extraction module 4 is configured to extract data values corresponding to the data source fields one to one from the data sources corresponding to the specified configuration file;
and the filling module 5 is used for performing data filling processing on the database fields in the form to be filled according to the data values.
In this embodiment, the implementation processes of the functions and functions of the obtaining module, the screening module, the searching module, the extracting module and the filling module in the form filling device based on the configuration file are specifically described in the implementation processes of steps S1 to S5 in the form filling method based on the configuration file, and are not described herein again.
Further, in an embodiment of the present application, the screening module includes:
the first acquisition unit is used for acquiring form information of the form to be filled in, wherein the form information at least comprises form name information;
the first searching unit is used for searching a form information field which is the same as the form information from the process file according to the form information;
and the screening unit is used for screening the specified configuration file corresponding to the form information field from the process file according to the form information field.
In this embodiment, the implementation processes of the functions and functions of the first obtaining unit, the first searching unit and the screening unit in the form filling apparatus based on the configuration file are specifically described in the implementation processes of steps S200 to S202 in the form filling method based on the configuration file, and are not described herein again.
Further, in an embodiment of the present application, the screening unit includes:
the first obtaining subunit is used for obtaining the number of the form information fields;
the judging subunit is used for judging whether the number of the form information fields is greater than 1;
the second obtaining subunit is configured to, if it is determined that the number of the form information fields is greater than 1, obtain annotation information of each of the form information fields respectively;
and the determining subunit is used for determining the specified configuration file corresponding to the form information according to the annotation information.
In this embodiment, the implementation processes of the functions and functions of the first obtaining subunit, the judging subunit, the second obtaining subunit, and the determining subunit in the form filling apparatus based on the configuration file are specifically described in the implementation processes of steps S2020 to S2023 in the form filling method based on the configuration file, and are not described herein again.
Further, in an embodiment of the present application, the extracting module includes:
the extraction unit is used for extracting a data source field from the specified configuration file;
the second acquisition unit is used for acquiring a data source corresponding to the data source field;
the second searching unit is used for calling a preset interface to inquire the data source and searching Chinese text segment data which are in one-to-one correspondence with each data source field from the data source;
a third acquiring unit configured to acquire a data value corresponding to each of the chinese field data one to one;
the above extraction module further comprises:
and the storage unit is used for storing the data value to a block chain of the block chain system.
In this embodiment, the implementation processes of the functions and functions of the extracting unit, the second searching unit, the third obtaining unit and the storing unit in the form filling device based on the configuration file are specifically described in the implementation processes of steps S400 to S404 in the form filling method based on the configuration file, and are not described herein again.
Further, in an embodiment of the present application, the filling module includes:
the first generating unit is used for obtaining the corresponding relation between the designated field and the data value according to the corresponding relation between the designated field and the data source field and the corresponding relation between the data source field and the data value;
the second generation unit is used for obtaining the corresponding relation between the database field and the data value according to the corresponding relation between the designated field and the data value;
and the filling unit is used for filling the data values to field storage positions of the database fields in the form to be filled in a one-to-one correspondence manner according to the corresponding relationship between the database fields and the data values so as to complete data filling processing of the database fields in the form to be filled in.
In this embodiment, the implementation processes of the functions and actions of the first generating unit, the second generating unit, and the filling unit in the form filling device based on the configuration file are specifically described in the implementation processes of steps S500 to S502 in the form filling method based on the configuration file, and are not described herein again.
Further, in an embodiment of the present application, the device for filling in a form based on a configuration file includes:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving an input configuration file, and the number of the configuration files comprises one or more;
the configuration module is used for configuring the configuration file into a preset template file to obtain a process file;
and the storage module is used for storing the process file.
In this embodiment, the implementation processes of the functions and functions of the receiving module, the configuration module, and the storage module in the form filling apparatus based on the configuration file are specifically described in the implementation processes of steps S100 to S102 in the form filling method based on the configuration file, and are not described herein again.
Further, in an embodiment of the present application, the device for filling in a form based on a configuration file includes:
the display module is used for displaying the specified form obtained after the data filling processing is carried out on the database field in the form to be filled;
the judging module is used for judging whether feedback information related to the specified form is received or not;
and the adjusting module is used for adjusting the designated form corresponding to the feedback information according to the feedback information if the feedback information related to the designated form is judged to be received.
In this embodiment, the implementation processes of the functions and functions of the display module, the judgment module and the adjustment module in the form filling device based on the configuration file are specifically described in the implementation processes of steps S510 to S512 in the form filling method based on the configuration file, and are not described herein again.
Referring to fig. 3, a computer device, which may be a server and whose internal structure may be as shown in fig. 3, is also provided in the embodiment of the present application. The computer device comprises a processor, a memory, a network interface, a display screen, an input device and a database which are connected through a system bus. Wherein the processor of the computer device is designed to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing data such as process files, specified configuration files, database fields, data values and the like. The network interface of the computer device is used for communicating with an external terminal through a network connection. The display screen of the computer equipment is an indispensable image-text output equipment in the computer, and is used for converting digital signals into optical signals so that characters and figures are displayed on the screen of the display screen. The input device of the computer equipment is the main device for information exchange between the computer and the user or other equipment, and is used for transmitting data, instructions, some mark information and the like to the computer. The computer program is executed by a processor to implement a method for profile-based form filling.
The processor executes the configuration file-based form filling method and comprises the following steps:
when a filling request of a form to be filled is received, acquiring a preset flow file;
screening out an appointed configuration file corresponding to the form to be filled out from the process file;
finding out appointed fields which are the same as the database fields in the form to be filled in from the appointed configuration file, and finding out data source fields which respectively correspond to the appointed fields;
extracting data values corresponding to the data source fields one by one from the data sources corresponding to the specified configuration files;
and according to the data value, performing data filling processing on the database field in the form to be filled.
Those skilled in the art will appreciate that the structure shown in fig. 3 is only a block diagram of a part of the structure related to the present application, and does not constitute a limitation to the apparatus and the computer device to which the present application is applied.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a form filling method based on a configuration file, and specifically includes:
when a filling request of a form to be filled is received, acquiring a preset flow file;
screening out an appointed configuration file corresponding to the form to be filled out from the process file;
finding out appointed fields which are the same as the database fields in the form to be filled in from the appointed configuration file, and finding out data source fields which respectively correspond to the appointed fields;
extracting data values corresponding to the data source fields one by one from the data sources corresponding to the specified configuration files;
and according to the data value, performing data filling processing on the database field in the form to be filled.
To sum up, according to the configuration file-based form filling method, apparatus, computer device and storage medium provided in the embodiment of the present application, when a filling request of a form to be filled is received, a preset flow file is acquired; screening out an appointed configuration file corresponding to the form to be filled out from the process file; finding out appointed fields which are the same as the database fields in the form to be filled in from the appointed configuration file, and finding out data source fields which respectively correspond to the appointed fields; extracting data values corresponding to the data source fields one by one from the data sources corresponding to the specified configuration files; and according to the data value, performing data filling processing on the database field in the form to be filled. According to the embodiment of the application, when the filling request of the form to be filled is received, the required filling data can be rapidly acquired from the relevant data source according to the configuration file corresponding to the form to be filled, and then the data filling processing on the filling form is carried out according to the filling data, so that the automatic assignment of the content to be filled in the form to be filled is intelligently and conveniently realized, the data entry work is greatly simplified, the processing efficiency of the form filling is effectively improved, the accuracy of the filling data in the form is guaranteed, the examination and approval workload of an examining and approving person is reduced, and the use experience of a user is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware associated with instructions of a computer program, which may be stored on a non-volatile computer-readable storage medium, and when executed, may include processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Further, the computer usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The block chain underlying platform can comprise processing modules such as user management, basic service, intelligent contract and operation monitoring. The user management module is responsible for identity information management of all blockchain participants, and comprises public and private key generation maintenance (account management), key management, user real identity and blockchain address corresponding relation maintenance (authority management) and the like, and under the authorization condition, the user management module supervises and audits the transaction condition of certain real identities and provides rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node equipment and used for verifying the validity of the service request, recording the service request to storage after consensus on the valid request is completed, for a new service request, the basic service firstly performs interface adaptation analysis and authentication processing (interface adaptation), then encrypts service information (consensus management) through a consensus algorithm, transmits the service information to a shared account (network communication) completely and consistently after encryption, and performs recording and storage; the intelligent contract module is responsible for registering and issuing contracts, triggering the contracts and executing the contracts, developers can define contract logics through a certain programming language, issue the contract logics to a block chain (contract registration), call keys or other event triggering and executing according to the logics of contract clauses, complete the contract logics and simultaneously provide the function of upgrading and canceling the contracts; the operation monitoring module is mainly responsible for deployment, configuration modification, contract setting, cloud adaptation in the product release process and visual output of real-time states in product operation, such as: alarm, monitoring network conditions, monitoring node equipment health status, and the like.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method 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, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present application, and not intended to limit the scope of the present application, and all modifications of equivalent structures and equivalent processes, which are made by the contents of the specification and the drawings of the present application, or which are directly or indirectly applied to other related technical fields, are also included in the scope of the present application.

Claims (8)

1. A form filling method based on a configuration file is characterized by comprising the following steps:
when a filling request of a form to be filled is received, acquiring a preset flow file;
screening out an appointed configuration file corresponding to the form to be filled out from the process file;
finding out appointed fields which are the same as the database fields in the form to be filled in from the appointed configuration file, and finding out data source fields which respectively correspond to the appointed fields;
extracting data values corresponding to the data source fields one by one from the data sources corresponding to the specified configuration files;
according to the data value, performing data filling processing on the database field in the form to be filled;
the step of screening out the specified configuration file corresponding to the form to be filled out from the process file comprises the following steps:
acquiring form information of the form to be filled in, wherein the form information at least comprises form name information; according to the form information, finding out a form information field which is the same as the form information from the process file; according to the form information fields, screening out designated configuration files corresponding to the form information fields from the process files;
the step of screening out the specified configuration file corresponding to the form information field from the process file according to the form information field comprises the following steps:
acquiring the number of the form information fields; judging whether the number of the form information fields is more than 1; if the number of the form information fields is judged to be larger than 1, obtaining the comment information of each form information field respectively; determining a designated configuration file corresponding to the form information according to the annotation information;
wherein, the step of determining the specified configuration file corresponding to the form information according to the annotation information comprises:
and identifying the field meaning of each form information field according to the comment information, and determining a specified configuration file corresponding to the form information according to the field meaning of each form information field.
2. The method of claim 1, wherein the step of extracting data values corresponding to each data source field from the data source corresponding to the specified configuration file comprises:
extracting data source fields from the specified configuration file;
acquiring a data source corresponding to the data source field;
calling a preset interface to inquire the data source, and searching Chinese text data corresponding to each data source field one by one from the data source;
acquiring data values corresponding to the Chinese field data one by one;
after the step of obtaining the data values corresponding to the Chinese field data one to one, the method includes:
storing the data value onto a blockchain of a blockchain system.
3. The method of claim 1, wherein the step of performing data filling processing on the database fields in the form to be filled according to the data values comprises:
obtaining the corresponding relation between the designated field and the data value according to the corresponding relation between the designated field and the data source field and the corresponding relation between the data source field and the data value;
obtaining the corresponding relation between the database field and the data value according to the corresponding relation between the designated field and the data value;
and filling the data values to field storage positions of the database fields in the form to be filled in a one-to-one correspondence manner according to the corresponding relationship between the database fields and the data values so as to complete data filling processing of the database fields in the form to be filled in.
4. The method for filling out a form based on a configuration file according to claim 1, wherein the step of obtaining the preset process file when the request for filling out the form to be filled out is received comprises:
receiving an input configuration file, wherein the number of the configuration files comprises one or more;
the configuration file is configured in a preset template file to obtain a process file;
and storing the flow file.
5. The method of claim 1, wherein the step of performing data filling processing on the database fields in the form to be filled according to the data values comprises:
displaying a specified form obtained after data filling processing is carried out on the database field in the form to be filled;
judging whether feedback information related to the specified form is received or not;
and if the feedback information related to the specified form is judged to be received, adjusting the specified form corresponding to the feedback information according to the feedback information.
6. A profile-based form filling apparatus, comprising:
the acquisition module is used for acquiring a preset flow file when a filling request of a form to be filled is received;
the screening module is used for screening out the specified configuration file corresponding to the form to be filled out from the flow file;
the searching module is used for searching out the specified fields which are the same as the database fields in the form to be filled in from the specified configuration file and searching out the data source fields which respectively correspond to the specified fields;
the extraction module is used for extracting data values which are in one-to-one correspondence with the data source fields from the data sources corresponding to the specified configuration files;
the filling module is used for performing data filling processing on the database fields in the form to be filled according to the data values;
the screening module includes: the first acquisition unit is used for acquiring form information of the form to be filled in, wherein the form information at least comprises form name information; the first searching unit is used for searching a form information field which is the same as the form information from the process file according to the form information; the screening unit is used for screening out a specified configuration file corresponding to the form information field from the process file according to the form information field;
the screening unit includes: the first obtaining subunit is used for obtaining the number of the form information fields; the judging subunit is used for judging whether the number of the form information fields is greater than 1; the second obtaining subunit is configured to, if it is determined that the number of the form information fields is greater than 1, obtain annotation information of each of the form information fields respectively; the determining subunit is used for determining a specified configuration file corresponding to the form information according to the annotation information;
the determining subunit is specifically configured to identify a field meaning of each form information field according to the comment information, and determine a specific configuration file corresponding to the form information according to the field meaning of each form information field.
7. A computer device comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any of claims 1 to 5.
8. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, realizing the steps of the method of any one of claims 1 to 5.
CN202010706961.XA 2020-07-21 2020-07-21 Configuration file based form filling method and device and computer equipment Active CN111737963B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010706961.XA CN111737963B (en) 2020-07-21 2020-07-21 Configuration file based form filling method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010706961.XA CN111737963B (en) 2020-07-21 2020-07-21 Configuration file based form filling method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN111737963A CN111737963A (en) 2020-10-02
CN111737963B true CN111737963B (en) 2020-12-04

Family

ID=72655994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010706961.XA Active CN111737963B (en) 2020-07-21 2020-07-21 Configuration file based form filling method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN111737963B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112668041B (en) * 2020-12-17 2023-07-04 平安消费金融有限公司 Method and device for generating document file, computer equipment and storage medium
CN112989769A (en) * 2021-02-08 2021-06-18 北京金和网络股份有限公司 Method, device and platform for constructing multi-data-source form based on form engine
CN112734405B (en) * 2021-03-30 2021-07-13 阿里云计算有限公司 Item acceptance method, item acceptance device, related equipment and storage medium
CN113408259B (en) * 2021-06-09 2024-05-07 微易签(杭州)科技有限公司 Method, system, device and storage medium for filling in file based on blockchain
CN113535260B (en) * 2021-06-29 2022-11-04 未鲲(上海)科技服务有限公司 Simulator-based data processing method, device, equipment and storage medium
CN113761858B (en) * 2021-09-07 2024-09-27 平安国际智慧城市科技股份有限公司 Form data processing method, device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706716A (en) * 2009-09-08 2010-05-12 南京师范大学 VO-based form customization, configuration and parsing operation method
CN108595393A (en) * 2018-01-11 2018-09-28 太原理工大学 A kind of automatic form filling method and device
CN109308350A (en) * 2018-09-26 2019-02-05 平安普惠企业管理有限公司 Format Auto Filling Forms method, apparatus, computer equipment and storage medium
CN110717320A (en) * 2019-10-11 2020-01-21 上海管和信息科技有限公司 Form/report designer and method suitable for multiple platforms and information management system
CN111124405A (en) * 2019-12-04 2020-05-08 浪潮软件股份有限公司 Method and system for realizing online form design supporting front-end and back-end decoupling

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369272A (en) * 2007-08-17 2009-02-18 徐萍 Auto-filling system and method for auto-filling registration or login information
CN102201009B (en) * 2011-06-21 2013-02-27 深圳市凯立德科技股份有限公司 Form generating method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101706716A (en) * 2009-09-08 2010-05-12 南京师范大学 VO-based form customization, configuration and parsing operation method
CN108595393A (en) * 2018-01-11 2018-09-28 太原理工大学 A kind of automatic form filling method and device
CN109308350A (en) * 2018-09-26 2019-02-05 平安普惠企业管理有限公司 Format Auto Filling Forms method, apparatus, computer equipment and storage medium
CN110717320A (en) * 2019-10-11 2020-01-21 上海管和信息科技有限公司 Form/report designer and method suitable for multiple platforms and information management system
CN111124405A (en) * 2019-12-04 2020-05-08 浪潮软件股份有限公司 Method and system for realizing online form design supporting front-end and back-end decoupling

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Chrome浏览器如何自动填写表单提高工作效率;ShaLongBus;《https://jingyan.baidu.com/article/e73e26c0992c4524adb6a701.html》;20171007;第1-3页 *
办公自动化通用表单流程设计器的设计与实现;张靖;《万方数据知识服务平台》;20190917;第1-103页 *

Also Published As

Publication number Publication date
CN111737963A (en) 2020-10-02

Similar Documents

Publication Publication Date Title
CN111737963B (en) Configuration file based form filling method and device and computer equipment
CN112328482A (en) Test method and device based on script template, computer equipment and storage medium
CN112637282B (en) Information pushing method and device, computer equipment and storage medium
CN113177396B (en) Report generation method and device, computer equipment and storage medium
CN112668041A (en) Document file generation method and device, computer equipment and storage medium
CN113642039A (en) Configuration method and device of document template, computer equipment and storage medium
CN113742776A (en) Data verification method and device based on biological recognition technology and computer equipment
CN111880921A (en) Job processing method and device based on rule engine and computer equipment
CN114218097A (en) Test case generation method and device, computer equipment and storage medium
CN112597158A (en) Data matching method and device, computer equipment and storage medium
CN113660229B (en) Multi-system single sign-on method, device, equipment and medium based on RPA
CN112163131A (en) Configuration method and device of business data query platform, computer equipment and medium
CN112380286B (en) Method, device, equipment and medium for generating data object relation map of database
CN111797605A (en) Report generation method and device based on report template and computer equipment
CN112650659B (en) Buried point setting method and device, computer equipment and storage medium
CN114817055A (en) Regression testing method and device based on interface, computer equipment and storage medium
CN113656588A (en) Data code matching method, device, equipment and storage medium based on knowledge graph
CN113918609A (en) Test paper creating method and device, computer equipment and storage medium
CN114237886A (en) Task processing method and device, computer equipment and storage medium
CN113051372A (en) Material data processing method and device, computer equipment and storage medium
CN112965981A (en) Data checking method and device, computer equipment and storage medium
CN112328260A (en) SQL statement conversion method and device based on big data platform and computer equipment
CN113535260B (en) Simulator-based data processing method, device, equipment and storage medium
CN113077185B (en) Workload evaluation method, workload evaluation device, computer equipment and storage medium
CN113191146B (en) Appeal data distribution method and device, computer 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
GR01 Patent grant
GR01 Patent grant