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

正文內(nèi)容

cmysql圖書管理系統(tǒng)(編輯修改稿)

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

【文章內(nèi)容簡(jiǎn)介】 ion conn = new MySqlConnection(sql)。 ()。 // String updateBorrow1 = update bookInfo set isBorrowed = 39。039。,borrowId = null,borrowedTime = null where bookId = 39。+h+39。 MySqlCommand mysqlmand2 = new MySqlCommand(updateBorrow1, conn)。 int i = ()。 if (i != 1) { ( + \r\n + s + \r\n這本書,還書成功)。 } else { (系統(tǒng)出了點(diǎn)問(wèn)題,請(qǐng)聯(lián)系管理員!)。 } //更新借閱表 String updateBorrow = select userId from userInfo where userName = 39。 + + 39。 MySqlCommand mysqlmand = new MySqlCommand(updateBorrow, conn)。 MySqlDataReader mdr = ()。 if (()) { userId = (0).ToString()。 } ()。 String updateBorrow2 = insert into borrowed(userId,userName,bookId,editTime,bookName,edit) values(39。 + userId + 39。,39。 + + 39。,39。 + h + 39。,39。 + returnedTime + 39。,39。 + s + 39。,39。還書39。)。 MySqlCommand mysqlmand3 = new MySqlCommand(updateBorrow2, conn)。 ()。 //刷新dataGridView1,重新綁定數(shù)據(jù)源 f5()。 }修改個(gè)人信息:主要實(shí)現(xiàn)代碼 – :private void button1_Click(object sender, EventArgs e) { login login = new login()。 String pw = 。 String npw = 。 String un = 。 String userPassword = 。 String userId = 。 if ( == true) ans = male。 if ( == true) ans = female。 String sql = server=localhost。user id=root。password=123456。database=Clibrarycenter。 //根據(jù)自己的設(shè)置 MySqlConnection conn = new MySqlConnection(sql)。 ()。 // String yanzheng = SELECT userPassword FROM userinfo where userName = 39。++39。 MySqlCommand yz = new MySqlCommand(yanzheng,conn)。 MySqlDataReader mdr2 = ()。 if (()) { userPassword = (0)。 } ()。 if (() != ) { if (pw == userPassword) { // String editsql1 = select userId from userInfo where userName = 39。 + + 39。 。 MySqlCommand cmd1 = new MySqlCommand(editsql1, conn)。 MySqlDataReader mdr = ()。 if (()) { userId = (0)。 } else { } ()。 // String editsql2 = update userInfo set userPassword = 39。 + npw + 39。, userSex = 39。 + ans + 39。where userId = 39。 + userId + 39。 MySqlCommand cmd2 = new MySqlCommand(editsql2, conn)。 int i = ()。 if (i == 1) { ( + \r\n您的信息修改成功!\r\n請(qǐng)牢記您現(xiàn)在的密碼)。 } else {
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1