C#版进销库存商品管理系统Word下载.docx
- 文档编号:17963749
- 上传时间:2022-12-12
- 格式:DOCX
- 页数:23
- 大小:21.20KB
C#版进销库存商品管理系统Word下载.docx
《C#版进销库存商品管理系统Word下载.docx》由会员分享,可在线阅读,更多相关《C#版进销库存商品管理系统Word下载.docx(23页珍藏版)》请在冰豆网上搜索。
供应商信息模块是对商品供应商信息的录入,以便查询。
退出提醒系统模块
当用户退出时,会提醒用户是否决定退出系统
意见反馈模块
意见反馈模块,是提供一个平台,将使用者的使用意见反馈给系统程序员,对该系统的改进和提高。
注册登录新用户模块
注册新用户信息。
第三章
【总体和详细设计】
•企业进销库存销售管理管理系统功能结构图:
请输入留言
供应商电话
供应商名称
退货编号
销售数量
销售单价
商品名称
销售编号
查询条件
进货数量
进货单价
【逻辑设计】
商品进货表:
字段名
数据类型
是否为主键
描述
ID
Int
是
bh
nchar
否
进货编号
mc
dj
订货单价
sl
订货数量
供应商信息表:
供货商名称
dh
供货商电话
【窗体设计】
登录窗口:
主窗口:
商品进货信息窗口:
进货信息查询窗口:
商品销售信息窗口:
退货查询窗口:
供应商信息窗口:
退出系统提醒窗口:
意见反馈窗口:
注册信息窗口:
【源代码的实现】
登录模块根据用户角色不同在登陆成功以后被赋予相应的操作权限,对管理系统有对进货商品的录入、销售商品的录入等一些操作权限。
usingSystem;
usingSystem。
Collections.Generic;
ComponentModel;
Data;
usingSystem.Drawing;
Linq;
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("
登陆成功,欢迎进入!
,”系统提示"
OK,MessageBoxIcon.Information);
Form2f2=newForm2();
f2.Show();
this.Hide();
privatevoidlabel3_Click(objectsender,EventArgse)
Form10f10=newForm10();
f10.Show();
privatevoidForm1_Load(objectsender,EventArgse)
}
进入主窗口时,用户可以依据自己的交易选择不同的窗口进行操作.
usingSystem.Collections.Generic;
ComponentModel;
Data;
Drawing;
usingSystem.Linq;
Windows。
Forms;
{
publicpartialclassForm2:
publicForm2()
privatevoidlabel1_Click(objectsender,EventArgse)
privatevoid基本档案BToolStripMenuItem_Click(objectsender,EventArgse)
Form3f3=newForm3();
f3。
Show();
privatevoid进货管理CToolStripMenuItem_Click(objectsender,EventArgse)
Form4f4=newForm4();
f4.Show();
this。
Hide();
privatevoid销售管理SToolStripMenuItem_Click(objectsender,EventArgse)
Form5f5=newForm5();
f5.Show();
privatevoid库存管理DToolStripMenuItem_Click(objectsender,EventArgse)
Form6f6=newForm6();
f6。
Hide();
privatevoid供应商信息ToolStripMenuItem_Click(objectsender,EventArgse)
Form8f8=newForm8();
f8.Show();
privatevoid系统维护KToolStripMenuItem_Click_1(objectsender,EventArgse)
f6.Show();
privatevoidlabel1_Click_1(objectsender,EventArgse)
Form9f9=newForm9();
f9。
Show();
privatevoidbutton2_Click(objectsender,EventArgse)
Form1f1=newForm1();
f1.Show();
privatevoid意见反馈ToolStripMenuItem_Click(objectsender,EventArgse)
Form11f11=newForm11();
f11.Show();
;
privatevoidForm2_Load(objectsender,EventArgse)
商品进货信息模块是对每笔进货业务的进货编号、商品名称、进货单价和数量的录入功能的实现.
usingSystem.Collections。
Generic;
usingSystem.Drawing;
usingSystem.Text;
Windows.Forms;
usingSystem.Data.SqlClient;
publicpartialclassForm3:
publicForm3()
InitializeComponent();
privatevoidtextBox3_TextChanged(objectsender,EventArgse)
privatevoidForm3_Load(objectsender,EventArgse)
SqlConnectionconn=newSqlConnection("
database=CS;
IntegratedSecurity=true"
);
stringstrsql=”insertintodd(bh,mc,dj,sl)values(’"
+textBox1.Text+”’,’"
+textBox2.Text+”'
,’”+textBox3。
Text+"
’,’"
+textBox4。
’)”;
SqlCommandcomm=newSqlCommand(strsql,conn);
if(conn。
State==ConnectionState.Closed)
conn。
Open();
if(Convert.ToInt32(comm.ExecuteNonQuery())>
0)
Show(”添加成功O(∩_∩)O~”,"
提示"
,MessageBoxButtons.OK,MessageBoxIcon。
Information);
Show(”对不起,失败了:
:
〉_<
:
”,”提示”,MessageBoxButtons。
OK,MessageBoxIcon.Information);
Close();
Form2f2=newForm2();
f2。
进货信息查询模块是操作人员对进货业务的查询功能,可以通过查询条件,查找相应的信息。
usingSystem;
Collections.Generic;
Text;
SqlClient;
publicpartialclassForm4:
publicForm4()
publicstaticSqlConnectioncon=newSqlConnection(”server=SDJS-20140220WP;
);
publicstaticRichTextBoxrt=newRichTextBox();
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);
stringsql="
select*fromdd"
;
SqlCommandcmd=newSqlCommand(sql,con);
SqlDataReadersqldr=cmd.ExecuteReader();
rt。
Text="
序号编号名称单价数量\n”;
Text+=”——-——---—-—-—-———--—--—--——--———--————-\n"
;
//把数据从sqldr记录集中一行一行的读取出来并赋值给富文本框rt的属性text
if(sqldr。
HasRows)
while(sqldr。
Read())
Text+="
"
+sqldr["
ID”]+"
bh"
]+””+sqldr["
mc"
]+”"
+sqldr["
dj”]+”"
sl"
]+”\n”;
sqldr。
Close();
con.Close();
privatevoidForm4_Load(objectsender,EventArgse)
Generic;
usingSystem.ComponentModel;
usingSystem.Text;
usingSystem.Windows。
Forms;
usingSystem.Data.SqlClient;
publicpartialclassForm5:
publicForm5()
Form2f2=newForm2();
SqlConnectionconn=newSqlConnection(”server=SDJS-20140220WP;
stringstrsql="
insertintodd(bh,mc,dj,sl)values('
”+textBox1.Text+”'
'
”+textBox2.Text+"
+textBox3。
Text+”'
’"
’)"
SqlCommandcomm=newSqlCommand(strsql,conn);
if(conn.State==ConnectionState.Closed)
if(Convert.ToInt32(comm。
ExecuteNonQuery())>
添加成功O(∩_∩)O~”,”提示”,MessageBoxButtons.OK,MessageBoxIcon.Information);
MessageBox.Show(”对不起,失败了:
>
_<
”,"
提示”,MessageBoxButtons.OK,MessageBoxIcon。
conn.Close();
privatevoidForm5_Load(objectsender,EventArgse)
Collections。
Drawing;
usingSystem.Linq;
publicpartialclassForm6:
publicForm6()
server=SDJS—20140220WP;
stringstrsql=”deleteddwhereID=(’"
+textBox1.Text+”’)"
if(conn.State==ConnectionState。
Closed)
conn.Open();
if(Convert。
ToInt32(comm.ExecuteNonQuery())〉0)
Show(”退货成功,信息已删除,请返回O(∩_∩)O~"
,"
提示”,MessageBoxButtons。
OK,MessageBoxIcon.Information);
对不起,删除失败了:
请检测用户名”,"
MessageBoxButtons.OK,MessageBoxIcon。
conn.Close();
privatevoidbutton3_Click(objectsender,EventArgse)
IntegratedSecurity=true”);
Ope
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- C# 版进销 库存商品 管理 系统
![提示](https://static.bdocx.com/images/bang_tan.gif)