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

正文內(nèi)容

數(shù)據(jù)庫(kù)房屋租賃管理系統(tǒng)甕豪(編輯修改稿)

2025-05-04 23:10 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 r(cmd)。 DataSet da = new DataSet()。 SqlDataReader sdr = ()。 (刪除成功, 警告, )。 } }修改功能代碼:private void button6_Click(object sender, EventArgs e) { //刪除選中的行數(shù)據(jù) if ( == ) { (請(qǐng)選中要修改的行, 警告, )。 } else { SqlConnection con = new SqlConnection(server=.。database=甕豪。integrated security=true)。 ()。 string select = (delete from 房屋狀況表2 where 房屋編號(hào)=39。 + + 39。)。 SqlCommand cmd = new SqlCommand(select, con)。 SqlDataAdapter ada = new SqlDataAdapter(cmd)。 DataSet da = new DataSet()。 SqlDataReader sdr = ()。 } //添加修改好的數(shù)據(jù) if ( == || == || == || == || == || == || == || == || == || == || == ) { (修改失??!請(qǐng)將信息填寫(xiě)完整, 警告, )。 } else { SqlConnection con = new SqlConnection(server=.。database=甕豪。integrated security=true)。 ()。 string select = (insert into 房屋狀況表2 (房屋編號(hào),市,區(qū),地址,租金,樓層,面積,廳室狀況,裝修,裝修風(fēng)格,用途)values(39。 + + 39。, 39。 + + 39。, 39。 + + 39。, 39。 + + 39。,39。 + + 39。,39。 + + 39。, 39。 + + 39。, 39。 + + 39。, 39。 + + 39。, 39。 + + 39。, 39。 + + 39。))。 SqlCommand cmd = new SqlCommand(select, con)。 SqlDataAdapter ada = new SqlDataAdapter(cmd)。 DataSet d = new DataSet()。 SqlDataReader sd = ()。 (修改成功, 警告, )。 }}}錄入信息代碼:private void button4_Click(object sender, EventArgs e) { if ( == || == || == || == || == || == || == || == || == || == || == ) { (添加失敗!請(qǐng)將信息填寫(xiě)完整, 警告, )。 } else { try{//這里填上你要填加入數(shù)據(jù)庫(kù)的內(nèi)容; SqlConnection con = new SqlConnection(server=.。database=甕豪。integrated security=true)。 ()。 string select = (insert into 房屋狀況表2 (房屋編號(hào),市,區(qū),地址,租金,樓層,面積,廳室狀況,裝修,裝修風(fēng)格,用途)values(39。 + + 39。, 39。 + + 39。, 39。 + + 39。, 39。 + + 39。,39。 + + 39。,39。 + + 39。, 39。 + + 39。, 39。 + + 39。, 39。 + + 39。, 39。 + + 39。, 39。 + + 39。))。 SqlCommand cmd = new SqlCommand(select, con)。 SqlDataAdapter ada = new SqlDataAdapter(cmd)。 DataSet d = new DataSet()。 SqlDataReader sd = ()。 (錄入成功, 警告, )。}catch{ (用戶名已存在,請(qǐng)重新填寫(xiě)!, 警告, )。} }每次操作完成后點(diǎn)擊按鈕,信息就好顯示在框體中。刷新代碼為:private void button5_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(server=.。database=甕豪。integrated security=true)。 ()。 string select = (select * from 房屋狀況表2 )。 SqlCommand cmd = new SqlCommand(select, con)。 SqlDataAdapter ada = new SqlDataAdapter(cmd)。 DataSet da = new DataSet()。 SqlDataReader sdr = ()。 if () { DataTable ta = new DataTable()。 (sdr)。 = ta。 } else { (找不到有關(guān)信息, 警告, )。 } }返回主頁(yè)::在需要返回主頁(yè)時(shí)點(diǎn)擊即可,而且每個(gè)子頁(yè)都可以做這個(gè)按鈕。返回代碼為: private void button2_Click(object sender, EventArgs e) { Form2 from = new Form2()。 ()。 ()。 }3. 員工信息管理查詢代碼及效果:private void button1_Click(object sender, EventArgs e) { SqlConnection con = new SqlConnection(server=.。database=甕豪。integrated security=true)。 ()。 string select = (select 員工編號(hào),姓名,性別,手機(jī)號(hào)碼,身份證號(hào)碼,地址 from employee2 where 姓名 like39。%{0}%39。, ())。 SqlCommand cmd = new SqlCommand(select, con)。 SqlDataAdapter ada = new SqlDataAdapter(cmd)。 DataSet da = new DataSet()。 SqlDataReader sdr = ()。 if () { DataTable ta = new DataTable()。 (sdr)。 = ta。 } else { (找不到有關(guān)信息, 警告, )。 } }插入代碼及效果:private void button4_Click(object sender, EventArgs e)
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1