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

正文內(nèi)容

教務(wù)管理系統(tǒng)簡介及學(xué)生端設(shè)計(jì)6.1教務(wù)管理系統(tǒng)簡介6.11系統(tǒng)總體(已改無錯字)

2022-12-26 16:58:26 本頁面
  

【正文】 private string stuPhone。 /// summary /// 電話 /// /summary public string StuPhone { get { return stuPhone。 } set { stuPhone = value。 } } private string stuHome。 /// summary /// 家庭地址 /// /summary public string StuHome { get { return stuHome。 } set { stuHome = value。 } } private string stuDesc。 /// summary /// 其他說明 /// /summary public string StuDesc { get { return stuDesc。 } set { stuDesc = value。 } } private string stuPassowrd。 /// summary /// 密碼 /// /summary public string StuPassowrd { get { return stuPassowrd。 } set { stuPassowrd = value。 } } } } ( 8) 選中 DataAccess項(xiàng)目中 Student 文件夾里的 SQLServer目錄下的 文件,使其處于代碼編寫狀態(tài),添加自定義方法 AddStudent,代碼如下: /// summary /// 添加學(xué)生信息 /// /summary /// param name=student學(xué)生信息實(shí)體 /param /// returns操作結(jié)果,成功為 true,否則為 false/returns public bool AddStudent(EStudent student) { //建立數(shù)據(jù)庫連接對象 SqlConnection conn = new SqlConnection()。 //建立數(shù)據(jù)庫命令對象 SqlCommand cmd = new SqlCommand()。 = conn。 = 。 = 。 SqlParameter paramStuPassword = new SqlParameter(@stuPassword, )。 (paramStuPassword)。 SqlParameter paramStuName = new SqlParameter(@stuName, )。 (paramStuName)。 SqlParameter paramStuEnrollmentDate = new SqlParameter(@stuEnrollmentDate, )。 (paramStuEnrollmentDate)。 SqlParameter paramStuGraduatedDate = new SqlParameter(@stuGraduatedDate, )。 (paramStuGraduatedDate)。 SqlParameter paramStuMajor = new SqlParameter(@stuMajor, )。 (paramStuMajor)。 SqlParameter paramStuSex = new SqlParameter(@stuSex, )。 (paramStuSex)。 SqlParameter paramStuBirthday = new SqlParameter(@stuBirthday, )。 (paramStuBirthday)。 SqlParameter paramStuHome = new SqlParameter(@stuHome, )。 (paramStuHome)。 SqlParameter paramStuRace = new SqlParameter(@stuRace, )。 (paramStuRace)。 SqlParameter paramStuDesc = new SqlParameter(@stuDesc, )。 (paramStuDesc)。 SqlParameter paramStuID = new SqlParameter(@stuID, )。 (paramStuID)。 SqlParameter paramStuParty = new SqlParameter(@stuParty, )。 (paramStuParty)。 SqlParameter paramStuPhone = new SqlParameter(@stuPhone, )。 (paramStuPhone)。 try { ()。 ()。 ()。 return true。 } catch (SqlException ex) { return false。 } finally { //確保數(shù)據(jù)庫連接被關(guān)閉 if ( == ) { ()。 } } } ( 9) 選中 DataAccess 項(xiàng)目中 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)。 ( 10) 在 RegisterForm 窗體中雙擊“重新填寫”按鈕,注冊按鈕單擊事件 btnCancel_Click,編寫代碼如下: private void btnCancel_Click(object sender, EventArgs e) { = 。 = 。 = 。 = 。 = 。 = 。 = 。 = 。 = 。 = 。 = 。 = 。 = 。 = 。 } ( 11) 選中 MainForm 窗體使其處于設(shè)計(jì)狀態(tài),雙擊“學(xué)籍管理”|“新生注冊”選項(xiàng),注冊菜單單擊事件 stuReg_Click,編寫代碼如下: private void stuReg_Click(object sender, EventArgs e) { RegisterForm frmReg = new RegisterForm()。 = this。 ()。 } ( 12) 至此“新生注冊”功能實(shí)現(xiàn),按 Ctrl+F5 鍵運(yùn)行,選擇主窗體菜單欄上的“學(xué)籍管理”|“新生注冊”命令,系統(tǒng)彈出如圖 。在“新生注冊”窗體中輸入合法信息以后單擊“提交注冊”按鈕即可完成注冊操作。 圖 新生注冊窗體 修改信息 要實(shí)現(xiàn)該功能,首先需要從數(shù)據(jù)庫中獲取指定學(xué)生的信息記錄,然后通過窗體顯示,該窗體同時(shí)能夠用于輸入新的學(xué)生信息。當(dāng)信息修改完畢以后即可通過該窗體將修改后的信息更新到數(shù)據(jù)庫。具體步驟如下: ( 1) 啟動 Visual Studio,打開 SchoolMis 解決方案,選中 Student 項(xiàng)目,添加一個(gè)WindowsForm,命名為 ModifyInfoForm。 ( 2) 設(shè)置 ModifyInfoForm窗體的屬性,設(shè)置其 Text 屬性為“新生注冊”, MaximizeBox和 MinimizeBox屬性為 False。 ( 3) 向 ModifyInfoForm窗體添加控件并做調(diào)整,使其效果如圖 所示。其中控件屬性見表 。 圖 修改信息窗體 控件類型 Name 屬性 Text 屬性 其它屬性 Label lblStuNum 學(xué)號: Label lblBirthdat 生日: Label lblPassword 密碼: Label lblCfmPassword 確認(rèn)密碼: Label lblStuName 姓名: Label lblStuSex 性別: Label lblEnrolDate 入學(xué)時(shí)間: Label lblRace 民族: Label lblGraduDate 畢業(yè)時(shí)間: 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 t
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1