學(xué)生管理信息系統(tǒng)課程設(shè)計報告_第1頁
學(xué)生管理信息系統(tǒng)課程設(shè)計報告_第2頁
學(xué)生管理信息系統(tǒng)課程設(shè)計報告_第3頁
學(xué)生管理信息系統(tǒng)課程設(shè)計報告_第4頁
學(xué)生管理信息系統(tǒng)課程設(shè)計報告_第5頁
已閱讀5頁,還剩19頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、數(shù)據(jù)庫系統(tǒng)應(yīng)用課程設(shè)計課程設(shè)計報告設(shè) 計 題 目: 學(xué)生成績管理系統(tǒng)_ 專 業(yè) (方 向): 信息管理與信息系統(tǒng) 年級、班: xxxxxxxxx 學(xué)生學(xué)號: xxxxxxxxxx學(xué)生姓名:XX指 導(dǎo) 教 師:XXX2017年 12 月 17日1目 錄一、概述5(一)、設(shè)計目的5(二)、開發(fā)工具的選擇5二、需求分析5(一)、功能需求的分析5(二)、性能需求分析6三、總體設(shè)計6(一)、系統(tǒng)總體結(jié)構(gòu)及功能模塊劃分61、系統(tǒng)管理模塊62、學(xué)生信息管理模塊73、班級信息管理模塊74、課程信息管理模塊75、成績信息管理模塊8(二)、系統(tǒng)數(shù)據(jù)庫概念結(jié)構(gòu)設(shè)計81、學(xué)生信息表8四、詳細(xì)設(shè)計9(一)、系統(tǒng)管理功能

2、模塊的實(shí)現(xiàn)9(二)、學(xué)生信息管理模塊的實(shí)現(xiàn)11(三)、班級信息管理模塊的實(shí)現(xiàn)14(四)、課程信息管理模塊的實(shí)現(xiàn)16(五)、成績信息管理模塊的實(shí)現(xiàn)19五、系統(tǒng)測試與運(yùn)行21六、結(jié)束語2424摘 要本文描述的是基于Windows環(huán)境的學(xué)生管理系統(tǒng),主要功能模塊包括學(xué)生信息的添加、修改、查找、刪除。主要工具M(jìn)icrosoft Visual Studio2010設(shè)計窗體,SQL server2008建立數(shù)據(jù)庫,實(shí)現(xiàn)學(xué)生信息管理的基本功能.本篇報告介紹一個學(xué)生信息管理系統(tǒng)的從分析到設(shè)計最后到實(shí)現(xiàn)的全過程,給出了學(xué)生信息管理系統(tǒng)的設(shè)計和技術(shù)實(shí)現(xiàn)的過程,特別在細(xì)節(jié)上分析功能和函數(shù)的實(shí)現(xiàn)思想。涉及到雪上信息管

3、理的基本功能在本報告中都有描述。AbstractDescribed in this paper is based on the Windows environment management system for students,the main function modules include student information to add, modify, delete, search. The main tool of Microsoft Visual Studio2010 SQL Server2008 design form, database, information mana

4、gement students to achieve the basic function。This report describes a student information management system from analysis to design to the final realization of the entire process, gives the student information management system design and realization process, especially in the details of analysis fu

5、nction and the function of the realization of ideas. Relate to the snow on the basic functions of information management in this report are described.關(guān)鍵詞 數(shù)據(jù)庫,添加,修改,查找,刪除學(xué)生信息管理系統(tǒng)一、概述本文描述的是基于Windows環(huán)境的學(xué)生管理系統(tǒng),主要功能模塊包括學(xué)生信息的添加、修改、查找、刪除.主要工具M(jìn)icrosoft Visual Studio2010設(shè)計窗體,SQL server2008建立數(shù)據(jù)庫,實(shí)現(xiàn)學(xué)生信息管理的基本功能

6、.(一)、設(shè)計目的本課程設(shè)計的目的是使學(xué)生能熟練掌握簡單的Window窗體應(yīng)用程序的設(shè)計和ADD。net的應(yīng)用,希望通過本次的鍛煉學(xué)生實(shí)用c語言解決實(shí)際問題的能力.(二)、開發(fā)工具的選擇Microsoft Visual Studio(簡稱VS)是美國微軟公司的開發(fā)工具包系列產(chǎn)品.VS是一個基本完整的開發(fā)工具集,它包括了整個軟件生命周期中所需要的大部分工具,如UML工具、代碼管控工具、集成開發(fā)環(huán)境(IDE)等等。所寫的目標(biāo)代碼適用于微軟支持的所有平臺,包括Microsoft Windows、Windows Mobile、Window CE、。NET Framework、。NET Compact

7、Framework和Microsoft Silver light及Windows Phone.Visual Studio是目前最流行的Windows平臺應(yīng)用程序的集成開發(fā)環(huán)境。最新版本為VisualStudio2015版本,基于。NETFramework4。5.2。二、需求分析(一)、功能需求的分析本系統(tǒng)的功能需求分析如下:系統(tǒng)用戶:用戶,密碼,退出。學(xué)生基本信息:學(xué)號 ,姓名,性別, 電話,班號,生日,住址。 班級信息:班號,年級,班主任.課程基本信息:課程號,課程名,課程類別,學(xué)分。學(xué)生成績信息:學(xué)號,班號,課程類型,學(xué)分.(二)、性能需求分析(1) 登錄、用戶界面需求: 簡潔、

8、易懂、易用、有好的用戶界面(2) 安全保密需求: 只有憑借用戶名和密碼登錄系統(tǒng),才能進(jìn)行信息的管理。三、總體設(shè)計(一)、系統(tǒng)總體結(jié)構(gòu)及功能模塊劃分經(jīng)過對系統(tǒng)的需求分析,學(xué)生信息管理系統(tǒng)主要劃分為:系統(tǒng)管理,學(xué)生信息管理,班級信息管理,課程信息管理,學(xué)籍信息管理,成績信息管理六個模塊,如圖3。1所示。圖3。1系統(tǒng)的總體結(jié)構(gòu)1、系統(tǒng)管理模塊系統(tǒng)用戶:這里面包含添加用戶,修改密碼,退出系統(tǒng)三個小部分,如圖3。1。1所示。圖3。1。1系統(tǒng)用戶模塊結(jié)構(gòu)2、學(xué)生信息管理模塊學(xué)生信息管理: 主要是用于學(xué)生信息更新、插入、刪除,如圖3.1。2所示。圖3。1.2學(xué)生信息管理模塊結(jié)構(gòu)3、班級信息管理模塊班級信息管

9、理:添加班級信息,修改班級信息,如圖3.1.3所示。圖3。1。3班級信息管理模塊結(jié)構(gòu)4、課程信息管理模塊課程信息管理:添加課程信息,修改課程信息,設(shè)置課程信息,如圖3.1.4所示。圖3。1。4課程信息管理模塊結(jié)構(gòu)5、成績信息管理模塊成績信息管理:添加成績信息,修改成績 信息,查詢成績信息,如圖3.1。5所示。圖3.1。5成績信息管理模塊結(jié)構(gòu)(二)、系統(tǒng)數(shù)據(jù)庫概念結(jié)構(gòu)設(shè)計信息表設(shè)計:1、學(xué)生信息表如表 Error! Bookmark not defined.所示.表 1學(xué)生信息表列名數(shù)據(jù)類型長度備注學(xué)號Char8主鍵姓名string20無性別Enumeration1無生日Datatim

10、e10無照片Byte50無聯(lián)系電話Varchar20無地址string20無3.2。2班級信息表如Error! Reference source not found.所示。表 Error! Bookmark not defined.班級信息表列名數(shù)據(jù)類型長度備注班號char5主鍵班級名稱String10無班主任String 5無3。2。3課程信息表如Error! Reference source not found.所示.表 2課程信息表列名數(shù)據(jù)類型長度備注課程號Char5主鍵課程名稱String 10無課程類型string5無學(xué)分int5無3。2。4成績信息表如表 Error! Bookma

11、rk not defined.所示。表 Error! Bookmark not defined.成績信息表列名數(shù)據(jù)類型長度備注學(xué)號Char10主鍵課程號Char5主鍵成績類型String5無分?jǐn)?shù)float5無3。2。5用戶信息表如表 Error! Bookmark not defined.所示。表 Error! Bookmark not defined.用戶信息表列名數(shù)據(jù)類型長度備注登錄IDchar5主鍵登錄名String10無用戶名String 10無密碼String 10四、詳細(xì)設(shè)計(一)、系統(tǒng)管理功能模塊的實(shí)現(xiàn)創(chuàng)建一個FormSystemMessage窗體,實(shí)現(xiàn)添加用戶、刪除用戶、修改密

12、碼、退出系統(tǒng)的功能。public partial class FormSystemMessage : Form public FormSystemMessage() InitializeComponent(); private void operatorBindingNavigatorSaveItem_Click(object sender, EventArgs e) this。Validate(); this.operatorBindingSource。EndEdit(); this。tableAdapterManager.UpdateAll(this。dataSetUserPassword

13、); DataSetUserPassword dsp = new DataSetUserPassword(); DataSetUserPasswordTableAdapters.OperatorTableAdapter dsup = new DataSetUserPasswordTableAdapters。OperatorTableAdapter(); private void FormSystemMessage_Load(object sender, EventArgs e) / TODO: 這行代碼將數(shù)據(jù)加載到表“dataSetUserPassword.Operator”中.您可以根 據(jù)需

14、要移動或刪除它. this.operatorTableAdapter。Fill(this。dataSetUserPassword。Operator); dsup。Fill(dsp.Operator); dataGridViewSystemMessage.DataSource = dsp。Operator; private void buttonDelete_Click(object sender, EventArgs e) DataSetUserPassword。OperatorRow row = (DataSetUserPassword。OperatorRow) (((DataRowView

15、)dataGridViewSystemMessage。CurrentRow.DataBoundItem)。Row); if (MessageBox。Show(”您確定要刪除這個用戶嗎?”, "確定提示”) = DialogResult。No) return; row。Delete(); private void buttonAdd_Click(object sender, EventArgs e) if (string。IsNullOrEmpty(nameTextBox。Text)) MessageBox。Show("用戶名不能為空”, "錯誤提示”, Messa

16、geBoxButtons。OK, MessageBoxIcon。Error); return; if (string。IsNullOrEmpty(passwordTextBox.Text) MessageBox.Show("密碼不能為空”, "錯誤提示", MessageBoxButtons.OK, MessageBoxIcon.Error); return; DataSetUserPassword。OperatorRow row = dsp.Operator。NewOperatorRow(); row.Name = nameTextBox。Text; row.P

17、assword = passwordTextBox。Text; dsp。Operator。AddOperatorRow(row); private void buttonSave_Click(object sender, EventArgs e) try dsup。Update(dsp.Operator); MessageBox.Show(”數(shù)據(jù)保存成功", "提示信息", MessageBoxButtons.OK, MessageBoxIcon。Information); catch (Exception ex) MessageBox.Show(ex。Messa

18、ge, ”提示信息", MessageBoxButtons。OK, MessageBoxIcon.Error); private void buttonExit_Click(object sender, EventArgs e) Application。Exit(); (二)、學(xué)生信息管理模塊的實(shí)現(xiàn)4。2.1?!皩W(xué)生信息管理”窗體的實(shí)現(xiàn)如圖4。2.1所示。圖 4。2。1“學(xué)生信息管理”窗體在構(gòu)造函數(shù)前添加數(shù)據(jù)庫上下文對象,并在構(gòu)造函數(shù)中增加以下代碼ScoreManContext db = new ScoreManContext();public FormClass() Initial

19、izeComponent(); db.Studentes。Load(); studentBindingSource。DataSource = db.Studentes。Local; “新添"按鈕代碼實(shí)現(xiàn)如下private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) Student student = new Course(); course.Id = Guid。NewGuid(); FormEditCourse formEdit = new FormEditCourse(course ); if(

20、formEdit.ShowDialog ()=DialogResult。OK) courseBindingSource。Add(course); courseBindingSource。EndEdit(); db。SaveChanges(); “刪除”按鈕代碼實(shí)現(xiàn)如下private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) if (studentBindingSource。Current = null) return; if(Dialogs。ShowConfirm (”你確定刪除嗎")=Dial

21、ogResult.Yes) studentBindingSource。RemoveCurrent(); db。SaveChanges(); “編輯”按鈕代碼實(shí)現(xiàn)如下private void toolStripEdit_Click(object sender, EventArgs e) if (studentBindingSource.Current = null) return; Student student = studentBindingSource.Current as Student; FormStudentEdit formEdit = new FormStudentEdit(st

22、udent); if(formEdit 。ShowDialog ()=DialogResult。OK) studentBindingSource。EndEdit(); db.SaveChanges(); else db.Entry(student).Reload(); studentBindingSource。ResetBindings(false ); 4。2.2。“編輯學(xué)生信息"窗體設(shè)計如圖4。2。2所示。圖 4。2。2“編輯學(xué)生信息"窗體設(shè)計在該窗體中“選擇照片”按鈕代碼實(shí)現(xiàn)如下private void buttonSelectPicture_Click(object

23、 sender, EventArgs e) OpenFileDialog openDialog = new OpenFileDialog(); openDialog。Filter = ”所有圖片(*.jpg;。png;*。bmp;。gif)。jpg;*。png;.gif;*。bmp”; if(openDialog 。ShowDialog()=DialogResult。OK) photoPictureBox。Image = Image。FromFile(openDialog。FileName); “確定”按鈕代碼實(shí)現(xiàn)如下private void buttonOK_Click(object sen

24、der, EventArgs e) if (ValidateData()) DialogResult = DialogResult。OK; “取消"按鈕代碼實(shí)現(xiàn)如下private void buttonCancel_Click(object sender, EventArgs e) DialogResult = DialogResult。Cancel; (三)、班級信息管理模塊的實(shí)現(xiàn)4。3。1.“班級信息管理”窗體設(shè)計如圖4.3。1所示。圖 4。3。1“班級信息管理”窗體設(shè)計在構(gòu)造函數(shù)前添加數(shù)據(jù)庫上下文對象,并在構(gòu)造函數(shù)中增加以下代碼ScoreManContext db = new

25、ScoreManContext();public FormClass() InitializeComponent(); db。Classes。Load(); classBindingSource.DataSource = db。Classes.Local; “新添”按鈕代碼實(shí)現(xiàn)如下private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) Class classes = new Class(); classes。Id = Guid。NewGuid(); FormEditClass formEdit = ne

26、w FormEditClass(); if (formEdit。ShowDialog() = DialogResult。OK) classBindingSource。Add(classes); classBindingSource.EndEdit(); db.SaveChanges(); “刪除"按鈕代碼實(shí)現(xiàn)如下private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) if (classBindingSource.Current = null) return; classBindingSourc

27、e。RemoveCurrent(); db.SaveChanges(); Dialogs。ShowMessage(”刪除成功”); “編輯"按鈕代碼實(shí)現(xiàn)如下private void toolStripButton1_Click(object sender, EventArgs e) if (classBindingSource。Current = null) return; Class classes = classBindingSource。Current as Class; FormEditClass formEdit = new FormEditClass( ); if (fo

28、rmEdit。ShowDialog() = DialogResult.OK) db.SaveChanges(); else db.Entry(classes )。Reload(); 4.3。2?!熬庉嫲嗉壭畔ⅰ贝绑w如圖4.3。2所示。圖4.3。2“編輯班級信息”窗體設(shè)計“確定"按鈕代碼實(shí)現(xiàn)如下private void buttonOK_Click(object sender, EventArgs e) if (ValidateData() DialogResult = DialogResult.OK; “取消”按鈕代碼實(shí)現(xiàn)如下private void buttonCancel_Cli

29、ck(object sender, EventArgs e) DialogResult = DialogResult。Cancel; (四)、課程信息管理模塊的實(shí)現(xiàn)4.4。1?!罢n程信息窗體"設(shè)計如圖4.4。1所示.圖 4.4.1“課程信息窗體”設(shè)計在構(gòu)造函數(shù)前添加數(shù)據(jù)庫上下文對象,并在構(gòu)造函數(shù)中增加以下代碼ScoreManContext db = new ScoreManContext();public FormClass() InitializeComponent(); db.Courses。Load(); courseBindingSource.DataSource = db。

30、Courses。Local; “新添"按鈕實(shí)現(xiàn)代碼如下private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) Course course = new Course(); course.Id = Guid。NewGuid(); FormEditCourse formEdit = new FormEditCourse(course ); if(formEdit。ShowDialog ()=DialogResult.OK) courseBindingSource。Add(course); cours

31、eBindingSource.EndEdit(); db.SaveChanges(); “刪除”按鈕實(shí)現(xiàn)代碼如下private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) if (courseBindingSource。Current = null) return; courseBindingSource.RemoveCurrent(); db。SaveChanges(); Dialogs。ShowMessage(”刪除成功”); “編輯”按鈕實(shí)現(xiàn)代碼如下private void toolStripButt

32、onEdit_Click(object sender, EventArgs e) if (courseBindingSource.Current = null) return; Course course = courseBindingSource。Current as Course; FormEditCourse formEdit = new FormEditCourse(course); if(formEdit 。ShowDialog ()=DialogResult。OK) db。SaveChanges(); else db。Entry(course).Reload(); 4.4。2?!熬?/p>

33、輯課程信息"窗體設(shè)計如圖4。4。2所示。圖 4。4。2“編輯課程信息”窗體設(shè)計“確定”按鈕代碼實(shí)現(xiàn)如下private void buttonOK_Click(object sender, EventArgs e) if (ValidateData() DialogResult = DialogResult。OK; “取消”按鈕代碼實(shí)現(xiàn)如下private void buttonCancel_Click(object sender, EventArgs e) DialogResult = DialogResult.Cancel; (五)、成績信息管理模塊的實(shí)現(xiàn)4.5。1?!俺煽冃畔⒐芾怼?/p>

34、窗體設(shè)計如圖4.5。1所示。圖 4.5.1“成績信息管理”窗體設(shè)計在構(gòu)造函數(shù)前添加數(shù)據(jù)庫上下文對象,并在構(gòu)造函數(shù)中增加以下代碼ScoreManContext db = new ScoreManContext();public FormClass() InitializeComponent(); db。Scores。Load(); scoreBindingSource。DataSource = db.Scores。Local; “新添”按鈕實(shí)現(xiàn)代碼如下 private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e

35、) Score score = new Score(); score。StudentId = Guid。NewGuid(); score.CourseId = Guid。NewGuid(); FormEditScore formEdit = new FormEditScore(); if (formEdit。ShowDialog() = DialogResult。OK) scoreBindingSource.Add(score); scoreBindingSource.EndEdit(); db.SaveChanges(); “刪除”按鈕實(shí)現(xiàn)代碼如下 private void bindingNavigatorDeleteItem_Click(object sender, EventArgs e) if (scoreBindingSource。Current = null) return; scoreBindingSource。RemoveCurrent(); db.SaveChanges(); Dialogs。ShowMessage("刪除成功”); “編輯”按鈕實(shí)現(xiàn)代碼如下 priva

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論