版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
目录
第一章开发背景和环境..............................3
第二章程序功效分析及描述.......................3-4
第三章总体和具体设计............................5-11
第四章实现源码..................................12-27
第五章总结..........................................27
第一章
【开发背景】
伴随中国大小企业经营规模越来越大,企业需要随时更新产品进销信息,不停更改商品信
息,并对商品进行系统分析。所以企业商品进销管理系统需要引进新管理软件,实现企业庞
大进销商品管理规范化,从而方便企业进销商品决议。
【开发环境】
开发平台:MicrosoftVisualStudio
开发语言:VisualC#
后台数据库管理系统软件:MicrosoftSQLServer
运行平台:Windows7
第二章
【程序功效分析及描述】
在对企业销售管理系统有了深刻认识后,为了处理企业销售人员在商品管理和U常俏售中所
存在不足,让企业工作人员有愈加好、更方便使用计算机对企业相关数据进
行管理,以实现无纸化操作方面进行分析,企业系统应进行以下功效实现。
登录模块
登录模块依据用户角色不一样在登陆成功以后被给予对应操作仅限,对管理系统有对进货商
品录入、销售商品录入等部分操作权限。
登陆主窗体模块
进入主窗口时,用户能够依据自己交易选择不一样窗口进行操作。
商品进货信息模块
商品进货信息模块是对每笔进货业务进货编号、商品名称、进货单价和数量录入功效实现。
进货信息查询模块
进货信息查询模块是操作人员对进货业务查询功效,能够经过查询条件,查找对应信息。
商品销售信息模块
商品销售信息模块是对每笔销售业务销售编号、商品名称、销售单价和数量录入功效实现。
商品退货信息模块
商品退货信息模块是针对用户销售退回业务信息进行套询。
供给商信息模块
供给商信息模块是对商品供给商信息录入,方便查询。
退出提醒系统模块
当用户退出时,会提醒用户是否决定退出系统
意见反馈模块
意见反馈模块,是提供一个平台,将使用者使用意见反馈给系统程序员,对该系统改善和提
升。
注册登录新用户模块
注册新用户信息。
第三章
【总体和具体设计】
•企业进销库存销售管理管理系统功效结构图:
请输入留言
供给商电话
供给商名称
退货编号
销售数量
销售单价
商品名称
销售编号
查询条件
进货数量
进货单价
商品名称
【逻辑设计】
商品进货表:
字段名数据类型是否为主键描述
IDInt是
bhnchar否进货编号
meneheir是商品名称
djnchar是订货单价
slnchar是订货数量
供给商信息表:
字段名数据类型是否为主键描述
1DInt是
menchar否供货商名称
dhnchar否供货商电话
【窗体设计】
登录窗口:
主窗口:
商品进货信息窗口:
进货信息查询窗口:
»y迸货值里查询
查询条件:请输入编号[查询1]返回।
商品销售信息窗口:
W商品销售信息
销售编号:商品名称:
销售单价:销售数量:
确定返回
退货查询窗口:
供给商信息窗口:
退出系统提醒窗口:
意见反馈窗口:
叫意见反馈亘I豆I
请输入您的留言
注册信息窗口:
【源代码实现】
登录模块
登录模块依据用户角色不一样在登陆成功以后被给予对应操作双限,对管理系统有对进货商
品录入、销售商品录入等部分操作权限。
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModcl;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Windows.Forms;
usingSystem.Data.SqlClient:
namespaceesharp
(
publicpartialclassForml:Form
(
publicForml()
{
InitializeComponent();
)
privatevoidbuttcn2_Click(objectsender,EventArgse)
(
)
privatevoidbuttcnlClick(objectsender,Event.Argse)
SqlConnectioncon=new
SqIConncction(,/server=SDJS-0220WP;database=CS;IntegratedSecurity=truc,/);
con.Open();
SqlDataAdapterda=newSqIDataAdapter(*se1ect*fromlogwherename=,
+textBoxl.Text.TrimO+”'andpsw='"+textBox2.Text.,TrimO+con);
DataSetds=newDataSet();
da.Fi11(ds);
if(ds.Tabies[0].Rows.Count==0)
MessageBox.Show("用户名和密码有误.请重新输入","系统提醒”,
MessageBoxButtons.OK,MessageBoxIcon.Error);
return;
else
McssagcBox.Show("登陆成功,欢迎进入!","系统提醒”,
MessageBoxButtons.OK,MessageBoxIcon.Information);
Form2f2=newForm2();
f2.Show();
this.HidcO;
privatevoidlabel3Click(objectsender,EventArgse)
{
Form10flO=ncwForm10():
flO.Show():
this.IlideO;
}
privatevoidForml_Load(objectsender,EventArgse)
|
)
)
)
登陆主窗体模块
进入主窗口时,用户能够依据自己交易选择不一样窗口进行探车。
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Windows.Forms;
namespaceesharp
{
publicpartialclassForm2:Form
(
publicForm2()
|
InitializeComponent();
)
privatevoidlabelIClick(objectsender,EventArgse)
}
privatevoid基础档案BToolStripMenuItem_Click(objectsender,Event.Args
(
Form3f3=newForm3();
f3.ShowO;
this.Hide();
)
privatevoid进货管理CToolStripMenuItem一Click(objectsender,EventArgs
{
Form4f4=newForm4();
f4.ShowO;
this.HideO;
)
privatevoid销售管理SToolStripMenuItem_Click(objectsender,Event.Args
{
Form5f5=newFormB();
f5.ShowO;
this.HideO;
privatevoid库存管理DToolStripMenuItem_Click(objectsender,EventArgs
e)
f;orm6f6=newForm6();
f6.Show();
this.HideO;
)
privatevoid供给商信息ToolStripMenuItem_Click(ob.jectsender,Event?\rgs
{
Form8f8=newForm8();
f8.Show();
this.UideO;
)
privatevoid系统维护KToolStripMenuItemClick1(objectsender,Evenl.Args
{
I?orm6f6=newl'orm6();
f6.Show();
this.UideO;
)
privatevoidlabellClick1(objectsender,I-venI.Argse)
|
)
privatevoidbuttcnl_Click(objectsender,EventArgse)
Form9f9=neuForm9();
f9.ShowO;
this.HideO;
)
privatevoidbuttcn2_Click(objectsender,Evenl.Argsc)
{
Fonnlfl=newFermi();
fl.ShowO;
this.HideO;
1
privatevoid意见反馈ToolStripMenuItem_Click(objectsender,EventArgse)
{
Formllfll=newForml1();
f11.Show():
this.HideO;;
)
privatevoidForm2_Load(objectsender,EventArgse)
商品进货信息模块
商品进货信息模块是对每笔进货业务进货编号、商品名称、进货单价和数量录入功效实现。
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Windows.Forms;
usingSystem.Data.SqlCllent;
namespaceesharp
(
publicpartialclassForm3:Form
(
publicForm3()
{
InitializeComponentO;
)
privatevoidtextEox3_TextChanged(objectsender,EvenlArgse)
{
)
privatevoidEorm3_l-oad(objectsender,I'ventArgse)
{
)
privatevoidbuttcnl_Click(objectsender,I:veniAigse)
SqlConnectionconn=new
Sq1Connection(wserver=SDJS-0220WP;database=CS;IntegratedSecurity=true");
stringstrsql=*insertintodd(bh,me,dj,si)values('"+textBox1.Text
+"+textBox2.Text+"+textBox3.Text+"+textBox4.Text+
SqlCommandcoirm=newSqlCommand(strsql,conn);
if(conn.State==ConnectionState.Closed)
(
conn.Open();
}
if(Convert.Tclnt32(comm.ExecuteNonQuery()^>0)
(
MessageBcx.Show("添加成功0("提醒",
MessageBoxButtons.OK,MessageBoxIcon.Information);
)
else
(
MessageBox.Show("对不起,失败了::》提醒",
MessageBoxButtons.OK,MessageBoxIcon.Information);
)
conn.CloseO;
)
privatevoidbuttcn2Click(objectsender,EventArgse)
{
Form2f2=newForm2();
f2.Show();
this.CloseO;
}
)
进货信息查询模块
进货信息查询模块是操作人员对进货业务查询功效,能够经过查询条件,查找对应信息。
usingSystem:
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text:
usingSystem.Windows.Forms;
usingSystem.Data.Sq1Client;
namespacecsharp
(
publicpartialclassForm4:Form
(
publicForm4()
{
Initial!zeComponent();
)
publicstaticSqlConnectioncon=new
Sq1ConnectionC/server=SDJS-0220WP;database=CS;IntegratedSecurity=true,/);
publicstaticRichTextBoxrt=newRichTextBox9;
privatevoidbuttcn2_Click(objectsender,EventArgse)
Form2f2=newForm2();
f2.Show();
this.CloseO;
)
privatevoidtextEoxl_TextChanged(objectsender,EventArgse)
(
)
privatevoidbuttcnlClick(objectsender,EventArgse)
{
rt.Size=newSize(457,203);
rt.Location=newPoint(17,45);
rt.Font=newl:ont(lontFaniily.GenericSerif,13);
this.Controls.Add(rt);
con.OpenO;
stringsql=*select*fromdd
SqlComniundemd=newSqlCommand(sql,con);
SqlDataRcadcrsqldr=cmd.ExecuteReader();
rt.Text="序号编号名称单价数量\n”;
rt.Text+="---------------------------------------------------------\n";
〃把数据从sqldr统计集中一行一行读取出来并赋值给富文本框rt属性
text
if(sqldr.HasRows)
(
while(sqldr.ReadO)
rt.Text+=""+sqldr[*ID*]++sqldr[*bh*]+
"+sqldr[*mc/z]++sqldr[*dj*]++sqldr["sl"]+"\n";
}
sqldr.CloseO;
con.CloseO;
)
privatevoidForm4_Load(objectsender,EventArgse)
(
)
)
)
商品销售信息模块
商品销售信息模块是对每笔销售业务销售编号、商品名称、销售单价和数量录入功效实现。
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Windows.Forms;
usingSystem.Data.SqlClient;
namespaceesharp
publicpartialclassForm5:Form
publicForm5()
InitializeComponentO;
)
privatevoidbuttcn2Click(objectsender,EvenIArgse)
(
Form2f2=newForm2();
f2.Show();
this.CloseO;
)
privatevoidbuttcnlClick(objectsender,1'vent.Argse)
{
SqlConnectionconn=new
Sq1Connection(//server=SDJS-0220WP;database=CS;IntegratedSecurity=true");
stringstrsql=*insertintodd(bh,me,dj,si)values('"+textBoxl.Text
+"+textBox2.Text+"+textBox3.Text+"+textBox4.Text+
SqlCommandcoirm=newSqlCommand(strsql,conn);
if(conn.State==ConnectionState.Closed)
(
conn.Open();
}
if(Convert.Tclnt32(comm.ExecuteNonQuery()'>0)
(
MessageBox.Show("添加成功0(CC)0'","提醒",
MessageBoxButtons.OK,MessageBoxIcon.Information);
(
else
MessageBox.Show("对不起,失败了:"提醒",
MessageBoxButtons.OK,MessageBoxIcon.Information):
}
conn.CloseO;
)
privatevoidForm5_Load(objectsender,I'ventArgse)
{
)
)
)
商品退货信息模块
商品退货信息模块是针对用户销售退回业务信息进行查询。
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponenlModcl;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Windows.Forms;
usingSystem.Data.SqlClient;
namespaceesharp
publicpartialclassForm6:Form
publicForm6()
InitializeComponentO;
)
privatevoidbuttcn2_Click(objectsender,EventArgso)
{
Form2f2=newI'orm2();
f2.ShowO;
this.CloseO;
)
privatevoidbuttcnl_Click(objectsender,Event.Argse)
(
SqlConnectionconn=new
Sq1Connection(wserver=SDJS-0220WP;database=CS;IntegratedSecurity=true");
stringstrsql="deleteddwhere+textBoxl.Text+
SqlCommandcoirm=newSqlCommand(strsql,conn);
if(conn.State==ConnectionState.Closed)
(
conn.Open();
}
if(Convert.Tclnt32(comm.ExecuteNonQucry()>>0)
(
McssagcBox.Show("退货成功,信息已删除,请返回0(C_n)0~”,"提醒
”,McssagcBoxButtons.OK,VcssagcBoxIcon.Information);
}
else
MessageBox.Show("对不起,删除失败了::〉_<::请检测用户名",”提醒
”,MessageBoxBulions.OK,VcssageBoxIcon.Information);
}
conn.CloseO;
)
privatevoidbuttcn3_Click(objectsender,Event.Argse)
SqlConnectioncon=new
Sq1ConnectionC,server=SDJS-0220UrP;database=CS;IntegratedSecurity=true");
con.Open();
SqlDataAdapterda=newSq1DataAdapterCselect*fromddwhereID-'
+textBoxl.Text.Trim()+con);
DulaSclds=newDataSci();
da.Fill(ds);
if(ds.TablestO].Rows.Count==0)
MossageBox.Show("单号不存在.请歪新输入","系统提醒”,
McssagcBoxButtons.OK,MessageBoxIcon.Error);
return;
else
'hssagcUcx.Show(”能够退货,请继续!","系统提醒”,
MessageBoxButtons.OK,MessageBoxIcon.Information);
}}
privatevoidForm6_Load(objectsender,Evenl.Ar^sc)
)
)
)
供给商信息模块
供给商信息模块是对商品供给商信息录入,方便杳询。
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Windows.Forms;
usingSystem.Data.SqlClient;
namespaceesharp
{
publicpartialclassForm8:Form
(
publicForm8()
{
InitializeComponentO;
)
privatevoidmenuStriplItemClicked(objectsender,
ToolStripIiemClickcdEventArgsc)
)
privatevoidForintLoad(objectsender,EventArgse)
(
)
privatevoidbuttcn2_Click(objectsender,EventArgse)
(
Foi'm2f2=newForm2();
f2.Show();
this.CloseO;
)
privatevoidbuttcnl_Click(objectsender,EventArgse)
{
SqlConnectionconn=new
SqIConnection(*server=SDJS-0220WP;database=CS;IntegratedSecurity=true*):
stringstrsql="insertintogys(mc,dh)values('"+textBoxl.Text+
"+textBox2.Text+
SqlCommandcoirm=newSq1Command(strsqI,conn);
if(conn.State==Connectionstate.Closed)
(
conn.OpenO;
if(Convert.Tclnt32(comm.ExecuteNonQuery()^>0)
McssagcBox.Show("添加成功0S_C)0'","提醒",
McssageBoxButtons.OK,McssageBoxIcon.Information):
}
else
(
MessageBox.Show("对不起,失败了::","提醒",
MessageBoxButtons.OK,MessageBoxIcon.Information);
}
conn.CloseO;
}
)
}
退出系统提醒模块
当用户退出时,会提醒用户是否决定退出系统。
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Windows.Forms;
namespacecsharp
{
publicpartialclassForm9:Form
publicForm9()
Initial!zcComponcnt();
}
privatevoidbuttcn2Click(objectsender,I:ventArgse)
{
Form2f2=nowI:orm2();
f2.Show();
this.CloseO;
)
privatevoidbuttcnlClick(objectsender,EventArgse)
{
Application.Exit();
)
privatevoidForm9Load(objectsender,EventArgse)
{
)
}
}
意见反馈模块
意见反馈模块,是提供•个平台,将使用者使用意见反馈给系统程序员,对该系统改善和提
升。
usingSystem;
usingSystem.Collections.Generic;
usingSystem.ComponcniModcl;
usingSystem.Data;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Windows.Forms;
usingSystem.Data.SqlClient;
namespaceesharp
(
publicpartialclassForm11:Form
(
publicI'orml10
(
InitializeComponentO;
)
privatevoidlabell_Click(objectsender,EvcntArgse)
{
)
privatevoidbuttcnl_Click(objectsender,Evenl?\rgse)
{
Form2f2=newForm2();
f2.Show():
this.CloseO;
}
privatevoidbutton2_Click(objectsender,EvcntArgse)
SqlConnectionconn=new
SqlConnection(//server=SDJS-0220WP;database=CS;IntegratedSecurity=true*);
stringstrsql="insertintorep(rp)values('"+richTextBoxl+
SqlCommandcorrm=newSqlCommand(strsql,conn);
if(conn.State==ConnectionState.Closed)
(
conn.Open();
}
if(Convert.Tclnt32(comm.ExecuteNonQuery()^>0)
(
MessageBcx.Show("留言成功0(G_C)0'","提醒",
MessageBoxButtons.OK,MessageBoxIcon.Information);
}
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年仪表知识考核能力检测试卷及答案详解(夺冠)
- 2026年技能技术员能力检测试卷含完整答案详解(有一套)
- 2026年儿科学(中级)题库检测模拟题及答案详解(考点梳理)
- 2026年大学城市设计概论期末通关练习试题【夺分金卷】附答案详解
- 2026年水利工程质量检员网上继续教育考试综合练习附答案详解【完整版】
- 2026年注册土木工程师能力测试备考题附答案详解(满分必刷)
- 2026年输血技术全真模拟模拟题附参考答案详解【培优B卷】
- 2026年医疗保障学从业资格考试真题及参考答案详解(新)
- 用户画像分析与运营手册
- 八年级数学教案:三角形全等的判定1
- 新教材教科版四年级下册科学课时练(同步练习)(1-16课)
- 糖尿病患者的饮食指导与日常管理
- 工地材料出入库管理制度
- 第二篇第五章干燥设备课件
- 广东英语中考必背1600词
- 徽州文化知识竞赛《徽州名人家训》试题库(试题及答案)
- 认识商标运用商标保护商标
- 第4课+画外之意-中国传统花鸟画、+人物画+课件+课件-高中美术人教版(2019)美术鉴赏
- 装置安全规划与设计化工过程安全管理导则培训
- GB/T 17622-2008带电作业用绝缘手套
- 禁化武知识竞赛题库(含答案)
评论
0/150
提交评论