vf學生信息管理系統(tǒng)畢業(yè)論文_第1頁
已閱讀1頁,還剩46頁未讀 繼續(xù)免費閱讀

下載本文檔

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

文檔簡介

1、<p><b>  目 錄</b></p><p>  1 引言………………………………………………………………………………… 1</p><p>  2 需求分析…………………………………………………………………………… 2</p><p>  3 系統(tǒng)功能………………………………………………………………………… 3&l

2、t;/p><p>  4 數(shù)據庫設計……………………………………………………………………… 3</p><p>  5 數(shù)據流程圖……………………………………………………………………… 4</p><p>  6 表單、報表………………………………………………………………… 5</p><p>  7 退出系統(tǒng)…………………………………………

3、…………………………… 26</p><p>  8 系統(tǒng)的優(yōu)缺點……………………………………………………………… 26</p><p>  參考文獻……………………………………………………………………………… 46</p><p>  致謝 ………………………………………………………………………………… Y</p><p>  本文介紹了學

4、生學籍管理的開發(fā)過程。論文詳盡論述了從需求分析、系統(tǒng)分析、詳細設計、以及測試與調試的整個開發(fā)過程。</p><p>  文章中所論述的管理信息系統(tǒng),是一個將業(yè)務處理從純人工操作轉換成人工與計算機共同處理的一個實例,并對轉換過程進行了詳細策劃, 可作為同類計算機管理信息系統(tǒng)的應用參考。</p><p>  本軟件開發(fā)的過程中采用MS Visual foxpro6.0 開發(fā)工具,采用成熟的軟件

5、研制技術。在本文中,總結了開發(fā)過程中的經驗及本系統(tǒng)今后的改進方向。</p><p>  關鍵詞:管理信息系統(tǒng) 學生管理 DBF</p><p>  This text introduced the student's development process of the student status management.The thesis discussed in det

6、ails analytical from the need, system analysis, detailed design, and test and the whole development process that adjust to try.</p><p>  The management information system discuss in the article, is a handle

7、business to operate the conversion to become the artificial and calculators to handle together a from the pure artificial solid example, and carry on the detailed plan towards converting the process, can be applied refer

8、ence of the of the same kind calculator management information system.</p><p>  It adopt the MS Visual foxpro6.0 in the process of this software development development tool, adoption mature of software res

9、earch to manufacture the technique.In this text, tallied up the improvement direction of the experience and this system within the development process aftertime.</p><p>  Keyword:Manage the information syste

10、m student's management DBF</p><p><b>  需求分析 </b></p><p>  學生信息管理系統(tǒng)是每一個班主任老師進行管理所必須的,學生信息管理系統(tǒng)包括對學生的信息和成績進行錄入、修改、查詢、刪除、打印預覽等操作。記得以前看見班主任老師對學生的信息進行處理時都是人工直接完成的,總是在那一張張的紙上記載著每一個學生的

11、信息還有成績,由于數(shù)據量又大所以好費力呀!為此我就想到要設計這個系統(tǒng)。</p><p><b>  運行環(huán)境:</b></p><p><b>  硬件平臺:</b></p><p>  服務器:數(shù)據庫服務器選用專用服務器或高性能PC機,</p><p>  配置:128M內存、8G硬盤、CDROM

12、光驅。</p><p>  客戶端:選用PC機,</p><p>  配置:64M(建議至少32M)內存、硬盤可用空間大于1G。</p><p><b>  軟件平臺:</b></p><p>  服務器操作系統(tǒng):WIN2000 Sever。</p><p>  客戶端操作系統(tǒng):中文WIN98或W

13、INNT Workstation 或 WIN2000 Workstation。</p><p>  由于visual foxpro6.0具有強大的數(shù)據庫管理功能,而且數(shù)據獨立性又強又可以減少數(shù)據冗余性,所以就選擇了 visual foxpro6.0來實現(xiàn)了學生信息管理系統(tǒng)的各項功能。</p><p><b>  二、系統(tǒng)功能</b></p><p&

14、gt;  學生信息管理系統(tǒng)具體功能如下:</p><p>  權限:該系統(tǒng)要輸入密碼,才可以進行數(shù)據錄入、修改、查詢、刪除、打印預覽以及系統(tǒng)維護。</p><p>  信息更新:本系統(tǒng)可以對學生的信息和成績進行修改、查詢、刪除、增加等操作。</p><p> ?、?、信息查詢:本系統(tǒng)可以通過學號和姓名來對學生的信息和成績進行查詢。</p><p&g

15、t; ?、堋⒊煽儏R總:可以對學生的成績、最高分、最低分進行預覽。</p><p> ?、荨⑼顺觯和顺鱿到y(tǒng)。</p><p><b>  三、數(shù)據庫設計</b></p><p>  學生信息管理系統(tǒng)所需要用到的數(shù)據庫表有:</p><p>  數(shù)據庫(student.dbc)</p><p>  學

16、生信息表(xingxi.dbf)</p><p>  學生成績表(chengji.dbf)</p><p>  打印預覽成績總表(daying.dbf)</p><p>  表之間的關系,設xingxi.dbf表的學號為主索引,chengji.dbf表的學號為普通索引。</p><p><b>  四、數(shù)據流程圖</b>

17、</p><p><b>  五、表單、報表:</b></p><p>  表單zjm的相關內容:</p><p>  在此表單中插入一張背景圖和設它的caption屬性為“主界面”,name屬性為form3,同時有三個標簽、一個命令按鈕組、一個計時器。分別設標簽的屬性caption為“學生信息管理系統(tǒng)”、“設計人:王 蕓”、“設計時間:200

18、5年4月20日”,同時設它們的fontname,fontoutline,fontsize,forecolor,backstyle屬性值,在命令按鈕組的生成器中輸入進入系統(tǒng)和退出系統(tǒng),在進入系統(tǒng)的click事件中輸入:do form mima 在退出系統(tǒng)click事件中輸入:quit 設計時器的interval屬性值為100,在計時器的timer事件中輸入:</p><p>  if thisform.la

19、bel2.top>=168</p><p>  thisform.label2.top=thisform.label2.top-3</p><p>  thisform.label3.top=thisform.label3.top-3</p><p><b>  else</b></p><p>  thisfor

20、m.timer1.enabled=.f.</p><p><b>  endif</b></p><p>  thisform.refresh()</p><p><b>  就這樣保存即可。</b></p><p>  表單mima的相關內容:</p><p>  在此表單

21、中插入一張背景圖片,設它的caption屬性為“輸入密碼”,name屬性為form4。在此表單中有兩個標簽、一個文本框、兩個命令按鈕,設兩個標簽和兩命令按鈕的caption分別為“歡迎使用本系統(tǒng)”、“請輸入密碼”、“確認”、“返回”,之后分別設它們的fontname,fontoutline,fontsize,forecolor,backstyle的屬性值。設文本框的fontsize, forecolor,passwordchar為*的屬

22、性值。在“確認”中輸入如下:</p><p>  if thisform.text1.value="123456"</p><p>  do form yk</p><p><b>  else</b></p><p>  =messagebox("密碼錯誤",64,"提

23、示")</p><p><b>  endif</b></p><p>  在“返回”按鈕中輸入:do form zjm</p><p><b>  最后保存起即可。</b></p><p>  表單yk的主要內容:</p><p>  在此表單中插入一張背圖片,同

24、時加入一個標簽設的caption屬性為:“學生信息管理系統(tǒng)”,將它的caption屬性改為“頁框”,name屬性改為form11。在此表單中有一個頁框組這個組中有四個頁框設它的pagecount屬性為4,分別設它們的caption屬性為:“學生信息”,“學生成績”,“打印預覽”,“系統(tǒng)維護”同時改它們的fontsize, fontname,forecolor。當然還有一個計時器和一個標簽,設計時器的interval屬性值20,標簽的na

25、me屬性為label2,在計時器中的timer事件中輸入:</p><p>  if thisform.label3.caption!=time()</p><p>  thisform.label3.caption=time()</p><p><b>  endif</b></p><p>  在“學生信息”這個頁框

26、中有三個標簽,六個命令按鈕,一張圖片,其中有一個標簽的caption屬性值為“選擇操作內容”,命令按鈕的caption屬性分別為:“錄入信息”,“修改信息”,“查詢信息”,“刪除信息”,“結束操作”,其中有一個按鈕上就是那張圖片。“錄入信息”的click事件為:do form lrxx.scx ,“修改信息”的click事件為:do form xgxx.scx ,“查詢信息”的click事件為:do form cxxx.scx ,“刪除

27、信息”的click事件為:do form scxx.scx ,“結束操作”的click事件為:quit 。在這些過程中分別分設它們的fontname,fontoutline,fontsize,forecolor,backcolor的屬性值。</p><p>  在“學生成績”這個頁框中有三個標簽,五個命令按鈕還有一張圖片。其中有一個標簽的caption屬性值為:“選擇操作內容”,命令按鈕的caption屬性分別為

28、:“錄入成績”,“修改成績”,“查詢成績”,“結束操作”,其中有一個命令按鈕上就是那張圖片?!颁浫氤煽儭钡腸lick事件為:do form lrcj.scx ,“修改成績”的click事件為:do form xgcj.scx ,“查詢成績”的click事件為:do form cxcj.scx ,“結束操作”的click事件為:quit 。這些過程中分別分設它們的fontname,fontoutline,fontsize,forecolo

29、r,backcolor的屬性值。</p><p>  在“打印預覽”這個頁框中有三個標簽,四個命令按鈕,一張圖片。其中有一個標簽的caption屬性值為“選擇操作內容”,命令按鈕的caption屬性分別為:“預覽信息”,“成績匯總”,“結束操作”,其中有一個命令按鈕上就是那張圖片?!邦A覽信息”的click事件為:report form report1 preview ,“匯總成績”的click事件為:report

30、 form report2 preview ,“結束操作”的click事件為:quit 。在這些過程中分別分設它們的fontname,fontoutline,fontsize,forecolor,backcolor的屬性值。</p><p>  在“系統(tǒng)維護”這個頁框中有兩個標簽,兩個命令按鈕。其中有兩個命令按鈕的caption屬性為分別為:“輸入密碼”,“結束操作”,兩個標簽只用了它的背景色在backcolor

31、屬性中設?!拜斎朊艽a”的click事件為:do form mima.scx ,“結束操作”的click事件為:quit 。在這些過程中分別分設它們的fontname,fontoutline,fontsize,forecolor,backcolor的屬性值。</p><p><b>  就這樣保存起即可。</b></p><p>  表單lrxx的主要內容:</p

32、><p>  將表單的caption屬性改為:“錄入信息”,name屬性為:form1,同時設它的backcolor的屬性值。表單主要有九個標簽,它們的caption屬性分別為:學號,姓名,性別,民族,出生日期,家長姓名,聯(lián)系電話,家庭住址,備注;七個文本框,它們的name屬性分別為:xh,xm,csrq,jzxm,lxdh,jtzz,bz ;兩個組合框,它們的name屬性為:xb,mc ;兩個命令按鈕,它們的cap

33、tion分別為:“錄入”,“關閉”。在這些過程中分別分設它們的fontname, fontsize,forecolor,backcolor的屬性值。</p><p>  在“學號”的生成器中輸入:####### , 將“出生日期”的生成器中改為日期型,將“性別”的生成器設為“男”,“女”,將“民族”的生成器設為“漢”,“苗”,“白”,“藏”。</p><p>  在“性別”的init事件中

34、輸入:</p><p>  thisform.xb.value="男"</p><p>  thisform.xb.refresh</p><p>  在“確認”按鈕的click事件中輸入:</p><p><b>  select 1</b></p><p>  if len

35、(alltrim(thisform.xh.value))<>0</p><p>  locate for 學號==thisform.xh.value</p><p><b>  if eof()</b></p><p>  append blank</p><p>  replace xingxi.學號 wi

36、th thisform.xh.value</p><p>  replace xingxi.姓名 with thisform.xm.value</p><p>  replace xingxi.性別 with thisform.xb.value</p><p>  replace xingxi.民族 with thisform.mc.value</p>

37、<p>  replace xingxi.出生日期 with thisform.csrj.value</p><p>  replace xingxi.家長姓名 with thisform.jzxm.value</p><p>  replace xingxi.聯(lián)系電話 with thisform.nxjh.value</p><p>  replace

38、 xingxi.家庭住址 with thisform.jtzz.value</p><p>  replace xingxi.備注 with thisform.bz.value</p><p>  =messagebox("該學生的信息已存在,不能保存",48,"警告")</p><p><b>  endif<

39、;/b></p><p><b>  else</b></p><p>  =messagebox("學號不能空,不能保存",48,"警告")</p><p><b>  endif</b></p><p>  thisform.xh.value=&qu

40、ot;"</p><p>  thisform.xm.value=""</p><p>  thisform.xb.value="男"</p><p>  thisform.mc.value="漢"</p><p>  thisform.csrj.value={ / / }

41、</p><p>  thisform.jzxm.value=""</p><p>  thisform.nxjh.value=""</p><p>  thisform.jtzz.value=""</p><p>  thisform.bz.value=""&l

42、t;/p><p>  this.refresh</p><p>  在“關閉”按鈕的click事件中輸入:release windows form1 ,保存起即可。</p><p>  表單lrcj的相關內容:</p><p>  設此表單的caption屬性為:“錄入成績”, name屬性為 :form2 ,并設置它的backcolor屬性值,

43、此表單中有十個標簽,其中有一個標簽只用到它的背景色設置就是上圖的那條線,其余標簽的caption屬性分別為:學號,姓名,考試類別,internet,網絡,數(shù)據庫,信息管理,多媒體,組成原理;有八個文本框它的name屬性分別為:xh,xm, innet,wn,sjk,xxgl,dmt,zcyl ;有一個組合框它的name屬性為:kslb,同時在它的生成器的手工輸入中輸入:1-第一次月考,2-第二次月考,3-第三次月考,4-第四次月考,5-

44、期末考試,還有兩個命令按鈕它們的caption屬性分別為:“錄入”和“關閉”,name屬性為command1和command2。在這些過程中分別分設它們的fontname, fontsize,forecolor,backcolor的屬性值。</p><p>  在xh的lostfocus事件中輸入:</p><p><b>  select 1</b></p&g

45、t;<p>  if len(alltrim(thisform.xh.value))<>0</p><p>  locate for 學號==thisform.xh.value</p><p>  if.not.eof()</p><p>  thisform.xm.value=xingxi.姓名</p><p>&

46、lt;b>  else</b></p><p>  =messagebox("該學生的信息不存在,不能錄入成績",48,"警告")</p><p><b>  endif</b></p><p><b>  else</b></p><p>

47、  =messagebox("學號不能為空,不能保存",48,"警告")</p><p><b>  endif</b></p><p>  this.refresh</p><p>  在command1的click事件中輸入:</p><p><b>  select

48、 2</b></p><p>  use chengji </p><p>  append blank</p><p>  replace chengji.學號 with thisform.xh.value</p><p>  replace chengji.考試類別 with thisform.kslb.value</p

49、><p>  replace chengji.internet with thisform.innet.value</p><p>  replace chengji.網絡 with thisform.wn.value</p><p>  replace chengji.數(shù)據庫 with thisform.sjk.value</p><p>  

50、replace chengji.信息管理 with thisform.xxgl.value</p><p>  replace chengji.多媒體 with thisform.dmt.value</p><p>  replace chengji.組成原理 with thisform.zcyl.value</p><p>  thisform.xh.value=

51、""</p><p>  thisform.xm.value=""</p><p>  thisform.kslb.value=""</p><p>  thisform.innet.value=0</p><p>  thisform.wn.value=0</p>&

52、lt;p>  thisform.sjk.value=0</p><p>  thisform.xxgl.value=0</p><p>  thisform.dmt.value=0</p><p>  thisform.zcyl.value=0</p><p>  this.refresh</p><p>  在

53、command2的click事件中輸入:</p><p>  release windows form2</p><p><b>  保存起即可。</b></p><p>  表單xgxx的主要內容:</p><p>  設此表單的caption屬生為:修改信息,name屬性為form5,同時設它的backcolor屬性

54、值。在此表單中有九個標簽它的caption屬性分別為:學號,姓名,性別,出生日期,民族,家長姓名,家庭住址,聯(lián)系電話,備注;有七個文本框它們的name屬性分別為:xh,xm,csrq,jzxm,jtzz,lxdh,bz;有兩個組合框它們的name屬性分別為:xb,mc;還有兩個命令按鈕它們的caption屬性分別為:“修改”和“關閉”,name屬性為command1和command2. 在這些過程中分別分設它們的fontname, fo

55、ntsize,forecolor,backcolor的屬性值。</p><p>  設xm,csrq,jzxm,jtzz,lxdh,bz的readonly屬性為真,同時設xb,mc,command1的enabled的屬性為假;在xb的生成器中輸入:“男”和“女”,在mc的生成器中輸入:“漢”,“苗”,“藏”,“白”。</p><p>  在xh的lostfocus事件中輸入:</p&

56、gt;<p><b>  select 1</b></p><p><b>  **</b></p><p>  use xingxi</p><p>  if len(alltrim(thisform.xh.value))<>0</p><p>  locate for

57、學號==thisform.xh.value</p><p>  if.not.eof()</p><p>  thisform.xm.readonly=.f.</p><p>  thisform.xb.enabled=.t.</p><p>  thisform.mc.enabled=.t.</p><p>  th

58、isform.csrq.readonly=.f.</p><p>  thisform.jzxm.readonly=.f.</p><p>  thisform.lxdh.readonly=.f.</p><p>  thisform.jtzz.readonly=.f.</p><p>  thisform.bz.readonly=.f.&l

59、t;/p><p>  thisform.command1.enabled=.t.</p><p>  thisform.xm.value=xingxi.姓名</p><p>  thisform.xb.value=xingxi.性別</p><p>  thisform.mc.value=xingxi.民族</p><p>

60、;  thisform.csrq.value=xingxi.出生日期</p><p>  thisform.jzxm.value=xingxi.家長姓名</p><p>  thisform.lxdh.value=xingxi.聯(lián)系電話</p><p>  thisform.jtzz.value=xingxi.家庭住址</p><p>  t

61、hisform.bz.value=xingxi.備注</p><p><b>  else</b></p><p>  =messagebox("該學生的基本信息不存在,不能進行修改",48,"警告")</p><p><b>  endif</b></p><p

62、><b>  else</b></p><p>  =messagebox("學號不能為空,不能保存",48,"警告")</p><p><b>  endif</b></p><p>  this.refresh</p><p>  在xb的init事

63、件中輸入:</p><p>  thisform.xb.value="男"</p><p>  thisform.xb.refresh</p><p>  在mc的init事件中輸入:</p><p>  thisform.mc.value="漢"</p><p>  thisf

64、orm.mc.refresh</p><p>  在“修改”的click事件中輸入:</p><p><b>  select 1</b></p><p>  replace xingxi.學號 with thisform.xh.value</p><p>  replace xingxi.姓名 with thisfor

65、m.xm.value</p><p>  replace xingxi.性別 with thisform.xb.value</p><p>  replace xingxi.民族 with thisform.mc.value</p><p>  replace xingxi.出生日期 with thisform.csrq.value</p><p

66、>  replace xingxi.家長姓名 with thisform.jzxm.value</p><p>  replace xingxi.聯(lián)系電話 with thisform.lxdh.value</p><p>  replace xingxi.家庭住址 with thisform.jtzz.value</p><p>  replace xingx

67、i.備注 with thisform.bz.value</p><p>  thisform.xh.value=""</p><p>  thisform.xm.value=""</p><p>  thisform.xb.value=""</p><p>  thisform.mc

68、.value=""</p><p>  thisform.csrq.value={ / / }</p><p>  thisform.jzxm.value=""</p><p>  thisform.lxdh.value=""</p><p>  thisform.jtzz.valu

69、e=""</p><p>  thisform.bz.value=""</p><p>  thisform.xm.readonly=.t.</p><p>  thisform.xb.enabled=.f.</p><p>  thisform.mc.enabled=.f.</p>&l

70、t;p>  thisform.csrq.readonly=.t.</p><p>  thisform.jzxm.readonly=.t.</p><p>  thisform.lxdh.readonly=.t.</p><p>  thisform.jtzz.readonly=.t.</p><p>  thisform.bz.rea

71、donly=.t.</p><p>  thisform.command1.enabled=.f.</p><p>  this.refresh</p><p>  在“關閉”的click事件中輸入:release windows form5。保存即可。</p><p>  表單xgcj 的相關內容:</p><p>

72、  設此表單的caption屬性為“修改成績”,name屬性為form6,backcolor的屬性值。表單中有十一個標簽它們的caption屬性分別為:學號,姓名,考試類別,考試成績,internet,多媒體,數(shù)據庫,信息管理,網絡,組成原理,其中有一個標簽只用到它的backcolor屬性設置了一下背景色既圖中的那條線;有八個文本框它們的name屬性分別為:xh,xm,innet,dmt,sjk,xxgl,wn,zcyl;有一個組合框它

73、們的name屬性為kslb ,在它的生成器的手工輸入中輸入:1-第一次月考,2-第二次月考,3-第三次月考,4-第四次月考,5-期末考試;還有兩個命令按鈕它們的caption屬性分別為:“修改”和“關閉”,name屬性為:command1和command2。在這些過程中分別分設它們的fontname, fontsize,forecolor的屬性值。設xm,innet,dmt,xjk,xxgl,wn,zcyl的readonly屬性為真,k

74、slb,command1 的command1的enabled屬性為假。</p><p>  在xh的lostfocus事件中輸入:</p><p><b>  select 1</b></p><p>  use xingxi</p><p>  if len(alltrim(thisform.xh.value))<

75、;>0</p><p>  locate for 學號==thisform.xh.value</p><p>  if.not.eof()</p><p>  thisform.xm.value=xingxi.姓名</p><p><b>  else</b></p><p>  =mess

76、agebox("該學生的基本信息不存在,不能錄入成績",48,"警告")</p><p><b>  endif</b></p><p><b>  else</b></p><p>  =messagebox("學號不能為空,不能保存",48,"警告&

77、quot;)</p><p><b>  endif</b></p><p>  thisform.kslb.enabled=.t.</p><p>  thisform.kslb.setfocus</p><p>  this.refresh</p><p>  在kslb的click事件中輸入

78、:</p><p><b>  select 2</b></p><p>  locate for 學號==thisform.xh.value.and.考試類別==subs(thisform.kslb.value,1,1)</p><p>  if.not.eof()</p><p>  thisform.innet.r

79、eadonly=.f.</p><p>  thisform.wn.readonly=.f.</p><p>  thisform.sjk.readonly=.f.</p><p>  thisform.dmt.readonly=.f.</p><p>  thisform.xxgl.readonly=.f.</p><p

80、>  thisform.zcyl.readonly=.f.</p><p>  thisform.command1.enabled=.t.</p><p>  thisform.innet.value=internet</p><p>  thisform.wn.value=網絡</p><p>  thisform.sjk.value

81、=數(shù)據庫</p><p>  thisform.dmt.value=多媒體</p><p>  thisform.xxgl.value=多媒體</p><p>  thisform.zcyl.value=組成原理</p><p><b>  else</b></p><p>  =messageb

82、ox("記錄沒有找到",48,"警告")</p><p><b>  endif</b></p><p>  this.refresh</p><p>  在“修改”的click事件中輸入:</p><p><b>  select 2</b></p&g

83、t;<p>  replace chengji.學號 with thisform.xh.value</p><p>  replace chengji.考試類別 with thisform.kslb.value</p><p>  replace chengji.internet with thisform.innet.value</p><p>  

84、replace chengji.網絡 with thisform.wn.value</p><p>  replace chengji.數(shù)據庫 with thisform.sjk.value</p><p>  replace chengji.多媒體 with thisform.dmt.value</p><p>  replace chengji.信息管理 wit

85、h thisform.xxgl.value</p><p>  replace chengji.組成原理 with thisform.zcyl.value</p><p>  thisform.xh.value=""</p><p>  thisform.xm.value=""</p><p>  th

86、isform.kslb.value=""</p><p>  thisform.innet.value=0</p><p>  thisform.wn.value=0</p><p>  thisform.sjk.value=0</p><p>  thisform.dmt.value=0</p><p

87、>  thisform.xxgl.value=0</p><p>  thisform.zcyl.value=0</p><p>  this.refresh</p><p>  在“關閉”的click事件中輸入:release windows form6。就這樣保存起即可。</p><p>  表單cxxx 的主要內容:</p&

88、gt;<p>  設此表單的caption屬性為:“查詢信息”,name屬性為form7,backcolor屬性設它的背景色。表單中有九個標簽它們的caption屬性分別為:學號,姓名,性別,民族,出生日期,家長姓名,聯(lián)系電話,家庭住址,備注;有兩個文本框它們的name屬性分別為xb,mc,在xb的生成器中輸入“男”和“女”,在mc的生成器中輸入“漢”,“苗”,“藏”,“白”;有七個文本框它們的name屬性分別為:xh,x

89、m,csrq,jzxm,lxdh,jtzz,bz;有六個命令按鈕它們的caption屬性分別為:“首記錄”,“上一條”,“下一條”,“尾記錄”,“關閉”還一個按鈕上只裝一個內容,它們的name屬性分別為:command1,command2,command3,command4,command5,command6;設xb,mc,csrq,jzxm,lxdh,jtzz,bz的readonly屬性為真;設command2,command3,co

90、mmand4,command5的enabled屬性為假;在這些過程中分別分設它們的fontname, fontsize,forecolor的屬性值。</p><p>  在xh的lostfocus事件中輸入:</p><p>  recall all</p><p><b>  select 1</b></p><p>

91、  if len(alltrim(thisform.xh.value))<>0</p><p>  delete for xingxi.學號<>alltrim(thisform.xh.value)</p><p><b>  go top</b></p><p>  if.not.eof()</p><

92、;p>  thisform.command2.enabled=.t.</p><p>  thisform.command3.enabled=.t.</p><p>  thisform.command4.enabled=.t.</p><p>  thisform.command5.enabled=.t.</p><p>  this

93、form.xh.value=xingxi.學號</p><p>  thisform.xm.value=xingxi.姓名</p><p>  thisform.xb.value=xingxi.性別</p><p>  thisform.mc.value=xingxi.民族</p><p>  thisform.csrq.value=xing

94、xi.出生日期</p><p>  thisform.jzxm.value=xingxi.家長姓名</p><p>  thisform.lxdh.value=xingxi.聯(lián)系電話</p><p>  thisform.jtzz.value=xingxi.家庭住址</p><p>  thisform.bz.value=xingxi.備注&

95、lt;/p><p><b>  else</b></p><p>  =messagebox("該學生的信息不存在",48,"警告")</p><p>  thisform.xh.value=""</p><p>  thisform.xm.value="

96、"</p><p>  thisform.xb.value=""</p><p>  thisform.mc.value=""</p><p>  thisform.csrq.value=""</p><p>  thisform.jzxm.value="&quo

97、t;</p><p>  thisform.lxdh.value=""</p><p>  thisform.jtzz.value=""</p><p>  thisform.bz.value=""</p><p><b>  endif</b></p&g

98、t;<p><b>  endif</b></p><p>  this.refresh</p><p>  thisform.command3.setfocus</p><p>  在xm的lostfocus事件中輸入:</p><p>  recall all</p><p>&

99、lt;b>  select 1</b></p><p>  if len(alltrim(thisform.xm.value))<>0</p><p>  delete for xingxi.姓名<>alltrim(thisform.xm.value)</p><p><b>  go top</b>&

100、lt;/p><p>  if.not.eof()</p><p>  thisform.command2.enabled=.t.</p><p>  thisform.command3.enabled=.t.</p><p>  thisform.command4.enabled=.t.</p><p>  thisfor

101、m.command5.enabled=.t.</p><p>  thisform.xh.value=xingxi.學號</p><p>  thisform.xm.value=xingxi.姓名</p><p>  thisform.xb.value=xingxi.性別</p><p>  thisform.mc.value=xingxi.

102、民族</p><p>  thisform.csrq.value=xingxi.出生日期</p><p>  thisform.jzxm.value=xingxi.家長姓名</p><p>  thisform.lxdh.value=xingxi.聯(lián)系電話</p><p>  thisform.jtzz.value=xingxi.家庭住址&l

103、t;/p><p>  thisform.bz.value=xingxi.備注</p><p><b>  else</b></p><p>  =messagebox("該學生的信息不存在",48,"警告")</p><p>  thisform.xh.value="&quo

104、t;</p><p>  thisform.xm.value=""</p><p>  thisform.xb.value=""</p><p>  thisform.mc.value=""</p><p>  thisform.csrq.value=""<

105、/p><p>  thisform.jzxm.value=""</p><p>  thisform.lxdh.value=""</p><p>  thisform.jtzz.value=""</p><p>  thisform.bz.value=""</p

106、><p><b>  endif</b></p><p><b>  endif</b></p><p>  this.refresh</p><p>  thisform.command3.setfocus</p><p>  在“首記錄”的click事件中輸入:</p&

107、gt;<p><b>  go top</b></p><p>  if.not.eof()</p><p>  thisform.command2.enabled=.t.</p><p>  thisform.command3.enabled=.t.</p><p>  thisform.command4

108、.enabled=.t.</p><p>  thisform.command5.enabled=.t.</p><p>  thisform.xh.value=xingxi.學號</p><p>  thisform.xm.value=xingxi.姓名</p><p>  thisform.xb.value=xingxi.性別</p

109、><p>  thisform.mc.value=xingxi.民族</p><p>  thisform.csrq.value=xingxi.出生日期</p><p>  thisform.jzxm.value=xingxi.家長姓名</p><p>  thisform.lxdh.value=xingxi.聯(lián)系電話</p>&l

110、t;p>  thisform.jtzz.value=xingxi.家庭住址</p><p>  thisform.bz.value=xingxi.備注</p><p><b>  endif</b></p><p>  this.refresh</p><p>  在“上一條”的click事件中輸入:</p&

111、gt;<p><b>  select 1</b></p><p><b>  skip-1</b></p><p>  if.not.bof()</p><p>  thisform.command2.enabled=.t.</p><p>  thisform.command3.e

112、nabled=.t.</p><p>  thisform.command4.enabled=.t.</p><p>  thisform.command5.enabled=.t.</p><p>  thisform.xh.value=xingxi.學號</p><p>  thisform.xm.value=xingxi.姓名</p

113、><p>  thisform.xb.value=xingxi.性別</p><p>  thisform.mc.value=xingxi.民族</p><p>  thisform.csrq.value=xingxi.出生日期</p><p>  thisform.jzxm.value=xingxi.家長姓名</p><p&

114、gt;  thisform.lxdh.value=xingxi.聯(lián)系電話</p><p>  thisform.jtzz.value=xingxi.家庭住址</p><p>  thisform.bz.value=xingxi.備注</p><p><b>  else</b></p><p><b>  go

115、 top</b></p><p><b>  endif</b></p><p>  this.refresh</p><p>  在“下一條”的click事件輸入:</p><p><b>  select 1</b></p><p><b>  sk

116、ip 1</b></p><p>  if.not.eof()</p><p>  thisform.command2.enabled=.t.</p><p>  thisform.command3.enabled=.t.</p><p>  thisform.command4.enabled=.t.</p><

117、;p>  thisform.command5.enabled=.t.</p><p>  thisform.xh.value=xingxi.學號</p><p>  thisform.xm.value=xingxi.姓名</p><p>  thisform.xb.value=xingxi.性別</p><p>  thisform.m

118、c.value=xingxi.民族</p><p>  thisform.csrq.value=xingxi.出生日期</p><p>  thisform.jzxm.value=xingxi.家長姓名</p><p>  thisform.lxdh.value=xingxi.聯(lián)系電話</p><p>  thisform.jtzz.valu

119、e=xingxi.家庭住址</p><p>  thisform.bz.value=xingxi.備注</p><p><b>  else</b></p><p><b>  skip-1</b></p><p><b>  endif</b></p><

120、p>  this.refresh</p><p>  在“尾記錄”的click事件中輸入:</p><p><b>  go bottom</b></p><p>  if.not.bof()</p><p>  thisform.command2.enabled=.t.</p><p> 

121、 thisform.command3.enabled=.t.</p><p>  thisform.command4.enabled=.t.</p><p>  thisform.command5.enabled=.t.</p><p>  thisform.xh.value=xingxi.學號</p><p>  thisform.xm.v

122、alue=xingxi.姓名</p><p>  thisform.xb.value=xingxi.性別</p><p>  thisform.mc.value=xingxi.民族</p><p>  thisform.csrq.value=xingxi.出生日期</p><p>  thisform.jzxm.value=xingxi.家長

123、姓名</p><p>  thisform.lxdh.value=xingxi.聯(lián)系電話</p><p>  thisform.jtzz.value=xingxi.家庭住址</p><p>  thisform.bz.value=xingxi.備注</p><p><b>  endif</b></p>&

124、lt;p>  this.refresh</p><p>  在“關閉”的click事件中輸入:</p><p>  recall all</p><p>  release windows form7 保存起即可。</p><p>  表單cxcj的主要內容:</p><p>  設表單的caption

125、屬性為:“查詢成績”,name屬性為form8,backcolor屬性設它的背景顏色。這個表單中有五個標簽它的確良caption屬性分別為:學號,姓名,性別,考試成績,還有一個標簽只用了它的backcolor屬性設置它的背景色;有兩個數(shù)文本框它們的name屬性為:xh,xm;有一個組合框它的name屬性為xb,同時在它的生成器中輸入“男”和“女”;有一個表格在表格的生成器中選擇的字段有:考試類別,internet,網絡,信息管理,多媒體

溫馨提示

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

評論

0/150

提交評論