摘要
基于数据库的数据采集系统目前有两种技术方法:一种是根据数据库的结构和字段定制采集表单,其缺点是一旦数据字段内容、验证方式等内容发生变化就需要对系统代码进行重新设计编写,可维护性、扩展性很差;另外一种是动态表单生成,即表单定义、字段定义、验证规则定义全部抽提并存储于数据库表,当用户采集数据时,系统将通过AJAX异步实时加载将上述内容动态载入,之后在客户端通过JavaScript动态绘制采集表单。可见,采集表单动态生成技术更满足源头数据采集系统的需求,采用该方法研发了单井地质数据库源头数据采集系统,该系统架构采用J2EE技术、B/S模式,达到了动态生成采集表单、自定义配置采集数据项、采集数据实时校验、采集完成数据自动整理等功能。
Current data acquisition systems of databases are based on two technological methods:one is that acquisition form is customized according to the structure and fields of database.But the drawback is that if contents of the fields or authentication changed,the system code should be redesigned and rewritten accordingly and the maintainability and extendibility of this system is poor.The other is based on dynamic list creation,namely to extract all the form definitions,fields definitions and definitions of validation rules which will then be stored in database table.When users collected data,the system will dynamically loaded the contents mentioned above through AJAX asynchronous real-time.And then on the client side,the system will design the dynamic data acquisition by JavaScriot.Therefore,dynamic creating technique of acquisition form can better meet the requirements of source data acquisition system.The source data acquisition system for single well geological database is developed with this method.With the implement of J2EE technique and B/S model,the system fulfill the function of generating dynamic acquisition form,collecting acquisition data by custom configuration,real-time validation for acquisition data,and automatically adjusting the complete acquisition data,ect.
出处
《石油工业计算机应用》
2011年第4期7-10,3,共4页
Computer Applications Of Petroleum
关键词
源头数据库
采集系统
采集表单
动态生成技术
单井地质数据库
J2EE
source databank
acquisition system
acquisition form
dynamic creating technique
single well geological database
J2EE