




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、目 錄第一章 開發(fā)背景和環(huán)境3第二章 程序功能分析及描述3-4第三章 總體和詳細(xì)設(shè)計5-11第四章 實(shí)現(xiàn)源碼12-27第五章 總結(jié) 27第一章【開發(fā)背景】 隨著我國大小企業(yè)經(jīng)營規(guī)模越來越大,企業(yè)需要隨時更新產(chǎn)品的進(jìn)銷信息,不斷更改商品信息,并對商品進(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ā)平臺:Microsoft Visual Studio 2010開發(fā)語言:Visual C# 2010后臺數(shù)據(jù)庫管理系統(tǒng)軟件:Microsoft SQL Server運(yùn)行平臺:Windows 7 第二章 【程
2、序功能分析及描述】在對企業(yè)銷售管理系統(tǒng)有了深刻的認(rèn)識后,為了解決企業(yè)銷售人員在商品管理和日常銷售中所存在的不足,讓企業(yè)工作人員有更好的、更方便的使用計算機(jī)對企業(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)限,對管理系統(tǒng)有對進(jìn)貨商品的錄入、銷售商品的錄入等一些操作權(quán)限。登陸主窗體模塊 進(jìn)入主窗口時,用戶可以依據(jù)自己的交易選擇不同的窗口進(jìn)行操作。商品進(jìn)貨信息模塊 商品進(jìn)貨信息模塊是對每筆進(jìn)貨業(yè)務(wù)的進(jìn)貨編號、商品名稱、進(jìn)貨單價和數(shù)量的錄入功能的實(shí)現(xiàn)。進(jìn)貨信息查詢模塊進(jìn)貨信息查詢模塊是操作人員對進(jìn)貨業(yè)務(wù)的
3、查詢功能,可以通過查詢條件,查找相應(yīng)的信息。商品銷售信息模塊商品銷售信息模塊是對每筆銷售業(yè)務(wù)的銷售編號、商品名稱、銷售單價和數(shù)量的錄入功能的實(shí)現(xiàn)。商品退貨信息模塊商品退貨信息模塊是針對顧客銷售退回業(yè)務(wù)的信息進(jìn)行查詢。供應(yīng)商信息模塊 供應(yīng)商信息模塊是對商品供應(yīng)商信息的錄入,以便查詢。退出提醒系統(tǒng)模塊當(dāng)用戶退出時,會提醒用戶是否決定退出系統(tǒng) 意見反饋模塊意見反饋模塊,是提供一個平臺,將使用者的使用意見反饋給系統(tǒng)程序員,對該系統(tǒng)的改進(jìn)和提高。 注冊登錄新用戶模塊注冊新用戶信息。第三章【總體和詳細(xì)設(shè)計】 企業(yè)進(jìn)銷庫存銷售管理管理系統(tǒng)功能結(jié)構(gòu)圖:請輸入留言供應(yīng)商電話供應(yīng)商名稱退貨編號銷售數(shù)量銷售單價商品
4、名稱銷售編號查詢條件進(jìn)貨數(shù)量進(jìn)貨單價商品名稱【邏輯設(shè)計】商品進(jìn)貨表:字段名數(shù)據(jù)類型是否為主鍵描述IDInt是bhnchar否進(jìn)貨編號mcnchar是商品名稱djnchar是訂貨單價slnchar是訂貨數(shù)量供應(yīng)商信息表:字段名數(shù)據(jù)類型是否為主鍵描述IDInt是mcnchar否供貨商名稱dhnchar否供貨商電話【窗體設(shè)計】 登錄窗口: 主窗口:商品進(jìn)貨信息窗口:進(jìn)貨信息查詢窗口:商品銷售信息窗口:退貨查詢窗口:供應(yīng)商信息窗口:退出系統(tǒng)提醒窗口:意見反饋窗口:注冊信息窗口:【源代碼的實(shí)現(xiàn)】登錄模塊登錄模塊根據(jù)用戶角色不同在登陸成功以后被賦予相應(yīng)的操作權(quán)限,對管理系統(tǒng)有對進(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("用戶名和密碼有誤.請重新輸入", "系統(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 Form1
9、_Load(object sender, EventArgs e) 登陸主窗體模塊進(jìn)入主窗口時,用戶可以依據(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 pu
10、blic 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_Cli
12、ck(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, Eve
13、ntArgs 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 Form2
14、_Load(object sender, EventArgs e) 商品進(jìn)貨信息模塊商品進(jìn)貨信息模塊是對每筆進(jìn)貨業(yè)務(wù)的進(jìn)貨編號、商品名稱、進(jìn)貨單價和數(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 c
15、sharp 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=S
16、DJS-20140220WP;database=CS;Integrated Security =true"); string strsql = "insert into dd(bh,mc,dj,sl) values ('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + "')" SqlCom
17、mand 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("對不起,失敗了:>_<: &
18、quot;, "提示", 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)貨信息查詢模塊是操作人員對進(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=S
20、DJS-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_Cl
21、ick(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.ExecuteRe
22、ader(); rt.Text = "序號 編號 名稱 單價 數(shù)量n" rt.Text += "-n" /把數(shù)據(jù)從sqldr記錄集中一行一行的讀取出來并賦值給富文本框 rt的屬性 text if (sqldr.HasRows) while (sqldr.Read() rt.Text += " " + sqldr"ID" + " " + sqldr"bh" + " " + sqldr"mc" + " " + sqldr
23、"dj" + " " + sqldr"sl" + "n" sqldr.Close(); con.Close(); private void Form4_Load(object sender, EventArgs e) 商品銷售信息模塊商品銷售信息模塊是對每筆銷售業(yè)務(wù)的銷售編號、商品名稱、銷售單價和數(shù)量的錄入功能的實(shí)現(xiàn)。using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using Sy
24、stem.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(); pri
25、vate 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 + &quo
26、t;','" + 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、quot;, MessageBoxButtons.OK, MessageBoxIcon.Information); else MessageBox.Show("對不起,失敗了:>_<: ", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); conn.Close(); private void Form5_Load(object sender, EventArgs e) 商品退貨信息模塊商品退貨信息模塊是針對顧客銷售退回業(yè)務(wù)的信息進(jìn)行查詢。using System;using S
28、ystem.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("退貨成功,信息已刪除,請返回O(_)O", "提示", MessageBoxButtons.OK, MessageBoxIcon.Informat
31、ion); else MessageBox.Show("對不起,刪除失敗了:>_<:請檢測用戶名 ", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); conn.Close(); private void button3_Click(object sender, EventArgs e) SqlConnection con = new SqlConnection("server=SDJS-20140220WP;database=CS;Integrated Securi
32、ty =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("單號不存在.請重新輸入", "系統(tǒng)提示", Message
33、BoxButtons.OK, MessageBoxIcon.Error); return; else MessageBox.Show("可以退貨,請繼續(xù)!", "系統(tǒng)提示", MessageBoxButtons.OK, MessageBoxIcon.Information); private void Form6_Load(object sender, EventArgs e) 供應(yīng)商信息模塊供應(yīng)商信息模塊是對商品供應(yīng)商信息的錄入,以便查詢。using System;using System.Collections.Generic;using Syste
34、m.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, ToolStripItem
35、ClickedEventArgs 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;d
36、atabase=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 (Conve
37、rt.ToInt32(comm.ExecuteNonQuery() > 0) MessageBox.Show("添加成功O(_)O", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); else MessageBox.Show("對不起,失敗了:>_<: ", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); conn.Close(); 退出系統(tǒng)提醒模塊當(dāng)用戶退出時,會提
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_C
39、lick(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) 意見反饋模塊意見反饋模塊,是提供一個平臺,將使用者的使用意見反饋給系統(tǒng)程序員,對該系統(tǒng)的改進(jìn)和提高。using System;using System.Collections.Gen
40、eric;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, Event
41、Args 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 = &qu
42、ot;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("對不起,失敗了,請稍后重試!
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 設(shè)定明確的工作優(yōu)先級計劃
- 財務(wù)分析在企業(yè)評估中的應(yīng)用計劃
- 教學(xué)創(chuàng)新與成果分享機(jī)制計劃
- 防止職業(yè)倦怠的小技巧計劃
- 醫(yī)學(xué)影像科醫(yī)生工作計劃
- 建立員工反饋與建議機(jī)制計劃
- 2025年電動晾衣機(jī)項目合作計劃書
- 景區(qū)承包合同
- 珠寶定制服務(wù)特殊條款協(xié)議
- 農(nóng)產(chǎn)品電商項目開發(fā)合作框架協(xié)議
- JT-T-775-2016大跨度斜拉橋平行鋼絲拉索
- 裝飾工程室內(nèi)拆除專項施工方案
- 員工服務(wù)意識提升提高服務(wù)意識培訓(xùn)課件
- 2024年河北省石家莊市裕華區(qū)中考二模語文試題
- 客服考試題目
- 2024年公務(wù)員(國考)之行政職業(yè)能力測驗(yàn)真題附參考答案(完整版)
- 2024年高考改革新方案
- 社會主義發(fā)展史智慧樹知到期末考試答案2024年
- 人教版五年級上冊小數(shù)除法豎式計算練習(xí)練習(xí)300題及答案
- 模塊1鐵道線路養(yǎng)護(hù)與維修認(rèn)知《鐵道線路養(yǎng)護(hù)與維修》教學(xué)課件
- 城市軌道交通列車網(wǎng)絡(luò)控制及應(yīng)用 課件 項目6、7 列車網(wǎng)絡(luò)控制管理系統(tǒng)、城軌列車網(wǎng)絡(luò)控制及應(yīng)用
評論
0/150
提交評論