CN104881490A - WEB form data access method and system - Google Patents
WEB form data access method and system Download PDFInfo
- Publication number
- CN104881490A CN104881490A CN201510315502.8A CN201510315502A CN104881490A CN 104881490 A CN104881490 A CN 104881490A CN 201510315502 A CN201510315502 A CN 201510315502A CN 104881490 A CN104881490 A CN 104881490A
- Authority
- CN
- China
- Prior art keywords
- web form
- data
- key assignments
- form data
- layer
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/958—Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
- G06F16/986—Document structures and storage, e.g. HTML extensions
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)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
技术领域technical field
本发明涉及数据处理技术领域,尤其涉及一种WEB表单数据存取方法和系统。The invention relates to the technical field of data processing, in particular to a method and system for accessing WEB form data.
背景技术Background technique
WEB表单中的数据由于是动态变化的,所以,一种优秀的WEB表单数据存取方法,对于后台的响应速率具有重要的影响。Since the data in the WEB form changes dynamically, an excellent WEB form data access method has an important impact on the response rate of the background.
目前,WEB表单的数据存取方法主要包括以下两种:第一种是,首先使用ASP.NET Entity Formwork技术,实现业务对象到关系数据的映射与转换,然后使用Linq技术生成SQL脚本,使WEB页面表单数据与DBContext数据对象建立绑定,实现数据的存取。但是,这种方法由于需要建立大量的数据模型,逐一绑定页面字段,所以,在针对有大量的表单字段时,存在性能和效率问题;第二种是,基于ASP.NET的单表采集技术,集成Page UI、ORM和DB,对于单表的操作,只需在数据库中配置相关的表值类型项,可快速实现单表模块的增删改查。这种方法虽然能够快速的实现单表模块的增删改查,但是,由于单表采集需要复杂的配置,所以,当用户有UI个性需求时,该方法则无法满足用户对UI的特殊要求。At present, the data access methods of WEB forms mainly include the following two methods: the first one is to first use ASP.NET Entity Formwork technology to realize the mapping and conversion of business objects to relational data, and then use Linq technology to generate SQL scripts to make WEB The page form data is bound to the DBContext data object to realize data access. However, since this method needs to establish a large number of data models and bind page fields one by one, there are performance and efficiency problems when there are a large number of form fields; the second method is based on ASP.NET single table collection technology , integrates Page UI, ORM and DB. For single-table operations, you only need to configure related table value type items in the database, which can quickly realize the addition, deletion, modification and query of single-table modules. Although this method can quickly realize the addition, deletion, modification and query of the single-table module, because the single-table collection requires complex configuration, when the user has individual UI requirements, this method cannot meet the user's special requirements for the UI.
因此,现有技术无法既能够保证软件质量,又能够保证用户满意度。Therefore, the prior art cannot guarantee both software quality and user satisfaction.
发明内容Contents of the invention
本发明的目的在于提供一种WEB表单数据存取方法和系统,从而解决现有技术中存在的前述问题。The object of the present invention is to provide a method and system for accessing WEB form data, thereby solving the aforementioned problems in the prior art.
为了实现上述目的,本发明采用的技术方案如下:In order to achieve the above object, the technical scheme adopted in the present invention is as follows:
一种WEB表单数据存取方法,包括如下步骤:A method for accessing WEB form data, comprising the steps of:
S1,客户端获取WEB表单数据,并将WEB表单数据提交至服务端;S1, the client obtains the WEB form data, and submits the WEB form data to the server;
S2,服务端接收WEB表单数据,并将WEB表单数据转换为原始键值数据集;S2, the server receives the WEB form data, and converts the WEB form data into the original key-value data set;
S3,对原始键值数据集进行校验,获取有效键值数据集;S3, verifying the original key-value data set to obtain a valid key-value data set;
S5,遍历所述有效键值数据集,根据数据操控方式,自动拼接键值数据生成SQL语句;S5, traversing the effective key-value data set, and automatically splicing the key-value data to generate an SQL statement according to the data manipulation mode;
S6,执行所述SQL语句并将执行结果返回至客户端。S6. Execute the SQL statement and return the execution result to the client.
优选地,S1中,所述客户端获取表单数据,包括:Preferably, in S1, the client obtains form data, including:
S101,在HTML页面中,对WEB表单控件进行布局,S101, in the HTML page, layout the WEB form control,
S102,使用WEB表单控件,设置WEB表单数据;S102, using a WEB form control to set WEB form data;
S103,通过WEB表单数据处理器进行对WEB表单数据进行封装,得到封装的WEB表单数据;S103, encapsulating the WEB form data through the WEB form data processor to obtain the encapsulated WEB form data;
S104,将封装的WEB表单数据提交至服务端。S104, submitting the encapsulated WEB form data to the server.
优选地,所述WEB表单数据的名称与服务端数据库中字段名称相同。Preferably, the name of the WEB form data is the same as the field name in the server database.
优选地,S2包括:Preferably, S2 includes:
S201,服务端将客户端提交的WEB表单数据存入对象中,得到WEB表单对象;S201, the server stores the WEB form data submitted by the client into the object, and obtains the WEB form object;
S202,将所述WEB表单对象转换为原始键值数据集。S202. Convert the WEB form object into an original key-value data set.
优选地,S3包括如下步骤:Preferably, S3 includes the following steps:
S301,对所述原始键值数据集进行解析,获取主键和/或自增字段;S301. Parse the original key-value data set to obtain a primary key and/or an auto-increment field;
S302,根据主键和/或自增字段对Keys进行校对,获取有效键值数据集。S302. Check the Keys according to the primary key and/or the auto-increment field to obtain a valid key-value data set.
更优选地,S301中,所述对所述原始键值数据集进行解析,具体为:利用服务端的数据库表SysColumns获取原始键值数据集的主键和/或自增字段。More preferably, in S301, the parsing of the original key-value data set specifically includes: using the server-side database table SysColumns to obtain the primary key and/or auto-increment field of the original key-value data set.
更优选地,S302具体为:将所述原始键值数据集的主键和/或自增字段与服务端数据库中的主键和/或自增字段进行比较,如果服务端数据库中存在所述原始键值数据集的主键和/或自增字段,则键值数据有效,并储存在有效键值数据集中,否则,删除。More preferably, S302 is specifically: comparing the primary key and/or self-increment field of the original key-value data set with the primary key and/or self-increment field in the server database, if the original key exists in the server database The primary key and/or auto-increment field of the value data set, the key-value data is valid and stored in the valid key-value data set, otherwise, it is deleted.
优选地,S5中,所述数据操控方式包括数据的查询、添加、修改或删除。Preferably, in S5, the data manipulation method includes querying, adding, modifying or deleting data.
优选地,所述自动拼接键值数据生成SQL语句,具体为:利用T-SQL的可参数化特性自动拼接键值数据生成SQL语句。Preferably, the automatic splicing of key-value data to generate SQL statements is specifically: using the parameterizable feature of T-SQL to automatically splice key-value data to generate SQL statements.
一种WEB表单数据存取系统,包括:页面层、逻辑层和数据存取层,所述页面层位于客户端,所述逻辑层和所述数据存取层位于服务端;所述页面层用于获取WEB表单数据,并将WEB表单数据提交至逻辑层,还用于接收数据存取层通过逻辑层转发的所述SQL语句的执行结果,并显示;所述逻辑层用于接收WEB表单数据,并将WEB表单数据转换为原始键值数据集,还用于将原始键值数据集发送至数据存取层,还用于将数据存取层对所述SQL语句的执行结果转发至页面层;所述数据存取层用于接收所述逻辑层发送的原始键值数据集,并对原始键值数据集进行校验,获取有效键值数据集,还用于遍历所述有效键值数据集,根据数据操控方式,自动拼接键值数据生成SQL语句,还用于执行所述SQL语句并将执行结果通过逻辑层转发至页面层。A WEB form data access system, comprising: a page layer, a logic layer and a data access layer, the page layer is located at the client, the logic layer and the data access layer are located at the server; the page layer is used For obtaining WEB form data and submitting WEB form data to the logic layer, and also for receiving and displaying the execution result of the SQL statement forwarded by the data access layer through the logic layer; the logic layer is used for receiving WEB form data , and convert the WEB form data into the original key-value data set, which is also used to send the original key-value data set to the data access layer, and is also used to forward the execution result of the SQL statement by the data access layer to the page layer ; The data access layer is used to receive the original key-value data set sent by the logic layer, and check the original key-value data set to obtain an effective key-value data set, and is also used to traverse the effective key-value data According to the data manipulation method, the key-value data is automatically spliced to generate SQL statements, which are also used to execute the SQL statements and forward the execution results to the page layer through the logic layer.
本发明的有益效果是:本发明实施例,通过开放用户界面层,集成对象关系映射和数据库访问层,提供了一种WEB表单数据存取方法和系统,使用该系统,开发者只需保持Web页面表单字段和数据库字段名称相同,调用该方法,便可实现WEB表单的增删改查的数据操控,进而实现数据存取,无需过多的配置,而如果存在配置错误,系统的底层会智能纠错,使系统稳定可靠;而且通过页面来控制所需的字段,Web页面布局可以随意调整,方便灵活高效。The beneficial effects of the present invention are: the embodiment of the present invention provides a method and system for accessing WEB form data by opening the user interface layer and integrating object-relational mapping and database access layer. The name of the page form field is the same as that of the database field. Calling this method can realize the data manipulation of adding, deleting, modifying and checking the WEB form, and then realize data access without too much configuration. If there is a configuration error, the bottom layer of the system will intelligently correct it. Wrong, making the system stable and reliable; and the required fields are controlled through the page, and the layout of the Web page can be adjusted at will, which is convenient, flexible and efficient.
附图说明Description of drawings
图1是本发明实施例一提供的WEB表单数据存取方法流程示意图;FIG. 1 is a schematic flow chart of a method for accessing WEB form data provided by Embodiment 1 of the present invention;
图2是本发明实施例二提供的WEB表单数据存取系统结构示意图。FIG. 2 is a schematic structural diagram of a WEB form data access system provided by Embodiment 2 of the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施方式仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention, and are not intended to limit the present invention.
实施例一Embodiment one
如图1所示,本发明实施例提供了一种WEB表单数据存取方法,包括如下步骤:As shown in Figure 1, the embodiment of the present invention provides a kind of WEB form data access method, comprises the following steps:
S1,客户端获取WEB表单数据,并将WEB表单数据提交至服务端;S1, the client obtains the WEB form data, and submits the WEB form data to the server;
S2,服务端接收WEB表单数据,并将WEB表单数据转换为原始键值数据集;S2, the server receives the WEB form data, and converts the WEB form data into the original key-value data set;
S3,对原始键值数据集进行校验,获取有效键值数据集;S3, verifying the original key-value data set to obtain a valid key-value data set;
S5,遍历所述有效键值数据集,根据数据操控方式,自动拼接键值数据生成SQL语句;S5, traversing the effective key-value data set, and automatically splicing the key-value data to generate an SQL statement according to the data manipulation mode;
S6,执行所述SQL语句并将执行结果返回至客户端。S6. Execute the SQL statement and return the execution result to the client.
采用上述方法,进行实际开发的过程可以为:Using the above method, the actual development process can be as follows:
开发人员首先在页面层进行表单排版,保持表单控件名称和数据库字段名称相同。在服务端逻辑层调用键值转换方法,输入参数为表单数据对象,输出键值数据集对象;然后调用底层数据操控方法,输入参数为表名称和键值数据集对象,输出操控结果,并将结果传递到UI层,最终反馈给用户。The developer first layouts the form at the page level, keeping the name of the form control and the name of the database field the same. Call the key-value conversion method at the server-side logic layer, the input parameter is the form data object, and output the key-value dataset object; then call the underlying data manipulation method, the input parameter is the table name and the key-value dataset object, output the manipulation result, and The results are passed to the UI layer and finally fed back to the user.
本发明实施例中,S1中,所述客户端获取表单数据,包括:In the embodiment of the present invention, in S1, the client obtains form data, including:
S101,在HTML页面中,对WEB表单控件进行布局,S101, in the HTML page, layout the WEB form control,
S102,使用WEB表单控件,设置WEB表单数据;S102, using a WEB form control to set WEB form data;
S103,通过WEB表单数据处理器进行对WEB表单数据进行封装,得到封装的WEB表单数据;S103, encapsulating the WEB form data through the WEB form data processor to obtain the encapsulated WEB form data;
S104,将封装的WEB表单数据提交至服务端。S104, submitting the encapsulated WEB form data to the server.
采用上述方法,进行实际开发的过程可以为:Using the above method, the actual development process can be as follows:
步骤一,可借助HTML设计工具进行Web表单布局,如Dreamweaver,VisualStudio等。Step 1, you can use HTML design tools for Web form layout, such as Dreamweaver, VisualStudio, etc.
步骤二,手动设置表单控件Name与数据库字段名称相同。Step 2, manually set the name of the form control to be the same as the name of the database field.
步骤三,表单数据封装,可以运用HTML Form自动收集特性或者运用jQueryForm框架进行收集。Step 3, form data encapsulation, you can use the automatic collection feature of HTML Form or use the jQueryForm framework to collect.
步骤四,通过JavaScript/jQuery中的Submit方法完成数据提交。Step 4, complete data submission through the Submit method in JavaScript/jQuery.
本发明实施例中,所述WEB表单数据的名称与服务端数据库中字段名称相同。In the embodiment of the present invention, the name of the WEB form data is the same as the field name in the server database.
保持WEB表单数据的名称和数据库字段名称相同,是为了建立页面数据和数据库字段之间的映射关系,从而保证底层系统能够正确识别出要存取的数据项,生成正确的SQL语句,执行正确的结果。若页面数据名称和数据库字段名称存在较大差异,系统无法识别会做忽略处理,该字段的数据就无法正确存取。Keeping the name of the WEB form data the same as the name of the database field is to establish the mapping relationship between the page data and the database field, so as to ensure that the underlying system can correctly identify the data item to be accessed, generate the correct SQL statement, and execute the correct result. If there is a large difference between the page data name and the database field name, the system will ignore it if it cannot recognize it, and the data in this field cannot be accessed correctly.
本发明实施例中,S2包括:In the embodiment of the present invention, S2 includes:
S201,服务端将客户端提交的WEB表单数据存入对象中,得到WEB表单对象;S201, the server stores the WEB form data submitted by the client into the object, and obtains the WEB form object;
S202,将所述WEB表单对象转换为原始键值数据集。S202. Convert the WEB form object into an original key-value data set.
5、根据权利要求1所述的WEB表单数据存取方法,其特征在于,S3包括如下步骤:5. The WEB form data access method according to claim 1, characterized in that S3 comprises the following steps:
S301,对所述原始键值数据集进行解析,获取主键和/或自增字段;S301. Parse the original key-value data set to obtain a primary key and/or an auto-increment field;
S302,根据主键和/或自增字段对Keys进行校对,获取有效键值数据集。S302. Check the Keys according to the primary key and/or the auto-increment field to obtain a valid key-value data set.
采用上述方法,进行实际开发的过程可以为:Using the above method, the actual development process can be as follows:
首先,在.NET框架服务端,可通过Request.Form获取NameValueCollection数据集WEB表单对象。First, on the server side of the .NET framework, the WEB form object of the NameValueCollection dataset can be obtained through Request.Form.
然后,在服务端,通过遍历NameValueCollection数据集对象将其转换为可编辑的键值数据集Dictionary<string,object>,并可以对该键值集合中数据项进行再编辑和修正。Then, on the server side, by traversing the NameValueCollection dataset object, it is converted into an editable key-value dataset Dictionary<string, object>, and the data items in the key-value collection can be re-edited and corrected.
本发明实施例中,S301中,所述对所述原始键值数据集进行解析,具体为:利用服务端的数据库表SysColumns获取原始键值数据集的主键和/或自增字段。In the embodiment of the present invention, in S301, the parsing of the original key-value data set specifically includes: using the server-side database table SysColumns to obtain the primary key and/or auto-increment field of the original key-value data set.
数据库表主键和自增字段的获取,可以是编码人员指定,也可以利用数据库中SysColumns自动查出。相对前者,后者的可靠性和准确性会更高。The acquisition of the primary key and auto-increment field of the database table can be specified by the coder, or can be automatically detected by using SysColumns in the database. Compared with the former, the reliability and accuracy of the latter will be higher.
本发明实施例中,S302具体为:将所述原始键值数据集的主键和/或自增字段与服务端数据库中的主键和/或自增字段进行比较,如果服务端数据库中存在所述原始键值数据集的主键和/或自增字段,则键值数据有效,并储存在有效键值数据集中,否则,删除。In the embodiment of the present invention, S302 is specifically: comparing the primary key and/or auto-increment field of the original key-value data set with the primary key and/or auto-increment field in the server database, if the server database exists the primary key and/or auto-increment field of the original key-value dataset, the key-value data is valid and stored in the valid key-value dataset, otherwise, delete it.
将原始键集合同数据库表字段集合进行比对,剔除无效或者不需要的字段,是为了提高匹配字段的准确性,避免错误或者恶意键名称的干扰,提高拼接SQL的正确性;同样依据主键和自增字段可以判断该字段是否需要保留拼接,例如:在添加/修改操作中,SQL中不允许出现自增的字段,否则将无法执行。采用方法可以有效的提高SQL拼接的正确性,避免SQL注入式攻击,从而保证最终正确的执行结果。Comparing the original key set with the field set of the database table, eliminating invalid or unnecessary fields, is to improve the accuracy of the matching fields, avoid the interference of wrong or malicious key names, and improve the correctness of splicing SQL; also based on the primary key and The auto-increment field can determine whether the field needs to be preserved. For example, in the add/modify operation, auto-increment fields are not allowed in SQL, otherwise it will not be executed. The method can effectively improve the correctness of SQL splicing, avoid SQL injection attacks, and ensure the final correct execution result.
本发明实施例中,S5中,所述数据操控方式包括数据的查询、添加、修改或删除。In the embodiment of the present invention, in S5, the data manipulation method includes querying, adding, modifying or deleting data.
其中,在查询操作中,需要提供表名称、查询条件键值数据集参数;首先是编写查询前缀基础语句“SELECT*FROM{0}where 1=1”,然后遍历键值数据集拼接where后缀语句“AND{1}={2}”;{0}、{1}、{3}代表是不同的占位符,通过替换占位符的值完成最终的拼接。Among them, in the query operation, you need to provide the table name, query condition key-value data set parameters; first, write the query prefix basic statement "SELECT*FROM{0}where 1=1", and then traverse the key-value data set to stitch the where suffix statement "AND{1}={2}"; {0}, {1}, and {3} represent different placeholders, and the final splicing is completed by replacing the values of the placeholders.
在添加操作中,首先是“INSERT INTO{0}({1})VALUES({2})”基础语句,通过遍历键值数据集得到三个字符串,分别填充基础语句中的{0}、{1}、{3}占位符。其中,第一个字符串是表名称,第二个字符串是用逗号连接字段集,第三个字符串是用逗号连接的字段对应值。In the adding operation, the first is the basic statement "INSERT INTO{0}({1})VALUES({2})". Three strings are obtained by traversing the key-value data set, and the {0}, {1}, {3} placeholders. Among them, the first string is the table name, the second string is the field set connected by commas, and the third string is the corresponding value of the fields connected by commas.
在修改操作中,首先是“UPDATE{0}SET{1}WHERE{2}”,其中{0}是表名称,{1}是通过遍历键值集合生成“key1=value1,key2=value2,……”形式的字符串,{2}是如同查询中where拼接方式的条件语句字符串。In the modification operation, the first is "UPDATE{0}SET{1}WHERE{2}", where {0} is the table name, and {1} is generated by traversing the key-value collection "key1=value1,key2=value2,... ..." string, {2} is a string of conditional statements similar to where splicing in the query.
在删除操作中,同样首先是“DELETE FROM{0}WHERE 1=1”基础语句,然后同查询中的Where拼接方式拼接条件语句。In the delete operation, the basic statement "DELETE FROM{0}WHERE 1=1" is also first, and then the conditional statement is spliced with the Where splicing method in the query.
本发明实施例中,所述自动拼接键值数据生成SQL语句,具体为:利用T-SQL的可参数化特性自动拼接键值数据生成SQL语句。In the embodiment of the present invention, the automatic splicing of key-value data to generate SQL statements is specifically: using the parameterizable feature of T-SQL to automatically splice key-value data to generate SQL statements.
T-SQL的可参数化特性指的是系统可以识别“Value=Value”的形式,Value代表T-SQL中的参数变量;在ADO.NET中,可通过DBParameter方法将值传递到执行命令中,完成最终的SQL执行。The parameterizable feature of T-SQL means that the system can recognize the form of "Value=Value", and Value represents the parameter variable in T-SQL; in ADO.NET, the value can be passed to the execution command through the DBParameter method, Complete the final SQL execution.
实施例二Embodiment two
如图2所示,本发明实施例提供了一种WEB表单数据存取系统,包括:页面层、逻辑层和数据存取层,所述页面层位于客户端,所述逻辑层和所述数据存取层位于服务端;所述页面层用于获取WEB表单数据,并将WEB表单数据提交至逻辑层,还用于接收数据存取层通过逻辑层转发的所述SQL语句的执行结果,并显示;所述逻辑层用于接收WEB表单数据,并将WEB表单数据转换为原始键值数据集,还用于将原始键值数据集发送至数据存取层,还用于将数据存取层对所述SQL语句的执行结果转发至页面层;所述数据存取层用于接收所述逻辑层发送的原始键值数据集,并对原始键值数据集进行校验,获取有效键值数据集,还用于遍历所述有效键值数据集,根据数据操控方式,自动拼接键值数据生成SQL语句,还用于执行所述SQL语句并将执行结果通过逻辑层转发至页面层。As shown in Figure 2, the embodiment of the present invention provides a kind of WEB form data access system, comprises: page layer, logic layer and data access layer, and described page layer is positioned at client, and described logic layer and described data The access layer is located at the server; the page layer is used to obtain WEB form data, and submit the WEB form data to the logic layer, and is also used to receive the execution result of the SQL statement forwarded by the data access layer through the logic layer, and Display; the logic layer is used to receive WEB form data, and convert the WEB form data into the original key-value data set, and is also used to send the original key-value data set to the data access layer, and is also used to transfer the data access layer The execution result of the SQL statement is forwarded to the page layer; the data access layer is used to receive the original key-value data set sent by the logic layer, and check the original key-value data set to obtain valid key-value data The set is also used to traverse the effective key-value data set, automatically splicing the key-value data to generate SQL statements according to the data manipulation method, and is also used to execute the SQL statement and forward the execution result to the page layer through the logic layer.
上述系统,可以采取实施例一提供的WEB表单数据存取方法,该方法及其实现技术、功效在实施例一中已经进行了详细的描述,在此不再赘述。The above-mentioned system can adopt the WEB form data access method provided in the first embodiment. The method and its implementation technology and functions have been described in detail in the first embodiment, and will not be repeated here.
通过采用本发明公开的上述技术方案,得到了如下有益的效果:本发明实施例,通过开放用户界面层,集成对象关系映射和数据库访问层,提供了一种WEB表单数据存取方法和系统,使用该系统,开发者只需保持Web页面表单字段和数据库字段名称相同,调用该方法,便可实现WEB表单的增删改查的数据操控,进而实现数据存取,无需过多的配置,而如果存在配置错误,系统的底层会智能纠错,使系统稳定可靠;而且通过页面来控制所需的字段,Web页面布局可以随意调整,方便灵活高效。By adopting the above-mentioned technical solution disclosed in the present invention, the following beneficial effects are obtained: the embodiment of the present invention provides a method and system for accessing WEB form data by opening the user interface layer and integrating the object-relational mapping and the database access layer, Using this system, developers only need to keep the name of the web page form field and the database field the same, and call this method to realize the data manipulation of adding, deleting, modifying and checking the WEB form, and then realize data access without too much configuration, and if If there is a configuration error, the bottom layer of the system will intelligently correct the error, making the system stable and reliable; and the required fields are controlled through the page, and the layout of the Web page can be adjusted at will, which is convenient, flexible and efficient.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.
本领域人员应该理解的是,上述实施例提供的方法步骤的时序可根据实际情况进行适应性调整,也可根据实际情况并发进行。Those skilled in the art should understand that the timing of the method steps provided in the foregoing embodiments may be adjusted adaptively according to actual conditions, or may be performed concurrently according to actual conditions.
上述实施例涉及的方法中的全部或部分步骤可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机设备可读取的存储介质中,用于执行上述各实施例方法所述的全部或部分步骤。所述计算机设备,例如:个人计算机、服务器、网络设备、智能移动终端、智能家居设备、穿戴式智能设备、车载智能设备等;所述的存储介质,例如:RAM、ROM、磁碟、磁带、光盘、闪存、U盘、移动硬盘、存储卡、记忆棒、网络服务器存储、网络云存储等。All or part of the steps in the methods involved in the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a storage medium readable by a computer device, and is used to execute the methods described in the above-mentioned embodiments. all or part of the steps. The computer equipment, such as: personal computer, server, network equipment, smart mobile terminal, smart home equipment, wearable smart equipment, vehicle-mounted smart equipment, etc.; the storage medium, such as: RAM, ROM, disk, tape, CD, flash memory, U disk, mobile hard disk, memory card, memory stick, network server storage, network cloud storage, etc.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or apparatus comprising a set of elements includes not only those elements, but also includes elements not expressly listed. other elements of, or also include elements inherent in, such a process, method, commodity, or apparatus. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视本发明的保护范围。The above is only a preferred embodiment of the present invention, it should be pointed out that, for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications can also be made. It should be regarded as the protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510315502.8A CN104881490B (en) | 2015-06-10 | 2015-06-10 | A method and system for accessing WEB form data |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510315502.8A CN104881490B (en) | 2015-06-10 | 2015-06-10 | A method and system for accessing WEB form data |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN104881490A true CN104881490A (en) | 2015-09-02 |
| CN104881490B CN104881490B (en) | 2019-11-22 |
Family
ID=53948983
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201510315502.8A Expired - Fee Related CN104881490B (en) | 2015-06-10 | 2015-06-10 | A method and system for accessing WEB form data |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN104881490B (en) |
Cited By (11)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107203595A (en) * | 2017-05-03 | 2017-09-26 | 北京海顿中科技术有限公司 | A kind of method of the dynamic generation web interface based on flexible form |
| CN107291925A (en) * | 2017-06-29 | 2017-10-24 | 浪潮软件股份有限公司 | Examination and approval data precipitation method based on business model |
| CN108108429A (en) * | 2017-12-01 | 2018-06-01 | 深圳市小牛在线互联网信息咨询有限公司 | Date storage method, device, storage medium and the computer equipment of terminal device |
| CN109145014A (en) * | 2017-06-15 | 2019-01-04 | 北京京东尚科信息技术有限公司 | The method and apparatus for generating elastic searching request |
| CN109902511A (en) * | 2019-02-18 | 2019-06-18 | 天津字节跳动科技有限公司 | Method of data capture and device |
| CN109933602A (en) * | 2019-02-28 | 2019-06-25 | 武汉大学 | Method and device for converting natural language and structured query language |
| WO2019223136A1 (en) * | 2018-05-25 | 2019-11-28 | 平安科技(深圳)有限公司 | Data acquisition method and apparatus, and computer device and storage medium |
| CN111737283A (en) * | 2020-07-23 | 2020-10-02 | 福建天晴在线互动科技有限公司 | Method and system for front-end automatic organization of form to perform database query |
| CN111737282A (en) * | 2020-07-23 | 2020-10-02 | 福建天晴在线互动科技有限公司 | Method and system for organizing database query conditions by receiving parameters at server |
| CN112507011A (en) * | 2020-12-16 | 2021-03-16 | 江苏龙虎网信息科技股份有限公司 | Method for establishing program automation database model |
| CN112765253A (en) * | 2021-02-27 | 2021-05-07 | 中电万维信息技术有限责任公司 | Ffmpeg transcoding task parameter scheduling method based on database |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020065846A1 (en) * | 2000-11-30 | 2002-05-30 | Atsuro Ogawa | Spreadsheet Web server system and spreadsheet Web system |
| CN102360296A (en) * | 2011-10-20 | 2012-02-22 | 北京金和软件股份有限公司 | WEB-based online form development tool |
| CN102682126A (en) * | 2012-05-16 | 2012-09-19 | 深圳市凯立德科技股份有限公司 | Access method and device for form data |
-
2015
- 2015-06-10 CN CN201510315502.8A patent/CN104881490B/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020065846A1 (en) * | 2000-11-30 | 2002-05-30 | Atsuro Ogawa | Spreadsheet Web server system and spreadsheet Web system |
| CN102360296A (en) * | 2011-10-20 | 2012-02-22 | 北京金和软件股份有限公司 | WEB-based online form development tool |
| CN102682126A (en) * | 2012-05-16 | 2012-09-19 | 深圳市凯立德科技股份有限公司 | Access method and device for form data |
Cited By (16)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107203595A (en) * | 2017-05-03 | 2017-09-26 | 北京海顿中科技术有限公司 | A kind of method of the dynamic generation web interface based on flexible form |
| CN109145014A (en) * | 2017-06-15 | 2019-01-04 | 北京京东尚科信息技术有限公司 | The method and apparatus for generating elastic searching request |
| CN107291925B (en) * | 2017-06-29 | 2020-05-26 | 浪潮软件股份有限公司 | A business model-based approval data precipitation method |
| CN107291925A (en) * | 2017-06-29 | 2017-10-24 | 浪潮软件股份有限公司 | Examination and approval data precipitation method based on business model |
| CN108108429A (en) * | 2017-12-01 | 2018-06-01 | 深圳市小牛在线互联网信息咨询有限公司 | Date storage method, device, storage medium and the computer equipment of terminal device |
| CN108108429B (en) * | 2017-12-01 | 2020-08-18 | 深圳市小牛在线互联网信息咨询有限公司 | Data storage method and device of terminal equipment, storage medium and computer equipment |
| WO2019223136A1 (en) * | 2018-05-25 | 2019-11-28 | 平安科技(深圳)有限公司 | Data acquisition method and apparatus, and computer device and storage medium |
| CN109902511A (en) * | 2019-02-18 | 2019-06-18 | 天津字节跳动科技有限公司 | Method of data capture and device |
| CN109933602A (en) * | 2019-02-28 | 2019-06-25 | 武汉大学 | Method and device for converting natural language and structured query language |
| CN109933602B (en) * | 2019-02-28 | 2021-05-04 | 武汉大学 | Method and device for converting natural language and structured query language |
| CN111737283A (en) * | 2020-07-23 | 2020-10-02 | 福建天晴在线互动科技有限公司 | Method and system for front-end automatic organization of form to perform database query |
| CN111737282A (en) * | 2020-07-23 | 2020-10-02 | 福建天晴在线互动科技有限公司 | Method and system for organizing database query conditions by receiving parameters at server |
| CN111737283B (en) * | 2020-07-23 | 2022-07-26 | 福建天晴在线互动科技有限公司 | Method and system for front-end automatic organization of form to carry out database query |
| CN111737282B (en) * | 2020-07-23 | 2022-07-26 | 福建天晴在线互动科技有限公司 | Method and system for organizing database query conditions by receiving parameters at server |
| CN112507011A (en) * | 2020-12-16 | 2021-03-16 | 江苏龙虎网信息科技股份有限公司 | Method for establishing program automation database model |
| CN112765253A (en) * | 2021-02-27 | 2021-05-07 | 中电万维信息技术有限责任公司 | Ffmpeg transcoding task parameter scheduling method based on database |
Also Published As
| Publication number | Publication date |
|---|---|
| CN104881490B (en) | 2019-11-22 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104881490B (en) | A method and system for accessing WEB form data | |
| US8346747B2 (en) | Extending database tables in a multi-tenant environment | |
| US10409801B2 (en) | Validation of web-based database updates | |
| CN110162408B (en) | Data processing method, device, equipment and machine-readable medium | |
| US11232071B2 (en) | Regressable differential data structures | |
| CN112148509A (en) | Data processing method, device, server and computer readable storage medium | |
| US11663288B2 (en) | Just-in-time front end template generation using logical document object models | |
| US20160063063A1 (en) | Database query system | |
| US20130191435A1 (en) | Client-Side Minimal Download and Simulated Page Navigation Features | |
| JP2014519073A (en) | Storage of web browsing calculations with DOM-based isomorphism | |
| CN112256772A (en) | Data service method, device and readable storage medium | |
| CN103377038A (en) | User-defined form description and form analysis method | |
| TW201439792A (en) | System and method for accessing database | |
| CN108959294B (en) | Method and device for accessing search engine | |
| CN103858121B (en) | Web applications are made to obtain the method and system of database change | |
| CN114036425A (en) | Page access method, client, server and system | |
| US9330140B1 (en) | Transient virtual single tenant queries in a multi-tenant shared database system | |
| US10908924B2 (en) | System and methods for loading objects from hash chains | |
| US20200320069A1 (en) | Hybrid compilation framework for arbitrary ad-hoc imperative functions in database queries | |
| CN105302842A (en) | Data processing method and device | |
| CN111752964A (en) | Data processing method and device based on data interface | |
| CN106502977B (en) | A form processing method and form system based on B/S framework | |
| CN110058849A (en) | Generation method, device, computer equipment and the storage medium of flow chart | |
| CN119322802A (en) | Interaction method, device, medium and system of business system and third party database | |
| CN114003583A (en) | Method, device, medium and equipment for constructing target format data request body |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| EXSB | Decision made by sipo to initiate substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP03 | Change of name, title or address |
Address after: 100101 Beijing city Chaoyang District Anxiang, No. 11 B block 2 layer Patentee after: CHINA SCIENCE MAPUNIVERSE TCHNDOGY Co.,Ltd. Address before: 100101 Beijing city Chaoyang District Anxiang Lane No. 11 building B block 2 layer Patentee before: CHINA SCIENCES MAPUNIVERSE TECHNOLOGY CO.,LTD. |
|
| CP03 | Change of name, title or address | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20191122 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |