已阅读5页,还剩11页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
I 网上图书销售超市管理系统的设计与实现 摘要摘要 随着中国互联网的迅速发展 方便 快捷 实惠的网上购物被越来越多的人所青 睐 上网的企业不一定能成功 但不上网的企业将迟早被淘汰出局 已成为大多数人 的共识 世界上许多举足轻重的大企业已将电子商务列为主要的发展方向 为了跟上世 界电子商务的发展潮流 缩短与发达国家之间的差距 每个人都应该从不同的角度积极 了解电子商务 参与电子商务 尽快适应飞速发展的信息社会的需要 本文从理论和实践两个角度出发 对电子商务系统设计与实施的相关理论进行了探 讨 力求将理论与实践相结合 在对电子商务系统设计与实施的理论进行阐述的同时 配合一个模拟的网上图书销售超市管理系统 即如何对系统的进行分析和设计 期望能 够加深对电子商务系统的理解与认识 本文研究了一种网上图书销售超市管理系统 具有用户使用简单 界面直观 后台 管理强大等优点 本文对系统进行了详细的系统分析和设计 并用了大量的图来描述这些 分析设计过程 系统界面的主体框架用 HTML 实现 同时嵌入目前最流行的 Web 脚本语言 ASP 对不断更新的或者与数据库有联系的部分实现其动态变化 其设计分两个部分 一 部分是图书信息的显示 用户进行的图书查找 在线留言 购买图书等操作界面 另一 部分是专门用于系统数据库操作功能的后台操作界面 关键字关键字 电子商务 ASP 数据库 分析 设计 II Design and Implementation of On line Books Sale Supermarket Management System Abstract Convenient quick and beneficial on line shopping is favored by more and more people with the rapid development of China s Internet It is the most people s recognition that an enterprise that accesses the net can not necessary succeed and an enterprise that does not access the net will be eliminated sooner or later Many major enterprises in the world have taken electronic commerce as the main developing direction In order to keep up with the world s current of E Commerce and to shorten the distance between the developed countries and ours all of us should know something about E Commerce and participate in it so that we can soon adapt ourselves to the rapid growing information society This article discusses the design and implementation of E Commerce at length both in practice and in theory and tries to connect theory with practice Meanwhile the article also provides a simulated application system of on line books supermarket management system that is how to analysis and design a system so that you may have a deep understanding of E commerce system This article has studied an on line books distribution supermarket management system This plan has many merits formidable such as the use to be simpler the contact surface to be more direct viewing the backstage management to be stronger and so on This article has carried on the detailed system analysis and design and used the massive active charts to describe these analyses and design process The main body frame of system contact surface realizes in HTML simultaneously inserts the most popular Web script language ASP at present to realize dynamic change of the part that renews unceasingly or has the contact with the database Its design is divided two parts A part is the demonstration of the books information and operation contact surfaces the user may operate such as books search online message purchase books and so on Another part is the backstage data operation contact surface that is specially used to operate the database Key Words electronic commerce asp database analysis design 目 录 摘要 I ABSTRACT II 1 引言 1 1 1 电子商务简介 1 1 2 传统书店存在的问题 1 1 3 构建网上图书销售超市管理系统的意义 2 2 相关技术简介 3 2 1 B S 结构简介 3 2 2 ASP 技术简介 3 2 3 ACCESS数据库简介 4 3 系统分析 6 3 1 需求分析 6 3 1 1 角色 6 3 1 2 用例 6 3 1 3 用例描述 6 3 2 业务流程分析 7 3 3 数据流程分析 8 3 4 用户操作流程分析 10 3 5 数据库分析 11 4 系统设计 13 4 1 功能结构设计 13 4 2 系统功能模块设计 13 4 2 1 前台管理 13 4 2 2 后台管理 15 4 3 数据库设计 15 5 系统实现及相关代码 18 5 1 网上图书销售管理系统首页 18 5 2 系统功能实现 19 5 2 1 前台管理实现 19 5 2 2 后台管理实现 28 6 总 结 30 参考文献 31 附 录 32 附录 1 英文文献 32 附录 2 中文译文 35 1 1 引言 1 1 电子商务简介 当今世界 随着Internet Web数据库越来越广泛的应用 全球信息化浪潮一浪高过 一浪 在此形势下 电子商务发展迅猛 目前的电子商务主要有B2C和B2B两种类型 B2C是电子商务的一种模式 是英文Business to Consumer的缩写 即商家对消费者 也就 是通常说的商业零售 直接面向消费者销售产品和服务 B2B是Business to Business的英 文缩写 是企业与企业之间通过互联网进行产品 服务及信息的交换 作为B2C型电子商 务的代表 网上图书销售超市管理系统的开发更是成为了一种潮流 许多名不见经传的 小商店利用电子商务迅速发展成为国内 国际知名的企业 比如国内最大的中文网上书 店当当网就是一个B2C电子商务网站的典型 1 电子商务虽然正以难以置信的速度渗透到人们的日常生活 但是至今也没有一个统 一的定义 世人众说纷纭 各国政府 学者 企业界人事都根据自己所处的地位和对电 子商务参与的程度 给出了许多不同的表述 但是 普遍认同的说法认为电子商务是利 用现有的计算机硬件设备 软件和网络基础设备 通过一定的协议连接起来的电子网络 环境进行各种各样的商务活动的方式 电子商务较之传统的交易方式具有成本低 灵活性高 可扩展性强 信息查询快捷 准确等优点 2 因此 电子商务的应用已经成为企业在商场克敌致胜的关键 赢得了越来 越多的客户 因特网上的电子商务目前已经被公认为现代商业的发展方向 这是一个发 展潜力巨大的市场 具有诱人的发展前景 根据CNNIC 中国互联网络信息中心 的统计结 果 截止2008年1月中国有互联网用户2 1亿人 其中87 7 的网民曾体验过网上购物 在 有实际购买行为的网民中 有57 6 的网民购买的是图书 这充分说明以网上图书销售超 市管理系统为代表的电子商务系统面临着良好的发展机遇 1 2 传统书店存在的问题 随着知识经济在全世界范围内的快速发展 书在社会中的作用日益增强 书店是大 多数人购书的最佳去处 而随着信息技术的发展 传统书店在网络的冲击下 显现了很 多问题 1 由于传统书店店面位置的限制 书店的销售范围有限 只能在一个小区域内 书 店的顾客数量受到限制 书店的效益可想而知 2 2 传统书店的空间有限 顾客数量会受到很大程度的限制 销售量会受到影响 3 由于店面的租赁费用 图书运输费用和书店的管理费用的存在 图书的价格偏高 一定程度上减少了图书的销量 4 传统书店毕竟是由人来经营的 只能在一定的时间段内销售 减少了图书的销量 5 传统书店由于货架限制 只能有部分图书上架 顾客不能详细而准确地浏览所需 图书的信息 再加上员工的操作能力有限 使顾客购书的时间延长 一定程度上降低了顾 客购书的积极性 1 3 构建网上图书销售超市管理系统的意义 如上所述 传统书店的问题很多 而构建图书电子商务系统可以很好地解决上述问 题 它既能实现传统图书销售 又可以把传统书店搬上了互联网 3 为此 本文力求将理 论与实践相结合 在对电子商务理论进行阐述的同时 配合一个模拟网上图书销售超市 管理系统 以期达到对电子商务系统更深层次的理解与认识 4 网上图书销售超市管理系 统作为电子商务系统的一个应用具有如下特点 1 突破了商业往来的时间限制 网上图书销售超市可以一天 24 小时 天天提供客户完善的网络服务 而且可以提供 给全国各地的消费者 以最快的速度将公司图书的外观 内容 价格及相关信息提供给 客户了解 2 节省公司营运成本 网上图书销售超市本身没有店面 减少了公司的管理费用此外 网上书店管理系统 精简了办公程序 促进了管理的规范化 3 提高客户购书的积极性 顾客利用网上图书销售超市 可以很快的找到所需的图书 在网上提交订单后 图 书很快就会送到顾客手中 节省了顾客的购物时间和精力 3 2 相关技术介绍 本系统是通过ASP Active Server Pages 动态服务器页面 技术来实现的基于 B S Browse Server 浏览器 服务器 结构的网上图书销售超市管理系统 因此本系统的 前台页面以及对后台的管理是通过HTML Hypertext Markup Language 超文本标记语言 ASP两种技术来实现的 其中包含HTML标记语言 内嵌的VBScript和JavaScript脚本代码 SQL语句 而后台数据库使用Microsoft Access来构建 2 1 B S 结构简介 B S结构是随着Internet技术的兴起 对C S Client Server 客户端 服务器 结构的 一种变化或者改进 在这种结构下 用户仅需要安装浏览器 用户工作界面是通过WWW 浏览器来实现 极少部分事务逻辑在前端 Browser 实现 但是主要事务逻辑在服务器 端 Server 实现 形成B S结构的三层结构 其结构如图2 1 显示 逻辑 事物 处理 逻辑 数据 处理 逻辑 请求 响应 请求 响应 数 据 库 浏览器 Web服务器数据库服务器 图2 1 B S结构 本系统采用了B S结构 它的最大的优势就是可以在任何地方进行操作而不用安装任 何专门的软件 只要有一台能上网的电脑就能使用 客户端零维护 系统的扩展非常容 易 只要能上网 再由系统管理员分配一个用户名和密码 就可以使用了 由于用户工 作界面是通过www浏览器来实现 故维护和升级方式简单 浏览器成本较低 种类多 可选择性强 2 2 ASP 技术简介 ASP 是微软公司推出的一种用以取代 CGI 的技术 ASP 在数据库访问 与 HTML 的集 成 提高服务器的效率等诸多方面都优于 CGI 更适应 Web 应用程序开发的需要 ASP 为 4 开发 Web 站点提供了强大的 基于服务器功能的应用框架 由于 ASP 的逻辑在 Web 服务 器上运行 用 ASP 创建的易用可以被跨不同平台运行的多种 Web 浏览器访问 学习起来 简单 使用方便 其优点如下 5 1 可以把脚本语言直接嵌入 HTML 文档中 不需要编译和连接就可以运行 2 可以使用 ADO 组件轻松存取数据库 3 可以使用第三方开发的组件 4 不存在浏览器兼容的问题 5 可以隐藏程序代码 在客户端仅可以看到由 ASP 输出的动态 HTML 文件 2 3 Access 数据库简介 Access 是微软公司推出的基于 Windows 的桌面关系数据库管理系统 RDBMS 是 Office 系列应用软件之一 它提供了表 查询 窗体 报表 页 宏 模块 7 种用来建 立数据库系统的对象 提供了多种向导 生成器 模板 把数据存储 数据查询 界面 设计 报表生成等操作规范化 为建立功能完善的数据库管理系统提供了方便 也使得 普通用户不必编写代码 就可以完成大部分数据管理的任务 6 其主要特点如下 1 存储方式单一 Access 管理的对象有表 查询 窗体 报表 页 宏和模块 以上对象都存放在后 缀为 mdb 的数据库文件种 便于用户的操作和管理 2 面向对象 Access 是一个面向对象的开发工具 利用面向对象的方式将数据库系统中的各种功 能对象化 将数据库管理的各种功能封装在各类对象中 它将一个应用系统当作是由一 系列对象组成的 对每个对象它都定义一组方法和属性 以定义该对象的行为和外国 用户还可以按需要给对象扩展方法和属性 通过对象的方法 属性完成数据库的操作和 管理 极大地简化了用户的开发工作 同时 这种基于面向对象的开发方式 使得开发 应用程序更为简便 3 界面友好 易操作 Access 是一个可视化工具 是风格与 Windows 完全一样 用户想要生成对象并应用 只要使用鼠标进行拖放即可 非常直观方便 系统还提供了表生成器 查询生成器 报 表设计器以及数据库向导 表向导 查询向导 窗体向导 报表向导等工具 使得操作 简便 容易使用和掌握 4 集成环境 处理多种数据信息 5 Access 基于 Windows 操作系统下的集成开发环境 该环境集成了各种向导和生成器 工具 极大地提高了开发人员的工作效率 使得建立数据库 创建表 设计用户界面 设计数据查询 报表打印等可以方便有序地进行 5 Access 支持 ODBC 开发数据库互连 Open Data Base Connectivity 利用 Access 强大的 DDE 动态数据交换 和 OLE 对象的联接和嵌入 特性 可以 在一个数据表中嵌入位图 声音 Excel 表格 Word 文档 还可以建立动态的数据库报 表和窗体等 Access 还可以将程序应用于网络 并与网络上的动态数据相联接 利用数 据库访问对象生成 HTML 文件 轻松构建 Internet Intranet 的应用 6 3 系统分析 3 1 需求分析 需求分析是电子商务系统开发的第一步 也是最重要的一步 系统需求分析阶段要 通过描述系统的需求 定义系统中的关键领域类来建立模型 7 3 1 1 角色 角色用于描述与系统功能有关的外部实体 它可以是用户 也可以是外部系统 通 过对网上图书销售超市管理系统的分析 确定系统中的角色 顾客 系统管理员 3 1 2 用例 在确定角色的基础上 确定用例 网上图书销售超市中的用例有 购买图书 修改 信息 留言 缺书登记 图书查询 登录系统 用户管理 登记入出库图书 留言管理 缺书管理 图书管理 用例图描述如图 3 1 购买图书 缺书登记 图书查询 登录 在线留言 修改信息 入出库登 记 缺货管理 留言管理 定单管理 图书信息 管理 顾 客 管理员 图 3 1 系统用例图 3 1 3 用例描述 除了用用例图描述系统需求外 还可以用文字对每个用例进行需求说明 更具体地描 述该用例与角色的交互 登录 为顾客和管理员提供身份确认的功能 保证合法的权利 图书查询 用户进行查询 方便 快捷地找到要找的图书信息 7 购买图书 为了方便顾客购物 每个用户都有一个购物车 用户在购买时可更改图书数量 在线留言 为了让顾客提出宝贵意见 建议和感想 顾客可对网站或公司等留言 缺书登记 为满足顾客的要求 若超市没有顾客所要购买的图书 顾客可以留下图书的相关信 息 修改信息 顾客登录成功后 可对自己的个人信息进行修改 缺货管理 管理员对顾客的需求的浏览和删除 图书入出库管理 管理员可对图书销售超市的入出库的录入 记录的浏览和删除 organization becomes aware that either an existing system is not working correctly or a new system is needed to meet an opportunity The planning stage encompasses a number of steps including project initiation feasibility analysis and so on For now assume that the organization has already carried out the project initiation step identifying a problem or need and initiating a project to solve it The next step is to determine the feasibility of solving the problem or creating the new system If the organization judges the project to be infeasible perhaps because of technical economical or organizational reasons then it can terminate the project without going any further The key deliverable of the planning stage is a document called the project plan which describes the desired information system The project plan includes a clear statement of the scope of the desired project In the analysis stage the goal is to gather data that will answer the question of what the system will do Only when this question has been answered does the project proceed to the next stage design The key deliverable from the analysis stage the system proposal describes what the new system should look like In the process of answering the question of what the system will do in the analysis stage it may become clear that this system should not be developed or acquired either because the questions cannot be clearly answered or because the answers cause management to rethink the 8 need for a modified or new system As with the previous stage stopping here will save a great deal of money and time compared to continuing with the development of a wrong or unnecessary system In the next stage design the how questions are answered The first how question is How will the system be developed internally through outsourcing or by acquiring it The analysis stage should have provided enough information to answer this question If the organization decides to pursue outsourcing then it must select a vendor and turn the project over to the vendor If the organization decides on acquisition then it must develop systems requirements to use in selecting a system to be acquired On the other hand if the organization elects to develop the system internally then the design stage must answer another question How will the system operate In the design stage the organization creates the physical design to specify the details of the system This system specification is a document that is used in the implementation stage to program the new system outsource it or acquire it depending on the decision made at the beginning of the design stage In the implementation stage if the system is being developed internally or outsourced programmers turn the system specification into working programs If the new system is being acquired the organization uses the system specifications to identify a system for purchase Whether developed internally outsourced or acquired the new system is installed and tested extensively at this stage and the users are trained The deliverable from this stage consists of an installed working system Note that even when the planning analysis and design stages are accomplished on schedule the development process can become dramatically delayed or even aborted during the implementation stage A number of factors can lead to the delay or termination of the project including poorly completed early stages or programming problems All too often however the problems relate to people in the organization subverting the implementation process when they feel threatened by the changes associated with the new information system These people may include employees who fear that they will be forced to learn a new system or those who think the new system will put them out of a job After installation of the project it must be maintained by solving any day to day problems 9 During the implementation stage you can discover that so much maintenance work is necessary to keep the system running that it becomes obvious that the system is not working as required This problem can occur because of changing information requirements dynamic business conditions or technological innovations If the system fails to work as required you move back to the planning stage and start the systems development life cycle over again Table 9 2 shows the four stages of structured systems development and the key deliverable for each stage It also shows the results of a survey of software developers regarding how much time they spend on each activity Note that the last stage takes almost 50 percent of the development time This fact is not surprising given that the system must be programmed tested and installed during this stage Often developers do not set aside sufficient time to carry out the implementation stage which results in new information systems being delivered late Table 9 2 System Development Deliverables StageDeliverablePercentage of Time PlanningProject proposal18 AnalysisProject plan24 DesignSystem specification9 ImplementationWorking system49 The structured approach to systems development is often referred to as the waterfall approach to development because the process resembles a series of waterfalls with the deliverable from each stage falling down to the next stage as shown in Figure 9 3 And as with a waterfall it is often difficult but not altogether impossible to go backward in the structured approach Ideally each step of the structured approach should be completed before going on to the next stage In practice situations often arise in which it becomes necessary to backtrack to a previous stage to add a missing element or to fix a problem Although returning to a previous stage shown as a dashed backward arrow in Figure 9 3 should be avoided it is a reality in systems development Planning Analysis Design Implementatio n Figure9 3 Waterfall development 节选自 Information Technology and the Networked Economy Partrick Mckeown 著 281 282 页 10 附录 2 中文译文 结构化方法的阶段 结构化方法开始于计划阶段 当组织中的开发人员意识到现存的信息系统不能正常的 运行 或者一个新的信息系统能够带来更好的机遇 计划阶段包括很多阶段 包括项目启 蒙 项目的可行性分析等等 现在 假设组织已经实施了项目完成了启蒙阶段 通过识 别问题或需求并且启蒙了一个系统去解决问题 接下来的阶段就是去确定解决问题或开 发一个新系统的可行性研究 假如组织判定该项目将是不可行的 或许是因为技术 经 济或组织原因 组织可能会终止该项目并且该项目将来也不会实施 在项目计划的阶段 重要的可交付使用的文件是项目计划 该计划详细描述了所要开发的信息系统 该项目 规划包括项目的范围的一个清楚的综述 在系统的分析阶段 分析的目标是收集系统将要做什么工作的相关数据 只有当这 个问题解决了 才能进行下面一项工作 系统设计 在系统分析阶段 关键的可交付使 用的文件是系统目标 该目标详细描述了所要开发的信息系统的全貌 在分析阶段中 在回答系统将要做什么工作的过程中 这个系统不应该被开发或不 能开发出来 是因为做什么不能被清楚的回答 还是因为工作会造成管理方面会重新考 虑需要修改的或新的系统的问题 系统提案会使问题变得很清楚 当在上一个阶段中 将项目停止在这 相比之下 会比开发一个有误的或者说是没必要的系统节约很
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 盲人电台活动方案策划(3篇)
- 西塘团建活动方案策划(3篇)
- 怎么讲活动策划方案(3篇)
- 红酒折扣活动策划方案(3篇)
- 雨水天气大棚蔬菜管理制度(3篇)
- 德能勤绩管理制度(3篇)
- 攀岩运动安全管理制度(3篇)
- 公用车管理制度(3篇)
- 民警规范用车管理制度(3篇)
- 合肥项目管理制度规范(3篇)
- 人教版六年级数学上册教案(表格式)
- 儿童糖尿病酮症酸中毒诊疗指南(2024)解读
- 铁道运营专业职业生涯规划
- 血脂管理指导
- 深圳大学《通信原理》2023-2024学年第一学期期末试卷
- 电力行业国企员工聘用合同模板
- 胰岛干细胞分化和定向
- 针织技术与人工智能的融合创新
- 电影音乐欣赏智慧树知到期末考试答案章节答案2024年华南农业大学
- (完整)教师编单位同意报考证明模板
- 冷库、保鲜库设备采购投标方案(技术方案)
评论
0/150
提交评论