1、 农业管理系统 内容摘要:随着 Internet 的日益普及和电脑技术的不断发展,网上开办网站来介绍一 些专业知识,顺便出售一些相关成品已经迅速成为一种非常活跃的商务模式。 本系统开 发中涉及了 ASP.NET 技术以及分析了基于 ASP.NET 建立网上农业网站的技术手段, 深入 探讨了如何利用 ADO 技术实现与 SqlServer2005 数据库连接的方法。 本系统采用MVC的构架开发, 系统的视图层与控制层主要通过ASP.NET的控件实现; DAO 用于持久层的实现,包括数据库访问层和对象模型的设计。 系统中一些模块使用了双重密码校验和验证码技术,进一步提升了系统的完全系 数。使它能即
2、使在复杂的网络环境也能正常运行。 关键词:ASP.NET MVC DAO Agricultural management systemAgricultural management system Abstract:Abstract: With the continuous development of computer technology and the increasing popularity of the Internet, the Internet to set up a website to introduce some professional knowledge, by the
3、 way the sale of some related products has quickly become a very active business model. This paper introduces ASP.NET technology and analysis technology building online agriculture website based on ASP.NET, discusses how to use ADO technology to realize with SqlServer2005 database connection method.
4、 This system adopts the framework of MVC development, the view layer and control layer mainly by the ASP.NET control; DAO is used to realize the persistence layer, including the design of database access layer and object model. Double password checking and verification code technology some module us
5、ing the system, and further improve the complete coefficient system. So that it can run even in complex network environment. Keywords:Keywords: ASP.NET MVC DAO 目 录 前言 . 1 1 可行性分析 1 1.1 技术可行性分析 . 1 1.1.2 C/S 与 B/S 模式 3 1.2 经济可行性分析 5 1.3 系统拟采用的软、硬件环境 5 2 需求分析 6 2.1 确定系统执行者 6 2.2 确定用例 6 2.3 网上农业网站用例描述
6、6 3 系统概要设计 7 3.1 系统功能构成 8 3.2 用户登录系统流程图 8 3.3 程序流程图 9 4 详细设计 . 11 4.1 系统首页 . 11 4.2 登录界面设计 . 13 4.3 用户注册界面设计 . 14 4.4 新闻界面设计 . 16 4.5 添加农产品界面设计 . 17 4.6 产品购买评价 . 20 5 系统测试 21 5.1 单元测试 . 21 5.1.1 确定环形复杂性度量 V(G) . 21 5.1.2 确定基本路径集合 21 5.1.3 测试用例设计 21 5.2 功能测试 . 22 5.3 集成测试 . 22 6 总结 23 参考文献 23 1 农业管理系统 前言 据有关资料,截止 2009 年 9 月,中国农业信息网站约三万多个,在量上超过了法 国、加拿大等发达国家,名列世界前 l0 名;日均页面浏览量已达 120 多万次,内容及 形式较以前也有很大提高。而在 1998 年,我国农业网站数量不足 200 个。 从总体上看,农业网站正在蓬勃发展,但是农业网站建设仍匮乏,与增速迅猛的农 村网民队伍不成正比。据统计,截至 2009 年 12 月,