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

正文內(nèi)容

超市會員購物系統(tǒng)(編輯修改稿)

2025-06-12 07:48 本頁面
 

【文章內(nèi)容簡介】 IAL中該商品的分數(shù)表相應(yīng)的減少use MARKETgocreate trigger gwb_preon 購物表 after insertasbegindeclare @sph varchar(20),@spm varchar(30)declare @fs intselect @sph=商品號,@spm=商品名 from insertedselect @fs=份數(shù) from 購物表 where 商品號=@sphupdate PREFERENTIAL set 庫存=(庫存@fs) where 商品號=@sphprint39。修改成功39。end創(chuàng)建觸發(fā)器,當向進貨表中插入一個商品時,將PREFERENTIAL中該商品的分數(shù)表相應(yīng)的增加use MARKETgocreate trigger jhb_preon 進貨表 after insertasbegindeclare @sph varchar(20),@spm varchar(30)declare @jhsl intselect @sph=商品號,@spm=商品名 from insertedselect @jhsl=進貨數(shù)量 from 進貨表 where 商品號=@sphupdate PREFERENTIAL set 庫存=(庫存+@jhsl) where 商品號=@sphprint39。修改成功39。end Microsoft Visual Studio 2008 C源代碼:登錄界面圖:登錄界面源代碼:public partial class enter : Form { DBHelper db = new DBHelper(server=.。initial catalog=MARKET。integrated security=true)。 public enter() { InitializeComponent()。 } private void btnLogin_Click(object sender, EventArgs e) { if ( == true) { if ( == || == ) { (賬號、密碼不能為空)。 } else { string userName = ()。 string passWord = ()。 try { string sql = Select * From ADMINISTRATOR Where 賬號=39。 + userName + 39。 and 密碼=39。 + passWord + 39。 int count = ((sql))。 if (count 0) { string txtValue = 。 管理員界面 f7 = new 管理員界面(txtValue)。 ()。 = 。 } else { (用戶名或密碼有誤,請重試)。 } } catch (Exception ex) { (出現(xiàn)錯誤: + )。 } } } if ( == true) { if ( == || == ) { (會員號、密碼不能為空)。 } else { string userName = ()。 string passWord = ()。 try { string sql = Select * From MEMBER Where 會員號=39。 + userName + 39。 and 密碼=39。 + passWord + 39。 int count = ((sql))。 if (count 0) { string txtValue2 = 。 string txtValue1 = 。 購買物品界面 b = new 購買物品界面(txtValue1)。 會員查詢界面 a = new 會員查詢界面(txtValue2)。 ()。 = 。 = 。 } else { (用戶名或密碼有誤,請重試)。 } } catch (Exception ex) { (出現(xiàn)錯誤: + )。 } } } if ( == false amp。amp。 == false) { (請選擇身份驗證)。 } } private void btnExit_Click(object sender, EventArgs e) { ()。 } }}管理員管理界面圖:管理員管理界面代碼:public partial class 管理員管理界面1 : Form { DBHelper db = new DBHelper(server=.。initial catalog=MARKET。integrated security=true)。 public 管理員管理界面1() { InitializeComponent()。 } public string returnValue。 public 管理員管理界面1(string txtValue) { InitializeComponent()。 = txtValue。 } private void 增加商品ToolStripMenuItem_Click(object sender, EventArgs e) { string sph = ()。 string spm = ()。 string zl = 。 string yj = ()。 string zk = ()。 //string zkhj = ()。 string jfyq = 。 string zkhj = ((yj) * (zk) / 10).ToString()。 try { if (sph == || spm == || zl == || yj == || zk == || zkhj == || jfyq == ) { (請輸入完整的信息)。 } else { string sql = INSERT INTO PREFERENTIAL(商品號,商品名,種類,原價,折扣,折扣后價,積分要求) VALUES(39。 + sph + 39。,39。 + spm + 39。,39。 + zl + 39。,39。 + yj + 39。,39。 + zk + 39。,39。 + zkhj + 39。,39。 + jfyq + 39。)。 (sql)。 (添加成功!)。 } } catch (Exception ex) { (出現(xiàn)錯誤 + )。 } } private void 刪除商品ToolStripMenuItem_Click(object sender, EventArgs e) { string sph = ()。 try { string sql = DELETE FROM PREFERENTIAL WHERE 商品號=39。 + sph + 39。 (sql)。 (刪除成功!)。 } catch (Exception ex) { (出現(xiàn)錯誤 + )。 } } private void 修改商品ToolStripMenuItem_Click(object sender, EventArgs e) { string sph = ()。 string spm = ()。 string zl = 。 string yj = ()。 string zk = ()。 //string zkhj = ()。 string jfyq = 。 string zkhj = ((yj) * (zk) / 10).ToString()。 try { if (sph == || spm == || zl == || yj == || zk == || zkhj == || jfyq == ) { (如果需要修改,請?zhí)顚懲暾男畔?。 } else { str
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1