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

正文內(nèi)容

教務(wù)管理系統(tǒng)簡介及學(xué)生端設(shè)計6.1教務(wù)管理系統(tǒng)簡介6.11系統(tǒng)總體-閱讀頁

2024-12-03 16:58本頁面
  

【正文】 ramStuRace = new SqlParameter(stuRace, )。 SqlParameter paramStuDesc = new SqlParameter(stuDesc, )。 SqlParameter paramStuID = new SqlParameter(stuID, )。 SqlParameter paramStuParty = new SqlParameter(stuParty, )。 SqlParameter paramStuPhone = new SqlParameter(stuPhone, )。 try { ()。 ()。 } catch (SqlException ex) { return false。 } } } ( 9) 選中 DataAccess 項目中 Student 文件夾里 SQLServer 目錄下的 ,使其處于代碼編寫狀態(tài),添加私有說域 StuInsertInfo,代碼如下: /// summary /// 添加學(xué)生信息 /// /summary public static readonly string StuInsertInfo = INSERT INTO student( [stuPassword],[stuName], [stuEnrollmentDate],[stuGraduatedDate], [stuMajor],[stuSex],[stuBirthday], [stuHome],[stuRace],[stuDesc],[stuID],[stuParty],[stuPhone]) VALUES( stuPassword,stuName, stuEnrollmentDate,stuGraduatedDate, stuMajor,stuSex,stuBirthday, stuHome,stuRace,stuDesc,stuID,stuParty,stuPhone)。 = 。 = 。 = 。 = 。 = 。 = 。 = 。 = this。 } ( 12) 至此“新生注冊”功能實現(xiàn),按 Ctrl+F5 鍵運行,選擇主窗體菜單欄上的“學(xué)籍管理”|“新生注冊”命令,系統(tǒng)彈出如圖 。 圖 新生注冊窗體 修改信息 要實現(xiàn)該功能,首先需要從數(shù)據(jù)庫中獲取指定學(xué)生的信息記錄,然后通過窗體顯示,該窗體同時能夠用于輸入新的學(xué)生信息。具體步驟如下: ( 1) 啟動 Visual Studio,打開 SchoolMis 解決方案,選中 Student 項目,添加一個WindowsForm,命名為 ModifyInfoForm。 ( 3) 向 ModifyInfoForm窗體添加控件并做調(diào)整,使其效果如圖 所示。 圖 修改信息窗體 控件類型 Name 屬性 Text 屬性 其它屬性 Label lblStuNum 學(xué)號: Label lblBirthdat 生日: Label lblPassword 密碼: Label lblCfmPassword 確認(rèn)密碼: Label lblStuName 姓名: Label lblStuSex 性別: Label lblEnrolDate 入學(xué)時間: Label lblRace 民族: Label lblGraduDate 畢業(yè)時間: Label lblMajor 專業(yè): Label lblParty 政治面貌: Label lblPhone 電話: Label lblHome 家庭住址: Label lblDesc 其它說明: TextBox txtStuNum Enable 為 false TextBox txtPassword PasswordChar 為 * TextBox txtCfmPassword PasswordChaar 為 * TextBox txtStuName Enable 為 false TextBox txtMajor TextBox txtPhone TextBox txtHome TextBox txtDesc Multiline 為 True DateTimePicker dtpBirthday DateTimePicker dtpEnrolDate DateTimePicker dtp0GraduDate ComboBox cmbSex Items 屬性為:男、女DropDownStyle 屬性為:DropDownList ComboBox cmbRace ComboBox cmbParty Items 屬性為:中共黨員、中共預(yù)備黨員、共青團(tuán)員、其他 DropDownStyle 屬性為: DropDownList Button btnOK 提交修改 Button btnCancel 重新填寫 ( 4) 雙擊“提交修改”按鈕,注冊按鈕單擊事件 btnOK_Click,在 的編碼界面中首先引入如下命名空間: using 。 ( 5) 在按鈕“提交修改”的單擊事件處理程序中編寫如下代 碼: private void btnOK_Click(object sender, EventArgs e) { if (() == ) { AlertMessage(請選擇性別 )。 } else if (() == ) { AlertMessage(請選擇政治面貌 )。 } else if ( == ) { AlertMessage(請輸入電話號碼 )。 } else if ( == ) { AlertMessage(請輸入家庭住址 )。 } else if (() == ) { AlertMessage(請輸入民族 )。 } else if ( == ) { AlertMessage(請選擇專業(yè) )。 } else if (() == ) { AlertMessage(請輸入密碼 )。 } else if ( != ) { AlertMessage(兩次輸入的密碼不匹配,請查實后重試 )。 } else { //將信息封裝為學(xué)生信息實體 EStudent stuInfo = new EStudent()。 = 。 = ()。 = 。 = 。 = 。 = ()。 try { StudentDB stuDB = new StudentDB()。 ()。 } } catch (SqlException ex) { AlertMessage(數(shù)據(jù)庫操作失敗,請稍后重試。 } } } ( 6) 在 ModifyInfoForm 中添加自定義方法 AlertMessage,代碼如下: private void AlertMessage(string message) { (message,Information, ,)。 //建立數(shù)據(jù)庫命令對象 SqlCommand cmd = new SqlCommand()。 = 。 SqlParameter paramStuPassword = new SqlParameter(stuPassword, )。 SqlParameter paramStuName = new SqlParameter(stuName, )。 SqlParameter paramStuEnrollmentDate = new SqlParameter(stuEnrollmentDate, )。 SqlParameter paramStuGraduatedDate = new SqlParameter(stuGraduatedDate, )。 SqlParameter paramStuMajor = new SqlParameter(stuMajor, )。 SqlParameter paramStuSex = new SqlParameter(stuSex, )。 SqlParameter paramStuBirthday = new SqlParameter(stuBirthday, )。 SqlParameter paramStuHome = new SqlParameter(stuHome, )。 SqlParameter paramStuRace = new SqlParameter(stuRace, )。 SqlParameter paramStuDesc = new SqlParameter(stuDesc, )。 SqlParameter paramStuID = new SqlParameter(stuID, )。 SqlParameter paramStuParty = new SqlParameter(stuParty, )。 SqlParameter paramStuPhone = new SqlParameter(stuPhone, )。 try { ()。 int i = ()。 return true。 } finally { //確保數(shù)據(jù)庫連接被關(guān)閉 if ( == ) {
點擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1