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

正文內容

學生信息管理系統設計-文庫吧資料

2025-01-22 14:14本頁面
  

【正文】 e void button5_Click(object sender, EventArgs e) { try { if ( == || == || == || == || == || == || == || == || == ) (請輸入完整信息!, 操作提示, , )。 if ((sql, para) 0) { flag = true。 string sql = delete xueji where sno=sno。 } catch (Exception e) { throw e。 if ((sql, para) 0) flag = true。 string sql = update xueji set sn=sn,sex=sex,minzu=minzu,csrq=csrq,sfzh=sfzh,bj=bj,rxnf=rxnf,jtzz=jtzz where sno=sno。 } return flag。 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) }。 } } //插入學籍一條記錄 public bool insert(string sno, string sn, string sex, string minzu, string csrq, string sfzh, string bj, string rxnf, string jtzz) { bool flag = false。 return ds。 SqlParameter[] para = { new SqlParameter(sno,sno) }。 return dt。 //在學籍表中查詢 public DataTable select() { string sql = select * from xueji。 } }:教師登錄后不只可以查詢,還可以添加修改刪除學生檔案信息,查詢功能不再敘述,點擊主界面的成績添加并依次輸入學號、姓名、選擇科目、成績、課程號并確定,將出現如下窗體:: ,代碼如下:public class xj { DataSet ds = new DataSet()。 ()。 } catch (Exception) { (無法查詢到相關信息!, 警告信息)。 = new chengji().search(,).Tables[chengji].Rows[0][1].ToString()。 } 確定查詢 private void button1_Click(object sender, EventArgs e) { try { string sno = 。 (C)。 (語文)。 }}:學生在成功登錄系統后,只有查詢學生本人信息的功能,在主窗體中點擊學生管理菜單欄的學生信息查詢,即出現如下所示的窗體:1)點擊“成績查詢”彈出成績查詢窗口,然后輸入自己的學號并選擇要查詢科目,點擊“查詢”出現如下窗體圖44 學籍查詢界面根據查詢方式調用student里search方法添加數據集并生成DataTable,然后將數據綁定到ds,代碼如下: public partial class cjcx : Form { public cjcx() { InitializeComponent()。 if ((sql, para) 0) { flag = true。 string sql = delete chengji where sno=sno and kcm=kcm。 } return flag。 SqlParameter[] para ={new SqlParameter(sno,sno), new SqlParameter(kcm,kcm), new SqlParameter(cj,cj)}。 } //更新學生成績表的數據 public bool update(string sno, string kcm, string cj) { bool flag = false。 if ((sql, para) 0) { flag = true。 string sql = insert into chengji values(sno,sn,kcm,cj,kch)。 } catch (Exception e) { throw e。 ds = (sql, para)。 } //按學生的學號和課程名查詢 public DataSet search(string sno,string kcm) { try { string sql = select * from chengji where sno=sno and kcm=kcm。 dt = new SQLHELP().ExecuteReader(sql)。 public DataSet ds = new DataSet()。 } } 學生管理模塊的創(chuàng)建學生功能模塊主要實現如下功能:● 查詢學生信息● 修改學生信息● 添加學生信息● 刪除學生信息:,代碼如下: public class chengji { SQLHELP help = new SQLHELP()。 = 。 } } else (請選擇用戶類型!, 錯誤提示, , )。 } else { (用戶名或密碼錯誤,請重新輸入!, 錯誤提示, , )。 ()。 } } else if ( == true) { try { if (new users().isexit(yonghum, mima) == true) { = false。 } else { (用戶名或密碼錯誤,請重新輸入!, 錯誤提示, , )。 ()。 if ( == true) { try { if (new users().isexit1(yonghum, mima) == true) { = false。 private void button1_Click(object sender, EventArgs e) { yonghum = ()。 public string mima。 } public int userid。2個標簽(Label)用來標示窗體的信息,兩個radioButton用來選擇用戶類別。圖42 用戶登錄
點擊復制文檔內容
畢業(yè)設計相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1