身份認證系統(tǒng).doc_第1頁
身份認證系統(tǒng).doc_第2頁
身份認證系統(tǒng).doc_第3頁
身份認證系統(tǒng).doc_第4頁
身份認證系統(tǒng).doc_第5頁
已閱讀5頁,還剩47頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

摘 要學生管理系統(tǒng)對于學校的決策者和管理者來說都至關重要,是一個教育單位不可缺少的管理工具,能夠為用戶提供充足的信息和快捷的查詢手段。本學生管理系統(tǒng)是基于vb技術的系統(tǒng)。包括個人情況模塊、考勤模塊、獎學金模塊、等級考試模塊、個人成績模塊、選修成績模塊、個人交費情況模塊、用于控制操作級別的用戶管理模塊。在這些模塊中,除了基本的刪除、添加、查詢外,有的模塊還加了更加詳細的查詢內容。關鍵詞:學生管理系統(tǒng);模塊;查詢iabstractthe student management system is vital for decision-makers and managers of schools. it is an indispensable management tool which can provide sufficient information and quick query measure for them. this student management system is based on vb technology, includes the individual situation module, the checking attendance module,the scholarship module,the rank test module,the individual performance module, the choose course result module,the individual paying-fee situation module,the user management module. basic functions such as delete, add and query are realized in these modules,and more detailed query contents are added in some of the modules.keywords:the sudent mnagement system; module; queryii目 錄第一章 界面設計.11.1 菜單欄的設計.21.2 工具欄的設計.41.3 狀態(tài)欄的設計.5第二章 模塊設計.72.1 個人情況模塊.72.2 考勤模塊 .182.3 獎學金模塊.252.4 等級考試模塊 個人成績模塊 選修成績模塊.292.5 個人交費情況.372.6 用戶管理模塊.392.7 登陸模塊.432.8 ado控件.45結束語.46致謝.47參考文獻.48第一章 界面設計學生管理系統(tǒng)是一個教育單位不可缺少的部分,它的內容對于學校的決策者和管理者來說都至關重要,所以學生檔案管理系統(tǒng)應該能夠為用戶提供充足的信息和快捷的查詢手段。一直以來人們使用傳統(tǒng)人工的方式管理文件檔案,這種管理方式存在著許多缺點:效率低、保密性差,另外時間一長,將產生大量的文件和數(shù)據(jù),這對于查找、更新和維護都帶來了不少的困難。隨著科學技術的不斷提高,計算機科學日漸成熟,其強大的功能已為人們深刻認識,它已進入人類社會的各個領域并發(fā)揮著越來越重要的作用。使用計算機對學生檔案信息進行管理,具有手工管理無法比擬的優(yōu)點。如:檢索迅速、查找方便、可靠性高、存儲量大、保密性好、壽命長、成本低等,這些優(yōu)點能夠極大地提高學生檔案管理的效率。本學生管理系統(tǒng)包括個人情況模塊、考勤模塊、獎學金模塊、等級考試模塊、個人成績模塊、選修成績模塊、個人交費情況模塊、用于控制操作級別的用戶管理模塊。在這些模塊中,除了基本的刪除、添加、查詢外,有的模塊還加了更加詳細的查詢內容。1.1 菜單欄的設計在窗體的標題欄下顯示的是菜單欄,它包含一個或多個菜單標題。在程序運行時,當用戶選擇某個菜單標題時會下拉出一個菜單,菜單中的菜單項可以是命令、選項、分隔條或子菜單標題。每個菜單項都是一個控件,與其他控件一樣也有自己的屬性和事件。菜單項的每個屬性都能設置和查看,如name(名稱)和caption(標題)屬性等。每個菜單項只能響應一個事件,即click事件。具體步驟如下:(1)在設計狀態(tài),選擇工具“菜單下的菜單編輯器(ctrl+e)”命令,會出現(xiàn)菜單編輯器窗口。(2)在菜單設計窗口中,按下表對每一個菜單項輸入標題、控制名稱和相應的快捷鍵。如表1-1菜單項的設計。表1-1 菜單項的設置菜單項名稱快捷鍵系統(tǒng)管理xitong添加用戶useraddctrl+a修改密碼usermodictrl+b重新登陸denglu2ctrl+f1_e14退出exitctrl+a考勤管理kaoqingguanli考勤情況輸入kaoqintianjia考勤情況查詢kaoqinchaxun考勤記錄刪除kaoqinshanchu學生檔案管理dangan檔案瀏覽studentliulanctrl+g檔案刪除studendelete檔案添加studentaddctrl+f檔案查詢studentfindctrl+h學生交費管理jiaofei_ee學生交費瀏覽jiaofeibrowsectrl+m學生交費添加jiaofeiaddctrl+n學生交費查詢jiaofeifindctrl+o選修課管理xuanxiukeguanli選修成績添加xuanxiuchengjitianjiactrl+p選修成績刪除xuanxiuchengjishanchu選修成績查詢xuanxiuchengjichaxun成績與獎學金管理cjjxjguanli獎學金管理jiangxuejin獎學金結果輸入jxjtianjia獎學金結果刪除jxjshanchu獎學金情況查詢jxjchuxun成績管理cjguanli成績刪除chengjishanchuctrl+r成績添加cjaddctrl+s成績查詢cjfindctrl+u等級考試管理djksgl等級考試查詢djkschaxun等級考試添加djkstianjia等級考試刪除djksshanchu當完成所有輸入工作后,選擇“確定”命令按鈕,就完成了整個菜單的建立工作,然后給各個菜單的click事件中寫入代碼。1.2 工具欄的設計工具欄是為用戶提供了應用程序中最常用的菜單命令的快速訪問方法,進一步增強應用程序的菜單界面,工具欄制作的方法是將toolbar、imagelist組合使用。創(chuàng)建工具欄的步驟是:(1)在imagelist控件中添加所需的圖像。imagelist控件不單獨使用,專門為其他控件提供圖像庫,是一個圖像容器控件。在窗體上增加imagelist控件后,選中該控件,單擊右鍵,從彈出的快捷菜單中選擇“屬性”,然后在“屬性頁”對話框選擇“圖像”標簽,在圖像框中插入圖像,每個圖像的屬性見表1-2。表1-2 控件屬性的設置imagelist控件屬性toolbar控件按鈕屬性索引(index)關鍵字(key)索引(index)樣式(style)圖像(image)tianjia40tianjiachaxun20chaxunsanchu60sanchujisuan100jisuanguanbi120guanbi(2)在toolbar控件中創(chuàng)建button對象。toolbar控件中的每個按鈕的圖像都來自imagelist對象中插入的圖像。為工具欄連接圖像在窗體上增加toolbar控件后,打開“屬性頁”對話框,選擇“通用”標簽,對其各項進行設置,一般取默認值。為工具欄增加按鈕在“屬性頁”對話框中選擇“按鈕”標簽,單擊“插入按鈕”可以在工具欄增加按鈕,然后對各屬性進行設置。(3)在uttonclick事件中用select case語句對各按鈕進行相應的編程。1.3 狀態(tài)欄的設計狀態(tài)欄用來顯示系統(tǒng)信息和對用戶的提示。創(chuàng)建狀態(tài)欄的步驟是:(1)建立狀態(tài)欄設計時,在窗體上增加statusbar控件后,打開其“屬性面”對話框,選擇“窗格”標簽,設置個窗格,各窗格屬性設置如表1-3。表1-3 statusbar控件屬性設置索引(index)樣式(style)文本(text)說明sbrtext學生管理系統(tǒng)顯示學生管理系統(tǒng)sbrtext顯示當前操作員sbrtext顯示當前用戶是管理員還是普通用戶sbrtext顯示開發(fā)該軟件的組成人員sbrtext空白(2)運行時改變狀態(tài)欄運行時,能重新設置窗格panel對象以反映不同的功能,除第一個窗格外其它的窗格都通過編程來實現(xiàn)。第二章 模塊設計本學生管理系統(tǒng)結構圖,如圖2-1所示:用 戶 管 理學生管理系統(tǒng)考 勤 管 理學 生 檔 案 管 理學 生 交 費 管 理選 修 課 管 理成 績 管 理獎 學 金 管 理等 級 考 試 管 理圖2-1 學生管理系統(tǒng)結構圖2.1 個人情況模塊個人情況模塊有三個小的模塊組成:修改與添加,刪除,查詢。2.1.1 個人基本情況添加界面如圖2-2所示:圖2-2 個人信息添加個人基本情況添加模塊的設計思想是首先看輸入的內容,即個人信息是不是空的。如果是空的,則不允許添加;如果不是空的,那么在個人情況表與個人詳細情況表中加入界面上所輸入的信息。它的添加功能是用下面的代碼實現(xiàn)的:if trim(text1) = or trim(text2) = or trim(text3) = or trim(text4) = or trim(text5) = or trim(text6) = or trim(text7) = or trim(text9) = or trim(text10) = or trim(text11) = thenmsgbox 所有信息都不能為空!exit subend ifadodc1.recordsource = select * from jibenqingkuangadodc1.refreshadodc1.recordset.addnewadodc1.recordset.fields(學號) = trim(text1)adodc1.recordset.fields(姓名) = trim(text2)adodc1.recordset.fields(性別) = trim(text3)adodc1.recordset.fields(班級) = trim(text4)adodc1.recordset.fields(專業(yè)) = trim(text5)adodc1.recordset.fields(年齡) = val(trim(text6)adodc1.recordset.fields(出生日期) = trim(text7)adodc1.recordset.fields(政治面貌) = trim(combo1.text)adodc1.recordset.updateadodc1.recordset.closeadodc1.recordsource = select * from xiangxiqingkuangadodc1.refreshadodc1.recordset.addnewadodc1.recordset.fields(姓名) = trim(text2)adodc1.recordset.fields(身份證號) = trim(text9)adodc1.recordset.fields(生源所在地) = trim(text10)adodc1.recordset.fields(家庭所在地) = trim(text11)adodc1.recordset.updatemsgbox 個人基本情況和詳細情況的記錄添加成功!2.1.2 個人基本情況的查詢界面如圖2-3所示:圖2-3 基本情況查詢設計思想是先在條件中輸入要查找的條件,然后按所輸入的條件用sql語言的select語句進行查詢。在查詢之前,要看看輸入的條件是不是為空,如果為空,出現(xiàn)提示,“沒有輸入條件,請輸入!”然后,在根據(jù)姓名條件的精確或是模糊進行查詢。查詢到的個人信息,放到具體的文本框中。它的四個按鈕用來控制得到的記錄集的上下移動。中間自己定義了一個過程move1,用來更新文本框的數(shù)據(jù)。部分代碼如下:查詢代碼:dim sql as stringsql = 1if trim(text1) = and trim(text2) = and trim(text3) = and trim(text4) = and trim(combo1.text) = 忽略 and trim(combo2.text) = 忽略 thenmsgbox 沒有輸入條件,請輸入!exit subend ifif trim(text1) thenif option1.value thensql = sql + and 姓名= & text1 & elsesql = sql + and 姓名 like % & text1 & %end ifend ifif trim(text2) then sql = sql + and 年齡 & trim(combo3.text) & text2 & if trim(text3) then sql = sql + and 學號 & trim(combo4.text) & & text3 & if trim(text4) then sql = sql + and 班級= & text4 & if trim(combo1.text) 忽略 then sql = sql + and 專業(yè)= & trim(combo1.text) & if trim(combo2.text) 忽略 then sql = sql + and 性別= & trim(combo2.text) & adodc1.recordsource = select * from jibenqingkuang where & sqladodc1.refreshif adodc1.recordset.eof thenmsgbox jibenqingkuang表,沒有滿足條件的記錄!command3.enabled = falsecommand4.enabled = falsecommand5.enabled = falsecommand6.enabled = falseelsecommand3.enabled = falsecommand4.enabled = falsecommand5.enabled = truecommand6.enabled = truemove1end ifif adodc1.recordset.bof thencommand3.enabled = falsecommand4.enabled = falseelsecommand3.enabled = truecommand4.enabled = trueend ifcommand5.enabled = truecommand6.enabled = trueadodc1.recordset.movepreviousmove1move1的代碼如下:text6.text = adodc1.recordset.fields(學號)text7.text = adodc1.recordset.fields(姓名)text8.text = adodc1.recordset.fields(性別)text9.text = adodc1.recordset.fields(班級)text10.text = adodc1.recordset.fields(年齡)text11.text = adodc1.recordset.fields(專業(yè))text12.text = adodc1.recordset.fields(政治面貌)text13.text = adodc1.recordset.fields(出生日期)adodc2.recordsource = select * from xiangxiqingkuang where 姓名= & trim(text7.text) & adodc2.refreshif adodc2.recordset.eof = true thenmsgbox xiangxiqingkuang表,沒有滿足條件的記錄!exit subelsetext5.text = adodc2.recordset.fields(獎懲)text14.text = adodc2.recordset.fields(身份證號)text15.text = adodc2.recordset.fields(生源所在地)text16.text = adodc2.recordset.fields(家庭所在地)end if另外,界面中還有一個修改按鈕,是用來對數(shù)據(jù)庫中的數(shù)據(jù)進行更正。如果不點這個按鈕,就不能對文本中的數(shù)據(jù)進行修改,修改之后還需點保存按鈕,寫到數(shù)據(jù)庫中。否則不能寫到數(shù)據(jù)庫中。修改按鈕代碼如下:if gly = false thenmsgbox 你不是管理員,此按鈕你不能使用!exit subend ifif command7.caption = 修改 thentext5.locked = falsetext8.locked = falsetext9.locked = falsetext10.locked = falsetext11.locked = falsetext12.locked = falsetext13.locked = falsetext14.locked = falsetext15.locked = falsetext16.locked = falsecommand7.caption = 保存elsetext5.locked = truetext8.locked = truetext9.locked = truetext10.locked = truetext11.locked = truetext12.locked = truetext13.locked = truetext14.locked = truetext15.locked = truetext16.locked = truecommand7.caption = 修改adodc1.recordset.fields(學號) = text6.textadodc1.recordset.fields(姓名) = text7.textadodc1.recordset.fields(性別) = text8.textadodc1.recordset.fields(班級) = text9.textadodc1.recordset.fields(年齡) = text10.textadodc1.recordset.fields(專業(yè)) = text11.textadodc1.recordset.fields(政治面貌) = text12.textadodc1.recordset.fields(出生日期) = text13.textadodc2.recordset.fields(獎懲) = text5.textadodc2.recordset.fields(身份證號) = text14.textadodc2.recordset.fields(生源所在地) = text15.textadodc2.recordset.fields(家庭所在地) = text16.textadodc1.recordset.updateadodc2.recordset.updateend if在瀏覽表中單擊,瀏覽之后,就可以看到個人情況的所有資料。用上一條、下一條、首條、末條四個按鈕,就可以完成瀏覽操作。刪除個人情況的設計思想是,首先根據(jù)用戶輸入的查詢條件(姓名可以是姓氏,也可以是名字,也就是說可以進行精確的查詢,也可以進行模糊的查詢。學號也是,可以根據(jù)是等于學號,還是一個范圍來找一個人,還是一批人的信息。),找到要刪除的人的信息,然后詢問用戶是否真的要刪除。用戶回答是,就把用戶有關的所有滿足條件的記錄都刪除。用戶回答否之后,不進行任何操作。2.1.3 個人情況刪除界面如圖2-4所示:圖2-4個人情況刪除刪除按鈕的代碼如下;dim sql as stringtext1 = trim(text1)text2 = trim(text2)text3 = trim(text3)text4 = trim(text4)if text1 = and text2 = and text3 = and text4 = thenmsgbox 請輸入條件! exit subend ifsql = 1if trim(text1) thenif combo1.text = 精確 thensql = sql + and 姓名= & text1 & elsesql = sql + and 姓名 like % & text1 & %end ifend ifif option1.value thenif text2 then sql = sql + and 學號= & text2 & elseif text3 then sql = sql + and 學號= & text3 & if text4 then sql = sql + and 學號 3 thenadodc1.recordset.fields(第n周) = mid(trim(combo1.text), 2, 2)elseadodc1.recordset.fields(第n周) = mid(trim(combo1.text), 2, 1)end ifadodc1.recordset.fields(節(jié)次) = trim(combo2.text)adodc1.recordset.fields(星期幾) = trim(combo3.text)adodc1.recordset.fields(總節(jié)數(shù)) = trim(text2.text)adodc1.recordset.fields(缺課事由) = trim(text3.text)adodc1.recordset.updatemsgbox 學號: & trim(text1) & 添加成功!這個界面中的瀏覽按鈕用來讓用戶查看添加之后的所有表中的信息。它可以把表單放大,代碼如下:adodc1.recordsource = select * from kaoqinbiao adodc1.refreshif command3.caption = 瀏覽 thenform5.height = 6030command3.caption = 返回elseform5.height = 3165command3.caption = 瀏覽end if2.2.2 刪除模塊刪除的設計思想和上一個模塊的設計思想一樣,都是先找到符合條件的記錄。然后,再進行刪除。不過有一點不同的是,這個刪除條件之間的關系,可以是并且的關系,也可以是或者的關系。它用兩個單選按鈕來實現(xiàn)。界面如圖2-6所示:圖2-6 考勤表刪除核心代碼如下:dim sql as stringif option2.value then sql = 1if trim(text1) then sql = sql + and 學號= & trim(text1) & if trim(text2) then sql = sql + and 總節(jié)次= & trim(text2) & if trim(text3) then sql = sql + and 缺課事由= & trim(text3) & if combo1.text 忽略 thenif len(trim(combo1.text) 3 then sql = sql + and 第n周= & mid(trim(combo1.text), 2, 2) & elsesql = sql + and 第n周= & mid(trim(combo1.text), 2, 1) & end ifend ifif combo2.text 忽略 then sql = sql + and 節(jié)次= & trim(combo2.text) & if combo3.text 忽略 then sql = sql + and 總節(jié)數(shù)= & trim(combo3.text)elsesql = 0if trim(text1) then sql = sql + or 學號= & trim(text1) & if trim(text2) then sql = sql + or 總節(jié)次= & trim(text2) & if trim(text3) then sql = sql + or 缺課事由= & trim(text3) & if combo1.text 忽略 thenif len(trim(combo1.text) 3 then sql = sql + or 第n周= & mid(trim(combo1.text), 2, 2) & elsesql = sql + or 第n周= & mid(trim(combo1.text), 2, 1) & end ifend ifif combo2.text 忽略 then sql = sql + or 節(jié)次= & trim(combo2.text) & if combo3.text 忽略 then sql = sql + or 總節(jié)數(shù)= & trim(combo3.text)end ifadodc1.recordsource = select * from kaoqinbiao where & sqladodc1.refreshif adodc1.recordset.eof thenmsgbox 沒有滿足條件的記錄!請重輸入。exit subelseform7.height = 5040end ifn = msgbox(顯示的為滿足條件的記錄,是否真的要全部刪除!, 36, 刪除嗎?)if n = vbyes thendo while not adodc1.recordset.eofadodc1.recordset.deleteadodc1.recordset.updateadodc1.recordset.movenextif adodc1.recordset.eof then exit doloopmsgbox 成功刪除!end if2.2.3 考勤表的查詢界面如圖2-7所示:圖2-7 考勤表查詢考勤表的查詢和個人情況表的查詢設計思想是一樣的。有一點不同的是,它也可以進行模糊的查詢與精確的查詢??梢栽诒韱谓缑娴臈l件的關系框中進行選擇。條件之間的關系是同時,還是或者的關系。同樣,再輸入查詢條件的時候,在文本框中,要不輸入數(shù)據(jù)的規(guī)范格式,要不然就不輸入數(shù)據(jù)。不輸入數(shù)據(jù)的話,就不按此項查詢,只有輸入了,才按輸入的數(shù)據(jù)進行查找。查詢的代碼如下:dim sql as stringif option2.value then sql = 1if trim(text1) then sql = sql + and 學號= & trim(text1) & if trim(text2) then sql = sql + and 總節(jié)次= & trim(text2)if trim(text3) then sql = sql + and 缺課事由= & trim(text3) & if combo1.text 忽略 then sql = sql + and 第n周= & trim(mid(combo1.text, 2, 2) & if combo2.text 忽略 then sql = sql + and 節(jié)次= & trim(combo2.text) & if combo3.text 忽略 then sql = sql + and 星期幾= & trim(combo3.text) & elsesql = 0if trim(text1) then sql = sql + or 學號= & trim(text1) & if trim(text2) then sql = sql + or 總節(jié)次= & trim(text2)if trim(text3) then sql = sql + or 缺課事由= & trim(text3) & if combo1.text 忽略 then sql = sql + or 第n周= & trim(mid(combo1.text, 2, 2) & if combo2.text 忽略 then sql = sql + or 節(jié)次= & trim(combo2.text) & if combo3.text 忽略 then sql = sql + or 星期幾= & trim(combo3.text) & end ifadodc1.recordsource = select * from kaoqinbiao where & sqladodc1.refreshif adodc1.recordset.eof thenmsgbox 沒有滿足條件的記錄!請重輸入。exit subelsecommand3.enabled = trueend if進行查詢之后,才可以進行“修改”工作。(必須單擊修改按鈕之后,才可以進行修改。)在單擊了修改按鈕之后,還要看他是不是管理員,是管理員才能繼續(xù)使用,不是的話

溫馨提示

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

評論

0/150

提交評論