CN110096496A - A kind of form validation method, relevant apparatus and equipment - Google Patents

A kind of form validation method, relevant apparatus and equipment Download PDF

Info

Publication number
CN110096496A
CN110096496A CN201910240950.4A CN201910240950A CN110096496A CN 110096496 A CN110096496 A CN 110096496A CN 201910240950 A CN201910240950 A CN 201910240950A CN 110096496 A CN110096496 A CN 110096496A
Authority
CN
China
Prior art keywords
information
form information
type identifier
verification
list
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.)
Withdrawn
Application number
CN201910240950.4A
Other languages
Chinese (zh)
Inventor
陈华瑞
雷敏
柳超
林义
冒勇军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maimaiti Mdt Infotech Ltd Shenzhen
Original Assignee
Maimaiti Mdt Infotech Ltd Shenzhen
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 Maimaiti Mdt Infotech Ltd Shenzhen filed Critical Maimaiti Mdt Infotech Ltd Shenzhen
Priority to CN201910240950.4A priority Critical patent/CN110096496A/en
Publication of CN110096496A publication Critical patent/CN110096496A/en
Withdrawn legal-status Critical Current

Links

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/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the present application discloses a kind of list method of inspection, relevant apparatus and equipment, this method comprises: obtaining the form information that user inputs in form fields, the form information includes preset rules form information;Verification type identifier corresponding with the form fields will be extracted in the preset attribute value of the form fields;Based on the verification type identifier, regular expression corresponding with the verification type identifier is transferred;The corresponding form information is verified using the regular expression;After verification passes through, calls information in database to be compared with the preset rules form information, show comparison result.Using the embodiment of the present application, can it is more convenient, quickly verify list.

Description

A kind of form validation method, relevant apparatus and equipment
Technical field
This application involves field of computer technology more particularly to a kind of form validation methods, relevant apparatus and equipment.
Background technique
With the development of computer technology and big data, many companies will the logging data in the form of list, list Input item can be inputted because of different users different, whether correct need to verify the content that input item in list inputs.But It is that often the rule of typing can change because of the change of scene, and inspection rule can also change therewith, moreover, having In the case of, the more items then up to a hundred of entry item all can be very complicated using a kind of verification rule for each single item, needs many people The investment of power material resources.Therefore, it is necessary to a kind of Templated form validation methods to simplify cumbersome list verification rule.
Summary of the invention
The embodiment of the present application provide a kind of form validation method, a kind of list calibration equipment, a kind of list calibration equipment, with And a kind of computer readable storage medium, relatively cumbersome to solve existing form validation method implementation procedure, efficiency is relatively low Technical problem.
In order to solve the above-mentioned technical problem, the embodiment of the present application first aspect discloses a kind of form validation method, comprising:
The form information that user inputs in form fields is obtained, the form information includes preset rules form information;
Verification type identifier corresponding with the form fields will be extracted in the preset attribute value of the form fields;
Based on the verification type identifier, regular expression corresponding with the verification type identifier is transferred;
The corresponding form information is verified using the regular expression;
After verification passes through, information in database is called to be compared with the preset rules form information, display compares knot Fruit.
In a kind of feasible implementation, the form fields include such as at least one of Types Below: text box, input Frame and combobox.
In a kind of feasible implementation, after the verification passes through, information and the preset rules in database are called Form information is compared, and shows comparison result, comprising:
Inquire the list in the database;
Compare whether the list in the database has information identical as the preset rules form information;
If list has information identical with the default form information in the database, the default list is shown Information has repeated.
In a kind of feasible implementation, information and the preset rules form information are carried out in the calling database It compares, after display comparison result, comprising:
Transfer third-party server interface corresponding with the preset rules form information;
The permission for entering third-party server is obtained, it will be in the preset rules form information and the third-party server Information verified.
It is described to obtain the permission for entering third-party server in a kind of feasible implementation, by the preset rules After information in form information and the third-party server is verified, comprising:
It verifies whether to pass through described in judgement, if so, submission processing is carried out to the form information, if it is not, then forbidding Submission processing is carried out to the form information, and triggers corresponding message notifying window.
In a kind of feasible implementation, extracted in the preset attribute value by the form fields and the list Before the corresponding verification type identifier in domain, comprising:
Increase a new attribute into the form fields;
It will be given to the new attribute in the corresponding verification type identifier of the form fields, by the verification type mark Know attribute value of the symbol as new attribute.
It is described to be based on the verification type identifier in a kind of feasible implementation, it transfers and the verification type Before the corresponding regular expression of identifier, comprising:
It detects after the user has inputted the form information and whether triggers corresponding verification starting event, if it is, Based on the verification type identifier, regular expression corresponding with the verification type identifier is transferred;Wherein, the verification Starting event includes clicking default button screen event, clicking default keyboard button event or mobile mouse event.
It is described to transfer regular expression corresponding with the verification type identifier in a kind of feasible implementation, Include:
Regular expressions corresponding with the verification type identifier are transferred from preset configuration file, wherein described to match Setting file is to be pre-created for recording regular expression and verifying the file of mapping relations between type identifier.
The embodiment of the present application second aspect discloses a kind of list calibration equipment, including executing the side such as above-mentioned first aspect The unit of method.
The embodiment of the present application third aspect discloses a kind of list calibration equipment, including processor, input equipment, output are set Standby and memory, the processor, input equipment, output equipment and memory are connected with each other, wherein the memory is for depositing Application code is stored up, the processor is configured for calling said program code, execute as described in above-mentioned first aspect Method.
The embodiment of the present application fourth aspect discloses a kind of computer storage medium, and the computer storage medium has calculating Machine program, the computer program include program instruction, and described program instruction when being executed by a processor holds the processor The method of row such as above-mentioned first aspect.
Implement the embodiment of the present application, the form information that can be inputted in form fields by obtaining user, the list letter Breath includes preset rules form information;Verification corresponding with the form fields will be extracted in the preset attribute value of the form fields Type identifier;Based on the verification type identifier, regular expression corresponding with the verification type identifier is transferred;Benefit The corresponding form information is verified with the regular expression;After verification passes through, information and institute in database are called It states preset rules form information to be compared, shows comparison result.As it can be seen that user inputs in form fields the application after the acquisition After form information, the corresponding verification type identifier of form fields is extracted, then transfers canonical table corresponding with verification type identifier Form information is verified up to formula.Corresponding regular expression is called directly to be verified, avoid in list it is each not Corresponding verification rule is designed with type form information, simplifies list checking procedure.Verification verifies preset rules after passing through again Form information is chosen the form information saved in the specific form information of a few items and database and is compared, sees data Preset rules form information whether is had existed in library, user is avoided to repeat typing information, improves the efficiency of list verification.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art, embodiment or the prior art will be retouched below Attached drawing needed in stating is briefly described.
Wherein:
Fig. 1 is a kind of schematic flow diagram of form validation method provided by the embodiments of the present application;
Fig. 2 is the exemplary schematic diagram of list provided by the embodiments of the present application;
Fig. 3 is the structural schematic diagram of list calibration equipment provided by the embodiments of the present application;
Fig. 4 is the structural schematic diagram of list calibration equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment And be not intended to limit the application.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
In the specific implementation, the method for the verification of list described in the embodiment of the present application can be by mobile phone, desktop computer, above-knee meter Calculation machine, wearable device etc. have list verification, check that the terminal device of list check results is realized, are not construed as limiting herein.It is right The embodiment of the present application is described by executing subject of terminal device, it should be appreciated that terminal may include such as secondary or physical bond One or more of the other physical user-interface device of disk, mouse and/or control-rod.
The embodiment of the present application provides a kind of form validation method, comprising: obtains the list that user inputs in form fields Information, the form information include preset rules form information;To be extracted in the preset attribute value of the form fields with it is described The corresponding verification type identifier of form fields;Based on the verification type identifier, transfer and the verification type identifier pair The regular expression answered;The corresponding form information is verified using the regular expression;After verification passes through, call Information is compared with the preset rules form information in database, shows comparison result.It is described in detail individually below.
In order to better understand a kind of form validation method, list calibration equipment and list provided by the embodiments of the present application The process of calibration equipment, a kind of form validation method being first applicable in below the embodiment of the present application is described.Referring to Fig. 1, Fig. 1 is the flow diagram of form validation method provided by the embodiments of the present application, the form validation method in the embodiment of the present application Include:
Step S100: obtaining the form information that user inputs in form fields, and the form information includes preset rules table Single information.
Specifically, server obtains the form information that user inputs in form fields, and the form information of input can be body Part card number, cell-phone number, IP address, email address, file, date, amount of currency, name, Antomobile name or Business Name etc. Deng herein without limitation to specific form information.The possible corresponding form information of different lists is different, and the list got is defeated It is also different to enter item.Form fields can be one of text box, input frame and combobox or a combination thereof, herein without limitation. Wherein it is possible to which any one form information is set as preset rules form information, such as Business Name, Antomobile name or identity card Number etc., it is not construed as limiting herein.
Step S101: verification type mark corresponding with the form fields will be extracted in the preset attribute value of the form fields Know symbol.
It is understood that needing to be arranged one for recording verification for above-mentioned form fields in advance before applying for embodiment The attribute of type identifier, for example, if what is obtained in form fields is identification card number, set then being verified type identifier It is set to ID, i.e., indicates regular expression when form information is identification card number using ID;If what is obtained in form fields is mobile phone Number indicates canonical when form information is phone number then being verified type identifier is set as MP using MP Expression formula;If what is obtained in form fields is fixed telephone number, i.e. base number, set then type identifier can be verified It is set to MT, i.e., indicates regular expression when form information is base number with MT.Herein it should be noted that verification type Identifier can be arbitrarily arranged, and be not construed as limiting here to the concrete form of verification type identifier.
In a kind of feasible embodiment, extracted in the preset attribute value by the form fields and the list Before the corresponding verification type identifier in domain, comprising: increase a new attribute in Xiang Suoshu form fields;It will be in the form fields pair The verification type identifier answered is given to the new attribute, using the verification type identifier as the attribute value of new attribute. The method of calibration that the application can be made to propose in this way is suitable for various types of lists.
Step S102: it is based on the verification type identifier, transfers canonical table corresponding with the verification type identifier Up to formula.
Specifically, if verification type identifier be ID, the regular expression transferred out are as follows: ^ d { 15 } | d { 18 } $; If verification type identifier is MP, the regular expression transferred out are as follows: ^ (13 [0-9] | 14 [5 | 7] | 15 [0 | 1 | 2 | 3 | 5 | 6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\d{8}$;If verification type identifier is MT, the canonical table transferred out Up to formula are as follows: ^ ((d { 3,4 } -) | d { 3.4 } -)? d { 7,8 } $.Each verification type identifier all corresponds to a canonical Expression formula.
It is described to be based on the verification type identifier in a kind of feasible embodiment, it transfers and the verification type Before the corresponding regular expression of identifier, comprising: detect after the user has inputted the form information and whether trigger accordingly Verification start event, if it is, be based on the verification type identifier, transfer corresponding with the verification type identifier Regular expression.Wherein, the verification starting event includes clicking default button screen event, clicking default keyboard button event Or mobile mouse event.Start to verify again after receiving verifying starting triggering, avoids situation about not inputted in user with regard to school It tests.
It is described to transfer regular expression corresponding with the verification type identifier in a kind of feasible embodiment, It include: that regular expressions corresponding with the verification type identifier are transferred from preset configuration file, wherein the configuration text Part is to be pre-created for recording regular expression and verifying the file of mapping relations between type identifier.Directly configuring Mapping relations between all regular expressions that record needs to use in file and verification type identifier, convenient for verification;And And if to increase new attribute, corresponding verification type identifier and regular expression can also directly be added in configuration file In.
Step S103: the corresponding form information is verified using the regular expression.
Specifically, school is carried out to the form information using the verification type identifier corresponding regular expression of form information It tests.Namely corresponding form information is verified using the regular expression that above-mentioned steps S102 is transferred out.
Step S104: it after verification passes through, calls information in database to be compared with the preset rules form information, shows Show comparison result.
Specifically, it calls existing list and preset rules form information in database to be compared, sees if there is and in advance If the regular duplicate list of form information, and show comparison as a result, i.e. whether there is or not repeatedly, in this way can be to avoid repeatedly inputting Form information.
In a kind of feasible embodiment, after the verification passes through, information and the preset rules in database are called Form information is compared, and shows comparison result, comprising: inquire the list in the database;It compares in the database Whether list has information identical as the preset rules form information;If list exists and the default list in the database The identical information of information then shows that the default form information has repeated.It avoids repeating to fill in list, saves user time.
In a kind of feasible embodiment, information and the preset rules form information are carried out in the calling database It compares, after display comparison result, comprising: transfer third-party server interface corresponding with the preset rules form information; Obtain the permission for entering third-party server, by the information in the preset rules form information and the third-party server into Row verifying.As an example it is assumed that preset rules form information is Business Name and company management license number, then can enter the Tripartite's server, for example, the corresponding official website of this company or industrial and commercial bureau's query web inquire inputted Business Name whether and Company management license is pair to further demonstrate the authenticity of inputted form information in this way.
It is described to obtain the permission for entering third-party server in a kind of feasible embodiment, by the preset rules After information in form information and the third-party server is verified, comprising: it verifies whether to pass through described in judgement, if It is that submission processing then is carried out to the form information, if it is not, then forbidding carrying out submission processing to the form information, and touches Send out message notifying window corresponding.List can be submitted after being verified, so as to save the list.
Implement the embodiment of the present application, the form information that can be inputted in form fields by obtaining user, the list letter Breath includes preset rules form information;Verification corresponding with the form fields will be extracted in the preset attribute value of the form fields Type identifier;Based on the verification type identifier, regular expression corresponding with the verification type identifier is transferred;Benefit The corresponding form information is verified with the regular expression;After verification passes through, information and institute in database are called It states preset rules form information to be compared, shows comparison result.As it can be seen that user inputs in form fields the application after the acquisition After form information, the corresponding verification type identifier of form fields is extracted, then transfers canonical table corresponding with verification type identifier Form information is verified up to formula.Corresponding regular expression is called directly to be verified, avoid in list it is each not Corresponding verification rule is designed with type form information, simplifies list checking procedure.Verification verifies preset rules after passing through again Form information is chosen the form information saved in the specific form information of a few items and database and is compared, sees data Preset rules form information whether is had existed in library, user is avoided to repeat typing information, improves the efficiency of list verification.
For example, the exemplary schematic diagram of list provided by the embodiments of the present application as shown in Figure 2.List shown in the figure In include supplier ID, vendor name, supplier contact person etc. form fields.Wherein supplier ID and vendor name are pre- If regular form information.After user inputs corresponding form information in form fields, the corresponding verification type of form fields is extracted Identifier, then transfer regular expression corresponding with verification type identifier and form information is verified.Then number is recalled According to seeing whether the list that supplier ID is 123XXX and vendor name is ABC is crossed in typing in library, if so, then prompting weight Multiple, there is no need to be further continued for the form information that typing supplier ID is 123XXX and vendor name is ABC.If no, may be used It is whether consistent with what is externally announced with vendor name further to remove to verify the supplier ID, if wrong.It, can if errorless The list is submitted to click.
The structural schematic diagram of list calibration equipment provided by the embodiments of the present application as shown in Figure 3, list calibration equipment 10 It may include: acquiring unit 100, extraction unit 101, transfer unit 102, verification unit 103, display unit 104, wherein
Acquiring unit 100, the form information inputted in form fields for obtaining user, the form information include default Regular form information;
Extraction unit 101, for extracting school corresponding with the form fields in the preset attribute value by the form fields Test type identifier;
Unit 102 is transferred, for being based on the verification type identifier, is transferred corresponding with the verification type identifier Regular expression;
Verification unit 103, for being verified using the regular expression to the corresponding form information;
Display unit 104 after passing through for verification, calls information and the preset rules form information in database to carry out It compares, shows comparison result.
In a kind of feasible embodiment, display unit 104 can be also used for the list inquired in the database;It is right Whether there is information identical as the preset rules form information than the list in the database;If list is deposited in the database In information identical with the default form information, then show that the default form information has repeated.
In a kind of feasible embodiment, display unit 104 can be also used for transferring to be believed with the preset rules list Cease corresponding third-party server interface;Obtain enter third-party server permission, by the preset rules form information with Information in the third-party server is verified.
In a kind of feasible embodiment, display unit 104 can be also used for verifying whether to pass through described in judgement, if It is that submission processing then is carried out to the form information, if it is not, then forbidding carrying out submission processing to the form information, and touches Send out message notifying window corresponding.
In a kind of feasible embodiment, extraction unit 101 can be also used for increasing into the form fields one newly Attribute;It will be given to the new attribute in the corresponding verification type identifier of the form fields, by the verification type identification Accord with the attribute value as new attribute.
In a kind of feasible embodiment, transfers unit 102 and can be also used for detecting the user and inputted the table Corresponding verification starting event whether is triggered after single information, if it is, be based on the verification type identifier, transfer with it is described Verify the corresponding regular expression of type identifier.Wherein, the verification starting event include click default button screen event, Click default keyboard button event or mobile mouse event.
In a kind of feasible embodiment, transfer unit 102 can be also used for transferring from preset configuration file with The corresponding regular expressions of the verification type identifier, wherein the configuration file is to be pre-created for recording canonical table Up to the file of mapping relations between formula and verification type identifier.
It should be noted that the list calibration equipment 10 in the embodiment of the present application is table of the above-mentioned Fig. 1 into Fig. 2 embodiment Single calibration equipment, the function of each module can be corresponded to reference to Fig. 1 to Fig. 2 in above-mentioned each method embodiment in the list calibration equipment 10 The specific implementation of embodiment, which is not described herein again.
Implement the embodiment of the present application, the form information that can be inputted in form fields by obtaining user, the list letter Breath includes preset rules form information;Verification corresponding with the form fields will be extracted in the preset attribute value of the form fields Type identifier;Based on the verification type identifier, regular expression corresponding with the verification type identifier is transferred;Benefit The corresponding form information is verified with the regular expression;After verification passes through, information and institute in database are called It states preset rules form information to be compared, shows comparison result.As it can be seen that user inputs in form fields the application after the acquisition After form information, the corresponding verification type identifier of form fields is extracted, then transfers canonical table corresponding with verification type identifier Form information is verified up to formula.Corresponding regular expression is called directly to be verified, avoid in list it is each not Corresponding verification rule is designed with type form information, simplifies list checking procedure.Verification verifies preset rules after passing through again Form information is chosen the form information saved in the specific form information of a few items and database and is compared, sees data Preset rules form information whether is had existed in library, user is avoided to repeat typing information, improves the efficiency of list verification.
For the ease of better implementing the above scheme of the embodiment of the present application, the application also correspondence provides a kind of list school It tests equipment, is described in detail with reference to the accompanying drawing:
The structural schematic diagram of list calibration equipment provided by the embodiments of the present application as shown in Figure 4, list calibration equipment 110 It may include processor 1101, input unit 1102, output unit 1103, memory 1104 and communication unit 1105, processor 1101, input unit 1102, output unit 1103, memory 1104 and communication unit 1105 can mutually be interconnected by bus 1106 It connects.Memory 1104 can be high speed RAM memory, be also possible to non-volatile memory (non-volatile Memory), a for example, at least magnetic disk storage.Memory 1104 optionally can also be that at least one is located remotely from aforementioned place Manage the storage system of device 1101.Memory 1104 may include operating system, network communication mould for storing application code Block, Subscriber Interface Module SIM and list checking routine, communication unit 1105 are used to carry out information exchange with external unit;Processor 1101 are configured for calling said program code, execute following steps:
Processor 1101 obtains the form information that user inputs in form fields, and the form information includes preset rules Form information;
Processor 1101 will extract verification type corresponding with the form fields in the preset attribute value of the form fields Identifier;
Processor 1101 is based on the verification type identifier, transfers canonical table corresponding with the verification type identifier Up to formula;
Processor 1101 verifies the corresponding form information using the regular expression;
After the verification of processor 1101 passes through, information in database is called to be compared with the preset rules form information, Show comparison result.
Processor 1101 inquires the list in the database;Compare whether the list in the database has information and institute It is identical to state preset rules form information;If in the database there is information identical with the default form information in list, Show that the default form information has repeated.
Processor 1101 transfers third-party server interface corresponding with the preset rules form information;It obtains and enters the The permission of tripartite's server verifies the preset rules form information with the information in the third-party server.
Processor 1101 verifies whether to pass through described in judging, if so, submission processing is carried out to the form information, if It is no, then forbid carrying out submission processing to the form information, and trigger corresponding message notifying window.
Processor 1101 increases a new attribute into the form fields;It will be in the corresponding verification type mark of the form fields Know symbol and be given to the new attribute, using the verification type identifier as the attribute value of new attribute.
Processor 1101 detects after the user has inputted the form information whether trigger corresponding verification starting event, If it is, being based on the verification type identifier, regular expression corresponding with the verification type identifier is transferred.
Processor 1101 transfers regular expressions corresponding with the verification type identifier from preset configuration file, In, the configuration file is to be pre-created for recording regular expression and verifying the text of mapping relations between type identifier Part.
It should be noted that the list calibration equipment 110 in the embodiment of the present application is above-mentioned Fig. 1 into Fig. 2 embodiment List calibration equipment can specifically correspond to the specific implementation with reference to Fig. 1 in above-mentioned each method embodiment to Fig. 2 embodiment, this In repeat no more.The above-mentioned structure for list calibration equipment 110 is only an example provided by the embodiments of the present application, also, List calibration equipment 110 can have components more more or fewer than the component shown, can combine two or more components, or Person can have the different configurations of component to realize.
Implement the embodiment of the present application, the form information that can be inputted in form fields by obtaining user, the list letter Breath includes preset rules form information;Verification corresponding with the form fields will be extracted in the preset attribute value of the form fields Type identifier;Based on the verification type identifier, regular expression corresponding with the verification type identifier is transferred;Benefit The corresponding form information is verified with the regular expression;After verification passes through, information and institute in database are called It states preset rules form information to be compared, shows comparison result.As it can be seen that user inputs in form fields the application after the acquisition After form information, the corresponding verification type identifier of form fields is extracted, then transfers canonical table corresponding with verification type identifier Form information is verified up to formula.Corresponding regular expression is called directly to be verified, avoid in list it is each not Corresponding verification rule is designed with type form information, simplifies list checking procedure.Verification verifies preset rules after passing through again Form information is chosen the form information saved in the specific form information of a few items and database and is compared, sees data Preset rules form information whether is had existed in library, user is avoided to repeat typing information, improves the efficiency of list verification.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a kind of computer-readable storage Jie In matter, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be U Disk, magnetic disk, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The application can be system, method and/or computer program product.Computer program product may include computer Readable storage medium storing program for executing, containing for make processor realize the application various aspects computer-readable program instructions.
Computer readable storage medium, which can be, can keep and store the tangible of the instruction used by instruction execution equipment Equipment.Computer readable storage medium for example can be-- but it is not limited to-- storage device electric, magnetic storage apparatus, optical storage Equipment, electric magnetic storage apparatus, semiconductor memory apparatus or above-mentioned any appropriate combination.Computer readable storage medium More specific example (non exhaustive list) includes: portable computer diskette, hard disk, random access memory (RAM), read-only deposits It is reservoir (ROM), erasable programmable read only memory (EPROM or flash memory), static random access memory (SRAM), portable Compact disk read-only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanical coding equipment, for example thereon It is stored with punch card or groove internal projection structure and the above-mentioned any appropriate combination of instruction.Calculating used herein above Machine readable storage medium storing program for executing is not interpreted that instantaneous signal itself, the electromagnetic wave of such as radio wave or other Free propagations lead to It crosses the electromagnetic wave (for example, the light pulse for passing through fiber optic cables) of waveguide or the propagation of other transmission mediums or is transmitted by electric wire Electric signal.
Computer-readable program instructions as described herein can be downloaded to from computer readable storage medium it is each calculate/ Processing equipment, or outer computer or outer is downloaded to by network, such as internet, local area network, wide area network and/or wireless network Portion stores equipment.Network may include copper transmission cable, optical fiber transmission, wireless transmission, router, firewall, interchanger, gateway Computer and/or Edge Server.Adapter or network interface in each calculating/processing equipment are received from network to be counted Calculation machine readable program instructions, and the computer-readable program instructions are forwarded, for the meter being stored in each calculating/processing equipment In calculation machine readable storage medium storing program for executing.
Computer program instructions for executing the application operation can be assembly instruction, instruction set architecture (ISA) instructs, Machine instruction, machine-dependent instructions, microcode, firmware instructions, condition setup data or with one or more programming languages The source code or object code that any combination is write, the programming language include the programming language-of object-oriented such as Smalltalk, C++ etc., and conventional procedural programming languages-such as " C " language or similar programming language.Computer Readable program instructions can be executed fully on the user computer, partly execute on the user computer, be only as one Vertical software package executes, part executes on the remote computer or completely in remote computer on the user computer for part Or it is executed on server.In situations involving remote computers, remote computer can pass through network-packet of any kind It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).In some embodiments, by utilizing computer-readable program instructions Status information carry out personalized customization electronic circuit, such as programmable logic circuit, field programmable gate array (FPGA) or can Programmed logic array (PLA) (PLA), the electronic circuit can execute computer-readable program instructions, to realize each side of the application Face.
Referring herein to according to the flow chart of the method, apparatus (system) of the embodiment of the present application and computer program product and/ Or block diagram describes the various aspects of the application.It should be appreciated that flowchart and or block diagram each box and flow chart and/ Or in block diagram each box combination, can be realized by computer-readable program instructions.
These computer-readable program instructions can be supplied to general purpose computer, special purpose computer or other programmable datas The processor of processing unit, so that a kind of machine is produced, so that these instructions are passing through computer or other programmable datas When the processor of processing unit executes, function specified in one or more boxes in implementation flow chart and/or block diagram is produced The device of energy/movement.These computer-readable program instructions can also be stored in a computer-readable storage medium, these refer to It enables so that computer, programmable data processing unit and/or other equipment work in a specific way, thus, it is stored with instruction Computer-readable medium then includes a manufacture comprising in one or more boxes in implementation flow chart and/or block diagram The instruction of the various aspects of defined function action.
Computer-readable program instructions can also be loaded into computer, other programmable data processing units or other In equipment, so that series of operation steps are executed in computer, other programmable data processing units or other equipment, to produce Raw computer implemented process, so that executed in computer, other programmable data processing units or other equipment Instruct function action specified in one or more boxes in implementation flow chart and/or block diagram.
The flow chart and block diagram in the drawings show system, method and the computer journeys according to multiple embodiments of the application The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation One module of table, program segment or a part of instruction, the module, program segment or a part of instruction include one or more use The executable instruction of the logic function as defined in realizing.In some implementations as replacements, function marked in the box It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually be held substantially in parallel Row, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that block diagram and/or The combination of each box in flow chart and the box in block diagram and or flow chart, can the function as defined in executing or dynamic The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
Above disclosed is only the application preferred embodiment, cannot limit the right model of the application with this certainly It encloses, therefore according to equivalent variations made by the claim of this application, still belongs to the range that the application is covered.

Claims (10)

1. a kind of form information method of calibration characterized by comprising
The form information that user inputs in form fields is obtained, the form information includes preset rules form information;
Verification type identifier corresponding with the form fields will be extracted in the preset attribute value of the form fields;
Based on the verification type identifier, regular expression corresponding with the verification type identifier is transferred;
The corresponding form information is verified using the regular expression;
After verification passes through, calls information in database to be compared with the preset rules form information, show comparison result.
2. the method according to claim 1, wherein calling information and institute in database after the verification passes through It states preset rules form information to be compared, shows comparison result, comprising:
Inquire the list in the database;
Compare whether the list in the database has information identical as the preset rules form information;
If list has information identical with the default form information in the database, the default form information is shown It has repeated.
3. according to the method described in claim 2, it is characterized in that, information and the preset rules table in the calling database Single information is compared, after display comparison result, comprising:
Transfer third-party server interface corresponding with the preset rules form information;
The permission for entering third-party server is obtained, by the letter in the preset rules form information and the third-party server Breath is verified.
4. according to the method described in claim 3, it is characterized in that, described obtain the permission for entering third-party server, by institute It states after the information in preset rules form information and the third-party server verified, comprising:
It verifies whether to pass through described in judgement, if so, submission processing is carried out to the form information, if it is not, then forbidding to institute It states form information and carries out submission processing, and trigger corresponding message notifying window.
5. the method according to claim 1, wherein being extracted in the preset attribute value by the form fields Before verification type identifier corresponding with the form fields, comprising:
Increase a new attribute into the form fields;
It will be given to the new attribute in the corresponding verification type identifier of the form fields, by the verification type identifier Attribute value as new attribute.
6. being transferred and institute the method according to claim 1, wherein described be based on the verification type identifier It states before verifying the corresponding regular expression of type identifier, comprising:
It detects after the user has inputted the form information and whether triggers corresponding verification starting event, if it is, being based on The verification type identifier transfers regular expression corresponding with the verification type identifier.
7. the method according to claim 1, wherein it is described transfer it is corresponding just with the verification type identifier Then expression formula, comprising:
Regular expressions corresponding with the verification type identifier are transferred from preset configuration file, wherein the configuration text Part is to be pre-created for recording regular expression and verifying the file of mapping relations between type identifier.
8. a kind of form information calibration equipment, which is characterized in that including for executing such as the described in any item sides of claim 1-7 The unit of method.
9. a kind of equipment, which is characterized in that the processor, defeated including processor, input equipment, output equipment and memory Enter equipment, output equipment and memory to be connected with each other, wherein the memory is for storing application code, the processing Device is configured for calling said program code, executes the method according to claim 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with computer program, The computer program includes program instruction, and described program instruction makes the processor execute such as right when being executed by a processor It is required that the described in any item methods of 1-7.
CN201910240950.4A 2019-03-27 2019-03-27 A kind of form validation method, relevant apparatus and equipment Withdrawn CN110096496A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910240950.4A CN110096496A (en) 2019-03-27 2019-03-27 A kind of form validation method, relevant apparatus and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910240950.4A CN110096496A (en) 2019-03-27 2019-03-27 A kind of form validation method, relevant apparatus and equipment

Publications (1)

Publication Number Publication Date
CN110096496A true CN110096496A (en) 2019-08-06

Family

ID=67443077

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910240950.4A Withdrawn CN110096496A (en) 2019-03-27 2019-03-27 A kind of form validation method, relevant apparatus and equipment

Country Status (1)

Country Link
CN (1) CN110096496A (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110765145A (en) * 2019-10-15 2020-02-07 益萃网络科技(中国)有限公司 Content item transmission method, device, equipment and storage medium
CN110866381A (en) * 2019-09-29 2020-03-06 京东数字科技控股有限公司 Form verification method and device, storage medium and equipment
CN111355709A (en) * 2020-02-19 2020-06-30 望海康信(北京)科技股份公司 Data verification method and device, electronic equipment and computer readable storage medium
CN112016283A (en) * 2020-08-18 2020-12-01 杭州指令集智能科技有限公司 Form generation method and device
CN112506900A (en) * 2020-11-27 2021-03-16 中广核工程有限公司 Method, device and equipment for checking three-dimensional data of ventilation pipe of nuclear power plant and storage medium
CN112632391A (en) * 2020-12-30 2021-04-09 深圳市华傲数据技术有限公司 Data processing method, device and storage medium
CN112651716A (en) * 2020-12-30 2021-04-13 深圳市华傲数据技术有限公司 Data processing method, device and storage medium
CN112783395A (en) * 2020-06-08 2021-05-11 北京金山办公软件股份有限公司 Method, device, electronic equipment and medium for displaying form field
CN113296670A (en) * 2021-07-26 2021-08-24 富通云腾科技有限公司 Regularization expression method of editable parameters
CN113535322A (en) * 2020-04-15 2021-10-22 北京沃东天骏信息技术有限公司 Form verification method and device
CN113779644A (en) * 2021-09-27 2021-12-10 中国银行股份有限公司 Data verification method and device
CN113778956A (en) * 2021-09-15 2021-12-10 京东科技信息技术有限公司 Resource processing method and device, electronic equipment and computer readable medium
CN114078584A (en) * 2020-08-10 2022-02-22 深圳市理邦精密仪器股份有限公司 Parameter name setting method and device, monitoring equipment and medium
CN114937272A (en) * 2022-05-26 2022-08-23 中国平安人寿保险股份有限公司 Recognition result detection method, device, equipment and medium based on character recognition

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294317A (en) * 2016-07-29 2017-01-04 浪潮(北京)电子信息产业有限公司 The form information method of calibration at a kind of cloud platform interface and system
CN107015957A (en) * 2017-03-16 2017-08-04 深圳市沃易科技有限公司 User's list generation method and device
CN107085613A (en) * 2017-05-17 2017-08-22 广州四三九九信息科技有限公司 Enter the filter method and device of library file

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294317A (en) * 2016-07-29 2017-01-04 浪潮(北京)电子信息产业有限公司 The form information method of calibration at a kind of cloud platform interface and system
CN107015957A (en) * 2017-03-16 2017-08-04 深圳市沃易科技有限公司 User's list generation method and device
CN107085613A (en) * 2017-05-17 2017-08-22 广州四三九九信息科技有限公司 Enter the filter method and device of library file

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110866381A (en) * 2019-09-29 2020-03-06 京东数字科技控股有限公司 Form verification method and device, storage medium and equipment
CN110866381B (en) * 2019-09-29 2021-03-30 京东数字科技控股有限公司 Form verification method and device, storage medium and equipment
CN110765145A (en) * 2019-10-15 2020-02-07 益萃网络科技(中国)有限公司 Content item transmission method, device, equipment and storage medium
CN110765145B (en) * 2019-10-15 2022-08-09 益萃网络科技(中国)有限公司 Content item transmission method, device, equipment and storage medium
CN111355709A (en) * 2020-02-19 2020-06-30 望海康信(北京)科技股份公司 Data verification method and device, electronic equipment and computer readable storage medium
CN113535322A (en) * 2020-04-15 2021-10-22 北京沃东天骏信息技术有限公司 Form verification method and device
CN112783395A (en) * 2020-06-08 2021-05-11 北京金山办公软件股份有限公司 Method, device, electronic equipment and medium for displaying form field
CN114078584A (en) * 2020-08-10 2022-02-22 深圳市理邦精密仪器股份有限公司 Parameter name setting method and device, monitoring equipment and medium
CN112016283A (en) * 2020-08-18 2020-12-01 杭州指令集智能科技有限公司 Form generation method and device
CN112506900A (en) * 2020-11-27 2021-03-16 中广核工程有限公司 Method, device and equipment for checking three-dimensional data of ventilation pipe of nuclear power plant and storage medium
CN112651716A (en) * 2020-12-30 2021-04-13 深圳市华傲数据技术有限公司 Data processing method, device and storage medium
CN112632391A (en) * 2020-12-30 2021-04-09 深圳市华傲数据技术有限公司 Data processing method, device and storage medium
CN113296670A (en) * 2021-07-26 2021-08-24 富通云腾科技有限公司 Regularization expression method of editable parameters
CN113778956A (en) * 2021-09-15 2021-12-10 京东科技信息技术有限公司 Resource processing method and device, electronic equipment and computer readable medium
CN113779644A (en) * 2021-09-27 2021-12-10 中国银行股份有限公司 Data verification method and device
CN114937272A (en) * 2022-05-26 2022-08-23 中国平安人寿保险股份有限公司 Recognition result detection method, device, equipment and medium based on character recognition

Similar Documents

Publication Publication Date Title
CN110096496A (en) A kind of form validation method, relevant apparatus and equipment
CN107341109B (en) Test data generation method and system
CN105404620A (en) Form verification method and apparatus
CN108550041A (en) Protect the method, apparatus and terminal of original works
CN110264190A (en) Triggering method, device, equipment and the storage medium of intelligent contract
CN111124917B (en) Method, device, equipment and storage medium for managing and controlling public test cases
CN106681903B (en) Method and device for generating test case
CN110400217B (en) Rule change processing method and device for intelligent contract
CN107147711A (en) Application service update method and device
US9104995B1 (en) Subject and audience oriented instant collaborative development
CN107835228A (en) A kind of command processing method and device based on DYNAMIC GENERALIZED route
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN109597727A (en) Detection method, detection device, server and the detection system of electronic equipment
CN112073923A (en) Communication method, device, gateway and readable storage medium compatible with multiple operators
CN110413971A (en) Information processing method, device, terminal and the server of online document
CN108924159A (en) The verification method and device in a kind of message characteristic identification library
CN111813418A (en) Distributed link tracking method, device, computer equipment and storage medium
CN102799820B (en) A kind of restoration methods of user cipher
CN109543409A (en) For detecting the method, device and equipment of malicious application and training detection model
CN108241404A (en) A kind of method, apparatus and electronic equipment for obtaining the off-line operation time
CN110362294A (en) Development task executes method, apparatus, electronic equipment and storage medium
CN106610966A (en) Information providing method and device
CN114968822A (en) Interface testing method and device, computer equipment and storage medium
CN103326892B (en) The operating method and device of web interface
CN109561017A (en) A kind of counterfeit inspection processing method and processing device of mail

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Applicant after: Shenzhen Rongyimai Information Technology Co., Ltd.

Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A (located in Shenzhen Qianhai business secretary Co. Ltd.)

Applicant before: Maimaiti Mdt InfoTech Ltd, Shenzhen

WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20190806