1、 网上书店的设计与实现 摘 要 本文介绍了运用 ASP.NET、SQLServer 2005 等技术,在 Microsoft Visual Studio .NET 2005 平台上实现网上书店系统的方法和过程。本系统采用 B/S 模 式开发,使用三层架构,即表示层、数据访问层和业务逻辑层。三层架构思想: 即将各个功能明确分开,放在独立的层中,各层之间通过协作来完成整体功能。 表示层是为了与用户交互;数据访问层对数据库进行增、删、改、查等;业务逻 辑层一般又分为两层:业务表观层和业务规则层;业务表观层是用来实现与表示 层的沟通,业务规则层是用来实现用户密码的安全等。这样分层的优点:分工明 确,条
2、理清晰,易于调试,而且具有可扩展性,可维护性强。缺点:增加成本。 网上书店系统为用户提供一系列网上购书服务。系统包含两类用户,即管理 员和普通用户。针对这两类用户,系统根据登录时的角色判断,跳转到相应的页 面为其提供操作。网上书店系统实现了图书信息的列表显示,用户通过选择图书 种类进入对应种类的图书列表,也可以输入图书名称进行模糊查询。普通用户可 以针对某一本书进行放入购物车、 查看详细信息、 查看留言等操作, 在结算中心, 系统为用户创建当次购书订单,默认为“未结”状态。同时系统为普通用户提供 订单管理操作,方便用户查看订单,并可以针对以前的未结订单进行已结操作。 管理员负责整个系统的运行与
3、维护,针对图书、订单、留言、用户、角色 等,执行添加、删除、修改等操作。 关键字关键字: .Net 书店系统 订单 网上书店的设计与实现 ABSTRACT This paper introduces the application technology, such as ASP.NET, essentially a 2005 in Microsoft Visual Studio. NET 2005 platform implementation of online bookstore system method and process. This system adopts B/S model
4、 development, the use of three layer architecture, namely presentation layer, data access layer and business logic layer. Three layer architecture thought: the each function clearly separated, on a separate layer, each layer through the collaboration between to complete the function. The presentatio
5、n layer to interact with the user; The data access layer for the database to add, delete, change, check, etc.; Business logic layer is divided into two layers: the superficial layer and business rule layer; Business apparent layer is used to implement the communication with the presentation layer, b
6、usiness rule layer is used to implement the safety of the users password, etc. Such a layered advantages: division of labor is clear, clear, easy to debug, and extensible, the maintainability is strong. Disadvantages: increase the cost. Online bookstore system to provide users with a series of online shopping service. System contains two types of users, administrators and ordinary users. For the two types of users, the system according to the log in the role of the judge, jump to the corr