参考论文-毕业论文之_化妆品销售系统_第1页
参考论文-毕业论文之_化妆品销售系统_第2页
参考论文-毕业论文之_化妆品销售系统_第3页
参考论文-毕业论文之_化妆品销售系统_第4页
参考论文-毕业论文之_化妆品销售系统_第5页
已阅读5页,还剩28页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

精品文档 1欢迎下载 摘 要 在我们生活的 21 世纪里计算机技术已经在各行各业中发挥着不可替代的作 用 当前越来越多的商业 企事业单位已经将计算机技术应用于日常的管理工 作 以信息技术为主要标志的科技进步日新月异 高科技成果向现实生产力的 转化越来越快 在市场经济中 销售是企业运行的重要环节 为了更好地推动 销售 不少企业建立了分公司和代理制 通过分公司或代理把产品推向最终用 户 这些分公司或代理商大都分布在不同的地理位置 跨时空 跨时间的频繁 业务信息交流是这些企业业务的活动的主要特点 在这种形式下 传统的依靠 管理人员人工传递信息和数据的管理方式就无法满足企业日益增长的业务需求 了 本文将全面介绍进销存管理系统的内容 在现有管理方式的基础上研究进 销存管理模式 得出进销存管理系统的需求分析 概要设计和详细设计 介绍 了利用 C 和 SQL Server 2000 技术实现的 B S 模式的进销存管理系统的解决方 案 本设计主要完成对十二月坊化妆品进销存管理工作的内容 其中拥有功能 比较全面的进销存管理系统 该系统包括系统管理 基本资料管理 进货管理 客户管理 订单管理 销售管理和报表管理几个模块 关键词 关键词 进销存管理 进货 出货 库存 ABSTRACT We live in the 21st century computer technology in all walks of life have been playing an irreplaceable role At present more and more commercial enterprises and institutions have the computer technology in day to day management of information technology as the main indicator of the technological advances high tech achievements into practical productive forces faster In a market economy marketing is an important part of running In order to better promote the sale many enterprises have established branch offices and agent system through subsidiaries or agents of the products to end users Most of these subsidiaries or agents located in different geographic locations cross space time cross time exchange of information between business operations of these enterprises are the main characteristics of the activities In this form the traditional manual transmission rely on the management of information and data management methods will not be able to meet growing business needs In this paper a comprehensive introduction to the contents of Purchase Sales and Inventory Management System under the existing management methods based on the study of management models Invoicing Purchase Sales and Inventory Management System derived demand analysis outline design and detailed design introduced the use of C and SQL Server 2000 technology to achieve the B S mode Invoicing Management System solution The design of the main Square in December to complete the Purchase Sales and Inventory Management cosmetic work which has a more comprehensive functional Invoicing management system The system includes systems management basic data management purchasing management customer management order management sales management 精品文档 3欢迎下载 and statements of the management of several modules KeywordsKeywords Purchase Sales and Inventory management purchase shipping Stock 目 录 第一章 绪论 1 页 1 1 十二月坊进销存管理系统简介 1 页 1 2 十二月坊进销存系统 B S 结构 1 页 第二章 相关技术与开发工具介绍 1 页 2 1 Microsoft SQL Server 2000 简介 1 页 2 2 Microsoft Visual studio 2005 开发环境简介 2 页 第三章 十二月坊进销存管理系统设计分析 2 页 3 1 应用需求分析 2 页 3 2 系统可行性分析 3 页 3 3 系统功能模块划分 3 页 3 4 数据流图 4 页 3 5 系统数据库分析设计 4 页 3 5 1 E R 图 5 页 3 5 2 数据库设计 5 页 3 5 2 1 数据库数据清单 5 页 3 5 2 2 数据字典 6 页 第四章 十二月坊进销存管理系统应用程序设计 8 页 4 1 登陆界面设计 8 页 4 2 系统管理模块设计 9 页 4 2 1 添加管理员 10 页 4 2 2 管理员管理 10 页 4 3 基本资料管理模块设计 10 页 4 3 1 添加仓库 10 页 4 3 2 仓库管理 11 页 4 3 3 添加供应商 11 页 4 3 4 供应商管理 11 页 4 3 5 添加产品 11 页 4 3 6 产品管理 11 页 4 3 7 产品库存设置 11 页 4 4 进货管理模块设计 13 页 4 4 1 添加进货 24 页 4 4 2 进货列表 27 页 4 5 客户管理模块设计 28 页 4 5 1 添加客户 28 页 4 5 2 客户管理 29 页 4 6 订单管理模块设计 30 页 4 6 1 订单录入 30 页 4 6 2 订单管理 30 页 4 7 销售管理模块设计 30 页 4 7 1 添加出货 30 页 4 7 2 出货管理 30 页 4 7 3 退货管理 30 页 4 8 报表管理 30 页 4 8 1 总收益报表 30 页 4 8 2 盘点报表 30 页 4 8 3 进货清单 30 页 4 8 4 销售清单 30 页 第五章 测试 35 页 5 1 系统测试计划 36 页 5 2 安全性测试 35 页 5 3 功能及正确性测试 35 页 精品文档 5欢迎下载 5 4 测试总结 35 页 第六章 总结与展望 36 页 参考文献 37 页 致谢 38 页 精品文档 1欢迎下载 第一章 绪论 1 1 十二月坊进销存管理系统开发简介 进销存管理系统是用计算机管理库存进出的一种计算机应用技术的创新 在 计算机还未普及之前库存管理都是由工作人员手工书写的方式来操作的 产品 的采购 库存 销售等信息的管理存在工作量大 工作效率低下 耗费人员过 多等问题 从而导致劳力资本投入量大 市场及消费者的反馈信息不能及时处 理等 因此 十二月坊进销存管理系统如何实现高效 智能的管理水平跨越迫在眉睫 进销存管理系统充分发挥信息技术的优势 通过集中式的信息数据库 将 企业的进 销 存等经营业务有机的结合起来 达到数据共享 降低成本 提 高效率 改进服务的目的 进而提高企业的生产效率和管理水平 1 2 十二月坊进销存管理系统 B S 结构 本系统采用 B S 设计模式 B S Brower Server 浏览器 服务器 模 式又称 B S 结构 是软件系统体系结构的一种 第二章 相关技术与开发工具简介 本系统使用开发软件 Microsoft Visual Studio 2005 进行开发 使用 Microsoft SQL Server 2000 作为后台数据库设计 利用 C 语言编写代码 配 合功能强大的 SQL 查询语言实现建立关系数据库 访问数据库 对数据库的更 新 2 1 Microsoft SQL Server 2000 简介 SQL Server 2000 就是关系数据库开发工具 我们使用它来开发和设计所 需要的数据库 Microsoft SQL Server 2000 能提供超大型系统所需的数据库服务 大型 服务器可能有成千上万的用户同时连接到 SQL Server 2000 实例 SQL Server 第二章 相关技术与开发工具简介 2 2000 为这些环境提供了全面的保护 具有防止问题发生的安全措施 可以在一 台计算机上运行多个 SQL Server 2000 实例 SQL Server 2000 应用程序可在 装有 SQL Server 2000 的计算机上运行 该应用程序通过 Windows 进程间通 讯 IPC 组件 例如共享内存 而非通过网络连接到 SQL Server 2000 2 2 Microsoft Visual studio 2005 开发环境简介 Visual Studio 2005 是一种综合性的集成开发环境 Integrated Development Environment IDE 它实际上是 Microsoft 创建和设计 NET 软 件和应用程序的开发工具 可以运用该工具快速开发各种不同的多层应用程序 如 Windows 或客户机 服务器应用程序 Web 应用程序 甚至用于蜂窝手机和个 人数字助理 Personal Digital Assistant PDA 等设备的移动应用程序 Visual Studio 提供了一个高效环境 用户可在其中开发运行新的广泛的 应用程序 使用安全和高性能的 Microsoft NET 框架运行时 环境 Visual Studio NET 提供用于设计 创建 测试和部署 XML Web 服务和应用程序以及 在小组环境中共享最佳做法和准则的强大工具 由于通用语言运行时 Common Language Runtime Visual Studio NET 为 C C 和 VB 程序员提供了通用的 开发环境 第三章 十二月坊进销存管理系统设计分析 3 1 应用需求分析 在市场经济中 销售是企业运作的重要环节 为了更好地推动销售 不少 企业建立分公司后实行代理制 通过分公司或代理上把产品推向最终用户 这 些分公司或代理商大多分布在全国各地 甚至是在过为 远距离频繁的业务信 息交流是这些企业业务活动的主要特点 在传统方式上 公司之间通常采用电 传 电报 电话等方式传递订货 发货 到货 压货 换货 退货等信息 总 公司的商务部门在接到分公司或代理商穿来的定单和银行汇款单据传真件后 开具产品出库通知 然后再把相关的进 销 存信息手工存档 再对这些信息 进行统计分析 才能了解到整个公司的生产 销售和库存情况 进销存管理是 商业企业经营管理中的核心环节 也是一个企业能否取得效益的关键 如果能 精品文档 3欢迎下载 做到合理生产 及时销售 库存量最小 减少积压 那么企业就能取得最佳的 效益 3 2 系统可行性分析 在技术方面 本系统采用 Microsoft 公司的 C NET 以及 SQL Server 2000 设计一个既满足用户需求又操作方便而且界面友好的中小型书店管理系统软件 C 是一种基于窗体的可视化组件安排的联合 具有强大的数据库管理功能 支 持 SQL 数据库查询 利用 C 中嵌入的数据库管理功能几乎可以操纵各种格式的 数据库 在经济方面 由于商场规模的日益增大 进出货物数量繁多 且工作量大 原有的手工操作耗时费力 又不能保证数据的正确性 迫切需要实现计算机信 息化管理 用信息化管理实现对数据的录入 查询 打印等的处理 比起传统 的方法这样可以节省大量的人力物力资源 又可以缩短业务处理的时间 加强 对物资安全的管理 具有很强的实用性和经济性 3 3 系统功能模块划分 根据对化妆品商店的管理进行分析 可得到本系统的功能模块图如图 3 1 所示 第二章 相关技术与开发工具简介 4 十二月坊进销存管理系统 系统 管理 基本 资料 管理 进 货 管 理 客 户 管 理 订 单 管 理 销 售 管 理 报 表 管 理 添 加 管 理 员 管 理 员 修 改 删 除 供 应 商 资 料 维 护 仓 库 资 料 维 护 商 品 资 料 维 护 商 品 库 存 设 置 进 货 单 进 货 价 格 调 整 历 史 查 询 客 户 资 料 维 护 订 单 生 成 订 单 修 改 订 单 删 除 销 售 单 销 售 价 格 调 整 销 售 退 货 单 总 收 益 报 表 进 货 清 单 盘 点 报 表 销 售 清 单 图 3 1 系统功能模块 3 4 数据流图 精品文档 5欢迎下载 管理员验证登录进入系统 系统管理 基础信息 管理 客户管理 进货管理 销售管理 订单录入 添加管理员 进行管 理员管理 仓库信息查询 添 加 删除 供货商信息查询 添 加 删除 商品信息查询 添 加 删除 置库存设商品 进货信息查询 添加 客户信息添加 查询 订单表 订单 信息 管理 销售查询 退货 查询 报表管理 查询各种收益报 表 进货清单 盘 点报表 销售清单 图 3 2 数据流图 3 5 系统数据库分析与设计 3 5 1 E R 图 第二章 相关技术与开发工具简介 6 商品 客户 供货商 管理员购买 管理 供应 n m n m m 客户名称联系电话地址联系人电子邮件 n 管理员帐号管理员密码 商品编号 商品名称 价格 规格计量单位 生产厂商 存放仓库 供应商 供货商名称 联系电话 地址 联系人 电子邮箱 供货商编号 管理员编号 供货商编号 图 3 4 E R 图 3 5 2 数据库设计 3 5 2 1 数据库数据清单 根据对系统数据的分析 本系统共需要 11 张表 用途如表 3 1 所示 表 3 1 数据库数据清单 数据表名称数据表用途 系统管理员表 web admin 保存管理员信息 库存表 t save 保存进货信息 出货表 t out 保存出货信息 订单表 t order 保存订单信息 商品表 product 保存商品信息 现存商品表 now product 保存现存商品信息 我的订单表 myorder 保存我的订单信息 供货商表 ghs 保存供货商信息 客户表 custorm 保存客户信息 精品文档 7欢迎下载 仓库表 ck 保存仓库信息 3 6 2 2 数据字典 表 3 2 系统管理员表 web admin 管理员编号为主键 字段名描述数据类型数据长度主键是否为空 admin id 管理员编号 int4 是否 web admin 管理员帐号 varchar50 否是 password 管理员密码 varchar50 否是 qx 权限等级 int4 否是 表 3 3 库存表 t save 库存编号为主键 字段名描述数据类型数据长度主键是否为空 save id 库存编号 int4 是否 product 商品名称 varchar50 否是 in number 进货数量 int4 否是 in price 进货价格 varchar50 否是 ghs 供货商 varchar50 否是 ck 仓库 varchar50 否是 in date 进货时间 datetime8 否是 表 3 4 出货表 t out 出货编号为主键 字段名描述数据类型数据长度主键是否为空 out id 出货编号 int4 是否 product 商品名称 nvarchar50 否是 out number 出货数量 int4 否是 return number 退货数量 int4 否是 out price 出货价格 decimal9 否是 ck 仓库 varchar50 否是 order number 订单号 varchar50 否是 out date 出货时间 datetime8 否是 表 3 5 订单表 t order 订单编号为主键 字段名描述数据类型数据长度主键是否为空 order id 订单编号 int4 是否 order no 订单号 varchar50 否是 custormer 客户 varchar50 否是 表 3 6 商品表 product 商品编号为主键 字段名描述数据类型数据长度主键是否为空 product id 商品编号 int4 是否 第二章 相关技术与开发工具简介 8 name 商品名称 varchar50 否是 price 商品价格 numeric9 否是 guige 规格 char20 否是 jldw 计量单位 char20 否是 sccs 生产厂商 varchar50 否是 ck 仓库 varchar50 否是 ghs 供货商 varchar50 否是 up num 上限 int4 否是 down num 下限 int4 否否 表 3 7 现存商品表 now product 现存商品编号为主键 字段名描述数据类型数据长度主键是否为空 now id 现存商品编号 int4 是否 product 商品名称 varchar50 否是 now number 现存商品数量 int4 否是 in number 进货数量 int4 否是 in money 进货价格 decimal9 否是 out number 出货数量 int4 否是 out money 出货价格 decimal9 否是 表 3 8 我的订单表 myorder 订单编号为主键 字段名描述数据类型数据长度主键是否为空 order id 订单编号 int4 是否 order number 订单号 varchar50 否是 cust name 客户名称 varchar50 否是 product 商品名称 varchar50 否是 order date 下单日期 datetime8 否是 order num 订货数量 int4 否是 表 3 9 供货商表 ghs 供货商编号为主键 字段名描述数据类型数据长度主键是否为空 ghs id 供货商编号 int4 是否 ghs name 供货商名称 varchar50 否是 g telephone 供货商电话号码 varchar50 否是 g address 供货商地址 varchar50 否是 g person 联系人 varchar50 否是 g email 电子邮箱 varchar50 否是 精品文档 9欢迎下载 表 3 10 客户表 custorm 客户编号为主键 字段名描述数据类型数据长度主键是否为空 custmer id 客户编号 int4 是否 cust name 客户名称 varchar50 否是 cust tel 客户电话号码 varchar50 否是 cust add 客户地址 varchar50 否是 cust person 联系人 varchar50 否是 cust email 电子邮箱 varchar50 否是 表 3 11 仓库表 ck 仓库编号为主键 字段名描述数据类型数据长度主键是否为空 ck id 仓库编号 int4 是否 ck 仓库名称 varchar50 否是 第四章 十二月坊进销存管理系统应用程序设计 4 1 登陆界面设计 本系统采用 Microsoft Visual Studio 2005 C 实现 数据库采用 SQL Server 2000 登录界面代码如下 using System 第二章 相关技术与开发工具简介 10 using System Data using System Configuration using System Collections using System Web using System Web Security using System Web UI using System Web UI WebControls using System Web UI WebControls WebParts using System Web UI HtmlControls using System Data SqlClient public partial class login System Web UI Page protected void Page Load object sender EventArgs e protected void Button1 Click object sender EventArgs e string user txt user Text ToString string password txt password Text ToString 为存储过程准备参数 SqlParameter sys user SqlHelper CreateParam user SqlDbType VarChar 100 ParameterDirection Input user SqlParameter sys password SqlHelper CreateParam password SqlDbType VarChar 100 ParameterDirection Input password SqlParameter paralist sys user sys password SqlDataReader dr SqlHelper ExecuteReader CommandType StoredProcedure pr login paralist if dr Read 将值放入cookie HttpCookie cookie new HttpCookie jxcglxt cookie Values Add admin id dr admin id ToString cookie Values Add Admin yes cookie Expires DateTime Now AddDays 1 Response AppendCookie cookie Response Redirect default aspx dr Dispose 精品文档 11欢迎下载 else Response Write alert 请输入正确的帐号和密码 Response Write javascript window top location href login aspx 4 2 部分功能模块设计及部分代码 4 2 1 管理员注册模块设计 此部分主要用于管理员的注册 及其密码的修改 4 2 2基本资料管理模块设计及部分代码 4 2 2 1添加仓库 此部分主要用于添加仓库的具体信息 4 2 2 2添加供货商 此部分主要用于家庭各个供应商的具体信息 第二章 相关技术与开发工具简介 12 4 2 2 3添加商品 此部分主要用于添加各种商品信息 4 2 2 4商品库存设置 该部分设置库存数量的最低数量和最高数量 超过这两个限度 系统据会报警 精品文档 13欢迎下载 产品库存设置部分代码如下 using System using System Data using System Configuration using System Collections using System Web using System Web Security using System Web UI using System Web UI WebControls using System Web UI WebControls WebParts using System Web UI HtmlControls using System Data SqlClient public partial class kcsz System Web UI Page protected void Page Load object sender EventArgs e if IsPostBack bind public void bind SqlDataReader dr SqlHelper ExecuteReader CommandType Text select from product null DataTable dt SystemTools ConvertDataReaderToDataTable dr this GridView1 DataSource dt this GridView1 DataBind dr Close protected void GridView1 RowDeleting object sender GridViewDeleteEventArgs e int id int Parse this GridView1 DataKeys e RowIndex Value ToString SqlParameter product id SqlHelper CreateParam product id SqlDbType Int 4 ParameterDirection Input id SqlHelper ExecuteNonQuery CommandType Text delete product where product id product id product id bind protected void GridView1 PageIndexChanging object sender GridViewPageEventArgs e 第二章 相关技术与开发工具简介 14 this GridView1 PageIndex e NewPageIndex e NewPageIndex this GridView1 PageIndex 1 bind 4 2 3进货模块设计及部分代码 该部分主要用于录入进货的各种信息 包括商品名称 进货价格 进 货数量 存放仓库 供货商和进货时间等信息 添加进货部分代码如下 using System using System Data using System Configuration using System Collections using System Web using System Web Security using System Web UI using System Web UI WebControls using System Web UI WebControls WebParts using System Web UI HtmlControls using System Data SqlClient public partial class add save System Web UI Page protected void Page Load object sender EventArgs e if IsPostBack bind 精品文档 15欢迎下载 public void bind SqlDataReader dr ck SqlHelper ExecuteReader CommandType Text select from ck null DataTable dt ck SystemTools ConvertDataReaderToDataTable dr ck this ddl ck DataSource dt ck this ddl ck DataTextField ck this ddl ck DataBind 绑定供货商 SqlDataReader dr ghs SqlHelper ExecuteReader CommandType Text select from ghs null DataTable dt ghs SystemTools ConvertDataReaderToDataTable dr ghs this ddl ghs DataSource dt ghs this ddl ghs DataTextField g name this ddl ghs DataBind 绑定商品列表 SqlDataReader dr product SqlHelper ExecuteReader CommandType Text select from product null DataTable dt product SystemTools ConvertDataReaderToDataTable dr product this ddl product DataSource dt product this ddl product DataTextField name this ddl product DataBind protected void Button1 Click object sender EventArgs e SqlParameter name SqlHelper CreateParam name SqlDbType VarChar 50 ParameterDirection Input this ddl product SelectedValue ToString Trim SqlParameter in price SqlHelper CreateParam in price SqlDbType Decimal 8 ParameterDirection Input this tb inprice Text ToString Trim SqlParameter in number SqlHelper CreateParam in number SqlDbType Int 4 ParameterDirection Input int Parse this tb innumber Text ToString Trim SqlParameter ck SqlHelper CreateParam ck SqlDbType VarChar 50 ParameterDirection Input ddl ck SelectedValue ToString Trim SqlParameter ghs SqlHelper CreateParam ghs SqlDbType VarChar 50 ParameterDirection Input ddl ghs SelectedValue ToString Trim SqlParameter in date SqlHelper CreateParam in date SqlDbType DateTime 8 ParameterDirection Input DateTime Now ToShortDateString SqlParameter paralist name in price in number ck ghs in date 第二章 相关技术与开发工具简介 16 SqlHelper ExecuteNonQuery CommandType StoredProcedure pr insert tsave paralist Response Write alert 数据添加成功 Response Write javascript window location href add save aspx protected void Button2 Click object sender EventArgs e Response Redirect add save aspx 4 2 4销售模块设计及部分代码 4 2 4 1添加出货 用于记录货物的出库信息 包括商品名称 定货单 销售价格 销售数量和出货仓库等信息 商品销售部分代码如下 using System using System Data using System Configuration using System Collections using System Web using System Web Security using System Web UI using System Web UI WebControls 精品文档 17欢迎下载 using System Web UI WebControls WebParts using System Web UI HtmlControls using System Data SqlClient public partial class add out System Web UI Page protected void Page Load object sender EventArgs e if IsPostBack bind public void bind SqlDataReader dr ck SqlHelper ExecuteReader CommandType Text select from ck null DataTable dt ck SystemTools ConvertDataReaderToDataTable dr ck this ddl ck DataSource dt ck this ddl ck DataTextField ck this ddl ck DataBind 绑定商品列表 SqlDataReader dr product SqlHelper ExecuteReader CommandType Text select from product null DataTable dt product SystemTools ConvertDataReaderToDataTable dr product this ddl product DataSource dt product this ddl product DataTextField name this ddl product DataBind 绑定订单号 SqlDataReader dr order SqlHelper ExecuteReader CommandType Text select from myorder null DataTable dt order SystemTools ConvertDataReaderToDataTable dr order this ddl order DataSource dt order this ddl order DataTextField order number this ddl order DataBind protected void Button1 Click object sender EventArgs e SqlParameter name SqlHelper CreateParam name SqlDbType VarChar 50 ParameterDirection Input this ddl product SelectedValue ToString Trim 第二章 相关技术与开发工具简介 18 SqlParameter order number SqlHelper CreateParam order number SqlDbType VarChar 50 ParameterDirection Input this ddl order SelectedValue ToString Trim SqlParameter out price SqlHelper CreateParam out price SqlDbType Decimal 8 ParameterDirection Input this tb outprice Text ToString Trim SqlParameter out number SqlHelper CreateParam out number SqlDbType Int 4 ParameterDirection Input int Parse this tb outnumber Text ToString Trim SqlParameter ck SqlHelper CreateParam ck SqlDbType VarChar 50 ParameterDirection Input ddl ck SelectedValue ToString Trim SqlParameter out date SqlHelper CreateParam out date SqlDbType DateTime 8 ParameterDirection Input DateTime Now ToShortDateString SqlParameter paralist name out price out number ck order number out date SqlHelper ExecuteNonQuery CommandType StoredProcedure pr insert tout paralist Response Write alert 数据添加成功 Response Write javascript window location href add out aspx protected void Button2 Click object sender EventArgs e Response Redirect add out aspx 4 2 4 2退货处理 该部分主要实现各种商品的退货信息 包括商品名称和退货的数量 4 2 5 客户管理模块设计 此模块主要用于录入客户端基本信息 包括客户名称 客户联系电话 客 精品文档 19欢迎下载 户地址 联系人以及电子邮件的录入 4 2 6 订单模块设计及部分代码 4 2 6 1 订单录入 此订单用于录入各种销售信息 包括订单号 商品名称 客户以及销 售数量的录入 4 2 6 2订单管理 用于对各个客户的销售数量进行统计 第二章 相关技术与开发工具简介 20 4 2 7报表处理模块设计及部分代码 4 2 7 1总收益报表 此报表对各种商品的销售销售数量及其它的收益进行统计 4 2 7 2盘点报表 此报表主要是对各种商品的库存量进行盘点 看看是否需要警戒 盘点报表部分代码如下 精品文档 21欢迎下载 using System using System Data using System Configuration using System Collections using System Web using System Web Security using System Web UI using System Web UI WebControls using System Web UI WebControls WebParts using System Web UI HtmlControls using System Data SqlClient public partial class pd System Web UI Page protected void Page Load object sender EventArgs e if IsPostBack bind public string behind band object e object e2 string str string e int inum Convert ToInt16 e2 string result 需要警戒 SqlDataReader dr SqlHelper ExecuteReader CommandType Text select from product where name str null DataTable dt SystemTools ConvertDataReaderToDataTable dr int up num int Parse dt Rows 0 up num ToString int down num int Parse dt Rows 0 down num ToString if inumdown num result 正常 return result public void bind SqlDataReader dr SqlHelper ExecuteReader CommandType Text select from now product null DataTable dt SystemTools ConvertDataReaderToDataTable dr this GridView1 DataSource dt this GridView1 DataBind 第二章 相关技术与开发工具简介 22 dr Close protected void GridView1 PageIndexChanging object sender GridViewPageEventArgs e this GridView1 PageIndex e NewPageIndex e NewPageIndex this GridView1 PageIndex 1 bind 精品文档 23欢迎下载 第五章 测试 系统测试是项目开发过程中必不可少的环节 通过测试我们能发现系统的 各功能模块的正确性 并对存

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论