仓库管理系统毕业论文.doc_第1页
仓库管理系统毕业论文.doc_第2页
仓库管理系统毕业论文.doc_第3页
仓库管理系统毕业论文.doc_第4页
仓库管理系统毕业论文.doc_第5页
已阅读5页,还剩34页未读 继续免费阅读

下载本文档

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

文档简介

摘摘 要要 仓库管理系统是为了实现企业产品管理的系统化 规范化和自动化 从而 提高企业管理效率而设计的 它完全取代了原来一直用人工管理的工作方式 避免了由于管理人员的工作疏忽以及管理质量问题所造成的各种错误 为及时 准确 高效的完成仓库管理提供了强有力的工具和管理手段 仓库管理系统是 一个中小型数据库管理系统 它界面美观 操作简单 安全性高 基本满足了 仓库管理的要求 整个系统由基本信息 单据中心 查询统计 报表打印 维 护设置 帮助等模块组成 本系统是在以 sqlserver2005 作为后台数据库 以 vs2005 为编程语言来开发的 仓库管理系统在运行阶段 效果好 数据准确 性高 提高了工作效率 同时也实现了仓库管理计算机化 关键词关键词 仓库 管理系统 数据 Abstract The administrative system of the warehouse is designed for realizing the systematization standardization and automization of enterprise s products management and improving efficiency of enterprises management It completely replaces the working way of artificial management originally prevents from various kinds of mistakes because of administrative staff neglect and the quality problem of management and offeres powerful tool and management way to complet storehouse management for prompt accurate high efficient The administrative system of the warehouse is a medium and small scale database management system it has not only beautiful interface but also the high security and the simply operation and meet the demand for storehouse management basically Whole system is made up by basic information document in the center inquire statistics report form type set up to maintain and module of helping etc The Warehouse administrative system is designed with regarding sql server2005 as the backstage database and regarding vs2005 as programming language The administrative system is effectual the high data accuracy during the course of operating improves working efficiency and realizes computerization for storehouse management at the same time Key words The Warehouse Administrative System The Database 目目 录录 摘摘 要要 VI ABSTRACT VII 1 前前 言言 9 2 系统开发工具系统开发工具 10 2 1 VISUAL STUDIO 2005 11 2 2 SQL SERVER 2005 11 2 3 IIS 11 2 4 ASP NET 12 3 需求分析需求分析 13 3 1 系统目标设计 13 3 2 仓库管理系统的需求分析 13 4 系统总体设计系统总体设计 14 4 1 设计目的 14 4 2 设计目标 14 4 3 设计过程 14 4 4 系统设计的一些原则 15 4 5 系统数据流程图 15 4 6 模块功能简介 16 4 6 1报表管理 报表管理模块详细流程如图所示 16 4 6 2系统管理 16 4 6 3仓库管理 17 5 数据库设计数据库设计 18 5 1 创建数据库 18 5 2 数据表结构 18 5 2 1 UserInfo表 18 5 2 2 Composition表 18 5 2 3 unit表 19 5 2 4 DaySell表 19 5 2 5 Inventory表 19 5 2 6 Library 表 20 5 2 7 Menu表 20 5 2 12Storage 表 20 5 2 8 LogBook表 21 5 2 9 Material表 22 5 2 10 shop表 22 5 2 11 Stock表 22 6 设计与实现设计与实现 23 6 1 用户登录 23 6 2 仓库管理 24 7 小结和展望小结和展望 25 7 1 优点和不足 25 7 2 展望 25 结束语结束语 26 参参 考考 文文 献献 27 附附 录录 28 可编辑 word 文档 1 前前 言言 随着我国经济的飞速发展 各种类型规模的公司企业迅速崛起 许多从 事生产和经营管理的企业都有自己生产和销售的产品 而这些产品都需要储 存在仓库中 对于每个企业来说 随着企业规模的不断扩大 产品数量的急 剧增加 所生产产品的种类也会不断地更新与发展 有关产品的各种信息量 也会成倍增长 面对庞大的产品信息量 如何有效地管理库存产品 对这些 企业来说是非常重要的 库存管理的重点是销售信息能否及时反馈 从而确 保企业运行效益 而库存管理又涉及入库 出库的产品 经办人员及客户等 方方面面的因素 如何管理这些信息数据 是一项复杂的系统工程 充分考 验着仓库管理员的工作能力 工作量的繁重是可想而知的 所以这就需要由 库存管理系统来提高库存管理工作的效率 这对信息的规范管理 科学统计 和快速查询 减少管理方面的工作量 同时对于调动广大员工的工作积极性 提高企业的生产效率 都具有十分重要的现实意义 仓库管理部门是企业中的一个重要部门 每天都有大量的业务在这里产生 对于一个现代化的企业来说 信息化管理是必须的 而仓库管理部门作为企业 的一个重点部门 同样需要加强信息化管理 如何把仓库管理部门每天发生的 业务如实地记录下来 保证仓库工作有调理地进行 同时确保相关数据的安全 信息处理的高效 并保证系统的实用性强 真是本系统设计的目的 随着现代工业的发展 计算机信息管理系统越来越受到企业的重视 本文主 要介绍了库存管理系统的一些基本功能和组成部分 包括系统的结构 需求分 析 功能模块划分等 介绍了 Visual Studio 2005 编程环境和 sqlserver2005 数据 库管理系统的功能特点 仓库管理系统是企业物流管理中不可或缺的一部分 可编辑 word 文档 2 系统开发工具系统开发工具 本仓库管理系统是在以 vs2005 为编程语言 以 sqlserver2005 作为后台数据库而 开发的一个数据库管理系统 下面简要介绍一下中文 vs2005 和 sqlserver2005 2 1 Visual Studio 2005 Visual Studio 2005 是基于 NET2 0 框架的 它同时也能开发跨平台的应用程序 如开发使用微软操作系统的手机的程序等 总体来说是一个非常庞大的软件 甚至包含代码测试功能 这个版本的 Visual Studio 包含有众多版本 分别面向 不同的开发角色 同时还永久提供免费的 Visual Studio Express 版本 2 2 SQL Server 2005 SQL Server 是 Microsoft 公司开发的大型关系数据库管理系统 具有强大的 关系数据库创建 开发 设计和管理功能 其 SQL Server 2005 版本已将数据库 与 Internet 紧密连接 可以通过 Web 浏览器显示对数据库操作的结果数据 具 有客户机 服务器体系结构 SQL Server 2005 提供了对分布式事务处理的支持 并对开发工具具有良好的支持 为大型数据库项目提供了企业解决方案 SQL 是关系数据库的标准语言 操作数据库有多种途径 使用企业管理器 使用查 询分析器 编程中使用 T SQL 语句或使用交互命令形式等 2 3 IIS IIS Internet Information Server 是微软公司主推的服务器 包容了 World Wide Web Gopher server 和 FTP server IIS 是随 Windows XP 一起提供的文件和 应用程序服务器 是在 Windows XP2 上建立 Internet 服务器的基本组件 它能 与 Windows XP2 集成 因而能通过 Windows XP2 内置的安全性以及自身的安 全性建立强大 灵活而安全的 Internet 和 Intranet 站点 IIS 支持 HTTP Hypertext Transfer Protocol 超文本传输协议 FTP File Transfer Protocol 文件传输协议 以及 SMTP 协议 通过使用 CGI 和 ISAPI IIS 可以 可编辑 word 文档 得到高度的扩展 IIS 支持与语言无关的脚本编写和组件 通过 IIS 开发人员 就可以开发新一代动态的 富有魅力的 Web 站点 IIS 不需要开发人员学习新 的脚本语言或者编译应用程序 IIS 完全支持 VBScript JavaScript 脚本语言以 及 C 等编语言 2 4 ASP net ASP net 是一种建立在通用语言上的程序构架 能被用于一台 Web 服务器 来建立强大的 Web 应用程序 ASP net 提供许多比现在的 Web 开发模式强大的 优势 使执行效率大幅提高 ASP net 是把基于通用语言的程序在服务器上运行 不像以前的 ASP 即时解释程序 而是将程序在服务器端首次运行时进行编译 这样的执行效果 当然比一条一条的解释强很多 可编辑 word 文档 3 需求分析需求分析 3 1 系统目标设计系统目标设计 系统开发的总体任务是实现企业产品管理的系统化 规范化和自动化 从 而达到提高企业管理效率的目的 3 2 仓库管理系统的需求分析仓库管理系统的需求分析 仓库管理系统主要用于仓库货品信息的管理 系统包括仓库管理 入库 一些统计查询和报表等几部分组成 库存管理系统满足仓库管理员及工作人员的需求 他们具有登陆系统的权限 所以需要对工作人员的登陆模块进行更多的考虑 设计不同用户的操作权限 和登陆方法 对于一个仓库来说最大的功能就是仓储货品 所以仓库管理就是对货品 信息 仓库信息 短线货品及仓储货品的管理 用户可以根据实际情况对各 种货品信息进行分类管理 包括添加 删除更新数据库等 入库管理操作就是对于货品入库情况的管理 用户可以方便输入货品的 信息 有货品的入库 自然就有货品的出库 这部分提供的功能与入库流程差不多 有区别的只有对一些基本的信息生成报表形式 并打印输出功能 报表是一个数据库最重要的功能之一 有了报表才能清楚地知道货品的 出入情况 在数据报表功能中包括出库报表 库存报表及经办人等一些基本 信息的打印 方便简洁 可编辑 word 文档 4 系统总体设计系统总体设计 4 1 设计目的 设计目的 总体设计的基本目的就是回答了 概括地说 系统一个如何实现 这个问题 总体设计阶段的另一项重要任务是设计软件的结构 也就是要 确定系统中每个程序是由哪些模块组成的 以及这些模块相互间的关系 4 2 设计目标设计目标 1 操作简单方便 界面简洁美观 2 能完成仓库的各种日常操作 3 能很好的预防各自人为因素产生的错误操作 4 能够为用户提供多种条件的查询操作 为物料管理提供准确及时的 数据 5 具有很好的安全性 一保证数据的正确性 6 可追溯数据的历史信息 为系统完善提供依据 4 3 设计过程 设计过程 总体设计过程首先寻找实现目标系统的各种不同的方案需求分析阶段 得到的数据流图是设想各种可能方案的基础 然后分析员从这些供选择的方 案中选取若干个合理的方案 然后为每个合理的方案准备一份系统流程图 列出组成系统的所有物理元素 在进行软件结构设计时一个遵循的主要原理 是模块独立性原理 也就是说 软件应该由一组完成相对独立的子功能的模 块组成 总体设计中的模块的划分根据软件工程的原则要符合高内聚和低耦 合 模块可以小到函数 事件 大到窗口 程序模块划分完后 就可以开始 设计了 可编辑 word 文档 4 4 系统设计的一些原则系统设计的一些原则 1 统一各种原始的单据的格式 统一账目和报表的格式 2 删除不必要的管理多余 实现管理规范化 科学化 3 程序代码标准化 软件统一化 确认软件的可维护性和实用性 4 界面尽量简单化 做到实用 方便 尽量满足企业中不同层次员工的 需要 5 建立操作日志 系统自动记录所进行的各种操作 4 5 系统数据流程图系统数据流程图 仓库管理系统 仓库管理 报表管理 系统管理三大模块组成 详细流程图如 下所示 可编辑 word 文档 4 6 模块功能简介模块功能简介 4 6 1 报表管理 报表管理 报表管理模块详细流程如图所示报表管理模块详细流程如图所示 4 6 2 系统管理 系统管理 系统管理模块详细流程如图所示 可编辑 word 文档 4 6 3 仓库管理 仓库管理 仓库管理模块详细流程如图所示 可编辑 word 文档 5 数据库设计数据库设计 大多数应用系统都需要后台数据库的支持 在本系统中采用 sqlserver2005 数据库 5 1 创建数据库创建数据库 本系统采用了 sqlserver2005 作为数据库管理系统 先启动 sqlserver2005 程序 然后创建名为 sobajian 的数据库 并为此数据库设 置密码 5 2 数据表结构数据表结构 5 2 1 UserInfo 表表 存储登录用户信息 主要字段有 uid userName pwd trueName 等 5 2 2 Composition 表表 存储材料合成 主要字段有 cid mid mcomp 等 可编辑 word 文档 5 2 3 unit 表表 存储单位表 主要字段有 uid uName uDesc 等 5 2 4 DaySell 表表 存储日销售 主要字段有 did sid mid mcount sDate 等 5 2 5 Inventory 表表 存储盘点表 主要字段有 Iid sid mid mcount IDate 等 可编辑 word 文档 5 2 6 Library 表表 存储出库 主要字段有 lid sid menuid mid lcount loutDate 等 5 2 7 Menu 表表 存储菜单 主要字段有 mid mName mUprice mParentId 等 5 2 12Storage 表表 存储入库 主要字段有 stoid sid mid scount sprice 等 可编辑 word 文档 5 2 8 LogBook 表表 存储工作日报 主要字段有 lid sid sname lmzg lmgzry cfzg 等 可编辑 word 文档 5 2 9 Material 表表 存储材料信息 主要字段有 mid mName mSpecification mUprice 等 5 2 10 shop 表表 存储店铺 主要字段有 sid sName sAddress Smanager 等 5 2 11 Stock 表表 存储库存 主要字段有 sid shid mid sincount soutcount stotalcount 等 可编辑 word 文档 6 设计与实现设计与实现 6 1 用户登录用户登录 在进入系统之前用户需要进行身份验证在验证的时候 会从数据库调出普 通用户信息表 登录的用户信息要与表中的相验证 完全正确的才可以进入 系统 用户登录主界面 系统主界面 可编辑 word 文档 6 2 仓库管理仓库管理 仓库管理模块 用户可以操作货品的出库入库管理等 出库管理 菜单列表 查询 新增菜单 菜单合成 日销售 月销售合计 材料入库录入 材料出库记录以及相对应货品的修改 删除 入库管理 材料类型 查询 新增 入库 清空库存 查看入库记录以及相 对应货品的修改 删除 出库管理主界面 入库管理主界面 可编辑 word 文档 7 小结和展望小结和展望 7 1 优点和不足优点和不足 A 能够比较好的进行需求分析 可行性分析以及系统设计 B 完成了仓库管理中日常使用最多的最主要的功能 C 对数据的处理有很大的联系 可减少人为因素带来的影响 D 系统只提供了键盘和鼠标的输入 没有提供条码扫描的输入 E 系统知识提供了一个简单的功能 与现代化的公司仓库定理还有不小的 差距 7 2 展望展望 对于一个公司的仓库管理来说 该系统还只是一个雏形 没有完成的 事情还有很多 有了现有的系统原型 还要与用户沟通 将他们实际操作 中的一些问题考虑进去 逐步改进上面谈到的一些不足 完善整个系统 可编辑 word 文档 结束语结束语 通过紧张忙碌的毕业设计 我的个人能力得到了很大的提高 获益匪浅 专 业知识上也上了一个新台阶 对整个软件设计开发的流程也有了更深刻的理 解 在我以前的工作中 总是先考虑编码 然后再考虑其他的问题 导致在工作 过程中经常需调整用户需求和进度上的安排不尽如人意 经常需要加班来赶 进度 而在这次毕业设计中 我按照软件工程的要求进行 先进行编码前的 工作 并按照老师为我们指定的进度进行 顺利地完成了制定的任务 在整 个工作过程中 感觉没有像以前那么匆忙 整个过程也很轻松 通过这次毕 业设计 将使我的工作习惯有一个很大的改进 这些提高是终身受益的 总之 通过这次毕业设计是使我各个方面的知识得以融会贯通 为我将来的 各种开了一个好头 我认为这种改变是质的飞跃 可编辑 word 文档 参参 考考 文文 献献 1 邵鹏明 C 面向对象程序设计 清华大学出版社 2008 年 4 月 2 孟宪会 张慧研 ASP NET 2 0 应用开发技术 人民邮电出版社 2007 年 8 月 3 金旭亮 NET 2 0 面向对象编程揭秘 电子工业出版社 2007 年 6 月 4 周奇 SQL Server2005 数据库基础及应用技术 北京大学出版社 2009 年 2 月 5 陈元春 张亮 王勇 实用数据结构基础 2007 年 8 月第 2 版 中国铁道出版 社 2008 年 8 月 6 王养廷 李磊 宋汉珍 UML 基础与应用 清华大学出版社 2009 年 6 月 7 杜文洁 软件测试教程 清华大学出版社 2009 年 7 月 8 韩陵宜 网页制作 中国科学技术大学出版社 2008 年 1 月 9 曾光 马军 JavaScript 入门与提高 科学出版社 2008 年 11 月 10 朱晔 ASP NET 第一步 2007 年 7 月第一版 清华大学出版社 2008 01 可编辑 word 文档 附附 录录 LoginLogin public partial class login System Web UI Page protected void Page Load object sender EventArgs e if IsPostBack pageInit bindDtShop public void pageInit if Request QueryString out null Session Remove currUser public void bindDtShop shop shop new shop DataTable dtshop shop getShopInfoByContent this dtshop DataSource dtshop this dtshop DataTextField sname this dtshop DataValueField sid this dtshop DataBind this dtshop Items Insert 0 new ListItem 选择店铺 0 public void UserLogin if this txtUsername Text Trim Length 0 Page ClientScript RegisterStartupScript this GetType alert 请输 入用户名 return 可编辑 word 文档 if this pwd Text Length 0 Page ClientScript RegisterStartupScript this GetType alert 请输 入密码 return userinfo user new userinfo DataTable dtuser user Login this txtUsername Text if dtuser Rows Count 0 string flogurl Index aspx if Request QueryString flogurl null flogurl Request QueryString flogurl if dtuser Rows 0 2 Equals this pwd Text Session currUser this txtUsername Text Session truename dtuser Rows 0 3 ToString Session shop this dtshop SelectedItem Value Response Redirect flogurl 登录 else Page ClientScript RegisterStartupScript this GetType alert 密码错误 else Page ClientScript RegisterStartupScript this GetType alert 该用 户不存在 protected void ImageButton1 Click object sender ImageClickEventArgs e if Request Headers Accept UserLogin ShopInfoShopInfo public partial class ShopInfo MyPage 可编辑 word 文档 protected void Page Load object sender EventArgs e if IsPostBack if Request QueryString sid null this hfsid Value Request QueryString sid getShopInfoBySid Convert ToInt32 hfsid Value protected void Button1 Click object sender EventArgs e if Request Headers Accept if this hfsid Value Equals 0 addShop else updShopInfo public bool formvalidate if this txtshopname Text Trim Length 0 Page ClientScript RegisterStartupScript this GetType alert 请输 入店铺名称 return false return true public void addShop if formvalidate shop shop new shop shop addShop this txtshopname Text this txtaddress Text this txtzg Text 可编辑 word 文档 this txtzc Text this txtyg Text this txtremark Text Page ClientScript RegisterStartupScript this GetType window close public void getShopInfoBySid int sid shop shop new shop string content where sid sid DataTable dt shop getShopInfoByContent content if dt Rows Count 0 DataRow dr dt Rows 0 this txtshopname Text dr 1 ToString this txtaddress Text dr 2 ToString this txtzg Text dr 3 ToString this txtzc Text dr 4 ToString this txtyg Text dr 5 ToString this txtremark Text dr 6 ToString public void updShopInfo if formvalidate shop shop new shop shop updShop int Parse this hfsid Value this txtshopname Text this txtaddress Text this txtzg Text this txtzc Text this txtyg Text this txtremark Text Page ClientScript RegisterStartupScript this GetType window close InStorrageInStorrage public partial class InStorrage MyPage protected void Page Load object sender EventArgs e if IsPostBack 可编辑 word 文档 pageInit public void pageInit this txttime Text Request Form txttime null Convert ToDateTime Request Form txttime ToString ToString yyyy MM dd DateTime Now ToShortDateString if Request QueryString typeid null this hfmid Value Request QueryString typeid getStroageInfoByType int Parse this hfmid Value public void getStroageInfoByType int typeid string content where mParentid typeid getStorageInfo content public void getStorageInfo string content StorageManage storage new StorageManage Tools GridViewDataBind this gvMaterial storage getMaterialInfoByContent content this gvMaterial DataSource this gvMaterial DataBind protected void gvMaterial RowCreated object sender GridViewRowEventArgs e string shortDate Request Form txttime null Convert ToDateTime Request Form txttime ToString ToString yyyy MM dd DateTime Now ToShortDateString string datetimenow Convert ToDateTime shortDate ToString yyyy年MM月dd日 StorageManage storage new StorageManage string sid Session shop ToString if e Row RowType DataControlRowType Header GridViewRow rowHeader new GridViewRow 0 0 DataControlRowType Header DataControlRowState Normal string HeaderBackColor FFFFFF rowHeader BackColor System Drawing ColorTranslator FromHtml HeaderBackColor 可编辑 word 文档 实现确定要显示的表头样式 也可以通过计算生成 Literal newCells new Literal newCells Text 编号 品名 规格 购买金额 元 newCells Text datetimenow newCells Text newCells Text 单价数量付款 TableCellCollection cells e Row Cells TableHeaderCell headerCell new TableHeaderCell 下面的属性设置与 关键单元格 要一致 headerCell RowSpan 2 headerCell Controls Add newCells rowHeader Cells Add headerCell rowHeader CssClass scrollRowTheadgv scrollCRgv scrollColTheadgv rowHeader Visible true 添加到 GridView1 this gvMaterial Controls 0 Controls AddAt 0 rowHeader if e Row RowType DataControlRowType DataRow for int i 0 i 0 DataRow dr dt Rows 0 可编辑 word 文档 txt Text i 0 dr 4 ToString dr 3 ToString txt CssClass dr 0 ToString ismoney dr 6 ToString txt Width new Unit 100 txt Style Add text align center txt BorderStyle BorderStyle None txt Attributes Add onkeyup checkInputFloat this cell Controls Add txt e Row Cells Add cell 是否付款 TableCell cellmoney new TableCell cellmoney HorizontalAlign HorizontalAlign Center RadioButtonList rmoneylist new RadioButtonList rmoneylist RepeatColumns 2 rmoneylist ID rdo e Row RowIndex rmoneylist CssClass rdolist rmoneylist Items Add new ListItem 已付 1 rmoneylist Items Add new ListItem 未付 0 rmoneylist SelectedValue ismoney rmoneylist BorderStyle BorderStyle None cellmoney Wrap true cellmoney Controls Add rmoneylist e Row Cells Add cellmoney catch Exception ex Log Error Log ex Message protected void Button1 Click object sender EventArgs e try StorageManage storage new StorageManage string sid Session shop ToString for int i 0 i this gvMaterial Rows Count i 可编辑 word 文档 if this gvMaterial Rows i Visible TextBox txtprice TextBox this gvMaterial Rows i Cells 4 FindControl txt i 0 TextBox txtcount TextBox this gvMaterial Rows i Cells 4 FindControl txt i 1 RadioButtonList rdolist RadioButtonList this gvMaterial Rows i Cells 4 FindControl rdo i storage innerStor int Parse txtprice CssClass sid int Parse txtprice ToolTip txtcount Text txtprice Text this txttime Text Convert ToInt32 rdolist SelectedValue getStroageInfoByType int Parse this hfmid Value ClientScript RegisterStartupScript this GetType window returnValue true window close catch Exception protected void Button2 Click object sender EventArgs e getStroageInfoByType int Parse this hfmid Value protected void txttime TextChanged object sender EventArgs e getStroageInfoByType int Parse this hfmid Value InStorrageInStorrage public partial class InStorrage MyPage protected void Page Load object sender EventArgs e if IsPostBack pageInit 可编辑 word 文档 public void pageInit if Request QueryString typeid null this hfid Value Request QueryString typeid StorageManage storage new StorageManage DataTable dt storage getMaterialInfoByContent where mid this hfid Value this lbltype Text dt Rows Count 0 dt Rows 0 1 ToString string content where mParentid this hfid Value getStorageInfo content this txttime Text DateTime Now ToString yyyy MM this lbltitle Text this txttime Text 购入合计 public void getStorageInfo string content StorageManage storage new StorageManage Tools GridViewDataBind this gvMaterial storage getMaterialInfoByContent content this gvMaterial DataSource storage getMaterialInfoByContent content this gvMaterial DataBind public override void VerifyRenderingInServerForm Control control protected void export Click object sender CommandEventArgs e Tools ExcelCap e this gvMaterial Page HttpUtility UrlEncode this lbltype Text this lbltitle Text protected void gvMaterial RowCreated object sender GridViewRowEventArgs e string currentDate Request Form txttime null Request Form txttime DateTime Now ToString yyyy MM int days Tools getDays Convert ToDateTime currentDate 1 Year Convert ToDateTime currentDate 1 Month string sid Session shop ToString if e Row RowType DataControlRowType Header GridViewRow rowHeader new GridViewRow 0 0 DataControlRowType Header DataControlRowState Normal string HeaderBackColor FFFFFF rowHeader BackColor System Drawing ColorTranslator FromHtml HeaderBackColor 可编辑 word 文档 实现确定要显示的表头样式 也可以通过计算生成 Literal newCells new Literal newCells Text 编号 品名 规格 购买金额 元 月购合计 for int i 1 i days i newCells Text i 日 newCells Text newCells Text 数量 金额 for int i 1 i days i newCells Text 单价数量 金额 if i 6 newCells Text TableCellCollection cells e Row Cells TableHeaderCell headerCell new TableHeaderCell 下面的属性设置与 关键单元格 要一致 headerCell RowSpan 2 headerCell CssClass scrollRowThead scrollCR scrollColThead headerCell Controls Add newCells 可编辑 word 文档 rowHeader Cells Add headerCell rowHeader Visible true 添加到 GridView1 this gvMaterial Controls 0 Controls AddAt 0 rowHeader StorageManage storage new StorageManage if e Row RowType DataControlRowType DataRow cell0 Text 0 cell0 HorizontalAlign HorizontalAlign Center e Row Cells Add cell0 TableCell cell 1 new TableCell cell 1 Text 0 cell 1 HorizontalAlign HorizontalAlign Center cell 1 Style Add border right 1px solid 000 e Row Cells Add cell 1 double count 0 double totalPrice 0 for int i 1 i 0 cell Text dt Rows 0 3 ToString Length 0 dt Rows 0 3 ToString cell2 Text dt Rows 0 4 ToString Length 0 dt Rows 0 4 ToString try if dt Rows 0 3 ToString Length 0 totalPrice Convert ToDouble cell3 Text count Convert ToDouble cell Text catch Exception ex Log Error Log ex Message e Row Cells Add cell e Row Cells Add cell2 e Row Cells Add cell3 cell0 Text count ToString cell 1 Text totalPrice ToString for int i 0 i 6 i e Row Cells i CssClass scrollRowThead catch Exception ex Log Error Log ex Message 可编辑 word 文档 protected void Button1 Click object sender EventArgs e this lbltitle Text this txttime Text 购入合计 protected void txttime TextChanged object sender EventArgs e this lbltitle Text this txttime Text 购入合计 MaterialManageMaterialManage public part

温馨提示

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

评论

0/150

提交评论