Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method, device and enterprise system for checking forms

A verification method and form technology, applied in the direction of instruments, etc., can solve the problems that cannot be reused, verification rules cannot be dynamically expanded, specified, etc., and achieve the effect of realizing reuse and facilitating dynamic expansion

Inactive Publication Date: 2012-12-12
KINGDEE SOFTWARE(CHINA) CO LTD
View PDF7 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the embodiment of the present invention is to provide a form verification method, device and enterprise system, aiming to solve the problem that the verification rules cannot be dynamically expanded, reused, and cannot be specified during the program runtime when the form is verified.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method, device and enterprise system for checking forms
  • Method, device and enterprise system for checking forms
  • Method, device and enterprise system for checking forms

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] Such as figure 1 Shown is a flow chart of the form verification method provided by the first embodiment of the present invention. For ease of description, only the parts related to the embodiment of the present invention are shown.

[0032] In step S101, the verification rules corresponding to the form fields are read according to the association relationship between the form fields and the verification rules in the verification reference table.

[0033] In the embodiment of the present invention, a verification reference table is preset in the database for storing the association relationship between various form fields and verification rules, and the predefined verification rules are stored in the database in the form of a stack. Then, according to the association relationship between the form fields and the verification rules, the corresponding verification rules are read in the verification rule data stack. Wherein, in the verification reference table, a form field...

Embodiment 2

[0040] Such as figure 2 Shown is a flow chart of the client-side form verification method provided by the second embodiment of the present invention. For ease of description, only the parts related to the embodiment of the present invention are shown.

[0041] In step S201, according to the association relationship between all client page form fields and verification rules in the verification reference table, the verification rules corresponding to all client page form fields are read.

[0042] In the embodiment of the present invention, according to the client page, all the form fields of the client page can be known, and then, according to the association relationship between all the form fields of the page and the verification rules in the verification reference table, read the correspondence of all the form fields of the page. validation rules.

[0043] In step S202, a script is generated and sent to the client according to the read verification rule.

[0044] In the em...

Embodiment 3

[0050] Such as image 3 Shown is a flow chart of implementing the server form verification method in the form of an interceptor provided by the third embodiment of the present invention. For the convenience of description, only the parts related to the embodiment of the present invention are shown.

[0051] In step S301, the server receives a verification request sent by a user, and the verification request includes form fields to be verified.

[0052] In step S302, the corresponding verification rule is read according to the association relationship between the field of the form to be verified and the verification rule in the verification reference table.

[0053] In step S303, the form fields to be verified in the verification request are decomposed, and then compared with the verification rules.

[0054]In the embodiment of the present invention, the form fields to be verified in the verification request are decomposed on the server side, and then the form fields to be ver...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention is suitable for the field of computer software and provides a method, a device and an enterprise system for checking forms. The method includes: reading checking rules corresponding to form fields according to correlation between the form fields in a checking reference list and the checking rules; and checking the form fields according to the read checking rules. By storing predefined checking rules into a database and building reference relationship between related form fields and the checking rules, the checking rules can be dynamically read from the database. When adding of the form fields or deleting of the form fields is needed, adding or deleting of the checking rules can be directly performed in the database, and accordingly dynamic expansion of checking is facilitated. The same form fields can read a same checking rule, so that reusability of the checking rules is achieved.

Description

technical field [0001] The invention belongs to the field of computer software, in particular to a form verification method, device and enterprise system. Background technique [0002] Nowadays, form verification is generally implemented in two ways, one is to use the Struts2Validation framework for verification, specifically: use each Action to correspond to a verification rule file named NewValidate Action-validation.xml, Specify validate="true" in the front-end form, and the js verification code of the client can be generated at the same time. Another way is to define validation rules with Javascript code, and then perform validation through JQuery methods. However, these two methods have the following disadvantages: [0003] 1. Only the verification of the client side can be performed through the method of JQuery, and the verification of the server side cannot be performed; [0004] 2. When it is necessary to add or delete form fields that need to be verified, the ver...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06Q10/00
Inventor 欧海涛刘楠谭奇军
Owner KINGDEE SOFTWARE(CHINA) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products