基于SSH的农产品数字认证申报系统设计与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
食品质量安全问题是近年来政府、人民群众普遍关心的热点问题。农产品质量安全与否,从源头直接影响到食品的安全性。随着互联网和计算机技术普遍应用以及农业产业化管理的客观需要,建立一个农产品数字认证系统势在必行。以往纯手工的农产品认证方式给农产品申请者和农产品认证机构都带来了极大的人力物力浪费,效率低下,已经远远不能满足快速发展的业务需求。因此各级农产品认证中心希望有一款现代化办公软件来提高整个部门工作效率。为此,本文开发了一款基于SSH的分布式数字认证系统,利用计算机信息技术代替原始的手工操作技术,改变传统的管理模式,将认证工作的各个环节有机地统一起来,提高了各个部门事务处理的效率,形成分布式的自动电子档案库,实现了认证流程的规范化和信息共享化。
     本文提出了基于轻量级Web框架-Struts + Spring + Hibernate的系统结构,分别阐述了三种框架技术,并将三种框架技术整合起来应用到本系统中,由Struts实现MVC,Spring负责架构的结合,Hibernate进行数据的持久化,并且用Oracle 10g做为数据库服务器,提高了项目代码的可重用性,使系统具有较强的灵活性、可维护性和可扩展性。系统要求实现产地认证关键环节的高度自动化和标准化;实现农产品数字认证的申报和审批的自动化、标准化;实现申请材料、审查报告、监测数据分析、评价报告的自动生成以及快速上传下载,而且其文档能够在国家、省、县级认证管理部门相互快速上传下载,并根据不同级别认证部门的职权,将这些文档分别存放,并对访问操作权限进行分级管理;并且建立分布式的自动电子档案库,最终实现农产品数字化认证的信息化管理,从而推动农产品数字化认证的发展。
     本文基于B/S模式下WEB的体系结构及Struts、Spring和Hibernate主要技术;对整个系统框架进行了详细地分析和设计;通过具体的代码举例说明SSH架构框架在农产品认证方面的应用。分布式农产品数字认证系统可以同步实现多种功能:提供无公害生产者对农产品产地与产品申请认证,对已经认证的农产品产地与产品进行复审换证;支持分布的不同认证机构对申请材料的管理;提供系统管理员的权限管理、授权管理、规则管理等完全管理功能;提供系统的定期报表和日志功能;提供数据统计,支持对数据库应用的开发。
     通过农产品数字认证系统研发,使农产品管理部门可以更好地实施无公害农产品认证管理制度,促使无公害农产品的申请人农业标准化意识和观念明显增强,提高了使用标准的主动性和自觉性。从认证的角度看,申请人单独进行网上申报,并按标准进行生产,改善了千差万别的生产操作,提高了产品的安全性和品质。申请人在申报认证时,农产品认证机构要建立生产记录档案,在网上完成对申报材料的审核,审查产地和产品检测报告,并向上一级认证机构传送审核通过的材料。产品出现了质量问题,农产品认证机构可通过查找申报材料、审核意见、生产记录、购销合同等原始资料进行快速追溯,可很便捷地找到问题的源头。农产品数字认证系统的使用,极大的方便了申请者和农产品认证机构,并提高了农产品认证的效率,实现了无纸化办公,对资源也是一种节约。
The hot issue about food quality and security has been a common concern of the Government and the masses in recent years. The quality and security of agricultural products is the source of a direct impact on food security. With the wide applications of Internet and computer technology, as well as the objective need of agricultural industrialization management, then it is imperative to establish a digital authentication system of agricultural products. Before hand, the certification mode of pure manual agricultural products has brought tremendous waste of human and material resources to applicants for accreditation of the agricultural products and certification institutions of agricultural products, and so inefficient that it has been far from enough to meet the needs of fast-growing business. Therefore, certification centers at all levels desire a modern office software to improve the efficiency of the entire department. For which, this paper develops a distributed digital authentication system based on SSH, which uses computer information technology instead of the original manual techniques to change the traditional management style. It can integrate all aspects of the certification work, improve the services processing efficiency of the various departments, form a distributed automatic electronic archive and realize the standardization of certification process and information sharing.
     This paper puts forward lightweight Web-based framework, the system structure of Struts + Spring + Hibernate; separately expounds the three framework technologies and integrates them to apply to the system. Struts is used to achieve MVC, Spring is responsible for the structure combination, Hibernate is for data persistence, and Oracle 10g is used as the database server, which can improve the project code reusability and make the system with stronger flexibility, maintainability and expansibility. This system requires high automation and standardization in the key process of origin certification; the automation and standardization in digital certification and approval of agricultural products; automatic generation and fast uploading and downloading of the application materials, reports review, monitoring data analysis, reports evaluation, as well as the mutual rapid uploading and downloading of documents at the national, provincial and county-level authentication. These documents will be stored in accordance with the authority of certification departments at different levels, and their access permissions will be operated in classification. Besides, the establishment of distributed automatic electronic archives can ultimately realize the information management of agricultural digital certification, so as to promote the development of agricultural digital certification.
     This paper is based on B / S mode with WEB architecture and major technologies of Struts, Spring and Hibernate. And once again carries out a detailed analysis and design in the framework of the whole system. It illustrates the applications of the structure SSH frameworks in agricultural authentication through specific code examples. Distributed digital authentication system of agricultural products can synchronize a variety of functions: to provide pollution-free producer to apply and also the review and replacement for certification of agricultural products and the origin; support the application materials management for the different certification bodies; to provide the rights, authorization and rules management and other complete management functions for system administrators; to provide regular statements of the system and log functions; to provide data Stat. to support the development of database applications.
     Through the R & D of digital certification system can make the agricultural administration departments better implement the management in certification system of pollution-free agricultural products, to promote agricultural standardization applicants to increase awareness and the concept of pollution-free agricultural products, to increase the activity and initiative use of standards. In the term of certification, the applicant declared on line separately, and produce by standards, which can improve the operation of different production and improve product security and quality. In the certification declaration of the applicant, the certification body should set up production records file, complete the online audit of reporting materials; review the testing report of production and product region and submit approved materials to the certification body. Once there are some problems in the quality of products, the accreditation body of agricultural products can soon find the causes by rapid tracing application materials, audit opinions, production records, purchase and sale contracts and other original data. The use of agricultural digital authentication system provides a great convenience for the applicant and certification body, and improves the efficiency of the certification of agricultural products to achieve a paperless office, which is also a saving of resources.
引文
[1]马爱国.无公害农产品管理与技术[M].北京:中国农业出版社,2006:3-4.
    [2]张芳、罗保华等.计算机技术在现代农业中的应用[J].科技成果纵横.2006年第3期
    [3] http://citrus948.hzau.edu.cn/article/show.asp?id=1885国外农业信息化发展现状及特点
    [4]张芳,罗保华,蒋兰翎.计算机技术在现代农业中的应用[J].科技与社会,2006,3:60-61.
    [5]章练红.计算机技术在我国农业中应用的现状[J].计算机与农业.1999(3),3—6
    [6]郑涛.中国农业信息系统应用现状及前景分析[J].中国农学通报,2005,2.21(2):315-319.
    [7]陆昌华、谢菊芳、胡肄农.猪肉产品质量安全生产可追溯系统研究[J].主题策划.2006, (02),20—22.
    [8]马萍.无公害农产品规范化生产智能管理系统规划研究[J].甘肃农业.2006,(12),60
    [9]孙慧,黄颂禹,秦莉.海门市无公害农产品安全溯源系统的制作[J].农业网络信息.2007(9),43—44
    [10]臧淑英、毕雪梅. GIS支持的绿色食品产地环境质量预警系统研究—以黑龙江省庆安县国家级生态农业示范区为例[J].中国农业生态学报.2006,14(2):220—223.
    [11]钱振华,申广荣.基于Web—GIS的生态农业数字化管理系统架构[J].上海交通大学学报.2007(10),438—444.
    [12]刘建华,白玲,牟少飞,龚娅萍.无公害农产品认证现状及发展的理性思考[J].中国农业资源与区划.2008,10.29(5):72-75.
    [13]王南,汪学才,董永华.加强农产品质量认证提高食品安全保障水平[J].上海农村经济.2008(5),29-32.
    [14]刘永艳.基于B/S模式的学员管理系统的开发[J].中国电力教育,2008,5,112:150-152.
    [15]朱本浩.基于B/S结构的电子政务系统的研究与实现[J].浙江海洋学院2007年科研计划项目(编号:XO7MO14) [J],2007:60-62
    [16]陈飞,吴砥.基于J2EE的科技管理平台的设计与实现[J].微计算机信息,2007,27:53-55.
    [17] Zhang C Q.Liu M L.Nie。W L et a1. IdentifyingGlobal Exceptional Patterns in Multi—database Mining[J].The IEEE Computational Intelligence Bulletin,2004,2.3(1):17—19.
    [18]卢瑜,黎文导.基于J2EE的电子政务应用集成设计[J].长春工业大学学报(自然科学版),2006,27(3):258-261
    [19]陈刚.基于SSH的J2EE开发平台研究与应用[J].四川师范大学,2007,12.
    [20]韦加强,潘荫荣.基于J2EE平台和MVC模型的电子政务系统的设计[J].微型电脑应用.2006(22),34-38.
    [21]陈岚.基于J2EE架构的电子政务系统开发[J].南通大学学报.2007.6(6),88—94.
    [22] Knmar等,宋梅等译.深入浅出J2EE架构-应用程序设计与部署的原理[M].北京:清华大学出版社.2006:20-34.
    [23]陈华军.J2EE构建企业级应用解决方案[M].人民邮电出版社.2002,30-31.
    [24]Rod Johnson著,魏海萍等译.J2EE设计开发编程指南[M].电了工业出版社.2003第30 -35页
    [25]马晶,田志.基于J2EE/XML的电子商务框架的研究与应用[J].微计算机信息,2008,9:137-139.
    [26]韦加强,潘荫荣.基于J2EE平台和MVC模型的电子政务系统的设计[J].微型电脑应用,2005,2.22(6):34-38.
    [27] Stephen Asbury,Scott R.Weiner. J2EE企业级应用开发[M].机械工业出版社,2003,8:65-68.
    [28] Rod Johnson Juergen Hoeller. Expert One-on-One J2EE Development without EJB[M].Publishing Inca 2004.6.
    [29]Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides.Design Patterns: Elements of Reusable Object-Orient Software[M]. Addison Wesley,1995.6.
    [30]Robert C.Martin. Agile Software Development: Principles, Patterns, and Practices[M].Pearson Education, 2004.7.
    [31] Rod Johnson.J2EE Development Frameworks[J]. Computer, 2005.01:107-110.
    [32]王可.基于Spring+Hibernate框架的农业信息化平台系统的设计与实现[J].成都信息工程学院学报,2007,22,5:622-626.
    [33]周静.基于Spring/Hibemate/Struts构架的教学质量评价系统的分析与设计[J].电脑知识与技术:学术交流,2007,6:1477-1478.
    [34]孙卫琴.精通Struts:基于MVC的JavaWeb设计与开发[M].北京:电子工业出版社,2005:13-14.
    [35]王红宇,左继强.基于struts架构的电子政务系统设计.长春工业大学学报(自然科学版)[J],2008,4.29(2):188-191.
    [36]夏昕.深入浅出Hibernate[M].北京:电子工业出版社,2005.6.
    [37] Craig Walls, Ryan Breidenbach. Spring in Action[M]. Manning Publications 2005: 22-70.
    [38]James Turner,Kevin Bedell.Struts kick strat[M].北京:电子工业出版社,2004:18-26
    [39]寇毅,吴力文.基于MVC设计模式的Struts框架的应用方法[J].计算机应用,2003,23(11):93-95.
    [40]何静,谭新民.基于Struts和Hibernate框架的农资购物系统设计与实现[J].农机化研究,2008,4(.4):182-184
    [41]邬继成.Struts与Hibernate实用教程[M].北京:电子工业出版社,2006: 30-40.
    [42]邱哲,王俊标,马斗.Struts Web设计与开发大全[M].北京:清华大学出版社,2006: 376-406.
    [43]Ted Husted, Cedric Dumoulin, George Franciscus et al. Struts in Action[M]. Manning Publications 2005:110-125.
    [44]http://tech.it168.com/zt/spring/index.html全面剖析Spring框架—由来和发展
    [45]罗时飞.Mastering Spring [[M].北京:电子工业出版社,2005.
    [46]李英杰,何广东,宗胜旺.基于Spring的电子政务系统的设计与实现[J].电子商务,2008,2.529(1):88
    [47]Martin Fowler, Inversion of Control Containers and the Dependency Injection pattern[M],2004.5.
    [48]Rod Johnson,Jnergen holler etc. Professionanl Java with the Spring Framework[MJ.Pnblishing 2005.
    [49] Robert C Martin.Dependency Inversion,敏捷软件开发:原则、模式与实践[M].北京:清华大学出版社,2003.9:110-120.
    [50]刘洋.精通Hibernate[M].北京:电子工业出版社,2005: 143-144.
    [51] Christian Bauer, Gavin King.Hibernate in Action[M]. Manning Publications 2005.18-33.
    [52]付京周.精通Hibernate3.0-Java数据库持久层开发实践「M].北京:人民邮电出版社,2007: 287-296.
    [53][美]Christian Bauer, Gavin King. Hibernate实战[M].人民邮电出版社,2007:256-275.
    [54][美]Patrick Peak, Nick Heudecker著,孙中华译.Hibernate Quickly中文版[M].人民邮电出版社,2006.
    [55]陈飞,吴砥.基于J2EE的科技管理平台的设计与实现[J].微计算机信息,2007,27:53-55.
    [56]杨明根,郑明秀,廖浩德. Struts+Spring+Hibemate架构及开发方法[J].西南民族大学学报,2007,8,33,4:953-956.
    [57]广晓平,吴华瑞. J2EE架构下数据库访问方式研究[J].计算机工程与设计2007,2,28,4:832-834.