freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

小型汽車銷售管理及系統(tǒng)設(shè)計(jì)管理知識(shí)分析-閱讀頁

2025-07-13 18:19本頁面
  

【正文】 rue。 = true。 = true。 = true。//銷售管理 = true。 = true。//倉庫管理 = true。 = true。//銷售匯總 } if (() == 收銀員) { = true。 = false。 = false。//入庫管理 = true。//倉庫管理 = true。//入庫匯總 = true。//倉庫信息顯示 = true。//倉庫查詢 = true。//倉庫修改 = true。 = true。 = true。 = true。 = true。 = true。 = true。圖43 銷售信息添加界面設(shè)計(jì)銷售信息添加代碼:private void butAdd_Click(object sender, EventArgs e) { DialogResult res = (您確認(rèn)要添加嗎?添加后您后將不能修改信息,故請(qǐng)確保添加數(shù)據(jù)的正確性!, 添加項(xiàng)目, , )。//關(guān)閉數(shù)據(jù)源 //首先要查詢一下在倉庫表中有沒有相同名稱和相同倉庫的汽車,如果有就只改變它的數(shù)量,如果沒有就添加一條新的記錄 string sql1 = select * from KuCunBill where 汽車名稱=39。and 倉庫名稱=39。 SqlCommand cmd1 = new SqlCommand(sql1, )。 SqlDataReader reader1 = ()。//獲取數(shù)據(jù)庫原來的數(shù)量 ()。//現(xiàn)在要減少的數(shù)量 int sum = s r。{1}39。{2}39。 SqlCommand cmd2 = new SqlCommand(sql2, )。 int RowCount = ()。//關(guān)閉數(shù)據(jù)源 //下面是將下面的數(shù)據(jù)添加到數(shù)據(jù)庫中 //向數(shù)據(jù)庫中添加語句 string sql = (insert into XiaoShouBill(汽車名稱,倉庫名稱,銷售單價(jià),數(shù)量,日期,經(jīng)手人,備注) values(39。,39。,{2},{3},39。,39。,39。), (), (), (()), (()), (), (), ())。 ()。 if (RowCount1 0) { (銷售添加成功!)。 Date()。 } } else { ()。{0}39。{1}39。{4}39。{5}39。 SqlCommand cmd = new SqlCommand(sql, )。 int RowCount1 = ()。 ()。 } else { (銷售添加成功,但在倉庫中沒有相關(guān)的車輛信息!)。 } }銷售管理退貨、刪除界面:該頁面主要功能就是實(shí)現(xiàn)銷售管理中的退貨和刪除功能,同樣的在進(jìn)行相應(yīng)的操作時(shí)首先用到where查詢語句進(jìn)行查詢,來判斷數(shù)據(jù)庫中有沒相應(yīng)的記錄,如果有就只進(jìn)行數(shù)量上的添加,如果沒有就進(jìn)行新數(shù)據(jù)的添加,對(duì)應(yīng)的原來的銷售記錄中的數(shù)據(jù)就相應(yīng)的進(jìn)行了減少。圖44銷售管理退貨、刪除界面設(shè)計(jì)銷售管理退貨、刪除界面部分代碼:確認(rèn)退貨代碼:private void buttuihu_Click(object sender, EventArgs e) { = User。//刪除可用 if ( == 確認(rèn)退貨) { DialogResult res = (您確認(rèn)要退貨嗎?退貨后您后將不能修改信息,故請(qǐng)確保退貨數(shù)據(jù)的正確性!, 添加項(xiàng)目, , )。 + + 39。 + () + 39。 ()。 if (()) { int s = (reader1[數(shù)量].ToString())。//關(guān)閉數(shù)據(jù)源 //如果記錄中存在有相同名稱的汽車,那么就在它的的數(shù)量上進(jìn)行相應(yīng)的減少 int r = ()。 string sql2 = (update KuCunBill set 數(shù)量={0} where 汽車名稱=39。and 倉庫名稱=39。, sum, ().Trim(), ())。 ()。 ()。{1}39。{2}39。{5}39。{6}39。{7}39。 SqlCommand cmd = new SqlCommand(sql, )。 int RowCount1 = ()。 ()。 } else { (退貨失敗!)。 //下面是將下面的數(shù)據(jù)添加到數(shù)據(jù)庫中 //向數(shù)據(jù)庫中添加語句 string sql = (insert into TuiHuBill(銷售單號(hào),汽車名稱,倉庫名稱,銷售單價(jià),數(shù)量,日期,經(jīng)手人,備注) values({0},39。,39。,{3},{4},39。,39。,39。), (()), (), (), (()), (()), (), (), ())。 ()。 if (RowCount1 0) { (退貨成功,但在倉庫中沒有相關(guān)的車輛信息!)。 Date()。 } ()。//退貨可用 DialogResult res = (你確定要?jiǎng)h除嗎?, 刪除項(xiàng)目, , )。 SqlCommand cmd = new SqlCommand(sql, )。 int RowCount = ()。 ()。//銷售表中的數(shù)據(jù) } else { (刪除失敗!)。圖45庫存修改界面設(shè)計(jì)庫存修改界面部分代碼: private void button2_Click(object sender, EventArgs e) { = true。 string sql1 = select * from KuCunBill where 倉庫名稱 =39。 SqlCommand cmd1 = new SqlCommand(sql1, )。 SqlDataReader reader1 = ()。, 溫馨提示:)。 = false。 ()。//關(guān)閉數(shù)據(jù)源 //首先要查詢一下在倉庫表中有沒有相同名稱和相同倉庫的汽車,如果有就只改變它的數(shù)量,如果沒有就添加一條新的記錄 string sql4 = select * from KuCunBill where 汽車名稱=39。and 倉庫名稱=39。 SqlCommand cmd4 = new SqlCommand(sql4, )。 SqlDataReader reader4 = ()。//獲取數(shù)據(jù)庫原來的數(shù)量 ()。//現(xiàn)在要添加的數(shù)量 int sum = s + r。{1}39。{2}39。 SqlCommand cmd2 = new SqlCommand(sql2, )。{0}39。 SqlCommand cmd3 = new SqlCommand(sql3, )。 int RowCount1 = ()。 if (RowCount 0) { (倉庫中還有該汽車,已修改成功!)。 ()。//將數(shù)據(jù)庫中內(nèi)容顯示在dataGridView1中 ()。 = true。//關(guān)閉數(shù)據(jù)源 } else { ()。{0}39。{1}39。{2}39。{4}39。{5}39。{6}39。{7}39。 SqlCommand cmd = new SqlCommand(sql, )。 int RowCount = ()。 ()。 } else { (修改失??!)。//關(guān)閉數(shù)據(jù)源 } } }銷售匯總界面:在該匯總頁面中主要用到的是一個(gè)sum函數(shù),它的功能是將數(shù)據(jù)進(jìn)行按照要求就行匯總,并且在該頁面中還用到了模糊查詢,主要函數(shù)是在查詢條件中用到AND函數(shù)。圖46銷售匯總界面設(shè)計(jì)銷售匯總界面部分代碼://按汽車名稱銷售匯總 private void butHZ_Click(object sender, EventArgs e) { string cx = 。 if (( == )) { (請(qǐng)選擇查詢條件)。 + + 39。 + + 3
點(diǎn)擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1