数据库课课程设计(论文)商品销售管理系统的设计与实现_第1页
数据库课课程设计(论文)商品销售管理系统的设计与实现_第2页
数据库课课程设计(论文)商品销售管理系统的设计与实现_第3页
数据库课课程设计(论文)商品销售管理系统的设计与实现_第4页
数据库课课程设计(论文)商品销售管理系统的设计与实现_第5页
已阅读5页,还剩36页未读 继续免费阅读

下载本文档

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

文档简介

1、xx工学院学期论文设计说明书学期论文4商品销售管理系统的设计与实现专业计算机科学与技术(制造业信息化)班级bu计算机062学号学生姓名摘 要随着科学的不断进步,计算机应用已经遍布整个社会的每个角落。计算机在商业管理上的应用,使其逐步系统化、完善化。利用计算机帮助企业高效率完成销售管理的日常事务,是适应现代企业制度要求,也是推动企业销售管理走向科学化、规范化的必要条件。本系统就是基于以上思想而开发的,我们选用c#开发此系统,应用了ado数据库访问技术,数据库选用目前功能强大的sql server 2005和visual studio 2005,它有存储量大,查询速度快,加之本身支持网络环境,进一

2、步方便数据的传输等优点。由于销售管理是一项琐碎、复杂而又十分细致的工作,在销售的各个环节中不允许出错,实行手工操作,每月就会耗费工作人员大量的时间和精力,该销售系统的使用将可以避免了以上的难题,不但能够保证单价,账目核算准确无误,而且还可以利用该系统对有关销售的各种信息进行统计,服务于财务部门和销售部门等的业务处理。本文通过对商品销售工作流程的深入了解及进行了可行性分析后,对商品销售管理系统作了需求分析、功能模块划分、数据库的设计以及界面设计,并完成了系统的开发。关键词:visual studio 2005 ;sql server 2005;数据库;商品销售;查询abstractwith th

3、e continuous advancement of science, computer application has been around every corner of society as a whole. computer in the business management applications, so that it may gradually systematized, perfect.improving the efficiencies of a company by a computer is suitable for modern enterprises and

4、also a necessary condition for establishing a scientific and legitimate way of business administration. this system is developed upon on such purpose; we used c# and ado technology for this system. for the database we selected sqlserver 2005 and visual studio 2005,with the advantage of large capacit

5、y, quick query and supporting net environment in order to deliver data. because sales management is a difficult task which allows no mistake in any step. it will be a loss of a lot of time and energy by hand operation. such problem can be well solved by our system. we can not only guarantee the pric

6、e and sum and also make use of the sales information supplied by this system which can help process the affairs of financial and sales department. based on the sales-depth understanding of workflow and carried out a feasibility analysis, sales management system for goods made needs analysis, functio

7、nal modules, database design and interface design, and completed the development of the system.keywords: visual studio 2005; sql server 2005; database; sales; inquiries目 录引 言11.系统概述11.1系统研究现状11.2数据库访问方法12.系统调研及可行性分析22.1系统调研22.2系统总体目标22.3技术可行性分析23.商品销售管理系统分析23.1系统需求分析23.1.1功能需求23.1.2性能需求33.2系统流程图44.商

8、品销售系统管理系统设计54.1概要设计54.1.1功能模块图54.2数据库设计64.2.1 e-r模型设计64.2.2表设计65.销售系统应用程序界面设计85.1用户登录模块设计85.2销售系统主界面模块设计125.3商品销售录入模块设计145.4商品销售查询模块设计215.5退货管理模块设计225.6商品进货录入模块设计245.7库存管理模块设计265.8 供应商管理模块设计275.9用户管理模块设计295.10更改密码模块设计30结 论35参考文献36致 谢37xx工学院学期论文设计说明书引 言传统的商品销售管理在商品的统计和管理上不但麻烦,而且还十分的耗费人力和时间。而商品销售管理系统对

9、商品的进货、退货、存货和销售情况等进行了综合统计和管理,使管理人员能够更快的得到自己想要的信息。一个好的商品销售管理系统首先应具备的是基本的信息管理,而商品销售管理系统不但对商品信息信息、代理商信息、订单信息等都进行了系统的管理,而且管理人员可以直接登陆系统查看所有的信息,也可以根据自己的需要搜索相关的信息。本文对系统开发中面临的问题及其解决方案进行详细的设计及合理安排,根据所掌握的技术对系统的各部分功能进行了实现。1.系统概述1.1系统研究现状伴随知识经济的发展和现代信息技术的不断改进,人们的生活节奏越来越快,而对信息的要求越来越高,快捷方便已经成为信息的一个重要指标。对于一个好的零售公司,

10、拥有完整全面的信息管理系统变得非常重要。在这种情况下,商品销售管理系统应运而生。通过本系统用户可以更快的获得最全面的信息,而且可以通过本系统查询所有需要的信息,大大的方便了用户的操作。目前的商品销售管理系统已能顺利完成商品的进、销、存工作,多为单机版,网络版还不多见,但网络版应是以后的发展重点。1.2数据库访问方法1.bde方法:它提供了存取各种文型和客户/服务器型数据库的驱动器程序。该方法直接访问paradox和dbase等数据库或通过dobc(open database connecivity,开放数据库)来访问access和poxpro等数据库,还可通过内嵌方式访问sql servr、o

11、racle和db2等大型数据库。2.ado方法:ado方法是微软提供的一种数据库访问技术。通过ado技术可方便的访问各种类型的数据库,尤其对于oledb类型的数据库,ado更是访问数据库的标准接口。delphi通过ado技术可让开发者快速访问关系或非关系型数据库,但使用时需安装ado的数据库引擎。3.midas方法:midas方法是delphi用于开发多层应用系统的中间透明引擎。通过midas,开发者可使用相同的组件来存取不同的后台应用程序服务器。这些后台应用服务器程序包括com+/dcom应用程序服务器、mts中间件或corba应用程序服务器。midas方法实现了真正意义上的客户端程序与后台

12、数据库的分离,但midas的灵活性很差,与数据感应控件关联过于密切,限制了程序员的创造性。2.系统调研及可行性分析2.1系统调研(1)通过对商品销售管理进行调研分析后,确定了本系统将要实现的功能。(2)在系统设置模块中实现对系统基本信息和路径进行设置。(3)在权限管理模块中实现对用户级别的选择再组合相应的权限进行设置。(4)在代理商进/退货录入模块中实现代理商对商品进退货的记录的修改、增加和删除。(5)在定单进货数据录入窗口以及查询模块中实现对定单的录入和定单信息的查询。(6)在商品分布查询模块中实现对各类商品的分布进行综合的查询。2.2系统总体目标本商品销售管理系统系统在使用上比起原来的操作

13、方式更加方便、简单;界面设计上美观大方;后期维护上比较容易,如要对功能模块方面作修改,则无需进行整个系统的重新架构。2.3技术可行性分析本系统是一个典型的数据库应用程序。现有的数据库应用程序开发技术已非常成熟,利用现有技术完全可以实现预定的功能。系统采用delphi开发工具,该工具功能强大,扩展性强,适合任何的编程工作,这些技术完全胜任开发任务;并且利用该工具能使操作人员可在短时间能完全掌握系统维护工作。3.商品销售管理系统分析3.1系统需求分析经过以上对本系统的调研及可行性分析后,下面将对系统在功能上以及性能上进行进一步的需求分析。3.1.1功能需求由于商品销售管理系统是一个用来帮助使用者管

14、理商品销售流程的软件。使用者通过对销售过程中所涉及到的商品,订单,销售商等资料的录入,便可以轻松实现商品销售流程的管理。所以,此系统必须向使用者提供一下一些具体功能:1:软件必须向使用者提供商品基本的录入,删除,编辑等基本功能2:鉴于商品的不同销售方式(分为订单销售和代理商销售两种形式),软件必须向使用者提供商品销售环节中的基本管理功能,因此必须有订单分销模块和代理商分销模块。3:软件必须向使用者提供基本的查询功。4:由于是销售管理软件,所以系统安全性必须是要考虑的问题。因此,必须实现以下两点:a:系统操作员机制。对系统的使用者,按等级开放管理权限,这样可以在一定程度上保证数据库系统的安全性,

15、避免数据被泄漏,非法更改等。b:销售数据直接反映了一个销售单位的盈亏状况,鉴于销售数据的重要性,所以必须对这些数据加以保护,在系统崩溃时或者误操作等情况下,可以对数据进行恢复。这就需要系统提供备份功能。 5 :对于销售数据不能只存储在计算机中,而是需要导出步骤,最后以印刷品的形式出现在使用者面前,该软件设计的最终目的才能得以具体的实现。所以,打印功能是必不可少的系统功能之一。3.1.2性能需求本系统的目标是:使用者通过对基本销售信息的录入,即可方便直观的实现对商品交易流程的管理,查询,以及对已有信息的打印输出等功能。本销售系统定义了两种销售模式:1订单销售。即销售方通过订单方式销售的商品。2代

16、理商销售方式。(此功能略复杂,所以在实现的是时候必须对其提供录入修改查询等基本功能)。除了上述基本功能外,系统还必须提供必要的附加功能: 1数据备份功能。2密码登陆功能。3操作员及相应的权限管理功能。综上所述,为实现上述系统目标,必须定义相应功能的单元模块。3.2系统流程图登陆判断是否合法系统信息查询信息修改增加修改删除更新错误提示信息更新到数据库查询条件错误提示信息从数据库读取数据图3.2 系统流程图4.商品销售系统管理系统设计4.1概要设计4.1.1功能模块图商品销售管理系统系统管理模块销售管理模块修改密码用户管理销售录入进货录入退货管理库存管理供应商管理销售查询数据库图4.1功能模块图4

17、.2数据库设计4.2.1 e-r模型设计用户代理商商品管理管理用户名进退代号单价数量名称性别密码权限代号名称地址联系人订单管理编号日期型号名称数量日期电话图4.2 e-r模型图4.2.2表设计表名:liyi (用户表)字段名数据类型长度是否允许空值约束usernamevarchar16not nullprimary keypasswordvarchar16not nullsafetychar8not null表名:supplier(供应商表)字段名数据类型长度是否允许空值约束sup_idchar5not nullprimary keysup_namevarchar16not nullsup_c

18、ontactvarchar16not nullsup_phonevarchar15not nullsup_addressvarchar40not null表名:purchase (进货表)字段名数据类型长度是否允许空值约束p_idchar5not nullprimary keyp_namevarchar20not nullpricefloatnot nullnumberintnot nullp_datevarchar16not nullprimary keysup_idchar5not nullforeigner key表名:sale(销售表)字段名数据类型长度是否允许空值约束p_idchar

19、5not nullprimary keypricefloatnot nullnumberintnot nulltotalfloatnot nulls_datevarchar16not nullprimary key表名:return (退货表)字段名数据类型长度是否允许空值约束p_idchar5not nullprimary keynumberintnot nullr_datevarchar16not nullprimary keyreasonvarchar50yes5.销售系统应用程序界面设计5.1用户登录模块设计图5.1用户登录窗口效果图本窗体的任务是通过用户输入密码判断用户是否是合法的用

20、户.它用于管理员按照用户名和密码进行登录。以免不相关得人进入系统进行不良的操作,而对系统进行破坏,导致整个系统进行瘫痪。主要代码为: namespace sales partial class login private system.componentmodel.icontainer components = null; protected override void dispose(bool disposing) if (disposing & (components != null) components.dispose(); base.dispose(disposing); #regi

21、on windows 窗体设计器生成的代码 private void initializecomponent() this.groupbox1 = new system.windows.forms.groupbox(); this.groupbox2 = new system.windows.forms.groupbox(); this.button_exit = new system.windows.forms.button(); this.button_login = new system.windows.forms.button(); this.label1 = new system.w

22、indows.forms.label(); this.label2 = new system.windows.forms.label(); this.textbox_username = new system.windows.forms.textbox(); this.textbox_password = new system.windows.forms.textbox(); this.groupbox1.suspendlayout(); this.groupbox2.suspendlayout(); this.suspendlayout(); this.groupbox1.controls.

23、add(this.textbox_password); this.groupbox1.controls.add(this.textbox_username); this.groupbox1.controls.add(this.label2); this.groupbox1.controls.add(this.label1); this.groupbox1.dock = system.windows.forms.dockstyle.top; this.groupbox1.location = new system.drawing.point(0, 0); this.groupbox1.name

24、= groupbox1; this.groupbox1.size = new system.drawing.size(406, 144); this.groupbox1.tabindex = 0; this.groupbox1.tabstop = false; this.groupbox2.controls.add(this.button_exit); this.groupbox2.controls.add(this.button_login); this.groupbox2.dock = system.windows.forms.dockstyle.bottom; this.groupbox

25、2.location = new system.drawing.point(0, 150); this.groupbox2.name = groupbox2; this.groupbox2.size = new system.drawing.size(406, 91); this.groupbox2.tabindex = 1; this.groupbox2.tabstop = false; this.button_exit.location = new system.drawing.point(254, 32); this.button_exit.name = button_exit; thi

26、s.button_exit.size = new system.drawing.size(81, 32); this.button_exit.tabindex = 1; this.button_exit.text = 退出; this.button_exit.usevisualstylebackcolor = true; this.button_exit.click += new system.eventhandler(this.button_exit_click); this.button_login.location = new system.drawing.point(61, 32);

27、this.button_login.name = button_login; this.button_login.size = new system.drawing.size(81, 32); this.button_login.tabindex = 0; this.button_login.text = 登录; this.button_login.usevisualstylebackcolor = true; this.button_login.click += new system.eventhandler(this.button_login_click); this.label1.aut

28、osize = true; this.label1.location = new system.drawing.point(77, 45); this.label1.name = label1; this.label1.size = new system.drawing.size(53, 12); this.label1.tabindex = 0; this.label1.text = 用户名:; this.label2.autosize = true; this.label2.location = new system.drawing.point(77, 89); this.label2.n

29、ame = label2; this.label2.size = new system.drawing.size(41, 12); this.label2.tabindex = 1; this.label2.text = 密码:; this.textbox_username.location = new system.drawing.point(155, 42); this.textbox_username.name = textbox_username; this.textbox_username.size = new system.drawing.size(157, 21); this.t

30、extbox_username.tabindex = 2; this.textbox_password.location = new system.drawing.point(155, 86); this.textbox_password.name = textbox_password; this.textbox_password.passwordchar = *; this.textbox_password.size = new system.drawing.size(157, 21); this.textbox_password.tabindex = 3; this.acceptbutto

31、n = this.button_login; this.autoscaledimensions = new system.drawing.sizef(6f, 12f); this.autoscalemode = system.windows.forms.autoscalemode.font; this.cancelbutton = this.button_exit; this.clientsize = new system.drawing.size(406, 241); this.controlbox = false; this.controls.add(this.groupbox2); th

32、is.controls.add(this.groupbox1); this.maximumsize = new system.drawing.size(414, 275); this.name = login; this.startposition = system.windows.forms.formstartposition.centerparent; this.text = 登录; this.groupbox1.resumelayout(false); this.groupbox1.performlayout(); this.groupbox2.resumelayout(false);

33、this.resumelayout(false); #endregion private system.windows.forms.groupbox groupbox1; private system.windows.forms.groupbox groupbox2; private system.windows.forms.button button_exit; private system.windows.forms.button button_login; private system.windows.forms.textbox textbox_password; private sys

34、tem.windows.forms.textbox textbox_username; private system.windows.forms.label label2; private system.windows.forms.label label1; 5.2销售系统主界面模块设计图5.2销售系统主界面窗口效果图该窗体是本系统的统筹界面。它是系统的结构匡架,便于对整个系统的观摩、管理.主要使用label和 panl以及manu等控件实现的。image控件使得界面得以美化。 由于每次操作不一定会用到所有的数据库,所以没有必要在每次运行时生成所有的数据库别名。session控件提供了动态生成

35、数据库别名的方法,使通过操作选择窗体进行优选择的别名生成成为可能。主要代码为: namespace sales partial class main private system.componentmodel.icontainer components = null; protected override void dispose(bool disposing) if (disposing & (components != null) components.dispose(); base.dispose(disposing); private system.windows.forms.menu

36、strip menustrip1; private system.windows.forms.toolstripmenuitem 商品销售管理toolstripmenuitem; private system.windows.forms.toolstripmenuitem 商品销售录入toolstripmenuitem; private system.windows.forms.toolstripmenuitem 商品销售查询toolstripmenuitem; private system.windows.forms.toolstripmenuitem 商品退货管理toolstripmenu

37、item; private system.windows.forms.toolstripmenuitem 商品进货管理toolstripmenuitem; private system.windows.forms.toolstripmenuitem 商品进货录入toolstripmenuitem; private system.windows.forms.toolstripmenuitem 商品库存管理toolstripmenuitem; private system.windows.forms.toolstripmenuitem 供应商管理toolstripmenuitem; private

38、 system.windows.forms.toolstripmenuitem 系统设置toolstripmenuitem; private system.windows.forms.toolstripmenuitem 用户管理toolstripmenuitem; private system.windows.forms.toolstripmenuitem 更改密码toolstripmenuitem; private system.windows.forms.toolstripmenuitem 关于toolstripmenuitem; private system.windows.forms.

39、toolstripmenuitem 退出系统toolstripmenuitem; private system.windows.forms.toolstripmenuitem 退出toolstripmenuitem; 5.3商品销售录入模块设计图5.3销售录入窗口效果图主要代码为:namespace sales partial class salesadd private system.componentmodel.icontainer components = null; protected override void dispose(bool disposing) if (disposin

40、g & (components != null) components.dispose(); base.dispose(disposing); #region windows 窗体设计器生成的代码 private void initializecomponent() this.groupbox1 = new system.windows.forms.groupbox(); this.textbox_date = new system.windows.forms.textbox(); this.textbox_number = new system.windows.forms.textbox()

41、; this.textbox_price = new system.windows.forms.textbox(); this.textbox_id = new system.windows.forms.textbox(); this.label4 = new system.windows.forms.label(); this.label3 = new system.windows.forms.label(); this.label2 = new system.windows.forms.label(); this.label1 = new system.windows.forms.labe

42、l(); this.groupbox2 = new system.windows.forms.groupbox(); this.button_exit = new system.windows.forms.button(); this.button_update = new system.windows.forms.button(); this.button_delete = new system.windows.forms.button(); this.button_add = new system.windows.forms.button(); this.datagridview1 = n

43、ew system.windows.forms.datagridview(); this.column1 = new system.windows.forms.datagridviewtextboxcolumn(); this.column2 = new system.windows.forms.datagridviewtextboxcolumn(); this.column3 = new system.windows.forms.datagridviewtextboxcolumn(); this.column4 = new system.windows.forms.datagridviewt

44、extboxcolumn(); this.column5 = new system.windows.forms.datagridviewtextboxcolumn(); this.column6 = new system.windows.forms.datagridviewtextboxcolumn(); this.groupbox1.suspendlayout(); this.groupbox2.suspendlayout(); (system.componentmodel.isupportinitialize)(this.datagridview1).begininit(); this.s

45、uspendlayout(); this.groupbox1.controls.add(this.textbox_date); this.groupbox1.controls.add(this.textbox_number); this.groupbox1.controls.add(this.textbox_price); this.groupbox1.controls.add(this.textbox_id); this.groupbox1.controls.add(this.label4); this.groupbox1.controls.add(this.label3); this.gr

46、oupbox1.controls.add(this.label2); this.groupbox1.controls.add(this.label1); this.groupbox1.location = new system.drawing.point(12, 2); this.groupbox1.name = groupbox1; this.groupbox1.size = new system.drawing.size(656, 98); this.groupbox1.tabindex = 0; this.groupbox1.tabstop = false; this.groupbox1

47、.text = 销售资料; this.textbox_date.location = new system.drawing.point(439, 67); this.textbox_date.name = textbox_date; this.textbox_date.size = new system.drawing.size(100, 21); this.textbox_date.tabindex = 7; this.textbox_number.location = new system.drawing.point(133, 67); this.textbox_number.name = textbox_number; this.textbox_number.size = new system.drawing.size(100, 21); this.textbox_number.tabindex = 6; this.textbox_price.location = new system.drawing.point(439, 18); this.textbox_price.name = textbox_price; this.textbox_price.size = new system.drawing.size(100,

温馨提示

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

评论

0/150

提交评论