⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 学生管理系统2.txt

📁 学生学藉管理 系统:A simple student information management system.
💻 TXT
字号:
VERSION 5.00 
Begin VB.Form Form2  
   Caption         =   "教师资料管理系统" 
   ClientHeight    =   6000 
   ClientLeft      =   2610 
   ClientTop       =   2130 
   ClientWidth     =   7500 
   LinkTopic       =   "Form2" 
   ScaleHeight     =   6000 
   ScaleWidth      =   7500 
   Begin VB.CommandButton Command5  
      Height          =   495 
      Left            =   5160 
      Picture         =   "Form2.frx":0000 
      Style           =   1  'Graphical 
      TabIndex        =   5 
      Top             =   4920 
      Width           =   1095 
   End 
   Begin VB.CommandButton Command4  
      BackColor       =   &H00C0C0FF& 
      Caption         =   "删除" 
      Height          =   495 
      Left            =   5160 
      TabIndex        =   4 
      Top             =   3960 
      Width           =   1095 
   End 
   Begin VB.CommandButton Command3  
      BackColor       =   &H00C0C0FF& 
      Caption         =   "添加" 
      Height          =   495 
      Left            =   5160 
      TabIndex        =   3 
      Top             =   3120 
      Width           =   1095 
   End 
   Begin VB.CommandButton Command2  
      BackColor       =   &H00E0E0E0& 
      Caption         =   "查找" 
      Height          =   495 
      Left            =   5160 
      TabIndex        =   2 
      Top             =   2160 
      Width           =   1095 
   End 
   Begin VB.CommandButton Command1  
      Height          =   495 
      Left            =   5160 
      Picture         =   "Form2.frx":0442 
      Style           =   1  'Graphical 
      TabIndex        =   1 
      Top             =   1200 
      Width           =   1095 
   End 
   Begin VB.TextBox Text7  
      BackColor       =   &H00C0C0FF& 
      BeginProperty Font  
         Name            =   "宋体" 
         Size            =   14.25 
         Charset         =   134 
         Weight          =   700 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      ForeColor       =   &H00000000& 
      Height          =   375 
      Left            =   2040 
      TabIndex        =   18 
      Text            =   "Text7" 
      Top             =   5040 
      Width           =   2175 
   End 
   Begin VB.TextBox Text6  
      BackColor       =   &H00C0C0FF& 
      BeginProperty Font  
         Name            =   "宋体" 
         Size            =   14.25 
         Charset         =   134 
         Weight          =   700 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      ForeColor       =   &H00000000& 
      Height          =   405 
      Left            =   2040 
      TabIndex        =   17 
      Text            =   "Text6" 
      Top             =   4320 
      Width           =   1815 
   End 
   Begin VB.TextBox Text5  
      BackColor       =   &H00C0C0FF& 
      BeginProperty Font  
         Name            =   "宋体" 
         Size            =   14.25 
         Charset         =   134 
         Weight          =   700 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      ForeColor       =   &H00000000& 
      Height          =   405 
      Left            =   2040 
      TabIndex        =   16 
      Text            =   "Text5" 
      Top             =   3600 
      Width           =   2775 
   End 
   Begin VB.TextBox Text4  
      BackColor       =   &H00C0C0FF& 
      BeginProperty Font  
         Name            =   "宋体" 
         Size            =   14.25 
         Charset         =   134 
         Weight          =   700 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      ForeColor       =   &H00000000& 
      Height          =   405 
      Left            =   2040 
      TabIndex        =   15 
      Text            =   "Text4" 
      Top             =   2880 
      Width           =   1935 
   End 
   Begin VB.TextBox Text3  
      BackColor       =   &H00C0C0FF& 
      BeginProperty Font  
         Name            =   "宋体" 
         Size            =   14.25 
         Charset         =   134 
         Weight          =   700 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      ForeColor       =   &H00000000& 
      Height          =   405 
      Left            =   2040 
      TabIndex        =   14 
      Text            =   "Text3" 
      Top             =   2160 
      Width           =   1335 
   End 
   Begin VB.TextBox Text2  
      BackColor       =   &H00C0C0FF& 
      BeginProperty Font  
         Name            =   "宋体" 
         Size            =   14.25 
         Charset         =   134 
         Weight          =   700 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      ForeColor       =   &H00000000& 
      Height          =   405 
      Left            =   2040 
      TabIndex        =   13 
      Text            =   "Text2" 
      Top             =   1320 
      Width           =   1335 
   End 
   Begin VB.TextBox Text1  
      BackColor       =   &H00C0C0FF& 
      BeginProperty Font  
         Name            =   "宋体" 
         Size            =   14.25 
         Charset         =   134 
         Weight          =   700 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      ForeColor       =   &H00000000& 
      Height          =   465 
      Left            =   1200 
      TabIndex        =   12 
      Text            =   "Text1" 
      Top             =   240 
      Width           =   1815 
   End 
   Begin VB.Label Label7  
      BackStyle       =   0  'Transparent 
      Caption         =   "何时进校:" 
      BeginProperty Font  
         Name            =   "宋体" 
         Size            =   14.25 
         Charset         =   134 
         Weight          =   700 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      ForeColor       =   &H00C0C0FF& 
      Height          =   495 
      Left            =   570 
      TabIndex        =   11 
      Top             =   5040 
      Width           =   1695 
   End 
   Begin VB.Label Label6  
      BackStyle       =   0  'Transparent 
      Caption         =   "职务:" 
      BeginProperty Font  
         Name            =   "宋体" 
         Size            =   14.25 
         Charset         =   134 
         Weight          =   700 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      ForeColor       =   &H00C0C0FF& 
      Height          =   495 
      Left            =   570 
      TabIndex        =   10 
      Top             =   4290 
      Width           =   1215 
   End 
   Begin VB.Label Label5  
      BackStyle       =   0  'Transparent 
      Caption         =   "班任否:" 
      BeginProperty Font  
         Name            =   "宋体" 
         Size            =   14.25 
         Charset         =   134 
         Weight          =   700 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      ForeColor       =   &H00C0C0FF& 
      Height          =   495 
      Left            =   570 
      TabIndex        =   9 
      Top             =   3555 
      Width           =   1215 
   End 
   Begin VB.Label Label4  
      BackStyle       =   0  'Transparent 
      Caption         =   "教学水平:" 
      BeginProperty Font  
         Name            =   "宋体" 
         Size            =   14.25 
         Charset         =   134 
         Weight          =   700 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      ForeColor       =   &H00C0C0FF& 
      Height          =   495 
      Left            =   570 
      TabIndex        =   8 
      Top             =   2805 
      Width           =   1815 
   End 
   Begin VB.Label Label3  
      BackStyle       =   0  'Transparent 
      Caption         =   "工龄:" 
      BeginProperty Font  
         Name            =   "宋体" 
         Size            =   14.25 
         Charset         =   134 
         Weight          =   700 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      ForeColor       =   &H00C0C0FF& 
      Height          =   495 
      Left            =   570 
      TabIndex        =   7 
      Top             =   2070 
      Width           =   1215 
   End 
   Begin VB.Label Label2  
      BackStyle       =   0  'Transparent 
      Caption         =   "姓名:" 
      BeginProperty Font  
         Name            =   "宋体" 
         Size            =   14.25 
         Charset         =   134 
         Weight          =   700 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      ForeColor       =   &H00C0C0FF& 
      Height          =   495 
      Left            =   570 
      TabIndex        =   6 
      Top             =   1320 
      Width           =   1215 
   End 
   Begin VB.Label Label1  
      BackStyle       =   0  'Transparent 
      Caption         =   "部门:" 
      BeginProperty Font  
         Name            =   "宋体" 
         Size            =   18 
         Charset         =   134 
         Weight          =   700 
         Underline       =   0   'False 
         Italic          =   0   'False 
         Strikethrough   =   0   'False 
      EndProperty 
      ForeColor       =   &H00C0C0FF& 
      Height          =   615 
      Left            =   0 
      TabIndex        =   0 
      Top             =   120 
      Width           =   1215 
   End 
   Begin VB.Image Image1  
      Height          =   6015 
      Left            =   0 
      Picture         =   "Form2.frx":0884 
      Stretch         =   -1  'True 
      Top             =   0 
      Width           =   7575 
   End 
   Begin VB.Menu gzgl  
      Caption         =   "教师工资管理" 
      Begin VB.Menu gz  
         Caption         =   "教师工资管理系统" 
      End 
   End 
   Begin VB.Menu dagl  
      Caption         =   "学生档案管理" 
      Begin VB.Menu da  
         Caption         =   "学生档案管理系统" 
      End 
   End 
   Begin VB.Menu cjgl  
      Caption         =   "学生成绩管理" 
      Begin VB.Menu cj  
         Caption         =   "学生成绩管理系统" 
      End 
   End 
   Begin VB.Menu exit  
      Caption         =   "返回" 
      Begin VB.Menu end  
         Caption         =   "返回" 
      End 
   End 
End 
Attribute VB_Name = "Form2" 
Attribute VB_GlobalNameSpace = False 
Attribute VB_Creatable = False 
Attribute VB_PredeclaredId = True 
Attribute VB_Exposed = False 
Dim db As Database 
Dim zl As Recordset 
Private Sub cj_Click() 
  Form4.Show 
End Sub 
 
Private Sub Command1_Click() 
  On Error Resume Next 
  zl.MovePrevious 
  Text1 = zl.Fields("bm") 
  Text2 = zl.Fields("name") 
  Text3 = zl.Fields("gl") 
  Text4 = zl.Fields("jxsp") 
  Text5 = zl.Fields("brf") 
  Text6 = zl.Fields("zw") 
  Text7 = zl.Fields("hsjx") 
End Sub 
 
Private Sub Command2_Click() 
  Set zl = db.OpenRecordset("select * from zl") 
  glquery = InputBox("请输入您所查找的人的工龄:", "查询") 
  If MsgBox("请您确定的确要查询吗!", 6) <> 1 Then 
    Exit Sub 
  End If 
  Do Until zl.EOF 
  If zl.Fields("gl") Like "*" & LCase(glquery) & "*" Then 
   Text1 = zl.Fields("bm") 
   Text2 = zl.Fields("name") 
   Text3 = zl.Fields("gl") 
   Text4 = zl.Fields("jxsp") 
   Text5 = zl.Fields("brf") 
   Text6 = zl.Fields("zw") 
   Text7 = zl.Fields("hsjx") 
   Exit Sub 
 Else 
   zl.MoveNext 
 End If 
   Loop 
End Sub 
 
Private Sub Command3_Click() 
   newbm = Text1.Text 
   newname = Text2.Text 
   newgl = Text3.Text 
   newjxsp = Text4.Text 
   newbrf = Text5.Text 
   newzw = Text6.Text 
   newhsjx = Text7.Text 
  With zl 
   .AddNew 
   !bm = LCase(newbm) 
   !Name = LCase(newname) 
   !gl = LCase(newgl) 
   !jxsp = LCase(newjxsp) 
   !brf = LCase(newbrf) 
   !zw = LCase(newzw) 
   !hsjx = LCase(newhsjx) 
   .Update 
  End With 
  'MsgBox (newName & "was added to the address book") 
  If MsgBox("是否添加下一条记录!", vbOKCancel) = vbOK Then 
    Text1.Text = "" 
    Text2.Text = "" 
    Text3.Text = "" 
    Text4.Text = "" 
    Text5.Text = "" 
    Text6.Text = "" 
    Text7.Text = "" 
Else 
    GoTo ine 
End If 
ine: 
End Sub 
 
Private Sub Command4_Click() 
 Set zl = db.OpenRecordset("select * from zl where zl.name") 
  zl.Delete 
  zl.MoveNext 
  Text1.Text = "" 
  Text2.Text = "" 
  Text3.Text = "" 
  Text4.Text = "" 
  Text5.Text = "" 
  Text6.Text = "" 
  Text7.Text = "" 
End Sub 
 
Private Sub Command5_Click() 
  On Error Resume Next 
  zl.MoveNext 
  Text1 = zl.Fields("bm") 
  Text2 = zl.Fields("name") 
  Text3 = zl.Fields("gl") 
  Text6 = zl.Fields("jxsp") 
  Text4 = zl.Fields("brf") 
  Text5 = zl.Fields("zw") 
  Text7 = zl.Fields("hsjx") 
End Sub 
 
Private Sub da_Click() 
  Form1.Show 
End Sub 
 
Private Sub end_Click() 
   Me.Hide 
   frmSplash.Show 
End Sub 
 
Private Sub Form_Load() 
  Set db = OpenDatabase(App.Path & "\教师资料管理") 
  Set zl = db.OpenRecordset("zl") 
  If zl.EOF Then 
    MsgBox "please add someone to the databse" 
  Else 
    zl.MoveFirst 
    Text1 = zl.Fields("bm") 
    Text2 = zl.Fields("name") 
    Text3 = zl.Fields("gl") 
    Text4 = zl.Fields("jxsp") 
    Text5 = zl.Fields("brf") 
    Text6 = zl.Fields("zw") 
    Text7 = zl.Fields("hsjx") 
  End If 
End Sub 
 
Private Sub gz_Click() 
  Form3.Show 
End Sub 
Private Sub Form_Resize() 
    Form2.Height = 6450 
    Form2.Width = 7665 
    Move (Screen.Width - Me.Width) / 2, (Screen.Height - Me.Height) / 2 
End Sub 
 







⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -