

下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、 目 錄第一章 開發(fā)背景和環(huán)境3第二章 程序功能分析及描述3-4第三章 總體和詳細(xì)設(shè)計(jì)5-11第四章 實(shí)現(xiàn)源碼12-27第五章 總結(jié) 27第一章【開發(fā)背景】 隨著我國(guó)大小企業(yè)經(jīng)營(yíng)規(guī)模越來越大,企業(yè)需要隨時(shí)更新產(chǎn)品的進(jìn)銷信息,不斷更改商品信息,并對(duì)商品進(jìn)行系統(tǒng)分析。因此企業(yè)商品的進(jìn)銷管理系統(tǒng)需要引進(jìn)新的管理軟件,實(shí)現(xiàn)企業(yè)龐大的進(jìn)銷商品的管理規(guī)范化,從而方便企業(yè)的進(jìn)銷商品的決策?!鹃_發(fā)環(huán)境】 開發(fā)平臺(tái):Microsoft Visual Studio 2010開發(fā)語言:Visual C# 2010后臺(tái)數(shù)據(jù)庫管理系統(tǒng)軟件:Microsoft SQL Server運(yùn)行平臺(tái):Windows 7 第二章 【
2、程序功能分析及描述】在對(duì)企業(yè)銷售管理系統(tǒng)有了深刻的認(rèn)識(shí)后,為了解決企業(yè)銷售人員在商品管理和日常銷售中所存在的不足,讓企業(yè)工作人員有更好的、更方便的使用計(jì)算機(jī)對(duì)企業(yè)有關(guān)數(shù)據(jù)進(jìn)行管理,以實(shí)現(xiàn)無紙化操作方面進(jìn)行分析,企業(yè)系統(tǒng)應(yīng)進(jìn)行以下功能的實(shí)現(xiàn)。登錄模塊登錄模塊根據(jù)用戶角色不同在登陸成功以后被賦予相應(yīng)的操作權(quán)限,對(duì)管理系統(tǒng)有對(duì)進(jìn)貨商品的錄入、銷售商品的錄入等一些操作權(quán)限。登陸主窗體模塊 進(jìn)入主窗口時(shí),用戶可以依據(jù)自己的交易選擇不同的窗口進(jìn)行操作。商品進(jìn)貨信息模塊 商品進(jìn)貨信息模塊是對(duì)每筆進(jìn)貨業(yè)務(wù)的進(jìn)貨編號(hào)、商品名稱、進(jìn)貨單價(jià)和數(shù)量的錄入功能的實(shí)現(xiàn)。進(jìn)貨信息查詢模塊進(jìn)貨信息查詢模塊是操作人員對(duì)進(jìn)貨業(yè)務(wù)
3、的查詢功能,可以通過查詢條件,查找相應(yīng)的信息。商品銷售信息模塊商品銷售信息模塊是對(duì)每筆銷售業(yè)務(wù)的銷售編號(hào)、商品名稱、銷售單價(jià)和數(shù)量的錄入功能的實(shí)現(xiàn)。商品退貨信息模塊商品退貨信息模塊是針對(duì)顧客銷售退回業(yè)務(wù)的信息進(jìn)行查詢。供應(yīng)商信息模塊 供應(yīng)商信息模塊是對(duì)商品供應(yīng)商信息的錄入,以便查詢。退出提醒系統(tǒng)模塊當(dāng)用戶退出時(shí),會(huì)提醒用戶是否決定退出系統(tǒng) 意見反饋模塊意見反饋模塊,是提供一個(gè)平臺(tái),將使用者的使用意見反饋給系統(tǒng)程序員,對(duì)該系統(tǒng)的改進(jìn)和提高。 注冊(cè)登錄新用戶模塊注冊(cè)新用戶信息。第三章【總體和詳細(xì)設(shè)計(jì)】 企業(yè)進(jìn)銷庫存銷售管理管理系統(tǒng)功能結(jié)構(gòu)圖:請(qǐng)輸入留言供應(yīng)商電話供應(yīng)商名稱退貨編號(hào)銷售數(shù)量銷售單價(jià)商
4、品名稱銷售編號(hào)查詢條件進(jìn)貨數(shù)量進(jìn)貨單價(jià)商品名稱【邏輯設(shè)計(jì)】商品進(jìn)貨表:字段名數(shù)據(jù)類型是否為主鍵描述IDInt是bhnchar否進(jìn)貨編號(hào)mcnchar是商品名稱djnchar是訂貨單價(jià)slnchar是訂貨數(shù)量供應(yīng)商信息表:字段名數(shù)據(jù)類型是否為主鍵描述IDInt是mcnchar否供貨商名稱dhnchar否供貨商電話【窗體設(shè)計(jì)】 登錄窗口: 主窗口:商品進(jìn)貨信息窗口:進(jìn)貨信息查詢窗口:商品銷售信息窗口:退貨查詢窗口:供應(yīng)商信息窗口:退出系統(tǒng)提醒窗口:意見反饋窗口:注冊(cè)信息窗口:【源代碼的實(shí)現(xiàn)】登錄模塊登錄模塊根據(jù)用戶角色不同在登陸成功以后被賦予相應(yīng)的操作權(quán)限,對(duì)管理系統(tǒng)有對(duì)進(jìn)貨商品的錄入、銷售商品的
5、錄入等一些操作權(quán)限。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace csharp public partial class Form1 : Form public Form1() InitializeComponent(
6、); private void button2_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e) SqlConnection con = new SqlConnection("server=SDJS-20140220WP;database=CS;Integrated Security =true"); con.Open(); SqlDataAdapter da = new SqlDataAdapter("select * from log
7、 where name='" + textBox1.Text.Trim() + "'and psw='" + textBox2.Text.Trim() + "'", con); DataSet ds = new DataSet(); da.Fill(ds); if (ds.Tables0.Rows.Count = 0) MessageBox.Show("用戶名和密碼有誤.請(qǐng)重新輸入", "系統(tǒng)提示", MessageBoxButtons.OK, MessageBoxIcon
8、.Error); return; else MessageBox.Show("登陸成功,歡迎進(jìn)入!", "系統(tǒng)提示", MessageBoxButtons.OK, MessageBoxIcon.Information); Form2 f2= new Form2(); f2.Show(); this.Hide(); private void label3_Click(object sender, EventArgs e) Form10 f10 =new Form10(); f10.Show(); this.Hide(); private void Form
9、1_Load(object sender, EventArgs e) 登陸主窗體模塊進(jìn)入主窗口時(shí),用戶可以依據(jù)自己的交易選擇不同的窗口進(jìn)行操作。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace csharp public partial class Form2 : Form p
10、ublic Form2() InitializeComponent(); private void label1_Click(object sender, EventArgs e) private void 基本檔案BToolStripMenuItem_Click(object sender, EventArgs e) Form3 f3 = new Form3(); f3.Show(); this.Hide(); private void 進(jìn)貨管理CToolStripMenuItem_Click(object sender, EventArgs e) Form4 f4 = new Form4(
11、); f4.Show(); this.Hide(); private void 銷售管理SToolStripMenuItem_Click(object sender, EventArgs e) Form5 f5= new Form5(); f5.Show(); this.Hide(); private void 庫存管理DToolStripMenuItem_Click(object sender, EventArgs e) Form6 f6 = new Form6(); f6.Show(); this.Hide(); private void 供應(yīng)商信息ToolStripMenuItem_Cl
12、ick(object sender, EventArgs e) Form8 f8 = new Form8(); f8.Show(); this.Hide(); private void 系統(tǒng)維護(hù)KToolStripMenuItem_Click_1(object sender, EventArgs e) Form6 f6 = new Form6(); f6.Show(); this.Hide(); private void label1_Click_1(object sender, EventArgs e) private void button1_Click(object sender, Ev
13、entArgs e) Form9 f9 = new Form9(); f9.Show(); this.Hide(); private void button2_Click(object sender, EventArgs e) Form1 f1=new Form1(); f1.Show(); this.Hide(); private void 意見反饋ToolStripMenuItem_Click(object sender, EventArgs e) Form11 f11 = new Form11(); f11.Show(); this.Hide(); ; private void Form
14、2_Load(object sender, EventArgs e) 商品進(jìn)貨信息模塊商品進(jìn)貨信息模塊是對(duì)每筆進(jìn)貨業(yè)務(wù)的進(jìn)貨編號(hào)、商品名稱、進(jìn)貨單價(jià)和數(shù)量的錄入功能的實(shí)現(xiàn)。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace
15、csharp public partial class Form3 : Form public Form3() InitializeComponent(); private void textBox3_TextChanged(object sender, EventArgs e) private void Form3_Load(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e) SqlConnection conn = new SqlConnection("server=
16、SDJS-20140220WP;database=CS;Integrated Security =true"); string strsql = "insert into dd(bh,mc,dj,sl) values ('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + "')" SqlCo
17、mmand comm = new SqlCommand(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("對(duì)不起,失敗了:>_<:
18、", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); conn.Close(); private void button2_Click(object sender, EventArgs e) Form2 f2 = new Form2(); f2.Show(); this.Close(); 進(jìn)貨信息查詢模塊進(jìn)貨信息查詢模塊是操作人員對(duì)進(jìn)貨業(yè)務(wù)的查詢功能,可以通過查詢條件,查找相應(yīng)的信息。using System;using System.Collections.Generic;using System
19、.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace csharp public partial class Form4 : Form public Form4() InitializeComponent(); public static SqlConnection con = new SqlConnection("server=
20、SDJS-20140220WP;database=CS;Integrated Security =true"); public static RichTextBox rt = new RichTextBox(); private void button2_Click(object sender, EventArgs e) Form2 f2 = new Form2(); f2.Show(); this.Close(); private void textBox1_TextChanged(object sender, EventArgs e) private void button1_C
21、lick(object sender, EventArgs e) rt.Size = new Size(457, 203); rt.Location = new Point(17, 45); rt.Font = new Font(FontFamily.GenericSerif, 13); this.Controls.Add(rt); con.Open(); string sql = "select * from dd " SqlCommand cmd = new SqlCommand(sql, con); SqlDataReader sqldr = cmd.ExecuteR
22、eader(); rt.Text = "序號(hào) 編號(hào) 名稱 單價(jià) 數(shù)量n" rt.Text += "-n" /把數(shù)據(jù)從sqldr記錄集中一行一行的讀取出來并賦值給富文本框 rt的屬性 text if (sqldr.HasRows) while (sqldr.Read() rt.Text += " " + sqldr"ID" + " " + sqldr"bh" + " " + sqldr"mc" + " " + sqld
23、r"dj" + " " + sqldr"sl" + "n" sqldr.Close(); con.Close(); private void Form4_Load(object sender, EventArgs e) 商品銷售信息模塊商品銷售信息模塊是對(duì)每筆銷售業(yè)務(wù)的銷售編號(hào)、商品名稱、銷售單價(jià)和數(shù)量的錄入功能的實(shí)現(xiàn)。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using S
24、ystem.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace csharp public partial class Form5 : Form public Form5() InitializeComponent(); private void button2_Click(object sender, EventArgs e) Form2 f2 = new Form2(); f2.Show(); this.Close(); pr
25、ivate void button1_Click(object sender, EventArgs e) SqlConnection conn = new SqlConnection("server=SDJS-20140220WP;database=CS;Integrated Security =true"); string strsql = "insert into dd(bh,mc,dj,sl) values ('" + textBox1.Text + "','" + textBox2.Text + &qu
26、ot;','" + textBox3.Text + "','" + textBox4.Text + "')" SqlCommand comm = new SqlCommand(strsql, conn); if (conn.State = ConnectionState.Closed) conn.Open(); if (Convert.ToInt32(comm.ExecuteNonQuery() > 0) MessageBox.Show("添加成功O(_)O", "提示
27、", MessageBoxButtons.OK, MessageBoxIcon.Information); else MessageBox.Show("對(duì)不起,失敗了:>_<: ", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); conn.Close(); private void Form5_Load(object sender, EventArgs e) 商品退貨信息模塊商品退貨信息模塊是針對(duì)顧客銷售退回業(yè)務(wù)的信息進(jìn)行查詢。using System;using
28、System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace csharp public partial class Form6 : Form public Form6() InitializeComponent(); private void button2_Click
29、(object sender, EventArgs e) Form2 f2 = new Form2(); f2.Show(); this.Close(); private void button1_Click(object sender, EventArgs e) SqlConnection conn = new SqlConnection("server=SDJS-20140220WP;database=CS;Integrated Security =true"); string strsql = "delete dd where ID=('"
30、 + textBox1.Text + "')" SqlCommand comm = new SqlCommand(strsql, conn); if (conn.State = ConnectionState.Closed) conn.Open(); if (Convert.ToInt32(comm.ExecuteNonQuery() > 0) MessageBox.Show("退貨成功,信息已刪除,請(qǐng)返回O(_)O", "提示", MessageBoxButtons.OK, MessageBoxIcon.Informa
31、tion); else MessageBox.Show("對(duì)不起,刪除失敗了:>_<:請(qǐng)檢測(cè)用戶名 ", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); conn.Close(); private void button3_Click(object sender, EventArgs e) SqlConnection con = new SqlConnection("server=SDJS-20140220WP;database=CS;Integrated Secur
32、ity =true"); con.Open(); SqlDataAdapter da = new SqlDataAdapter("select * from dd where ID='" + textBox1.Text.Trim() + "'", con); DataSet ds = new DataSet(); da.Fill(ds); if (ds.Tables0.Rows.Count = 0) MessageBox.Show("單號(hào)不存在.請(qǐng)重新輸入", "系統(tǒng)提示", Messag
33、eBoxButtons.OK, MessageBoxIcon.Error); return; else MessageBox.Show("可以退貨,請(qǐng)繼續(xù)!", "系統(tǒng)提示", MessageBoxButtons.OK, MessageBoxIcon.Information); private void Form6_Load(object sender, EventArgs e) 供應(yīng)商信息模塊供應(yīng)商信息模塊是對(duì)商品供應(yīng)商信息的錄入,以便查詢。using System;using System.Collections.Generic;using Syst
34、em.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace csharp public partial class Form8 : Form public Form8() InitializeComponent(); private void menuStrip1_ItemClicked(object sender, ToolStripIte
35、mClickedEventArgs e) private void Form8_Load(object sender, EventArgs e) private void button2_Click(object sender, EventArgs e) Form2 f2 = new Form2(); f2.Show(); this.Close(); private void button1_Click(object sender, EventArgs e) SqlConnection conn = new SqlConnection("server=SDJS-20140220WP;
36、database=CS;Integrated Security =true"); string strsql = "insert into gys(mc,dh) values ('" + textBox1.Text + "','" + textBox2.Text + "')" SqlCommand comm = new SqlCommand(strsql, conn); if (conn.State = ConnectionState.Closed) conn.Open(); if (Conv
37、ert.ToInt32(comm.ExecuteNonQuery() > 0) MessageBox.Show("添加成功O(_)O", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); else MessageBox.Show("對(duì)不起,失敗了:>_<: ", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); conn.Close(); 退出系統(tǒng)提醒模塊當(dāng)用戶退出時(shí),會(huì)
38、提醒用戶是否決定退出系統(tǒng)。 using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;namespace csharp public partial class Form9 : Form public Form9() InitializeComponent(); private void button2_
39、Click(object sender, EventArgs e) Form2 f2 = new Form2(); f2.Show(); this.Close(); private void button1_Click(object sender, EventArgs e) Application.Exit(); private void Form9_Load(object sender, EventArgs e) 意見反饋模塊意見反饋模塊,是提供一個(gè)平臺(tái),將使用者的使用意見反饋給系統(tǒng)程序員,對(duì)該系統(tǒng)的改進(jìn)和提高。using System;using System.Collections.Ge
40、neric;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Data.SqlClient;namespace csharp public partial class Form11 : Form public Form11() InitializeComponent(); private void label1_Click(object sender, Even
41、tArgs e) private void button1_Click(object sender, EventArgs e) Form2 f2 = new Form2(); f2.Show(); this.Close(); private void button2_Click(object sender, EventArgs e) SqlConnection conn = new SqlConnection("server=SDJS-20140220WP;database=CS;Integrated Security =true"); string strsql = &q
42、uot;insert into rep(rp) values ('" + richTextBox1 + "')" SqlCommand comm = new SqlCommand(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("對(duì)不起,失敗了,請(qǐng)稍后重試!
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 生態(tài)修復(fù)工程2025年生態(tài)系統(tǒng)服務(wù)功能評(píng)估與生態(tài)環(huán)境監(jiān)測(cè)技術(shù)報(bào)告
- 硫磺制酸生產(chǎn)線項(xiàng)目運(yùn)營(yíng)管理手冊(cè)
- 2025年注冊(cè)測(cè)繪師考試測(cè)繪地理信息工程能源規(guī)劃與設(shè)計(jì)試卷
- 2025年招標(biāo)師職業(yè)資格考試招標(biāo)投標(biāo)招標(biāo)投標(biāo)代理機(jī)構(gòu)合同履行程序試卷
- 2025年注冊(cè)計(jì)量師考試力學(xué)與測(cè)量學(xué)試題匯編
- 2025年足部按摩師中級(jí)考試(足部按摩行業(yè)聯(lián)盟)試卷
- 2025年智能樓宇管理師考試試卷:中級(jí)水平測(cè)試
- 2025年中式烹調(diào)師(高級(jí))中式烹飪理論高分試題
- 2025年招標(biāo)師考試建筑工程施工組織設(shè)計(jì)科目試卷
- 2025年中式面點(diǎn)師(高級(jí))考試試卷:面點(diǎn)制作技藝與行業(yè)挑戰(zhàn)
- 村級(jí)財(cái)務(wù)基礎(chǔ)培訓(xùn)
- 快遞柜維修培訓(xùn)
- 2025屆山西中考語文真題試卷【含答案】
- 語言接觸與混合語現(xiàn)象-洞察及研究
- Q-GDW11628-2016新能源消納能力計(jì)算導(dǎo)則
- 維修工崗位考試題及答案
- 2026高考地理《地理原理》復(fù)習(xí)課件
- 關(guān)于新時(shí)代遼寧省國(guó)家大學(xué)科技園建設(shè)發(fā)展思路及模式的建議
- 2025叉車?yán)碚摽荚囋囶}及答案
- 2025年廣西公需科目答案03
- 礦井托管運(yùn)營(yíng)方案(3篇)
評(píng)論
0/150
提交評(píng)論