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

正文內(nèi)容

小型汽車銷售管理及系統(tǒng)設計管理知識分析-資料下載頁

2025-06-28 18:19本頁面
  

【正文】 string sql = (insert into TuiHuBill(銷售單號,汽車名稱,倉庫名稱,銷售單價,數(shù)量,日期,經(jīng)手人,備注) values({0},39。{1}39。,39。{2}39。,{3},{4},39。{5}39。,39。{6}39。,39。{7}39。), (()), (), (), (()), (()), (), (), ())。 SqlCommand cmd = new SqlCommand(sql, )。 ()。 int RowCount1 = ()。 if (RowCount1 0) { (退貨成功!)。 ()。 Date()。 } else { (退貨失敗!)。 } } else { ()。 //下面是將下面的數(shù)據(jù)添加到數(shù)據(jù)庫中 //向數(shù)據(jù)庫中添加語句 string sql = (insert into TuiHuBill(銷售單號,汽車名稱,倉庫名稱,銷售單價,數(shù)量,日期,經(jīng)手人,備注) values({0},39。{1}39。,39。{2}39。,{3},{4},39。{5}39。,39。{6}39。,39。{7}39。), (()), (), (), (()), (()), (), (), ())。 SqlCommand cmd = new SqlCommand(sql, )。 ()。 int RowCount1 = ()。 if (RowCount1 0) { (退貨成功,但在倉庫中沒有相關的車輛信息!)。 ()。 Date()。 } else { (退貨成功,但在倉庫中沒有相關的車輛信息!)。 } ()。 } } } }確認刪除部分代碼: private void butdeleq_Click(object sender, EventArgs e) { = true。//退貨可用 DialogResult res = (你確定要刪除嗎?, 刪除項目, , )。 if (res == ) { string sql = (delete from XiaoShouBill where 銷售單號={0}, (()))。 SqlCommand cmd = new SqlCommand(sql, )。 ()。 int RowCount = ()。 if (RowCount 0) { (刪除成功!)。 ()。 DateDaoRu()。//銷售表中的數(shù)據(jù) } else { (刪除失敗!)。 } } }庫存修改界面:在該頁面中主要update密令來實現(xiàn)修改功能。圖45庫存修改界面設計庫存修改界面部分代碼: private void button2_Click(object sender, EventArgs e) { = true。 ()。 string sql1 = select * from KuCunBill where 倉庫名稱 =39。 + () + 39。 SqlCommand cmd1 = new SqlCommand(sql1, )。 ()。 SqlDataReader reader1 = ()。 if (()) { (倉庫中已經(jīng)有該入倉庫號!請您重新命名。, 溫馨提示:)。 = false。 = false。 = true。 ()。 } else { ()。//關閉數(shù)據(jù)源 //首先要查詢一下在倉庫表中有沒有相同名稱和相同倉庫的汽車,如果有就只改變它的數(shù)量,如果沒有就添加一條新的記錄 string sql4 = select * from KuCunBill where 汽車名稱=39。 + + 39。and 倉庫名稱=39。 + () + 39。 SqlCommand cmd4 = new SqlCommand(sql4, )。 ()。 SqlDataReader reader4 = ()。 if (()) { int s = (reader1[數(shù)量].ToString())。//獲取數(shù)據(jù)庫原來的數(shù)量 ()。//關閉數(shù)據(jù)源 //如果記錄中存在有相同名稱的汽車,那么就在它的的數(shù)量上進行相應的增加 int r = ()。//現(xiàn)在要添加的數(shù)量 int sum = s + r。 string sql2 = (update KuCunBill set 數(shù)量={0} where 汽車名稱=39。{1}39。and 倉庫名稱=39。{2}39。, sum, ().Trim(), ())。 SqlCommand cmd2 = new SqlCommand(sql2, )。 //如果修改成功了,就把當前的記錄刪除 string sql3 = (delete from KuCunBill where 入庫單號=39。{0}39。, ())。 SqlCommand cmd3 = new SqlCommand(sql3, )。 ()。 int RowCount1 = ()。 int RowCount = ()。 if (RowCount 0) { (倉庫中還有該汽車,已修改成功!)。 = true。 ()。 Date()。//將數(shù)據(jù)庫中內(nèi)容顯示在dataGridView1中 ()。 } else { (倉庫中還有該汽車,修改失敗!)。 = true。 } ()。//關閉數(shù)據(jù)源 } else { ()。//關閉數(shù)據(jù)源 //修改語句 string sql = (update KuCunBill set 入庫單號=39。{0}39。,倉庫名稱=39。{1}39。,汽車名稱=39。{2}39。,數(shù)量={3},保修期=39。{4}39。,供應商名稱=39。{5}39。,備注=39。{6}39。where 入庫單號=39。{7}39。, (), (), (), (()), (), (), (), ())。 SqlCommand cmd = new SqlCommand(sql, )。 ()。 int RowCount = ()。 if (RowCount 0) { (修改成功!)。 ()。 Date()。 } else { (修改失敗!)。 } ()。//關閉數(shù)據(jù)源 } } }銷售匯總界面:在該匯總頁面中主要用到的是一個sum函數(shù),它的功能是將數(shù)據(jù)進行按照要求就行匯總,并且在該頁面中還用到了模糊查詢,主要函數(shù)是在查詢條件中用到AND函數(shù)。最后輸出相應數(shù)據(jù)出來。圖46銷售匯總界面設計銷售匯總界面部分代碼://按汽車名稱銷售匯總 private void butHZ_Click(object sender, EventArgs e) { string cx = 。//定義一個保存SQL語句的字符串cx(查詢) string jg = 。 if (( == )) { (請選擇查詢條件)。 } else { if ( != ) { cx = select sum(銷售單價*數(shù)量)as 總金額,sum(數(shù)量)as 總數(shù)量 from XiaoShouBill where 汽車名稱=39。 + + 39。 jg = select * from XiaoShouBill where 汽車名稱=39。 + + 39。 } SqlC
點擊復制文檔內(nèi)容
試題試卷相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1