您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 管理学资料 > C#版进销库存商品管理系统
目录第一章开发背景和环境………………………………………3第二章程序功能分析及描述………………………………3--4第三章总体和详细设计……………………………………5--11第四章实现源码……………………………………………12--27第五章总结……………………………………………………27第一章【开发背景】随着我国大小企业经营规模越来越大,企业需要随时更新产品的进销信息,不断更改商品信息,并对商品进行系统分析。因此企业商品的进销管理系统需要引进新的管理软件,实现企业庞大的进销商品的管理规范化,从而方便企业的进销商品的决策。【开发环境】开发平台:MicrosoftVisualStudio2010开发语言:VisualC#2010后台数据库管理系统软件:MicrosoftSQLServer运行平台:Windows7第二章【程序功能分析及描述】在对企业销售管理系统有了深刻的认识后,为了解决企业销售人员在商品管理和日常销售中所存在的不足,让企业工作人员有更好的、更方便的使用计算机对企业有关数据进行管理,以实现无纸化操作方面进行分析,企业系统应进行以下功能的实现。登录模块登录模块根据用户角色不同在登陆成功以后被赋予相应的操作权限,对管理系统有对进货商品的录入、销售商品的录入等一些操作权限。登陆主窗体模块进入主窗口时,用户可以依据自己的交易选择不同的窗口进行操作。商品进货信息模块商品进货信息模块是对每笔进货业务的进货编号、商品名称、进货单价和数量的录入功能的实现。进货信息查询模块进货信息查询模块是操作人员对进货业务的查询功能,可以通过查询条件,查找相应的信息。商品销售信息模块商品销售信息模块是对每笔销售业务的销售编号、商品名称、销售单价和数量的录入功能的实现。商品退货信息模块商品退货信息模块是针对顾客销售退回业务的信息进行查询。供应商信息模块供应商信息模块是对商品供应商信息的录入,以便查询。退出提醒系统模块当用户退出时,会提醒用户是否决定退出系统意见反馈模块意见反馈模块,是提供一个平台,将使用者的使用意见反馈给系统程序员,对该系统的改进和提高。注册登录新用户模块注册新用户信息。第三章【总体和详细设计】•企业进销库存销售管理管理系统功能结构图:请输入留言供应商电话供应商名称退货编号销售数量销售单价商品名称销售编号查询条件进货数量进货单价商品名称【逻辑设计】商品进货表:字段名数据类型是否为主键描述IDInt是bhnchar否进货编号mcnchar是商品名称djnchar是订货单价slnchar是订货数量供应商信息表:字段名数据类型是否为主键描述IDInt是mcnchar否供货商名称dhnchar否供货商电话【窗体设计】登录窗口:主窗口:商品进货信息窗口:进货信息查询窗口:商品销售信息窗口:退货查询窗口:供应商信息窗口:退出系统提醒窗口:意见反馈窗口:注册信息窗口:【源代码的实现】登录模块登录模块根据用户角色不同在登陆成功以后被赋予相应的操作权限,对管理系统有对进货商品的录入、销售商品的录入等一些操作权限。usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Data.SqlClient;namespacecsharp{publicpartialclassForm1:Form{publicForm1(){InitializeComponent();}privatevoidbutton2_Click(objectsender,EventArgse){}privatevoidbutton1_Click(objectsender,EventArgse){SqlConnectioncon=newSqlConnection(server=SDJS-20140220WP;database=CS;IntegratedSecurity=true);con.Open();SqlDataAdapterda=newSqlDataAdapter(select*fromlogwherename='+textBox1.Text.Trim()+'andpsw='+textBox2.Text.Trim()+',con);DataSetds=newDataSet();da.Fill(ds);if(ds.Tables[0].Rows.Count==0){MessageBox.Show(用户名和密码有误.请重新输入,系统提示,MessageBoxButtons.OK,MessageBoxIcon.Error);return;}else{MessageBox.Show(登陆成功,欢迎进入!,系统提示,MessageBoxButtons.OK,MessageBoxIcon.Information);Form2f2=newForm2();f2.Show();this.Hide();}}privatevoidlabel3_Click(objectsender,EventArgse){Form10f10=newForm10();f10.Show();this.Hide();}privatevoidForm1_Load(objectsender,EventArgse){}}}登陆主窗体模块进入主窗口时,用户可以依据自己的交易选择不同的窗口进行操作。usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;namespacecsharp{publicpartialclassForm2:Form{publicForm2(){InitializeComponent();}privatevoidlabel1_Click(objectsender,EventArgse){}privatevoid基本档案BToolStripMenuItem_Click(objectsender,EventArgse){Form3f3=newForm3();f3.Show();this.Hide();}privatevoid进货管理CToolStripMenuItem_Click(objectsender,EventArgse){Form4f4=newForm4();f4.Show();this.Hide();}privatevoid销售管理SToolStripMenuItem_Click(objectsender,EventArgse){Form5f5=newForm5();f5.Show();this.Hide();}privatevoid库存管理DToolStripMenuItem_Click(objectsender,EventArgse){Form6f6=newForm6();f6.Show();this.Hide();}privatevoid供应商信息ToolStripMenuItem_Click(objectsender,EventArgse){Form8f8=newForm8();f8.Show();this.Hide();}privatevoid系统维护KToolStripMenuItem_Click_1(objectsender,EventArgse){Form6f6=newForm6();f6.Show();this.Hide();}privatevoidlabel1_Click_1(objectsender,EventArgse){}privatevoidbutton1_Click(objectsender,EventArgse){Form9f9=newForm9();f9.Show();this.Hide();}privatevoidbutton2_Click(objectsender,EventArgse){Form1f1=newForm1();f1.Show();this.Hide();}privatevoid意见反馈ToolStripMenuItem_Click(objectsender,EventArgse){Form11f11=newForm11();f11.Show();this.Hide();;}privatevoidForm2_Load(objectsender,EventArgse){}}}商品进货信息模块商品进货信息模块是对每笔进货业务的进货编号、商品名称、进货单价和数量的录入功能的实现。usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms;usingSystem.Data.SqlClient;namespacecsharp{publicpartialclassForm3:Form{publicForm3(){InitializeComponent();}privatevoidtextBox3_TextChanged(objectsender,EventArgse){}privatevoidForm3_Load(objectsender,EventArgse){}privatevoidbutton1_Click(objectsender,EventArgse){SqlConnectionconn=newSqlConnection(server=SDJS-20140220WP;database=CS;IntegratedSecurity=true);stringstrsql=insertintodd(bh,mc,dj,sl)values('+textBox1.Text+','+textBox2.Text+','+textBox3.Text+','+textBox4.Text+');SqlCommandcomm=newSqlCommand(strsql,conn);if(conn.State==ConnectionState.Closed){conn.Open();}if(Convert.ToInt32(comm.ExecuteNonQuery())0){MessageBox.Show(添加成功O(∩_∩)O~,提示,MessageBoxButtons.OK,MessageBoxIcon.Information);}else{MessageBox.Show(对不起,失败了::_::,提示,MessageBoxButtons.OK,MessageBoxIcon.Information);}conn.Close();}privatevoidbutton2_Click(objectsender,EventArgse){Form2f2=newForm2();f2.Show();this.Close();}}}进货信息查询模块进货信息查询模块是操作人员对进货业务的查询功能,可以通过查询条件,查找相应的信息。usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.
三七文档所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
本文标题:C#版进销库存商品管理系统
链接地址:https://www.777doc.com/doc-2030687 .html