九九热最新网址,777奇米四色米奇影院在线播放,国产精品18久久久久久久久久,中文有码视频,亚洲一区在线免费观看,国产91精品在线,婷婷丁香六月天

歡迎來到裝配圖網! | 幫助中心 裝配圖網zhuangpeitu.com!
裝配圖網
ImageVerifierCode 換一換
首頁 裝配圖網 > 資源分類 > DOC文檔下載  

數據庫學生成績管理系統(tǒng)課程設計報告.doc

  • 資源ID:6492766       資源大?。?span id="24d9guoke414" class="font-tahoma">472.50KB        全文頁數:27頁
  • 資源格式: DOC        下載積分:9.9積分
快捷下載 游客一鍵下載
會員登錄下載
微信登錄下載
三方登錄下載: 微信開放平臺登錄 支付寶登錄   QQ登錄   微博登錄  
二維碼
微信掃一掃登錄
下載資源需要9.9積分
郵箱/手機:
溫馨提示:
用戶名和密碼都是您填寫的郵箱或者手機號,方便查詢和重復下載(系統(tǒng)自動生成)
支付方式: 支付寶    微信支付   
驗證碼:   換一換

 
賬號:
密碼:
驗證碼:   換一換
  忘記密碼?
    
友情提示
2、PDF文件下載后,可能會被瀏覽器默認打開,此種情況可以點擊瀏覽器菜單,保存網頁到桌面,就可以正常下載了。
3、本站不支持迅雷下載,請使用電腦自帶的IE瀏覽器,或者360瀏覽器、谷歌瀏覽器下載即可。
4、本站資源下載后的文檔和圖紙-無水印,預覽文檔經過壓縮,下載后原文更清晰。
5、試題試卷類文檔,如果標題沒有明確說明有答案則都視為沒有答案,請知曉。

數據庫學生成績管理系統(tǒng)課程設計報告.doc

洛 陽 理 工 學 院課 程 設 計 報 告 課程名稱 數據庫課程設計 設計題目 學生成績查詢系統(tǒng) 專 業(yè) 計算機科學與技術 班 級 B100506 學 號 B10050634 姓 名 孫帥杰 完成日期 2013年1月6號 課 程 設 計 任 務 書設計題目: 學生成績管理系統(tǒng) 設計內容與要求: 設計內容:教務員可以輸入學生、教師、班級、課程信息,一個班級只屬于一個專業(yè),一個學生只屬于一個班級。教務員負責輸入每個專業(yè)、每個班級需要學習哪些課程,指定課程的任課教師。一個教師可以教授多個班的多門課程。教師可以查看學習該課程的學生名單。課程結束后,教師可以錄入課程成績。課程分兩類,必修課和選修課。學生可以選修課程,每學期幾門。學生可以查看自己各門課程的成績。學生還可以進行評教,給老師打分。系統(tǒng)管理員可以輸入教室信息,并結合班級、課程、教室信息實現自動排課。設計要求:要求完成需求分析,寫出功能需求和數據需求描述;在需求分析的基礎上完成數據庫的概念結構設計、邏輯結構設計、物理結構設計;用C#語言,完成管理系統(tǒng)的部分程序模塊的界面設計。 指導教師: 陶 榮 2012年12月28日課 程 設 計 評 語 成績: 指導教師: 年 月 日 目 錄1.緒論11.1 設計目的11.2 開發(fā)工具選擇11.3 開發(fā)環(huán)境11.4 本報告的主要內容12.需求分析12.1 系統(tǒng)需求簡介13.總體設計23.1 設計概述23.2 系統(tǒng)總體結構及功能模塊劃分23.3 系統(tǒng)數據庫概念結構設計43.4 邏輯結構設計74.主程序設計104.1 登錄系統(tǒng)104.2 學生信息查詢、保存、及修改124.3 用戶管理185.設計總結與心得體會226.參考文獻23 1.緒論1.1 設計目的本課程設計的目的是使學生能熟練掌握簡單的簡單Windows窗體應用程序的設計和ADO.net的應用,希望通過本次課程設計鍛煉學生使用C#語言解決實際問題的能力。1.2 開發(fā)工具選擇本系統(tǒng)后臺數據庫采用Microsoft SQL Server 數據庫,該數據庫系統(tǒng)在安全性、準確性和運行速度方面有絕對的優(yōu)勢,并且處理數據量大,效率高;前臺采用Microsoft 公司的Visual Studio 2010作為主要開發(fā)工具,可與SQL Server 2008數據庫無縫鏈接。1.3 開發(fā)環(huán)境系統(tǒng)開發(fā)平臺:Microsoft Visual Studio2010系統(tǒng)開發(fā)語言:C#數據庫管理軟件:SQL Server 20081.4 本報告的主要內容本報告詳細的介紹了學生成績管理系統(tǒng)的開發(fā)過程,主要涉及到的工作如下:系統(tǒng)的需求分析、系統(tǒng)的總體設計、系統(tǒng)的概念設計、系統(tǒng)各模塊的詳細設計、系統(tǒng)運行與測試。 2.需求分析2.1系統(tǒng)需求簡介(1)系統(tǒng)目標1.根據查詢條件實現學生信息的查詢2.學生選課信息查詢、成績信息的查詢3.學生信息、課程信息、成績信息的增加、刪除、修改4.對基本信息完成增加、刪除、修改時,需注意表與表之間的關聯(2)功能需求分析本系統(tǒng)的功能需求分析如下:1.學生信息查詢:學生可以根據學號、姓名、專業(yè)進行查詢.2.學生信息管理:主要是用于學生信息更新、插入、刪除;3.學生成績錄入:用于學生成績管理,錄入學生成績,也可以更新;(3)性能需求分析1.登錄、用戶界面需求:簡潔、易懂、易用、友好的用戶界面。2.安全保密性需求:只有憑借用戶名和密碼登陸系統(tǒng),才能進行信息的管理等。 3.總體設計3.1設計概述根據需求把整個系統(tǒng)分化成不同的模塊,每個模塊完成一個特定的子功能。把這些模塊結合起來組成一個整體。逐一實現各個功能。3.2系統(tǒng)總體結構及功能模塊劃分經過對系統(tǒng)的需求分析,學生信息管理系統(tǒng)主要劃分為三個部分:學生信息查詢,學生信息管理,學生成績錄入三個功能模塊。系統(tǒng)的總體結構如圖3-1所示。學生成績錄入學生信息管理學生信息管理系統(tǒng)學生信息查詢 圖3-1 系統(tǒng)的總體結構示意圖(1)學生信息查詢模塊學生信息查詢學號查詢姓名查詢學生信息查詢:學生可以根據本人學號、姓名進行信息查詢。學生信息查詢模塊結構如圖3-2所示。 圖3-2 學生信息管理模塊結構示意圖(2)學生信息管理模塊學生信息管理:主要是用于學生信息更新、插入、刪除。學生管理模塊結構如圖3-3所示?;拘畔浫氤煽冧浫牖拘畔⒏鲁煽兏聦W生信息刪除學生信息錄入學生信息管理學生信息更新圖3-3 學生信息管理模塊結構示意圖3.3系統(tǒng)數據庫概念結構設計根據對數據項與數據結構的分析,設計出能夠滿足系統(tǒng)需求的各種實體,及它們之間的關系,為后面的邏輯結構設計打下基礎。(1)系統(tǒng)E-R圖系統(tǒng)E-R圖可以將各個實體之間的關系顯示出來,將各個實體間的屬性依賴表示明白。 教師與課程之間的關系:教師與課程之間是m: n的關系,即一個老師能教多門課程,一門課程可以由多個老師講授。 圖3-4教師與課程實體圖 學生與教師之間的關系:學生與教師之間是n:m的關系,即一名老師可以教授多個學生,而一個學生可以由多個教師來教。 圖3-5教師與學生的實體圖 學生與課程之間的關系:學生與課程之間是n:m的關系,即一個學生可以選修多門課程,一門課程可以被多個學生選學。 圖3-6學生與課程的實體圖 學生與成績之間的關系是n:m的關系: 圖3-7學生與成績的實體圖 管理員與用戶的關系: 圖3-8管理員與用戶的實體圖圖3-9學生成績管理全局E-R 圖3.4 邏輯結構設計(1)將E-R圖轉化為關系模型為:管理員(用戶名,密碼)學生(學號,姓名,性別,系名,專業(yè),出生日期)教師(教師號,姓名,性別,院系,聯系電話)課程(課程號,課程名,學分,教師)成績(學號,課程號,姓名,課程名,成績,授課老師)管理(教師號,學號,密碼)教授(教師號,課程號,課程名)選修(學號,課程號,成績)講授(教師號,課程號) (2)將以上數據關系模型進行優(yōu)化處理得關系模型:學生信息(學號,姓名,性別,系名,專業(yè),出生日期)教師信息(教師號,姓名,性別,院系,聯系電話)管理員信息(用戶名,密碼,用戶級別)課程表(課程號,課程名,學分,教師)成績表(學號、課程號、成績)(3)物理模型設計 學生信息表具體有學號,姓名,性別,系名,專業(yè),出生日期,如表3-1所示 表3-1學生信息表字段類型長度約束索引學號字符型8主鍵約束有姓名字符型10性別字符型2系名字符型20專業(yè)數值型20出生日期字符型8 教師信息具體有教師號,姓名,性別,院系,專業(yè),聯系電話,如表3-2所示 表3-2教師信息表字段類型長度約束索引教師號字符型8主鍵約束有姓名字符型10性別字符型2院系字符型20專業(yè)數值型20聯系電話字符型11 管理員信息具體有用戶名、密碼、用戶級別,如表3-3所示字段類型長度備注用戶名字符型8學號、教師號密碼字符型6用戶級別字符型10一般操作員/系統(tǒng)管理員 表3-3管理員信息表 課程表信息具體有課程號,課程名,學分,教師,如表3-4所示 表3-4課程表信息字段類型長度約束索引課程號字符型10主鍵約束有課程名字符型30學分字符型2教師字符型10 成績表具體有學號,課程號,成績,如表3-5所示 表3-5成績表字段類型長度約束索引學號字符型8主鍵有課程號字符型10主鍵有成績數值型5 4.主程序設計4.1 登錄系統(tǒng)namespace CourseDesign public partial class LoginForm : Form #region 屬性 / <summary> / 是否登錄 / </summary> private bool _isLogin = false; public bool IsLogin get return _isLogin; set _isLogin = value; /用于記錄當前登錄用戶名; private static string _currentUser; public static string CurrentUser get return _currentUser; /用于記錄當前登錄用戶密碼; private static string _currentPsw; public static string CurrentPsw get return _currentPsw; #endregion public LoginForm() InitializeComponent(); this.labelInfo.Text = "" this.txtBoxUser.Text = "admin" this.txtBoxPsw.Text = "0" /登錄 private void btnOK_Click(object sender, EventArgs e) if (txtBoxUser.Text.Trim() = "") this.labelInfo.Text = "請輸入您的用戶名!" else if (txtBoxPsw.Text.Trim() = "") this.labelInfo.Text = "請輸入您的密碼!" /MessageBox.Show("請輸入您的密碼", "錯誤提示:", MessageBoxButtons.OK, MessageBoxIcon.Warning); else Command com = new Command(); string str = "select * from UserInfo where userId = " + txtBoxUser.Text.ToString() + "" DataTable table = com.GetDataSet(str); if (table.Rows.Count <= 0) this.labelInfo.Text = "用戶名不存在!" txtBoxUser.Text = "" txtBoxPsw.Text = "" return; str = "select * from UserInfo where userId = " + txtBoxUser.Text.ToString() + " and passWard = " + txtBoxPsw.Text.ToString() + "" DataTable tableUser = com.GetDataSet(str); if (tableUser.Rows.Count > 0) _currentUser = txtBoxUser.Text; _currentPsw = txtBoxPsw.Text; IsLogin = true; this.Close(); else this.labelInfo.Text = "密碼錯誤!" txtBoxPsw.Text = "" /取消 private void btnCencle_Click(object sender, EventArgs e) this.Close(); /重置 private void btnReset_Click(object sender, EventArgs e) txtBoxUser.Text = "" txtBoxPsw.Text = "" private void txtBoxUser_Click(object sender, EventArgs e) this.labelInfo.Text = "" private void txtBoxPsw_Click(object sender, EventArgs e) this.labelInfo.Text = "" 圖4-1用戶登錄界面4.2 學生信息查詢、保存、及修改namespace CourseDesign public partial class frmViewInfo : Form #region 屬性 private DBHelper.TypeOfOperationForBill _mOperTypeOfBill = DBHelper.TypeOfOperationForBill.nNull; public DBHelper.TypeOfOperationForBill OperTypeOfBill get return _mOperTypeOfBill; set _mOperTypeOfBill = value; / private bool _isNew = false; public bool IsNew get return _isNew; set _isNew = value; private bool _isModified = false; public bool IsModified get return _isModified; set _isModified = value; #endregion public frmViewInfo(DBHelper.TypeOfOperationForBill OperType) _mOperTypeOfBill = OperTypeOfBill; InitializeComponent(); SetFromText(); public virtual void SetFromText() if (OperTypeOfBill = TypeOfOperationForBill.nView) this.Text = "查看學生信息" else this.Text = "編輯學生信息" /添加 private void toolStripBtnAdd_Click(object sender, EventArgs e) /this.dataGridViewInfo.Rows.Add(); /_isNew = true; Command com = new Command(); string strClass = "select classId from ClassInfo where className = " + dataGridViewInfo.CurrentRow.Cells"classid".Value.ToString() + "" string dtClass = com.GetScalar(strClass).ToString(); string strdept = "select sdeptNo from Sdept where name = " + dataGridViewInfo.CurrentRow.Cells"Sdept".Value.ToString() + "" string dtDept = com.GetScalar(strdept).ToString(); string str = "select * from StudentInfo where stuNum = " + dataGridViewInfo.CurrentRow.Cells"stuNum".Value.ToString() + "" DataTable dtable = com.GetDataSet(str); if (dtable.Rows.Count <= 0) if (dataGridViewInfo"stuNum", dataGridViewInfo.CurrentRow.Index.Value != null && dataGridViewInfo"name", dataGridViewInfo.CurrentRow.Index.Value != null && dataGridViewInfo"sex", dataGridViewInfo.CurrentRow.Index.Value != null && dataGridViewInfo"birthday", dataGridViewInfo.CurrentRow.Index.Value != null && dataGridViewInfo"nation", dataGridViewInfo.CurrentRow.Index.Value != null && dataGridViewInfo"address", dataGridViewInfo.CurrentRow.Index.Value != null && dataGridViewInfo"phone", dataGridViewInfo.CurrentRow.Index.Value != null && dataGridViewInfo"classid", dataGridViewInfo.CurrentRow.Index.Value != null && dataGridViewInfo"Sdept", dataGridViewInfo.CurrentRow.Index.Value != null && dataGridViewInfo"intoSchoolDate", dataGridViewInfo.CurrentRow.Index.Value != null) string sql = "insert into StudentInfo (stuNum,name,sex ,birthday ,nation,address,phone,classid,intoSchoolDate,Sdept) values" sql += "(" + dataGridViewInfo.CurrentRow.Cells"stuNum".Value.ToString() + "," + dataGridViewInfo.CurrentRow.Cells"name".Value.ToString() + "," + dataGridViewInfo.CurrentRow.Cells"sex".Value.ToString() + "," + dataGridViewInfo.CurrentRow.Cells"birthday".Value.ToString() + "," + dataGridViewInfo.CurrentRow.Cells"nation".Value.ToString() + "," + dataGridViewInfo.CurrentRow.Cells"address".Value.ToString() + "," + dataGridViewInfo.CurrentRow.Cells"phone".Value.ToString() + "," + dtClass + "," + dataGridViewInfo.CurrentRow.Cells"intoSchoolDate".Value.ToString() + "," + dtDept + ")" if (com.ExecuteCommand(sql) > 0) dataGridViewInfo.Rows.Clear(); SelectStudentInfo(); MessageBox.Show("數據添加成功!"); else MessageBox.Show("信息填寫不完整!請補充完整!"); else MessageBox.Show("該學生已存在,請審核信息!"); protected virtual void frmViewInfo_Load(object sender, EventArgs e) this.dataGridViewInfo.Rows.Clear(); this.dataGridViewInfo.Columns.Clear(); /this.dataGridViewInfo.EditMode = DataGridViewEditMode.EditOnEnter; DataGridViewColumn col = null; col = new DataGridViewTextBoxColumn(); col.Name = "stuNum" col.HeaderText = "學號" this.dataGridViewInfo.Columns.Add(col); col = new DataGridViewTextBoxColumn(); col.Name = "name" col.HeaderText = "姓名" this.dataGridViewInfo.Columns.Add(col); DataGridViewComboBoxColumn col0 = new DataGridViewComboBoxColumn(); col0.FlatStyle = FlatStyle.Flat; col0.HeaderText = "性別" col0.Name = "sex" col0.Items.Add("男"); col0.Items.Add("女"); this.dataGridViewInfo.Columns.Add(col0); col = new DataGridViewTextBoxColumn(); col.Name = "birthday" col.HeaderText = "出生年月" this.dataGridViewInfo.Columns.Add(col); col = new DataGridViewTextBoxColumn(); col.Name = "nation" col.HeaderText = "民族" this.dataGridViewInfo.Columns.Add(col); col = new DataGridViewTextBoxColumn(); col.Name = "address" col.HeaderText = "籍貫" this.dataGridViewInfo.Columns.Add(col); col = new DataGridViewTextBoxColumn(); col.Name = "phone" col.HeaderText = "聯系電話" this.dataGridViewInfo.Columns.Add(col); col = new DataGridViewTextBoxColumn(); col.Name = "classid" col.HeaderText = "班級" this.dataGridViewInfo.Columns.Add(col); col = new DataGridViewTextBoxColumn(); col.Name = "intoSchoolDate" col.HeaderText = "入學時間" this.dataGridViewInfo.Columns.Add(col); col = new DataGridViewTextBoxColumn(); col.Name = "Sdept" col.HeaderText = "系別" this.dataGridViewInfo.Columns.Add(col); /刪除 private void toolStripBtnDelete_Click(object sender, EventArgs e) Command com = new Command(); if (dataGridViewInfo"stuNum", dataGridViewInfo.CurrentRow.Index.Value != null) string numRow = dataGridViewInfo.CurrentRow.Cells"stuNum".Value.ToString(); string str = "delete from StudentInfo where stuNum = " + dataGridViewInfo.CurrentRow.Cells"stuNum".Value.ToString() + "" if (MessageBox.Show("你確定刪除學號為:" + numRow + "的學生么?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) = DialogResult.OK) string strScore = "select * from ScoreInfo where stuNo = " + dataGridViewInfo.CurrentRow.Cells"stuNum".Value.ToString() + "" DataTable dt = com.GetDataSet(strScore); if (dt.Rows.Count > 0) MessageBox.Show("請先刪除該學生的成績!"); else if (com.ExecuteCommand(str) > 0) /dataGridViewInfo.Rows.Clear(); /SelectStudentInfo(); dataGridViewInfo.Rows.Remove(dataGridViewInfo.CurrentRow); MessageBox.Show("刪除成功!"); else if (MessageBox.Show("該數據行為空,是否刪除該行?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) = DialogResult.OK) dataGridViewInfo.Rows.Remove(dataGridViewInfo.CurrentRow); MessageBox.Show("刪除成功!"); / <summary> / 查詢學生信息 / </summary> public void SelectStudentInfo() Command com = new Command(); string str = "select s.stuNum,s.name,s.sex ,s.birthday ,s.nation,s.address,s.phone,c.className,s.intoSchoolDate,sd.name from StudentInfo s,ClassInfo c,Sdept sd" + " where s.classid = c.classID and s.Sdept = sd.sdeptNo" DataTable dt = com.GetDataSet(str); for (int i = 0; i < dt.Rows.Count; i+) dataGridViewInfo.Rows.Add(); for (int k = 0; k < dt.Columns.Count; k+) dataGridViewInfo.Rowsi.Cellsk.Value = dt.Rowsik.ToString(); dataGridViewInfo.Rowsi.Tag = false; /保存 private void toolStripBtnSave_Click(object sender, EventArgs e) Command com = new Command(); for (int i = 0; i < dataGridViewInfo.Rows.Count - 1; i+) string strClass = "select classId from ClassInfo where className = " + dataGridViewInfo.Rowsi.Cells"classid".Value.ToString() + "" string dtClass = com.GetScalar(strClass).ToString(); string strdept = "select sdeptNo from Sdept where name = " + dataGridViewInfo.Rowsi.Cells"Sdept".Value.ToString() + "" string dtDept = com.GetScalar(strdept).ToString(); string sql = "update StudentInfo set stuNum = " + dataGridViewInfo.Rowsi.Cells"stuNum".Value.ToString() + ",name = " + dataGridViewInfo.Rowsi.Cells"name".Value.ToString() + ",sex = " + dataGridViewInfo.Rowsi.Cells"sex".Value.ToString() + ",birthday = " + dataGridViewInfo.Rowsi.Cells"birthday".Value.ToString() + ",nation = " + dataGridViewInfo.Rowsi.Cells"nation".Value.ToString() + ",address = " + dataGridViewInfo.Rowsi.Cells"address".Value.ToString() + ",phone = " + dataGridViewInfo.Rowsi.Cells"phone".Value.ToString() + ",classid = " + dtClass + ",intoSchoolDate = " + dataGridViewInfo.Rowsi.Cells"intoSchoolDate".Value.ToString() + ",Sdept = " + dtDept + " where stuNum = " + dataGridViewInfo.Rowsi.Cells"stuNum".Value.ToString() + "" if (com.ExecuteCommand(sql) > 0) dataGridViewInfo.Rows.Clear(); SelectStudentInfo(); MessageBox.Show("數據修改成功!"); else MessageBox.Show("數據修改失?。?quot;); 圖4-2查看學生信息 圖4-3學生信息顯示4.3 用戶管理namespace CourseDesign public partial class FormPassword : Form public FormPassword() InitializeComponent(); this.btnOk.Click += new System.EventHandler(this.btnOk_Click); protected void btnOk_Click(object sender, EventArgs e) if (txtBoxOldPsw.Text = null | txtBoxOldPsw.Text.Trim() = "") MessageBox.Show("請輸入舊密碼!。", "提醒", MessageBoxButtons.OK, MessageBoxIcon.Information); return; if (txtBoxNewPsw.Text = null | txtBoxNewPsw.Text.Trim() = "" | txtBoxEnterPsw.Text = null | txtBoxEnterPsw.Text.Trim() = "") MessageBox.Show("請輸入新密碼!。", "提醒", MessageBoxButtons.OK, MessageBoxIcon.Information); return; string currPwd = LoginForm.CurrentPsw; if (currPwd = txtBoxOldPsw.Text.Trim() if (isSame()

注意事項

本文(數據庫學生成績管理系統(tǒng)課程設計報告.doc)為本站會員(w****2)主動上傳,裝配圖網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對上載內容本身不做任何修改或編輯。 若此文所含內容侵犯了您的版權或隱私,請立即通知裝配圖網(點擊聯系客服),我們立即給予刪除!

溫馨提示:如果因為網速或其他原因下載失敗請重新下載,重復下載不扣分。




關于我們 - 網站聲明 - 網站地圖 - 資源地圖 - 友情鏈接 - 網站客服 - 聯系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網版權所有   聯系電話:18123376007

備案號:ICP2024067431-1 川公網安備51140202000466號


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務平臺,本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對上載內容本身不做任何修改或編輯。若文檔所含內容侵犯了您的版權或隱私,請立即通知裝配圖網,我們立即給予刪除!