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

正文內(nèi)容

學(xué)生信息管理系統(tǒng)設(shè)計(jì)(編輯修改稿)

2025-02-12 14:14 本頁面
 

【文章內(nèi)容簡介】 { InitializeComponent()。 } //在下拉菜單中選擇 private void cjcx_Load(object sender, EventArgs e) { = new chengji().select()。 (語文)。 (大學(xué)英語)。 (C)。 (數(shù)據(jù)庫)。 } 確定查詢 private void button1_Click(object sender, EventArgs e) { try { string sno = 。 string kcm = 。 = new chengji().search(,).Tables[chengji].Rows[0][1].ToString()。 = new chengji().search(,).Tables[chengji].Rows[0][3].ToString()。 } catch (Exception) { (無法查詢到相關(guān)信息!, 警告信息)。 } } private void button2_Click(object sender, EventArgs e) { = false。 ()。 new student().ShowDialog()。 } }:教師登錄后不只可以查詢,還可以添加修改刪除學(xué)生檔案信息,查詢功能不再敘述,點(diǎn)擊主界面的成績添加并依次輸入學(xué)號(hào)、姓名、選擇科目、成績、課程號(hào)并確定,將出現(xiàn)如下窗體:: ,代碼如下:public class xj { DataSet ds = new DataSet()。 SQLHELP help = new SQLHELP()。 //在學(xué)籍表中查詢 public DataTable select() { string sql = select * from xueji。 DataTable dt = new SQLHELP().ExecuteReader(sql)。 return dt。 } //按學(xué)號(hào)查詢 public DataSet search(string sno) { try { string sql = select * from xueji where sno=@sno。 SqlParameter[] para = { new SqlParameter(@sno,sno) }。 ds = (sql, para)。 return ds。 } catch (Exception e) { throw e。 } } //插入學(xué)籍一條記錄 public bool insert(string sno, string sn, string sex, string minzu, string csrq, string sfzh, string bj, string rxnf, string jtzz) { bool flag = false。 string sql = insert into xueji values(@sno,@sn,@sex,@minzu,@csrq,@sfzh,@bj,@rxnf,@jtzz)。 SqlParameter[] para = {new SqlParameter(@sno,sno) , new SqlParameter(@sn,sn), new SqlParameter(@sex,sex), new SqlParameter(@minzu,minzu), new SqlParameter(@csrq,csrq), new SqlParameter(@sfzh,sfzh), new SqlParameter(@bj,bj), new SqlParameter(@rxnf,rxnf), new SqlParameter(@jtzz,jtzz) }。 if ((sql, para) 0) { flag = true。 } return flag。 } //進(jìn)行更新學(xué)籍表 public bool update(string sno, string sn, string sex, string minzu, string csrq, string sfzh, string bj, string rxnf, string jtzz) { try { bool flag = false。 string sql = update xueji set sn=@sn,sex=@sex,minzu=@minzu,csrq=@csrq,sfzh=@sfzh,bj=@bj,rxnf=@rxnf,jtzz=@jtzz where sno=@sno。 SqlParameter[] para = { new SqlParameter(@sno,sno) , new SqlParameter(@sn,sn), new SqlParameter(@sex,sex), new SqlParameter(@minzu,minzu), new SqlParameter(@csrq,csrq), new SqlParameter(@sfzh,sfzh), new SqlParameter(@bj,bj), new SqlParameter(@rxnf,rxnf), new SqlParameter(@jtzz,jtzz) }。 if ((sql, para) 0) flag = true。 return flag。 } catch (Exception e) { throw e。 } } //按學(xué)號(hào)刪除學(xué)籍表中的記錄 public bool delete(string sno) { bool flag = false。 string sql = delete xueji where sno=@sno。 SqlParameter[] para = { new SqlParameter(@sno, sno), }。 if ((sql, para) 0) { flag = true。 } return flag。 } } 、添加、修改、刪除幾大功能,學(xué)籍的查找不再敘述,先寫學(xué)籍的添加功能,再學(xué)籍管理界面依次真實(shí)的填寫學(xué)生的信息,同時(shí)本系統(tǒng)最大的特色是有添加圖像功能(只是還沒實(shí)現(xiàn)),可以上傳學(xué)生的照片,填寫完畢點(diǎn)擊添加按鈕窗口如圖: ,代碼如下: private void button5_Click(object sender, EventArgs e) { try { if ( == || == || == || == || == || == || == || == || == ) (請(qǐng)輸入完整信息!, 操作提示, , )。 else if (new xj().insert(, , , , , , , , )) { (添加成功!, 操作提示, , )。 = 。 = 。 = 。 = 。 = 。 = 。 = 。 = 。 = 。 = new xj().select()。 } else (操作失敗請(qǐng)重試!, 操作提示, , )。 } catch (Exception ex)
點(diǎn)擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計(jì)相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1