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)總體-資料下載頁

2024-11-13 16:58本頁面

【導(dǎo)讀】員、教師和學(xué)生使用。管理員可以管理教師和學(xué)生的信息;教師可以開設(shè)課程、本系統(tǒng)采用三層結(jié)構(gòu)開發(fā),位于表現(xiàn)曾的是三個WindowsApplition項(xiàng)目,分別為Administrator、Teacher和Student;位于事務(wù)邏輯層的是DataAccess項(xiàng)目,位于數(shù)據(jù)存儲層的是SQLServer中的Student數(shù)據(jù)庫。系統(tǒng)層次結(jié)構(gòu)如圖所示:。教務(wù)管理系統(tǒng)學(xué)生端的設(shè)計(jì)目標(biāo)是方便學(xué)生使用。生可以登陸系統(tǒng)進(jìn)行一系列相關(guān)操作。決方案管理器中可以看到系統(tǒng)自動增加了的文件。件在屬性窗口中將Name改為。在“解決方案管理器”中選中文件,使其處于設(shè)計(jì)狀態(tài)。置其IsMdiContainer屬性是True。menuSystem選項(xiàng),設(shè)置其DropDownItems屬性,單擊右邊的“···”按鈕,此。從圖可以看出設(shè)置二級菜單和一級菜單完全類似。為menuSystem設(shè)計(jì)二級菜單,具體菜單項(xiàng)屬性見表。

  

【正文】 xtDesc 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 。 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(兩次輸入的密碼不匹配,請查實(shí)后重試 )。 ()。 } else { //將信息封裝為學(xué)生信息實(shí)體 EStudent stuInfo = new EStudent()。 = ()。 = 。 = ()。 = ()。 = 。 = 。 = 。 = 。 = ()。 = 。 = ()。 = ()。 = 。 try { StudentDB stuDB = new StudentDB()。 if ((stuInfo)) { AlertMessage(您的信息已經(jīng)修改成功 )。 ()。 } else { AlertMessage(操作失敗,請稍后重試 )。 } } catch (SqlException ex) { AlertMessage(數(shù)據(jù)庫操作失敗,請稍后重試。 )。 } } } ( 6) 在 ModifyInfoForm 中添加自定義方法 AlertMessage,代碼如下: private void AlertMessage(string message) { (message,Information, ,)。 } ( 7) 打開 DataAccess項(xiàng)目中的 Student文件夾里 SQLServer下的 文件,添加自定義方法 UpdateStudent,編寫如下代碼: /// summary /// 更新學(xué)生信息 /// /summary /// param name=student學(xué)生信息實(shí)體 /param /// returns更新成功與否 /returns public bool UpdateStudent(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 { ()。 string temp = 。 int i = ()。 ()。 return true。 } catch (SqlException ex) { return false。 } finally { //確保數(shù)據(jù)庫連接被關(guān)閉 if ( == ) { ()。 } } } ( 8) 選中 DataAccess項(xiàng)目中 Student文件夾里 SQLServer目錄下的 ,使其處于代碼編寫狀態(tài),添加私有域 StuUpdateInfo,代碼如下: /// summary /// 修改學(xué)生信息 /// /summary public static readonly string StuUpdateInfo = @UPDATE student SET [stuPassword]=@stuPassword, [stuName]=@stuName, [stuEnrollmentDate]=@stuEnrollmentDate, [stuGraduatedDate]=@stuGraduatedDate, [stuMajor]=@stuMajor, [stuSex]=@stuSex, [stuBirthday]=@stuBirthday, [stuHome]=@stuHome, [stuRace]=@stuRace, [stuDesc]=@stuDesc, [stuParty]=@stuParty, [stuPhone]=@stuPh
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1