C#版进销库存商品管理系统.docx

上传人:b****6 文档编号:7205264 上传时间:2023-05-11 格式:DOCX 页数:26 大小:681.04KB
下载 相关 举报
C#版进销库存商品管理系统.docx_第1页
第1页 / 共26页
C#版进销库存商品管理系统.docx_第2页
第2页 / 共26页
C#版进销库存商品管理系统.docx_第3页
第3页 / 共26页
C#版进销库存商品管理系统.docx_第4页
第4页 / 共26页
C#版进销库存商品管理系统.docx_第5页
第5页 / 共26页
C#版进销库存商品管理系统.docx_第6页
第6页 / 共26页
C#版进销库存商品管理系统.docx_第7页
第7页 / 共26页
C#版进销库存商品管理系统.docx_第8页
第8页 / 共26页
C#版进销库存商品管理系统.docx_第9页
第9页 / 共26页
C#版进销库存商品管理系统.docx_第10页
第10页 / 共26页
C#版进销库存商品管理系统.docx_第11页
第11页 / 共26页
C#版进销库存商品管理系统.docx_第12页
第12页 / 共26页
C#版进销库存商品管理系统.docx_第13页
第13页 / 共26页
C#版进销库存商品管理系统.docx_第14页
第14页 / 共26页
C#版进销库存商品管理系统.docx_第15页
第15页 / 共26页
C#版进销库存商品管理系统.docx_第16页
第16页 / 共26页
C#版进销库存商品管理系统.docx_第17页
第17页 / 共26页
C#版进销库存商品管理系统.docx_第18页
第18页 / 共26页
C#版进销库存商品管理系统.docx_第19页
第19页 / 共26页
C#版进销库存商品管理系统.docx_第20页
第20页 / 共26页
亲,该文档总共26页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

C#版进销库存商品管理系统.docx

《C#版进销库存商品管理系统.docx》由会员分享,可在线阅读,更多相关《C#版进销库存商品管理系统.docx(26页珍藏版)》请在冰点文库上搜索。

C#版进销库存商品管理系统.docx

C#版进销库存商品管理系统

 

第一章开发背景和环境………………………………………3

第二章程序功能分析及描述………………………………3--4

第三章总体和详细设计……………………………………5--11

第四章实现源码……………………………………………12--27

第五章总结……………………………………………………27

 

第一章

【开发背景】

随着我国大小企业经营规模越来越大,企业需要随时更新产品的进销信息,不断更改商品信息,并对商品进行系统分析。

因此企业商品的进销管理系统需要引进新的管理软件,实现企业庞大的进销商品的管理规范化,从而方便企业的进销商品的决策。

 

【开发环境】

开发平台:

MicrosoftVisualStudio2010

开发语言:

VisualC#2010

后台数据库管理系统软件:

MicrosoftSQLServer

运行平台:

Windows7

 

第二章

【程序功能分析及描述】

在对企业销售管理系统有了深刻的认识后,为了解决企业销售人员在商品管理和日常销售中所存在的不足,让企业工作人员有更好的、更方便的使用计算机对企业有关数据进行管理,以实现无纸化操作方面进行分析,企业系统应进行以下功能的实现。

 

登录模块

登录模块根据用户角色不同在登陆成功以后被赋予相应的操作权限,对管理系统有对进货商品的录入、销售商品的录入等一些操作权限。

登陆主窗体模块

进入主窗口时,用户可以依据自己的交易选择不同的窗口进行操作。

商品进货信息模块

商品进货信息模块是对每笔进货业务的进货编号、商品名称、进货单价和数量的录入功能的实现。

进货信息查询模块

进货信息查询模块是操作人员对进货业务的查询功能,可以通过查询条件,查找相应的信息。

商品销售信息模块

商品销售信息模块是对每笔销售业务的销售编号、商品名称、销售单价和数量的录入功能的实现。

商品退货信息模块

商品退货信息模块是针对顾客销售退回业务的信息进行查询。

供应商信息模块

供应商信息模块是对商品供应商信息的录入,以便查询。

退出提醒系统模块

当用户退出时,会提醒用户是否决定退出系统

意见反馈模块

意见反馈模块,是提供一个平台,将使用者的使用意见反馈给系统程序员,对该系统的改进和提高。

注册登录新用户模块

注册新用户信息。

第三章

 

【总体和详细设计】

•企业进销库存销售管理管理系统功能结构图:

请输入留言

供应商电话

供应商名称

退货编号

销售数量

销售单价

商品名称

销售编号

查询条件

进货数量

进货单价

商品名称

 

【逻辑设计】

商品进货表:

字段名

数据类型

是否为主键

描述

ID

Int

bh

nchar

进货编号

mc

nchar

商品名称

dj

nchar

订货单价

sl

nchar

订货数量

供应商信息表:

字段名

数据类型

是否为主键

描述

ID

Int

mc

nchar

供货商名称

dh

nchar

供货商电话

【窗体设计】

登录窗口:

主窗口:

 

商品进货信息窗口:

 

进货信息查询窗口:

 

商品销售信息窗口:

 

退货查询窗口:

 

供应商信息窗口:

 

退出系统提醒窗口:

 

意见反馈窗口:

 

注册信息窗口:

 

【源代码的实现】

登录模块

登录模块根据用户角色不同在登陆成功以后被赋予相应的操作权限,对管理系统有对进货商品的录入、销售商品的录入等一些操作权限。

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.Forms;

usingSystem.Data.SqlClient;

 

namespacecsharp

{

publicpartialclassForm4:

Form

{

publicForm4()

{

InitializeComponent();

}

publicstaticSqlConnectioncon=newSqlConnection("server=SDJS-20140220WP;database=CS;IntegratedSecurity=true");

publicstaticRichTextBoxrt=newRichTextBox();

privatevoidbutton2_Click(objectsender,EventArgse)

{

Form2f2=newForm2();

f2.Show();

this.Close();

}

privatevoidtextBox1_TextChanged(objectsender,EventArgse)

{

}

privatevoidbutton1_Click(objectsender,EventArgse)

{

rt.Size=newSize(457,203);

rt.Location=newPoint(17,45);

rt.Font=newFont(FontFamily.GenericSerif,13);

this.Controls.Add(rt);

con.Open();

stringsql="select*fromdd";

SqlCommandcmd=newSqlCommand(sql,con);

SqlDataReadersqldr=cmd.ExecuteReader();

rt.Text="序号编号名称单价数量\n";

rt.Text+="---------------------------------------\n";

//把数据从sqldr记录集中一行一行的读取出来并赋值给富文本框rt的属性text

if(sqldr.HasRows)

{

while(sqldr.Read())

rt.Text+=""+sqldr["ID"]+""+sqldr["bh"]+""+sqldr["mc"]+""+sqldr["dj"]+""+sqldr["sl"]+"\n";

}

sqldr.Close();

con.Close();

}

privatevoidForm4_Load(objectsender,EventArgse)

{

}

}

}

商品销售信息模块

商品销售信息模块是对每笔销售业务的销售编号、商品名称、销售单价和数量的录入功能的实现。

usingSystem;

usingSystem.Collections.Generic;

usingSystem.ComponentModel;

usingSystem.Data;

usingSystem.Drawing;

usingSystem.Linq;

usingSystem.Text;

usingSystem.Windows.Forms;

usingSystem.Data.SqlClient;

namespacecsharp

{

publicpartialclassForm5:

Form

{

publicForm5()

{

InitializeComponent();

}

privatevoidbutton2_Click(objectsender,EventArgse)

{

Form2f2=newForm2();

f2.Show();

this.Close();

}

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();

}

privatevoidForm5_Load(objectsender,EventArgse)

{

}

}

}

商品退货信息模块

商品退货信息模块是针对顾客销售退回业务的信息进行查询。

usingSystem;

usingSystem.Collections.Generic;

usingSystem.ComponentModel;

usingSystem.Data;

usingSystem.Drawing;

usingSystem.Linq;

usingSystem.Text;

usingSystem.Windows.Forms;

usingSystem.Data.SqlClient;

namespacecsharp

{

publicpartialclassForm6:

Form

{

publicForm6()

{

InitializeComponent();

}

privatevoidbutton2_Click(objectsender,EventArgse)

{

Form2f2=newForm2();

f2.Show();

this.Close();

}

privatevoidbutton1_Click(objectsender,EventArgse)

{

SqlConnectionconn=newSqlConnection("server=SDJS-20140220WP;database=CS;IntegratedSecurity=true");

stringstrsql="deleteddwhereID=('"+textBox1.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();

}

privatevoidbutton3_Click(objectsender,EventArgse)

{

SqlConnectioncon=

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > IT计算机 > 电脑基础知识

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2