【正文】
實(shí)現(xiàn)返回退出本窗體,返回至主界面已實(shí)現(xiàn)商品銷售(frmSPXS)窗體:處理時(shí)點(diǎn)處理內(nèi)容實(shí)現(xiàn)狀態(tài)初始狀態(tài)1) “商品信息”表格顯示數(shù)據(jù)庫商品信息2) “訂購列表”顯示需要訂購的商品列表3) 商品編號(hào)下拉框?yàn)閿?shù)據(jù)庫已有商品編號(hào)選項(xiàng)已實(shí)現(xiàn)添加 按鈕檢測(cè)商品編號(hào)及訂購數(shù)量是否合法,合法:比較庫存量及訂購量,當(dāng)庫存量小于訂購量時(shí)顯示提示信息,否則在商品訂購表中添加訂購記錄,對(duì)應(yīng)編號(hào)的商品庫存量減少,刷新顯示。) MsgBox 記錄刪除成功, 48, 進(jìn)銷存管理系統(tǒng) End If End If End IfEnd SubPrivate Sub Command3_Click() = select spbh,spmc,dj,sl,dj*sl as je,39。 If = 0 Then MsgBox 對(duì)不起,該記錄不存在, 48, 進(jìn)銷存管理系統(tǒng) Else kcStr = kcStr + (sl) Call Main Set adoRs = (update goods set kc = 39。 where spbh = 39。 amp。 djStr amp。 spmcStr amp。 amp。新定義的變量Public kcStr As StringPublic slStr As StringPublic maxXsbh As IntegerPrivate Sub Command1_Click() If = Then MsgBox 請(qǐng)選擇你所要購買商品的商品編號(hào), 48, 進(jìn)銷存管理系統(tǒng) Else If = Then MsgBox 請(qǐng)輸入你要購買的數(shù)量, 48, 進(jìn)銷存管理系統(tǒng) Else = select * from GOODS where spbh = 39。 If = 0 Then MsgBox 錯(cuò)誤, 48, 進(jìn)銷存管理系統(tǒng) End If End If End If End If End IfEnd SubPrivate Sub Command2_Click() End SubPrivate Sub Command3_Click() Unload MeEnd SubPrivate Sub Command4_Click() = select * from goods If = 0 Then MsgBox 商店無庫存商品, 48, 進(jìn)銷存管理系統(tǒng) End IfEnd SubPrivate Sub DataGrid1_Click() 39。 If = 0 Then MsgBox 無該商品, 48, 進(jìn)銷存管理系統(tǒng) End If End If Else If = True Then If = Then MsgBox 商品名稱不可為空, 48, 進(jìn)銷存管理系統(tǒng) Else = select * from goods where spmc = 39。 + + 39。 where spbh = 39。,gys = 39。,kc = 39。 If = 0 Then MsgBox 對(duì)不起,該商品不存在,請(qǐng)重新輸入, 48, 進(jìn)銷存管理系統(tǒng) Else = False = (spmc) = (splb) = (kc) = (dj) = (gys) = (bz) = 保存 End If End If Else If = 保存 Then Call Main Set adoRs = (update goods set spmc = 39。 39。 39。 39。 39。 39。 39。 39。 + + 39。 amp。Persist Security Info=False。定義連接Dim key, list, sql, Temp, Intext As String 39。 amp。Persist Security Info=False。 (sql) 39。Data Source=(Local)\GSQL sql = BACKUP DATABASE JXC TO disk=39。 Provider=。Integrated Security=SSPI。后臺(tái)主要管理數(shù)據(jù)表及進(jìn)行數(shù)據(jù)連接更新等操作。.?dāng)?shù)據(jù)庫 .實(shí)體聯(lián)系圖 根據(jù)需求分析中系統(tǒng)的要求,系統(tǒng)主要分為三個(gè)實(shí)體:商品、用戶及意見,三者間的關(guān)系是管理與被管理的關(guān)系,其中用戶擔(dān)任管理角色,而商品和意見扮演被管理角色。所以輸入、輸出數(shù)據(jù)精度要求不是很高,用于計(jì)算的數(shù)用浮點(diǎn)數(shù)就可以了。如開發(fā)過程中遇到未想到之難題,可以向同行有該類系統(tǒng)開發(fā)經(jīng)驗(yàn)的同學(xué)、朋友請(qǐng)教,或在網(wǎng)上查閱相關(guān)資料。作為一名軟件工程專業(yè)的學(xué)生,如對(duì)這類軟件有深刻的了解,將可以協(xié)助開發(fā)這類軟件的公司更好的進(jìn)行技術(shù)、運(yùn)營等工作。s economic, the current number of SMEs in China more than broad regional distribution, industry span. According to relevant data, pared to developed countries, foreign enterprises, the informatization of SMEs in China is still very low, rising only at the initial stage. With the technology and popular