仓库管理系统(典型数据库).doc

上传人:w****2 文档编号:6643586 上传时间:2020-03-01 格式:DOC 页数:35 大小:1.25MB
返回 下载 相关 举报
仓库管理系统(典型数据库).doc_第1页
第1页 / 共35页
仓库管理系统(典型数据库).doc_第2页
第2页 / 共35页
仓库管理系统(典型数据库).doc_第3页
第3页 / 共35页
点击查看更多>>
资源描述
河南城建学院 典型数据库 课程设计报告 课程名称 典型数据库 课程设计 设计题目 仓库管理系统 指导教师 班 级 学 号 学生姓名 同组人员 计算机科学与工程学院 2016 年 1 月 10 日 成 绩 评 语 目 录 第 1 章 概述 2 1 1 选题的背景与意义 2 1 2 相关技术分析 3 第 2 章 系统功能设计 4 2 1 系统总体结构设计图 4 2 2 系统功能模块 4 1 2 1 登录模块 4 1 2 2 基本信息管理模块 5 1 2 3 货物信息管理模块 5 1 2 4 仓库货物管理模块 6 1 2 5 查询信息信息模块 6 1 2 6 仓库警报功能模块 7 1 2 7 信息导出功能模块 7 第 3 章 数据库设计 8 3 1 需求分析 8 3 1 1 数据流程图 8 3 1 2 数据字典 10 3 2 数据库概念结构设计 12 3 2 1 E R 图设计方法 12 3 2 2 全局 E R 图 12 3 2 3 局部 E R 图 13 3 3 数据库逻辑结构设计 15 3 4 安全性和完整性设计 17 第 4 章 数据库维护与查询 18 4 1 序列 18 4 2 触发器 18 第 5 章 UI 设计与代码实现 20 5 1 UI 设计 20 5 1 1 仓库管理员 20 5 1 2 系统管理员 22 5 2 代码实现 24 5 2 1 仓库管理员 24 5 3 2 系统管理员 28 第 6 章 结束语 31 参考文献 33 第 1 章 概述 1 1 选题的背景与意义 1 背景 随着信息技术的发展和国内外互联网技术应用水平的逐步提高 在企业管理过程中 传统的工作方式和管理模式已经难以满足现代社会的必然需求 实现企业现代化综合 管理已经是提高国家政府机关和企事业单位各部门工作效率 规范化管理的必然发展 趋势 随着经济全球化 信息网络化和物流现代化进程的全面推进 仓储供需量呈现 爆炸式的增长 传统的仓库管理模式和管理系统 已根本满足不了现代社会全面信息 化的严峻挑战 如何加强以信息化为指导的现代仓库管理技术已成为物流现代化走向 成功的有效途径 如何将互联网技术和仓储物流的信息化技术紧密结合起来 开发出 适应当前社会发展需要的 先进的现代化物流仓储管理技术平台 是现代化物流发展 技术中一项基础的 又是很关键的 特别值得研究的子课题 ASP 技术是面向对象编程 的技术 可实现复杂数据库的操作 用 ASP 开发的 Web 应用程序安装在网络服务器上 运行在网络服务器上 因而 ASP 源程序的隐密安全系数性高 而 ASP 又是基于 B S 模 型架构的 开放式的 Web 服务器的应用程序开发技术 因此 采用 ASP 技术开发运行 在服务器端的仓库管理信息系统平台是众多软件设计与开发人士的首要选择 本文比 较全面地阐述了与 ASP ADO B S 模式有关的理论技术 为构建 Web 仓库管理信息系 统提供了必要的理论支持 首先分析了 ASP 技术的优势 特点及其工作原理 剖析了 ASP 工作的核心内涵 搭建了 ASP 技术的工作环境 为开发系统功能提供的必需的技术 运行环境 分析了目前 Web 数据库最佳访问组件 ADO 技术的对象与数据集之间的关系 直接搭建了 Web 应用程序与数据库访问的联系梁 根据现代仓储市场的需求特点 对 拟开发系统的功能进行了细致地分析与设计 建立了仓储数据管理的 E R 模型图 数 据库结构 分析了 B S 架构模式的三层框架 构建了以该框架为模型的仓库管理信息 系统 重点分析介绍了有关功能模块的 ASP 实现过程 成功地实现了基于 ASP 运行环 境的仓库管理信息系统的开发与设计 并对本系统的各项功能进行了测试与分析 发 现系统运行状态良好 人机交互友好 程序设计实现合理 达到了项目设计的目的和 要求 最后 对本次的项目设计进行了总结与展望 发现了系统的构架模式关系着程 序开发效率 对开发系统有着重要的影响意义 好马配好鞍 优秀的软件必然有优秀 的构架 作为软件开发设计人员既要努力学好软件技术又要重视相关模式的学习 这 样 就能达到事半功倍的效果 设计开发出更加优秀的应用系统来 2 意义 仓库管理系统是典型的信息管理系统 MIS 其开发主要包括后台数据库的建立和 维护 以及前端应用程序的开发两个方面 对于前者要求建立起数据一致性和完整性强 数据安全性好的库 而对于后者则要求应用程序功能完备 易使用等特点 经过分析 我们使用 Microsoft 公司的数据库开发工具 SQL Server2008 和 Microsoft Visual Studio 2010 利用其提供的各种面向对象的开发工具和数据库的结合比较方便 我们开 发了这套库存管理系统 包括仓库管理 入库管理 出库管理 库存管理以及查询等模 块 仓库管理可用于配置企业的仓库信息 出库 入库管理可以使管理人员管理各种类 型的货物进出 库存管理可提供便捷的库存查询管理 仓库管理系统实现了企业对货物 的管理 用来控制存储货物的数量 以保证稳定的货物支持正常的运转 但又最小限度地 占用资本 它是一种相关的 动态的及真实的库存控制系统 它能够结合 满足相关 部门的需求 随时间变化动态地调整库存 精确地反映库存现状 加强库存环节管理 有 效地控制货物收发 降低了库存 优化了库存结构 能够及时了解货物状态 全方位的仓 库管理可以及时了解货物分布 避免了货物短缺 积压 过期变质 及时了解货物的收 发成本 货物数据共享 1 2 相关技术分析 此系统采用了成熟且完善的 oracle 11g 及 Microsoft Visual Studio 2010 软件 开发工具来进行后台数据库的管理 操作和维护 该软件功能强大 可用性强 完全 可以满足我们开发项目的要求 第 2 章 系统功能设计 2 1 系统总体结构设计图 系统要具备如下功能 登录界面统一 用户登录系统时进行身份验证 如不是系 统用户则禁止登录 添加新员工时 通过系统管理员进行添加 并能采集员工的基本 信息 仓库货品信息的管理 系统包括仓库管理 入库 出库和一些统计查询等几部 分组成 仓库管理系统实现对货品信息的管理和总体的统计等 仓库信息 供货单位 和操作员信息的查看及维护 仓库管理人员可以浏览 查询 添加 删除等产品的基 本信息 不不不不不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 图 2 1 系统功能图 2 2 系统功能模块 1 2 1 登录模块 登录模块可以分为系统管理员登录和管理员登录 如果用户要进行登陆时 系统 会进去数据库进行帐号密码匹配 同时也要进行权限匹配 如果匹配成功才可以登录 根据其选择的用户不同 输入不同的用户与密码 接入不同的用户界面 管理不同的 界面 不不不不 不不 不不 不不 不 不不 不不 不不 不 图 1 2 1 登陆模块 1 2 2 基本信息管理模块 基本信息模块分为仓库基本信息 操作员基本信息 客户基本信息 仓库基本信 息又分为管理员管理 提货员管理 采购员管理 不不不不不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 不 不不 不不 不 不不 不不 不 不不 不不 不 图 1 2 2 基本信息管理模块 1 2 3 货物信息管理模块 货物信息管理模块分为添加货物信息 修改货物信息 删除货物信息 不不不不不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 图 1 2 3 货物信息管理 1 2 4 仓库货物管理模块 仓库货物管理模块分为入库操作和出库操作 不不不不不不 不不 不不 不不 不不 图 1 2 4 仓库货物管理 1 2 5 查询信息信息模块 查询信息管理模块分为查询货物信息 查询仓库信息 查询客户信息 不不不不不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 图 1 2 5 查询信息管理 1 2 6 仓库警报功能模块 仓库警报功能模块在货物不足时提示 不不不不不不 不不 不不 不不 图 1 2 6 警报功能 1 2 7 信息导出功能模块 信息导出功能模块分为导出货物信息 导出入库信息 导出出库信息 不不不不不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 图 1 2 7 信息导出功能 第 3 章 数据库设计 3 1 需求分析 3 1 1 数据流程图 仓 库 客 户货 物 操 作 员 仓 库 管 理 系 统 出 货 进 货 出 库 入 库 查 询 操 作 返 回 结 果 购 货 供 货 图 3 1 1 顶层数据流图 图 3 1 2 系统数据流图详细设计 图 3 1 3 管理员 货物 图 3 1 4 管理员 入库 出库 图 3 1 5 管理员 客户 图 3 1 6 管理员 仓库 3 1 2 数据字典 1 仓库表 字段名称 数据类型 描述 Sno int 仓库编号 主键 Sname varchar2 10 仓库名称 Sadress varchar2 50 仓库地址 Sbig number 仓库大小 Ano varchar2 10 管理员编号 外键 2 入库表 字段名称 数据类型 描述 Gno Int 货物编号 外键 Bno int 采购员编号 外键 Sno Int 仓库编号 外键 Idate Date 采购日期 Inum Int 采购数量 Ano varchar2 10 管理员编号 外键 3 出库表 字段名称 数据类型 描述 Gno Int 货物编号 外键 Pno int 提货员编号 外键 Sno int 仓库编号 外键 Ano varchar2 10 管理员编号 外键 Odate date 采购日期 Onum Int 采购数量 4 客户表 字段名称 数据类型 描述 Cno Int 客户号 主键 Cname Varchar2 10 客户名 Ctype Varchar2 10 客户类型 Cmethod Varchar2 11 联系地址 Ccode Varchar2 7 邮政编号 Cbz Varchar2 50 备注 Pno int 提货员编号 外键 5 库存表 字段名称 数据类型 描述 Gno Int 货物编号 外键 Sno int 仓库编号 外键 Knum Int 货物数量 Kdate date 清点时间 6 提货员表 字段名称 数据类型 描述 Pno Int 提货员编号 主键 Pname Varchar2 11 提货员姓名 Psex varchar2 3 提货员性别 Pmethod varchar2 11 提货员联系方式 Paddress varchar2 50 提货员联系地址 7 用户表 字段名称 数据类型 描述 Uname Varchar2 10 用户名 Upass Varchar2 10 密码 Ugrade Int 权限 8 管理员表 字段名称 数据类型 描述 Ano Varchar2 10 管理员编号 主键 Aname Varchar2 10 管理员姓名 Asex Varchar2 3 管理员性别 Amethod varchar2 11 管理员联系方式 Aaddress varchar2 50 管理员地址 9 货物表 字段名称 数据类型 描述 Gno int 货物编号 主键 Gname varchar2 10 货物名称 Sno nchar 10 仓库编号 Gdate date 生产日期 Gfactory varchar2 10 生产厂家 Pno nchar 10 采购员编号 Gprice number 7 2 货物单价 Idate date 入库时间 10 采购员表 字段名称 数据类型 描述 Bno Int 提货员编号 主键 Bname varchar2 10 提货员姓名 Bsex varchar2 3 提货员性别 Bmethod varchar2 11 提货员联系方式 Baddress varchar2 50 提货员联系地址 3 2 数据库概念结构设计 3 2 1 E R 图设计方法 1 属性必须是不可分的数据项 2 属性不能与其他实体具有联系 联系只能发生在实体之间 3 2 2 全局 E R 图 不不不 不不不不不不不不 不不 不不 不不 不不 不不 不不 不不 不不 不不 1 N 1 1 N N N N N M MM N M 图 3 2 1 全局 E R 图 3 2 3 局部 E R 图 3 1 仓库 货物 采购员 不不不 不不 不不 不不 不不不不 不不不不 1 N M M N 不不 不不不不 不不不不 不不不不 不不不不 不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不不 不不 不不 不不不不 不不不不 图 3 1 仓库 货物 采购员 3 2 仓库 货物 提货员 1 不不不 不不 不不 不不 不不不不 不不不不 1 N M MN 不不 不不不不 不不不不 不不不不 不不不不 不不 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不不 不不 不不 不不不不 不不不不 图 3 2 仓库 货物 提货员 3 3 仓库 货物 存储情况 不不 不不不不 MN 不不不不 不不不不 不不不不 不不不不 不不不不 不不不不不不不不 不不不不 不不不不 不不不不 不不不不 图 3 3 仓库 货物 存储情况 3 4 客户 提货员 不不 不不不不不 1N 不不不 不不不 不不不不 不不不不 不不 不不 不不不不不 不不不不不 不不 不不不不 不不 图 3 4 客户 提货员 3 5 系统管理员 采购员 不不不不不 N1 不不不不不 不不 不不 不不不不 不不不不 不不不不不 不不不不不不不不不不 不不不不不 不不 不不不不 不不 图 3 5 管理员 采购员 3 6 管理员 仓库 不不不 不不 11 不不 不不不不 不不不不 不不不不 不不不不不不不不 不不不不不不不不不不 不不不不不 不不 不不不不 不不 图 3 6 管理员 仓库 3 7 系统管理员 提货员 不不 N1 不不不 不不不不不 不不不不不 不不 不不不不 不不 不不不不不 不不不不不不不不不不 不不不不不 不不 不不不不 不不 图 3 7 系统管理员 提货员 3 3 数据库逻辑结构设计 1 仓库 货物 采购员 入库 M N Tb Storage Sno Sname Sadress Sbig Ano Tb Good Gno Gname Gdate Gfactory Gprice Idate Tb InStorage Gno Sno Idate Inum Bno 2 仓库 货物 提货员 出库 M N Tb Storage Sno Sname Sadress Sbig Ano Tb Good Gno Gname Gdate Gfactory Gprice Idate Tb OutStorage Gno Sno Odate Onum Pno 3 仓库 货物 存储情况 M N Tb Storage Sno Sname Sadress Sbig Ano Tb Good Gno Gname Gdate Gfactory Gprice Idate Tb Kc Gno Sno Knum Kdate 4 客户 提货员 N M Tb Client Cno Cname Ctype Cmethod Ccode Cphone Cbz Pno Tb Picker Pno Pname Psex Pmethod Paddress 5 管理员 仓库 1 N Tb Admin Ano Aname Asex Amethod Aaddress Tb Storage Sno Sname Sadress Sbig Ano 仓库 Tb Storage Sno Sname Sadress Sbig Ano 入库 Tb InStorage Gno Sno Idate Inum Bno 出库 Tb OutStorage Gno Sno Odate Onum Pno 客户 Tb Client Cno Cname Ctype Cmethod Ccode Cphone Cbz Pno 库存 Tb Kc Gno Sno Knum Kdate 提货员 Tb Picker Pno Pname Psex Pmethod Paddress 用户 Tb User Uname Upass Ugrade 管理员 Tb Admin Ano Aname Asex Amethod Aaddress 货物 Tb Good Gno Gname Gdate Gfactory Gprice Idate 采购员 Tb Buyer Bno Bname Bsex Bmethod Badress 3 4 安全性和完整性设计 1 外键约束 管理员表中作为主键的管理员编号在仓库表中作为外键使用 constraint gly key foreign key Ano references Tb Admin Ano 提货员表中作为主键的提货员编号在客户表中作为外键使用 constraint thy key foreign key Pno references Tb Picker Pno 货物表中作为主键的货物编号在库存表中作为外键使用 constraint hw key foreign key Gno references Tb Good Gno 仓库表中作为主键的的仓库编号在库存表中作为外键使用 constraint ck key foreign key Sno references Tb Storage Sno 货物编号 仓库编号 提货员编号 管理员编号在出库表中作为外键使用 constraint hw1 key foreign key Gno references Tb Good Gno constraint ck1 key foreign key Sno references Tb Storage Sno constraint thy1 key foreign key Pno references Tb Picker Pno constraint gly1 key foreign key Ano references Tb Admin Ano 货物编号 仓库编号 采货员编号 管理员编号在出库表中作为外键使用 constraint hw1 key foreign key Gno references Tb Good Gno constraint ck1 key foreign key Sno references Tb Storage Sno constraint cgy2 key foreign key Bno references Tb Buyer Bno constraint gly1 key foreign key Ano references Tb Admin Ano 2 check 约束 check 约束 Bsex varchar2 3 check Bsex in 男 女 Psex varchar2 3 check Psex in 男 女 3 primary key 约束 管理员表 Ano varchar2 10 primary key 仓库表 Sno int primary key 采购员表 Bno int primary key 提货员表 Pno int primary key 货物表 Gno int primary key 客户表 Cno int primary key 第 4 章 数据库维护与查询 4 1 序列 1 提货员序列 create sequence Picker seq start with 1001 increment by 1 2 采购员序列 create sequence Buyer seq start with 2001 increment by 1 3 货物序列 create sequence Good seq start with 3001 increment by 1 4 仓库序列 create sequence Storage seq start with 4001 increment by 1 5 客户序列 create sequence Client seq start with 5001 increment by 1 4 2 触发器 1 提货员触发器 create or replace trigger add Picker trigger before insert on TB Picker for each row begin if new Pno is null then select Picker seq nextval into new Pno from dual end if end add Picker trigger 2 采购员触发器 create or replace trigger add Buyer trigger before insert on TB Buyer for each row begin if new Bno is null then select Buyer seq nextval into new Bno from dual end if end add Buyer trigger 3 货物触发器 create or replace trigger add Good trigger before insert on TB Good for each row begin if new Gno is null then select Good seq nextval into new Gno from dual end if end add Good trigger 4 仓库触发器 create or replace trigger add Storage trigger before insert on TB Storage for each row begin if new Sno is null then select Storage seq nextval into new Sno from dual end if end add Storage trigger 5 客户触发器 create or replace trigger add Client trigger before insert on TB Client for each row begin if new Cno is null then select Client seq nextval into new Cno from dual end if end add Client trigger 第 5 章 UI 设计与代码实现 5 1 UI 设计 5 1 1 仓库管理员 1 登录界面设计 登录模块可以分为系统管理员登录和管理员登录 如果用户要进行登陆时 系统 会进去数据库进行帐号密码匹配 同时也要进行权限匹配 如果匹配成功才可以登录 根据其选择的用户不同 输入不同的用户与密码 接入不同的用户界面 管理不同的 界面 2 基本信息模块设计 基本信息模块包含仓库基本信息 客户基本信息 操作员基本信息 仓库基本信 息设置有修改和删除的功能 客户基本信息设置了添加 删除和修改的功能 操作员 基本信息设置了修改功能 因为客户信息为常变实体属性 因此设置了添加 修改和 删除的功能 仓库信息为不常变实体属性 因此设置了修改和删除属性 操作员因为 是管理员 不能修改同一等级权限的信息 因此只给添加了修改基本信息的功能 3 货物信息模块设计 货物信息模块包含对货物信息的添加 货物信息的删除 货物信息的修改对应现 实世界的引进新货物 货物信息的更新和清仓处理 4 出库入库模块设计 出库入库模块包含了货物出库和入库模块 对于入库信息来说 当系统开始入库时 先判断货物是否存在 如果不存在的话这直接将货物信息插入库存表 然后在入库表 中插入记录 提示入库成功 如果货物存在的话则看对应的仓库是否存在如果存在的 话则在原来的货物基础上只更新货物数量提示入库成功 如果仓库不匹配的话则插入 该货物信息 然后在入库表中插入记录 提示入库成功 出库信息 当系统开始出库时 先判断货物是否存在如果存在的话则看需要出货的 仓库是否存在 如果存在的话再看货物数量是否满足出货数 如果满足则出库成功同 时对库存表和出库表进行更新 提示出库成功 否则则出库失败 5 信息查询模块设计 信息查询模块包含货物信息查询 仓库信息查询 客户信息查询 通过对客户表 仓库表和货物表的主键进行匹配唯一的确定一行数据返回 GridView 进行显示 6 警报信息模块设计 警报信息功能 是当库存中货物数量少于 10 的时候自动提醒管理员要进行及时的 补货 以免货物短缺 造成损失 7 信息导出模块设计 信息导出模块包含了导出货物信息 导出出库信息 导出入库信息功能 方便仓 库人员进行报表打印和仓库流水信息 5 1 2 系统管理员 1 管理员信息模块设计 管理员信息模块包含对管理员的添加修改和删除的功能 因为仓库管理系统由管 理员进行管理 因此当添加管理员信息时 在给管理员表添加基本信息的同时也给用 户表中添加了信息 帐号为管理员编号 密码默认为 123 2 采购员信息模块设计 采购员信息管理 对采购员信息的添加 修改 删除 3 提货员信息模块设计 提货员信息管理 对提货员信息的添加 修改 删除 5 2 代码实现 5 2 1 仓库管理员 1 登录界面登录匹配关键代码 protected void Button1 Click object sender EventArgs e var qx 1 if DropDownList1 SelectedValue ToString 仓库管理员 qx 1 else qx 0 OracleCommand mycommand new OracleCommand select from Tb User where Uname this TextBox1 Text ToString and Upass this TextBox2 Text ToString and Ugrade qx conn conn Open OracleDataReader recu mycommand ExecuteReader if recu Read if qx 1 Session Aname TextBox1 Text Response Redirect jbxx aspx else if qx 0 Response Redirect gly aspx else Response Write alert 后勤处用户名或密码错误 TextBox2 Text 2 基本信息添加客户信息关键代码 protected void Button1 Click object sender EventArgs e OracleCommand mycomm new OracleCommand insert into Tb Client Cname Ctype Cmethod Ccode Caddress Cbz Pno values this TextBox2 Text ToString this TextBox3 Text ToString this TextBox6 Text ToString this TextBox5 Text ToString this TextBox4 Text ToString this TextBox7 Text ToString this TextBox8 Text ToString conn conn Open mycomm ExecuteNonQuery conn Close OracleCommand my new OracleCommand select from Tb Client where Cname this TextBox2 Text ToString conn conn Open OracleDataReader recu my ExecuteReader if recu Read Response Write alert 添加成功 this TextBox2 Text this TextBox3 Text this TextBox4 Text this TextBox5 Text this TextBox6 Text this TextBox7 Text this TextBox8 Text else Response Write alert 添加失败 conn Close protected void Button2 Click object sender EventArgs e this TextBox1 Text this TextBox2 Text this TextBox3 Text this TextBox4 Text this TextBox5 Text this TextBox6 Text this TextBox7 Text this TextBox8 Text 3 货物信息添加货物信息关键代码 protected void Button1 Click object sender EventArgs e OracleCommand mycomm new OracleCommand insert into Tb Good Gname Gdate Gfactory Gprice Idate values this TextBox2 Text ToString TextBox3 Text ToString this TextBox4 Text ToString TextBox5 Text TextBox6 Text ToString conn conn Open mycomm ExecuteNonQuery conn Close OracleCommand my new OracleCommand select from Tb Good where Gname this TextBox2 Text ToString conn conn Open OracleDataReader recu my ExecuteReader if recu Read Response Write alert 添加成功 this TextBox2 Text this TextBox3 Text this TextBox4 Text this TextBox5 Text this TextBox6 Text else Response Write alert 添加失败 conn Close protected void Button2 Click object sender EventArgs e this TextBox1 Text this TextBox2 Text this TextBox3 Text this TextBox4 Text this TextBox5 Text this TextBox6 Text 4 出库入库信息出库入库关键代码 protected void Button1 Click object sender EventArgs e OracleCommand my new OracleCommand select from Tb Kc where Gno this TextBox1 Text ToString and Knum this TextBox4 Text and Sno this TextBox2 Text ToString conn conn Open OracleDataReader recu my ExecuteReader if recu Read conn Close OracleCommand mycomm new OracleCommand insert into Tb OutStorage values this TextBox1 Text ToString this TextBox2 Text ToString this TextBox3 Text ToString this TextBox4 Text this TextBox5 Text ToString this TextBox6 Text ToString conn conn Open mycomm ExecuteNonQuery conn Close OracleCommand my1 new OracleCommand update Tb Kc SET Knum Knum this TextBox4 Text where Gno this TextBox1 Text ToString and Sno this TextBox2 Text ToString conn conn Open my1 ExecuteNonQuery conn Close Response Write alert 出库成功 else conn Close Response Write alert 货物不存在或者货物不足出库失败 protected void Button2 Click object sender EventArgs e this TextBox1 Text this TextBox2 Text this TextBox3 Text this TextBox4 Text this TextBox5 Text this TextBox6 Text protected void Button1 Click object sender EventArgs e OracleCommand my new OracleCommand select from Tb Kc where Gno this TextBox1 Text ToString and Sno this TextBox2 Text ToString conn conn Open OracleDataReader recu my ExecuteReader if recu Read conn Close OracleCommand my1 new OracleCommand update Tb Kc SET Knum Knum this TextBox4 Text where Gno this TextBox1 Text ToString and Sno this TextBox2 Text ToString conn conn Open my1 ExecuteNonQuery conn Close else conn Close OracleCommand my2 new OracleCommand insert into Tb Kc Gno Sno Knum values this TextBox1 Text ToString this TextBox2 Text ToString this TextBox4 Text conn conn Open my2 ExecuteNonQuery conn Close OracleCommand my3 new OracleCommand select from Tb Kc where Gno this TextBox1 Text ToString and Sno this TextBox2 Text ToString conn conn Open OracleDataReader recu1 my ExecuteReader if recu1 Read conn Close OracleCommand mycomm new OracleCommand insert into Tb InStorage values this TextBox1 Text ToString this TextBox2 Text ToString this TextBox3 Text ToString this TextBox4 Text this TextBox5 Text ToString this TextBox6 Text ToString conn conn Open mycomm ExecuteNonQuery conn Close Response Write alert 入库成功 else conn Close Response Write alert 入库失败 protected void Button2 Click object sender EventArgs e this TextBox1 Text this TextBox2 Text this TextBox3 Text this TextBox4 Text this TextBox5 Text this TextBox6 Text 5 信息查询查询仓库信息关键代码 protected void Button1 Click object sender EventArgs e Label2 Text TextBox1 Text GridView1 Visible true if GridView1 Rows Count 0 Label3 Text 仓库信息不存在 else GridView1 Visible true 6 警报功能显示警报信息关键代码 protected void Button1 Click object sender EventArgs e Label1 Text 以下货物库存不足 请及时补充 OracleDataAdapter dataAdapter2 new OracleDataAdapter select from tb kc where Knum 10 conn DataSet setS new DataSet dataAdapter2 Fill setS AAA this GridView1 DataSource setS Tables AAA this GridView1 DataBind 7 信息导出导出入库信息关键代码 protected void Button1 Click object sender EventArgs e Response Clear Response BufferOutput true 设定输出的字符集 Response Charset GB2312 假定导出的文件名为 aFileName doc Response AppendHeader Content Disposition attachment filename Statement doc Response ContentEncoding System Text Encoding GetEncoding GB2312 设置导出文件的格式 Response ContentType application ms word 关 闭 ViewState GridView1 EnableViewState false System Globalization CultureInfo cultureInfo new System Globalization CultureInfo ZH CN true System IO StringWriter stringWriter new System IO StringWriter cultureInfo System Web UI HtmlTextWriter textWriter new System Web UI HtmlTextWriter stringWriter GridView1 RenderControl textWriter 把 HTML写回浏览器 Response Write stringWriter ToString Response End 5 3 2 系统管理员 1 添加管理员信息关键代码 protected void Button1 Click object sender EventArgs e OracleCommand mycomm new OracleCommand insert into Tb Admin values this TextBox1 Text ToString this TextBox2 Text ToString DropDownList1 SelectedValue ToString this TextBox3 Text ToString this TextBox4 Text ToString conn OracleCommand mycomm1 new OracleCommand insert into Tb User values this TextBox1 Text ToString 123 1 conn conn Open mycomm ExecuteNonQuery mycomm1 ExecuteNonQuery conn Close OracleCommand my new OracleCommand select from Tb User where Uname this TextBox1 Text ToString conn conn Open OracleDataReader recu my ExecuteReader if recu Read Response Write alert 添加成功 this TextBox1 Text this TextBox2 Text this TextBox3 Text this TextBox4 Text else Response Write alert 添加失败 conn Close protected void Button2 Click object sender EventArgs e this TextBox1 Text this TextBox2 Text this TextBox3 Text this TextBox4 Text 2 添加采购员信息关键代码 protected void Button1 Click object sender EventArgs e OracleCommand mycomm new OracleCommand insert into TB Buyer Bname Bsex Bmethod Baddress values this TextBox2 Text ToString DropDownList1 SelectedValue ToString this TextBox3 Text ToString this TextBox4 Text ToString conn conn Open mycomm ExecuteNonQuery conn Close OracleCommand my new OracleCommand select from TB Buyer where Bname this TextBox1 Text ToString conn conn Open OracleDataReader recu my ExecuteReader if recu Read Response Write alert 添加成功 this TextBox2 Text this TextBox3 Text this TextBox4 Text else Response Write alert 添加失败 conn Close protected void Button2 Click object sender EventArgs e this TextBox1 Text this TextBox2 Text this TextBox3 Text this TextBox4 Text 3 添加提货员信息关键代码 protected void Button1 Click object sender EventArgs e OracleCommand mycomm new OracleCommand insert into Tb Picker Pname Psex Pmethod Paddress values this TextBox2 Text ToString DropDownList1 SelectedValue ToString this TextBox3 Text ToString this TextBox4 Text ToString conn conn Open mycomm ExecuteNonQuery conn Close OracleCommand my new OracleCommand select from Tb Picker where Pno this TextBox1 Text ToString conn conn Open OracleDataReader recu my ExecuteReader if recu Read Response Write alert 添加成功 this TextBox2 Text this TextBox3 Text this TextBox4 Text else Response Write alert 添加失败 conn Close protected void Button2 Click object sender EventArgs e this TextBox1 Text this TextBox2 Text this TextBox3 Text this TextBox4 Text 第 6 章 结束语 课程设计是培养学生综合运用所学知识 发现提出分析和解决实际问题 锻炼实 践能力的重要环节是对学生实际工作能力的具体训练和考察过程本次课程设计虽然很 辛苦 实在是受益匪浅 本来这门课的知识学的就不够扎实 本次课程设计 在设计 过程中碰到了很多问题 刚开始要设计的时候 还真不知道从哪里下手但最终在图书 同组人员的帮助下都得到了解决 让我学会了好多书本上没有的东西 通过本次课程 设计我也能将课本上的知识融会贯通 起到了很好的辅助学习的效果 但是我发现我 学到的知识比整整一个学期学到的都多 理论和实践的相结合是学习最有效的方法 在设计的过程中发现了自己的不足之处 对以前所学过的知识理解得不够深刻 掌握 得不够牢固 通过这次课程设计之后 一定把以前所学过的知识重新温故 经过一个星期的设计与开发 仓库管理系统基本开发完毕 仓库管理系统需求包 括登录 基本信息 货物信息 出库入库信息 信息查询 警报信息 导出信息 管 理员信息 采购员信息 提货员信息等一系列模块进行创建 通过不断地对程序及各 模块进行修改 编译 调试 运行 以及应用了 Oracle 11g 语言 对数据库的创建 修改 删除 我深刻意识到设计的系统必须得经过系统调研 需求分析 概念设计 逻辑设计 物理设计 系统调试 维护以及系统评价的一般过程才能将系统做完整 才能符合市场的需求 通过这次课程设计 我们对数据库的各部分的设计有了感性的认识 对需求分析 的重要性和需求分析的任务和过程有了更深的认识 对流程图的描绘应与实际相联系 有了进一步的了解 对概念设计的步骤掌握的更加清晰 知道一个系统应该从哪些方 面进行分析与设计 进行建表时属性应与实际情况相联系等 ASP 页面与数据库的后 台连接也有了比较清晰的理解 作为整个学习体系的有机组成部分 课程设计虽然安排在连续两周进行 但并不 具有绝对的意义 它的一个重要功能 在于运用学习 检验学习 运用学习 把课堂 上学到的系统化的理论知识 尝试性地应用于实际设计工作 并从理论的高度对设计 工作的现代化提出一些有针对性的和设想 检验学习 看一看课堂学习与实际工作到 底有多大距离 并通过综合分析 找出学习中存在的不足 以便为完善学习计
展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 临时分类 > 人文社科


copyright@ 2023-2025  zhuangpeitu.com 装配图网版权所有   联系电话:18123376007

备案号:ICP2024067431-1 川公网安备51140202000466号


本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。装配图网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知装配图网,我们立即给予删除!