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

正文內(nèi)容

基于c的進銷存管理系統(tǒng)-資料下載頁

2025-06-22 01:07本頁面
  

【正文】 strcmdtxt = SELECT GoodsID as 商品ID,GoodsName as 商品名稱,GoodsTime as 進貨日期,CompanyName as 公司名稱。 strcmdtxt += ,GoodsNum as 進貨數(shù)量,GoodsUnit as 商品單位,GoodsPrice as 商品進價,DepotName as 所屬倉庫,GoodsSpec as 商品規(guī)格。 strcmdtxt += ,SellPrice as 銷售價格,NeedPay as 應(yīng)付金額,HasPay as 實付金額,Remark as 備注 FROM Goods。 strcmdtxt += WHERE + strselect + 。 = (strcmdtxt).Tables[0]。 } if () { strselect = GoodsID LIKE 39。% + + %39。 AND GoodsName LIKE 39。% + + %39。 strselect += AND ReGoodsTime BETWEEN 39。 + (yyyyMMdd) + 39。 AND 。 strselect += 39。 + (yyyyMMdd) + 39。 strcmdtxt = SELECT ReGoodsID as 退貨ID,GoodsID as 進貨ID,ReGoodsName as 商品名稱,ReGoodsTime as 退貨日期,ReGoodsNum as 退貨數(shù)量。 strcmdtxt += ,ReGoodsUnit as 商品單位,ReGoodsSpec as 商品規(guī)格,ReGoodsPrice as 進貨價格。 strcmdtxt += ,NeedPay as 應(yīng)收金額,HasPay as 實收金額,ReGoodsResult as 退貨原因 FROM ReGoods。 strcmdtxt += WHERE + strselect + 。 = (strcmdtxt).Tables[0]。 } } private void btnCfind_Click(object sender, EventArgs e) { = 。 = 。 = 。 = 。 } 銷售管理窗體設(shè)計l 銷售查詢窗體(圖14)l 商品銷售窗體l 客戶退貨窗體1.窗體設(shè)計在窗體中分別添加GroupBox控件(包含Label控件、TextBox控件、Button控件和ComboBox控件)、一個DataGridView控件。圖14 銷售查詢窗體2.代碼設(shè)計在窗體初始化時執(zhí)行相關(guān)操作,窗體初始化代碼如下: private void SellFind_Load(object sender, EventArgs e) { string P_Str_cmdtxt = SELECT SellID as 銷售ID,GoodsID as 商品ID,GoodsName as 商品名稱,GoodsNum as 銷售數(shù)量。 P_Str_cmdtxt += ,GoodsUnit as 商品單位,GoodsTime as 銷售時間,GoodsSpec as 商品規(guī)格,GoodsPrice as 進貨價格,SellPrice as 銷售價格。 P_Str_cmdtxt += ,NeedPay as 應(yīng)收金額,HasPay as 實收金額,Remark as 備注 FROM Sell。 = (P_Str_cmdtxt).Tables[0]。 = 0。 = 0。 }雙擊DataGridView控件時的事件代碼如下: private void dgvStockInfo_DoubleClick(object sender, EventArgs e) { = [2, ].()。 = [1, ].()。 = [4, ].()。 = [7, ].()。 = [8, ].()。 = [6, ].()。 ()。 } l 庫存查詢窗體(圖15)l 庫存調(diào)撥窗體l 庫存報警窗體1.窗體設(shè)計在窗體中分別添加GroupBox控件(包含Label控件、TextBox控件、Button控件和ComboBox控件)、一個DataGridView控件。圖15 庫存查詢窗體2.代碼設(shè)計 【開始查詢按鈕】的Click事件代碼如下: private void btnFind_Click(object sender, EventArgs e) { string strselect = WHERE GoodsName LIKE 39。% + + %39。 AND GoodsID LIKE 39。 + + %39。 strselect += AND StockNum LIKE 39。% + + %39。 AND AlarmNum LIKE 39。% + + %39。 if ( != ) { strselect += AND GoodsPrice + [].ToString() + +。 } if ( != ) { strselect += AND SellPrice + [].ToString() + + 。 } string strcmdtxt = SELECT StockID as 庫存ID,GoodsID as 商品ID,GoodsName as 商品名稱,DepotName as 倉庫名稱。 strcmdtxt += ,CompanyName as 供應(yīng)商名稱,StockNum as 庫存數(shù)量,AlarmNum as 報警數(shù)量,GoodsUnit as 商品單位。 strcmdtxt += ,GoodsTime as 進貨時間,GoodsSpec as 商品規(guī)格,GoodsPrice as 進貨價格,SellPrice as 銷售價格。 strcmdtxt += ,NeedPay as 應(yīng)付金額,HasPay as 實付金額,Remark as 備注 FROM Stock + strselect。 = (strcmdtxt).Tables[0]。 } 【開始查詢按鈕】的Click事件代碼如下: private void btnCancel_Click(object sender, EventArgs e) { = 。 = 。 = 。 = 。 = 。 = 。 StockFind_Load(sender, e)。 }l 員工信息報表(圖16)l 往來單位報表l 進貨商品報表l 員工銷售報表l 商品進貨分析報表l 銷售價格分析報表l 員工銷售分析報表1.窗體設(shè)計 在窗體中分別添加一個GroupBox控件(包含Label控件、TextBox控件、Button控件和ComboBox控件)和一個CrystalReportViewer控件。圖16 員工信息報表2.代碼設(shè)計 在窗體初始化時執(zhí)行相關(guān)操作,窗體初始化代碼如下: private void EmployeeReport_Load(object sender, EventArgs e) { (SELECT * FROM Post, cbxPost, PostName)。//綁定ComboBox控件 (SELECT * FROM Department, cbxDepName, DepName)。 = 0。 //設(shè)定默認項 } 【查詢并顯示】按鈕的Click事件代碼如下: private void btnFindOk_Click(object sender, EventArgs e) { //為報表設(shè)定查詢語句 string P_selectionFormula = {} like + 39。* + + *39。 and {}=39。 + [].ToString() + 39。 P_selectionFormula += and {}=39。 + ()。 P_selectionFormula += 39。 and {}=39。 + () + 39。 //顯示滿足條件的報表信息 = (, P_selectionFormula)。 }l 系統(tǒng)用戶設(shè)置窗體(圖17)l 用戶權(quán)限窗體l 更改密碼窗體l 數(shù)據(jù)備份窗體l 數(shù)據(jù)還原窗體1.窗體設(shè)計在窗體中分別添加GroupBox控件(包含Label控件、TextBox控件、Button控件、ComboBox控件、ListBox控件和TreeView控件)和ErrorProvider控件。圖17 系統(tǒng)用戶設(shè)置窗體2.代碼設(shè)計 【設(shè)置/修改】按鈕的Click事件的代碼如下: private void btnEdit_Click(object sender, EventArgs e) { if ( == ) { (, 登錄身份不能為空!)。 return。 } if ( amp。amp。 == ) { (, 用戶名不能為空!)。 return。 } if ( amp。amp。 != ) { (, 兩次輸入密碼不一致!)。 return。 } if ( amp。amp。 6) { (, 輸入密碼不能小于6位!)。 return。 } if ( amp。amp。 6) { (, 輸入密碼不能小于6位!)。 return。 } //從樹控件中讀取設(shè)置的值 ArrayList arylst = new ArrayList()。 foreach (TreeNode nodes in ) { foreach (TreeNode node in ) { if () { (1)。 } else { (0)。 } } } if ( == 該用戶已為系統(tǒng)用戶) { //判斷權(quán)限表中是
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1