摘要20世纪以来,社会生产力迅速发展,科学技术突飞猛进,人们进行信息交流的深度与广度不断增加,信息量急剧增长,传统的信息处理与决策的手段已不能适应社会的需要,信息的重要性和信息处理问题的紧迫性空前提高了,面对着日益复杂和不断发展,变化的社会环境,特别是企业间日趋剧烈的竞争形势,一个人、一个企业要在现代社会中求生存,求发展,必须具备足够的信息和强有力的信息收集与处理手段。
对于学校教师来来说,大量教师教学课程若可以利用计算机技术将平时教学的内容结合信息技术的方便快捷性,将大大提高工作效率提高学生学习积极性.同样教学水平的信息话也是衡量一个社会进步也否的重要指标.这就迫切需要利用计算机技术来帮助学校管理者来处理教师日常教学信息的信息化管理.教学辅助系统是管理信息系统的一个典型用例.管理信息系统是一个集信息技术、经济管理理论、统计学与运筹学、数据库技术为一体的综合性系统,是一个资金技术密集型、劳动密集型、智力密集型的项目。
我国拥有广阔的市场和丰富的人才资源,有几十年的技术积累和经验积累,有一定的后发优势。
管理信息系统的创新工作既不能妄自菲薄,更不能夜郎自大。
要抓住当前网络经济兴起的有利时机,以实现我国信息技术和信息产业的跨越式发展,更好地发挥信息产业对国民经济增长的拉动作用。
开发学校教师管理系统的过程就是要实现数据处理方式由人工管理向计算机管理的转变,它在计算机技术和教师管理实践活动两者之间架设桥梁。
关键字:教学辅助系统,管理信息系统,数据库,计算机管理Abstract:Since the 20th century, the rapid development of social productive forces, science and technology, exchange of information is the depth and scope of increasing the volume of information rapid growth, the traditional information processing and decision-making tools have not the needs of the community, the importance of information and information processing problems urgency unprecedented increase, in the face of increasingly complex and evolving. changes in the social environment, in particular the increasingly keen competition among enterprises situation, a person or an enterprise to survive in modern society, and development, we must have sufficient information and powerful information gathering and processing tools.For teachers to schools, a large number of teachers teaching courses if they can use computer technology to the teaching content of the convenient nature of it, will greatly increase the efficiency of learning enthusiasm. Teaching is the same level of information, whether the measure is one important indicator of social progress. This urgent need for using computer technology to help school managers to deal withday-to-day teaching teachers of information technology management information. teaching aids system is a typical management information system used cases.Management Information System is a collection of information technology, economic management theory, statistics and research, database integration technology for the integrated system is a capital-and technology-intensive and labor-intensive, intellectual-intensive projects. China has a vast market and abundant human resources, technical accumulation and decades of accumulated experience, a certain advantages. Mis innovation can not sell, not self-assertive. We should seize the current favorable opportunity to network economy, China's information technology and to achieve a leap forward of the information industry, give better play to the information industry to stimulate economic growth.Development of school teachers in the management process is to achieve data systems approach to the management of the artificial computer management changes in computer technology and management practices between teachers build bridges.keyword : teaching aids system, management information systems, databases, computer management目录摘要IABSTRACT II第一章引言 11.1 背景 11.1.1教师管理系统 11.2开发教师管理系统的目的和原则 31.3开发环境介绍31.3.1 开发平台 41.3.2数据库设计工具——ACCESS数据库管理系统7 第二章系统设计92.1 系统分析 92.2 系统流程和操作方式设计11第三章系统界面设计 123.1系统界面设计以及代码分析12第四章数据库的设计304.1数据库设计304.2 数据库概念和发展 304.3系统测试与评价 38总结 39致谢40参考文献41第一章引言对于学校教师来来说,大量教师教学课程若可以利用计算机技术将平时教学的内容结合信息技术的方便快捷性,将大大提高工作效率提高学生学习积极性.1.1背景1.1.1教学辅助系统如今随着教育事业的发展,教师教学内容的增多,如何才能让教师减少压力,同时又增加学生的学习积极性,我们想到了教学辅助系统,采用本系统,教师可以将讲课内容输入系统,采用计算机处理的方式,让学生自主的学习.1.2 开发教学辅助系统的目的与原则本教学辅助系统的主要目的是服务与中小学,各高校的教师,方便其讲课,其原则是做到,界面友好人性,操作简单,可靠.1.3开发环境介绍1.3.1开发平台本教师管理系统的开发平台为微软windows xp visual basic 6.0 以及微软的Access作为操作数据库.1.3.2数据库设计工具——ACCESS数据库管理系统Microsoft Access介绍:使用 Microsoft Access,可以在单一的数据库文件中管理所有的信息。
在这个文件中,用户可以将自己的数据分别保存在各自独立的存储空间中,这些空间称作表;可以使用联机窗体来查看、添加及更新表中的数据;使用查询来查找并检索所要的数据;也可以使用报表以特定的版面布置来分析及打印数据。
如果要保存数据,请为每一种类型的信息创建一个表。
如果要从查询、窗体或报表中的多个表中将数据合并在一起,就要定义各个表之间的关系。
如果要搜索并检索符合指定条件的数据,包括来自多个表中的数据,就要创建查询。
查询的同时也可以更新或删除多条记录,并对数据执行内嵌或自定义的计算。
如果要简单地直接在某个表中查看、输入及更改数据,请创建一个窗体。
在打开一个窗体时,Microsoft Access 将从一个或多个表中检索数据,并使用用户在“窗体向导”选择的版面布局或所创建的版面布局,将窗体显示在屏幕上。
如果要分析数据或将数据以特定的方式打印出来,请创建一个报表。
例如,可以打印一份将数据分组并计算数据总和的报表,也可以打印另一份带有各种数据格式的打印邮件标签的报表。
第二章系统设计2.1 系统分析本教学辅助系统采用计算机专业的VB课程为内容主要由以下几大模块构成.一.VB基础(VB概述,窗口控件和菜单,工程的管理,开发应用程序)二.语言参考(关键字,函数,数据类型,伪指令,运算符)三.API函数四.经典事例2.2 系统流程和操作方式设计第三章系统界面设计3.1系统界面设计主界面设计代码设计:Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As LongPrivate BigStyle As StringPrivate SmallStyle As StringPrivate RTB1_BackCorlor As IntegerPrivate AddCode As BooleanPrivate EditCode As BooleanDim Temptitle As StringPrivate Sub Cmdcancel_Click()RTB1.BackColor = GetSetting(App.EXEName, "Corlor", "BackCorlor", RTB1.BackColor)Frame5.Visible = False: Frame6.Visible = False: TreeView1.Visible = TrueRTB1.Locked = TrueEditCode = FalseAddCode = FalseToolbar1.Buttons(7).Image = 5:Toolbar1.Buttons(8).Image = 6Toolbar1.Buttons(7).Caption = "全选":Toolbar1.Buttons(8).Caption = "复制"Toolbar1.Buttons(7).Tag = "Tool_SelAll":Toolbar1.Buttons(8).Tag = "Tool_Copy"Menu_Plaste.Enabled = False: Menu_Clear.Enabled = FalseEnd SubPrivate Sub Cmdfix_Click()Frame5.Visible = False: Frame6.Visible = False: TreeView1.Visible = TrueDim adoprimaryrs As New ADODB.Recordset If Cbostyle.Text = "" ThenMsgBox "类别不能为空", vbCritical + vbApplicationModal, "错误"Exit SubEnd IfIf TxTTitle.Text = "" ThenMsgBox "标题不能为空", vbCritical + vbApplicationModal, "错误"Exit SubEnd IfIf RTB1.Text = "" ThenMsgBox "内容不能为空", vbCritical + vbApplicationModal, "错误"Exit SubEnd IfSelect Case TrueCase AddCodei = ExistRecord("code", "标题", Trim(TxTTitle.Text))If i ThenMsgBox "该代码标题已存在,请重新修改代码标题", vbCritical + vbApplicationModal, "错误"TxTTitle.SelStart = 0TxTTitle.SelLength =Len(Trim(TxTTitle.Text))Exit SubEnd IfCase EditCodeDim adoprimarycmd As New mandadoprimarycmd.ActiveConnection = StrConnect mandText = "delete * from code where 标题='" & Trim(Temptitle) & "'"adoprimarycmd.ExecuteSet adoprimarycmd = NothingEnd Selectadoprimaryrs.CursorLocation = adUseClientadoprimaryrs.Open "select * from code", StrConnect, adOpenKeyset, adLockOptimistic, adCmdTextadoprimaryrs.MoveLastadoprimaryrs.AddNewadoprimaryrs.Fields("大类别") = Trim(BigStyle)adoprimaryrs.Fields("小类别") = Trim(Cbostyle)adoprimaryrs.Fields("标题") = Trim(TxTTitle)adoprimaryrs.Fields("内容") = RTB1.Textadoprimaryrs.UpdateSet adoprimaryrs = NothingRTB1.BackColor = GetSetting(App.EXEName, "Corlor", "BackCorlor", RTB1.BackColor)Call ShowTree(BigStyle)RTB1.Locked = TrueEditCode = FalseAddCode = FalseToolbar1.Buttons(7).Image = 5:Toolbar1.Buttons(8).Image = 6Toolbar1.Buttons(7).Caption = "全选":Toolbar1.Buttons(8).Caption = "复制"Toolbar1.Buttons(7).Tag = "Tool_SelAll":Toolbar1.Buttons(8).Tag = "Tool_Copy"Menu_Plaste.Enabled = False: Menu_Clear.Enabled = FalseRTB1.Font.Size = GetSetting(App.EXEName, "Font", "FontSize", RTB1.Font.Size)RTB1.BackColor = GetSetting(App.EXEName, "Corlor", "BackCorlor", RTB1.BackColor)End Sub'Private Sub Command1_Click()'Dim str As String: Dim rst1 As New ADODB.Recordset: Dim rst2 As New ADODB.Recordset'str = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\data\WinApi.mdb;"'rst1.Open "select * from winfun", str, adOpenKeyset, adLockOptimistic'rst2.Open "select * from funclass", str, adOpenKeyset, adLockOptimistic'rst1.MoveFirst'For i = 1 To rst1.RecordCount' rst1.Fields("声明") = GetFthFld2("funclass", "name", rst1.Fields("函数"), "fullname")' rst2.Update' rst1.MoveNext'Next'End SubPrivate Sub Form_Load()Me.Top = 0: Me.Left = 0Frame5.Visible = False: Frame6.Visible = False: TreeView1.Visible = TrueStatusBar1.Panels(1).Text = " " & Format(Date, "long date") & " " & Time & " "RTB1.FileName = App.Path & "\data\about.dat"RTB1.Font.Size = GetSetting(App.EXEName, "Font", "FontSize", RTB1.Font.Size)RTB1.BackColor = GetSetting(App.EXEName, "Corlor", "BackCorlor", RTB1.BackColor)StrConnect = "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\data\VB.mdb;"StrTempConnect ="PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\data\winapi.mdb;"BigStyle = "VB基础"Call ShowTree(BigStyle)End SubPrivate Sub ShowTree(ByVal TempBigStyle As String)Dim nodex As NodeDim nodey As NodeDim adoprimaryrs1 As New ADODB.RecordsetDim adoprimaryrs2 As New ADODB.Recordseta = "aa"b = "bb"c = "cc"If TempBigStyle = "API函数" Then'*************************************************adoprimaryrs1.CursorLocation = adUseClientadoprimaryrs1.Open "select 函数 from winfun order by 函数", StrTempConnect, adOpenForwardOnly, adLockReadOnly, adCmdText'*************************************************TreeView1.LineStyle = tvwRootLinesTreeView1.Nodes.ClearSet nodex = TreeView1.Nodes.Add(, , a, TempBigStyle, 2, 1)If adoprimaryrs1.RecordCount <> 0 Thenadoprimaryrs1.MoveFirstElseExit SubEnd IfDo Until adoprimaryrs1.EOFTempSmallStyle = adoprimaryrs1.Fields("函数").ValueSet nodey = TreeView1.Nodes.Add(a, tvwChild, b, TempSmallStyle, 3, 3)b = b + "1"adoprimaryrs1.MoveNextLoopadoprimaryrs1.CloseSet adoprimaryrs1 = NothingElse'*************************************************adoprimaryrs1.CursorLocation = adUseClientadoprimaryrs2.CursorLocation = adUseClientadoprimaryrs1.Open "select distinct 小类别 from Code where 大类别='" & TempBigStyle & "'", StrConnect, adOpenForwardOnly, adLockReadOnly, adCmdText'*************************************************TreeView1.LineStyle = tvwRootLinesTreeView1.Nodes.ClearSet nodex = TreeView1.Nodes.Add(, , a, TempBigStyle, 2, 1)If adoprimaryrs1.RecordCount <> 0 Thenadoprimaryrs1.MoveFirstElseExit SubEnd IfDo Until adoprimaryrs1.EOFTempSmallStyle = adoprimaryrs1.Fields("小类别").ValueSet nodey = TreeView1.Nodes.Add(a, tvwChild, b, TempSmallStyle, 3, 3)If adoprimaryrs2.State = 1 Thenadoprimaryrs2.CloseEnd Ifadoprimaryrs2.Open "select 标题 from Code where 大类别='" & TempBigStyle & "' and 小类别='" & TempSmallStyle & "'", StrConnect, adOpenForwardOnly, adLockReadOnly, adCmdTextIf adoprimaryrs2.RecordCount <> 0 Thenadoprimaryrs2.MoveFirstEnd IfDo Until adoprimaryrs2.EOFSet nodey = TreeView1.Nodes.Add(b, tvwChild, c, adoprimaryrs2.Fields("标题"), 4, 4) c = c + "1"adoprimaryrs2.MoveNextLoopb = b + "1"adoprimaryrs1.MoveNextLoopadoprimaryrs1.Closeadoprimaryrs2.CloseSet adoprimaryrs1 = NothingSet adoprimaryrs2 = NothingEnd IfTreeView1.Nodes(1).Expanded = TrueEnd SubPrivate Sub Form_Resize()If Me.WindowState = maximized ThenMe.Width = 12000Me.Height = 9000End IfEnd SubPrivate Sub Menu_BackCorlor_Click()CommonDialogCorlor.ShowColorRTB1.BackColor = CommonDialogCorlor.ColorSaveSetting App.EXEName, "Corlor", "BackCorlor", RTB1.BackColorEnd SubPrivate Sub Menu_Clear_Click()SendKeys "{del}"End SubPrivate Sub Menu_Plaste_Click()SendKeys "^V"End SubPrivate Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)Temptitle =TreeView1.Nodes.Item(TreeView1.SelectedItem.Index)If BigStyle = "API函数" ThenRTB1.Text = "别名:" & GetFthFld22("winfun", "函数", Trim(Temptitle), "别名") & Chr(10) & Chr(13)RTB1.Text = RTB1.Text & "库名:" & GetFthFld22("winfun", "函数", Trim(Temptitle), "库名") & Chr(10) & Chr(13)RTB1.Text = RTB1.Text & "声明:" & GetFthFld22("winfun", "函数", Trim(Temptitle), "声明") & Chr(10) & Chr(13)RTB1.Text = RTB1.Text & "参数表:" &GetFthFld22("winfun", "函数", Trim(Temptitle), "参数表") & Chr(10) & Chr(13)ElseRTB1.Text = GetFthFld2("code", "标题", Trim(Temptitle), "内容")RTB1.SelStart = 0End IfEnd SubPrivate Sub Menu_About_Click()StrMsg = "本软件是作者的毕业设计,为免费软件欢迎大家使用." & Chr(13) & _"" & Chr(13) & _"" & Chr(13) & _"" & Chr(13) & _"" & Chr(13) & _""MsgBox StrMsg, vbOKOnly + vbInformationEnd SubPrivate Sub Menu_Add_Click()Frame5.Visible = True: Frame6.Visible = True: TreeView1.Visible = FalseCall SelFldtoCbo("code", "小类别", BigStyle, Cbostyle) Label4.Caption = "(添加)"TxTTitle.Text = ""RTB1.Text = ""On Error GoTo ERR:If ExistRecord("code", "标题",TreeView1.Nodes.Item(TreeView1.SelectedItem.Index)) = True ThenCbostyle.Text =TreeView1.Nodes.Item(TreeView1.SelectedItem.Parent.Index )ElseIf ExistRecord("code", "小类别",TreeView1.Nodes.Item(TreeView1.SelectedItem.Index)) = True ThenCbostyle.Text =TreeView1.Nodes.Item(TreeView1.SelectedItem.Index)End IfEnd IfERR:RTB1.Locked = FalseRTB1.BackColor = RGB(255, 255, 255)AddCode = TrueToolbar1.Buttons(7).Image = 16:Toolbar1.Buttons(8).Image = 17Toolbar1.Buttons(7).Caption = "粘贴":Toolbar1.Buttons(8).Caption = "清除"Toolbar1.Buttons(7).Tag = "Tool_Plaste":Toolbar1.Buttons(8).Tag = "Tool_Clear"Menu_Plaste.Enabled = True: Menu_Clear.Enabled = TrueEnd SubPrivate Sub Menu_API_Click()Label1.Caption = "API函数"BigStyle = "API函数"For i = 1 To Toolbar1.Buttons.CountToolbar1.Buttons(i).MixedState = FalseNext iToolbar1.Buttons(4).MixedState = TrueCall ShowTree(BigStyle)End SubPrivate Sub Menu_Author_Click()ShellExecute Me.hwnd, "open", "", App.Path, 1, 0 End SubPrivate Sub Menu_Basic_Click()Label1.Caption = "VB基础"BigStyle = "VB基础"For i = 1 To Toolbar1.Buttons.CountToolbar1.Buttons(i).MixedState = FalseNext iToolbar1.Buttons(2).MixedState = TrueCall ShowTree(BigStyle)End SubPrivate Sub Menu_Big_Click()RTB1.Font.Size = RTB1.Font.Size + 1SaveSetting App.EXEName, "Font", "FontSize", RTB1.Font.SizeEnd SubPrivate Sub Menu_Consult_Click()Label1.Caption = "语言参考"BigStyle = "语言参考"For i = 1 To Toolbar1.Buttons.CountToolbar1.Buttons(i).MixedState = False Next iToolbar1.Buttons(3).MixedState = TrueCall ShowTree(BigStyle)End SubPrivate Sub Menu_Copy_Click()SendKeys "^C"End SubPrivate Sub Menu_Del_Click()On Error GoTo ERR:If ExistRecord("code", "标题", Temptitle) = True Then If MsgBox("你真的要删除此记录吗?", vbYesNo + vbExclamation, "警告") = vbYes ThenDim adoprimarycmd As New mandadoprimarycmd.ActiveConnection = StrConnect mandText = "delete * from code where 标题='" & Trim(Temptitle) & "'"adoprimarycmd.ExecuteSet adoprimarycmd = NothingRTB1.Text = ""Call Form_LoadEnd IfElseMsgBox "你必须先选择要删除的标题", vbOKOnly + vbCritical, "删除错误"End IfExit SubERR:MsgBox "你必须先选择要删除的标题", vbOKOnly + vbCritical, "删除错误"End SubPrivate Sub Menu_Edit_Click()On Error GoTo ERR:If ExistRecord("code", "标题",TreeView1.Nodes.Item(TreeView1.SelectedItem.Index)) = False ThenMsgBox "你必须先选择要修改的标题", vbOKOnly + vbCritical, "错误"Exit SubEnd IfFrame5.Visible = True: Frame6.Visible = True: TreeView1.Visible = FalseLabel4.Caption = "(修改)"Call SelFldtoCbo("code", "小类别", BigStyle, Cbostyle) RTB1.Locked = FalseRTB1.BackColor = RGB(255, 255, 255)Cbostyle.Text =TreeView1.Nodes.Item(TreeView1.SelectedItem.Parent.Index )TxTTitle.Text = TemptitleEditCode = TrueToolbar1.Buttons(7).Image = 16:Toolbar1.Buttons(8).Image = 17Toolbar1.Buttons(7).Caption = "粘贴":Toolbar1.Buttons(8).Caption = "清除"Toolbar1.Buttons(7).Tag = "Tool_Plaste":Toolbar1.Buttons(8).Tag = "Tool_Clear"Menu_Plaste.Enabled = True: Menu_Clear.Enabled = True Exit SubERR:MsgBox "你必须先选择要修改的标题", vbOKOnly + vbCritical, "错误"End SubPrivate Sub Menu_Example_Click()Label1.Caption = "经典事例"BigStyle = "经典事例"For i = 1 To Toolbar1.Buttons.CountToolbar1.Buttons(i).MixedState = False Next iToolbar1.Buttons(5).MixedState = TrueCall ShowTree(BigStyle)End SubPrivate Sub Menu_Exit_Click()EndEnd SubPrivate Sub Menu_Print_Click()MsgBox "系统找不到打印机."End SubPrivate Sub Menu_SelAll_Click()RTB1.SetFocusRTB1.SelStart = 0RTB1.SelLength = Len(RTB1.Text)End SubPrivate Sub Menu_Small_Click()RTB1.Font.Size = RTB1.Font.Size - 1SaveSetting App.EXEName, "Font", "FontSize",RTB1.Font.SizeEnd SubPrivate Sub Timer1_Timer()StatusBar1.Panels(1).Text = " " & Format(Date, "long date") & " " & Time & " "End SubPrivate Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)Select Case Button.TagCase "Tool_Basic"Call Menu_Basic_ClickCase "Tool_Consult"Call Menu_Consult_ClickCase "Tool_API"Call Menu_API_ClickCase "Tool_Example"Call Menu_Example_ClickCase "Tool_SelAll"Call Menu_SelAll_Click Case "Tool_Copy"Call Menu_Copy_Click Case "Tool_Plaste"Call Menu_Plaste_Click Case "Tool_Clear"Call Menu_Clear_Click Case "Tool_Print"Call Menu_Print_Click Case "Tool_Add"Call Menu_Add_ClickCase "Tool_Edit"Call Menu_Edit_Click Case "Tool_Del"Call Menu_Del_ClickCase "Tool_Author"Call Menu_Author_Click Case "Tool_About"Call Menu_About_Click Case "Tool_Exit"Call Menu_Exit_Click End SelectEnd Sub第四章数据库的设计4.1数据库设计1.code信息表:v2.winfun表设计:4.2 数据库概念和发展关系数据库是目前各类数据库中最重要、最流行的数据库,他应用数学方法来处理数据库数据,是目前使用最广泛的数据库系统。