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

📄 frmcourse_set.frm

📁 一个学生信息管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form frmcourse_set 
   Caption         =   "课程管理"
   ClientHeight    =   6390
   ClientLeft      =   3495
   ClientTop       =   2940
   ClientWidth     =   10020
   ForeColor       =   &H00FF0000&
   LinkTopic       =   "Form1"
   ScaleHeight     =   6390
   ScaleWidth      =   10020
   Begin MSFlexGridLib.MSFlexGrid Grid4 
      Height          =   3615
      Left            =   3000
      TabIndex        =   13
      Top             =   960
      Visible         =   0   'False
      Width           =   6495
      _ExtentX        =   11456
      _ExtentY        =   6376
      _Version        =   393216
      Rows            =   12
      Cols            =   7
      AllowUserResizing=   1
   End
   Begin MSFlexGridLib.MSFlexGrid Grid3 
      Height          =   3495
      Left            =   3000
      TabIndex        =   12
      Top             =   1080
      Visible         =   0   'False
      Width           =   6615
      _ExtentX        =   11668
      _ExtentY        =   6165
      _Version        =   393216
      Rows            =   12
      Cols            =   7
      AllowUserResizing=   1
   End
   Begin VB.TextBox Text2 
      Height          =   270
      Left            =   2520
      TabIndex        =   11
      Text            =   "必修"
      Top             =   3480
      Visible         =   0   'False
      Width           =   495
   End
   Begin VB.TextBox Text1 
      Height          =   270
      Left            =   2520
      TabIndex        =   10
      Text            =   "选修"
      Top             =   2880
      Visible         =   0   'False
      Width           =   495
   End
   Begin MSFlexGridLib.MSFlexGrid Grid2 
      Height          =   3495
      Left            =   3000
      TabIndex        =   9
      Top             =   960
      Visible         =   0   'False
      Width           =   6495
      _ExtentX        =   11456
      _ExtentY        =   6165
      _Version        =   393216
      Rows            =   12
      Cols            =   5
      AllowUserResizing=   1
   End
   Begin MSFlexGridLib.MSFlexGrid Grid1 
      Height          =   3615
      Left            =   3000
      TabIndex        =   8
      Top             =   960
      Width           =   6615
      _ExtentX        =   11668
      _ExtentY        =   6376
      _Version        =   393216
      Rows            =   15
      Cols            =   7
   End
   Begin VB.Frame Frame1 
      Caption         =   "课程管理"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   4935
      Left            =   600
      TabIndex        =   1
      Top             =   1080
      Width           =   1935
      Begin VB.Line Line6 
         BorderColor     =   &H00C00000&
         X1              =   360
         X2              =   1560
         Y1              =   3240
         Y2              =   3240
      End
      Begin VB.Label Label7 
         BackStyle       =   0  'Transparent
         Caption         =   "我的成绩"
         BeginProperty Font 
            Name            =   "隶书"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   255
         Left            =   360
         TabIndex        =   7
         Top             =   3000
         Width           =   1215
      End
      Begin VB.Line Line5 
         BorderColor     =   &H00C00000&
         X1              =   600
         X2              =   1320
         Y1              =   3840
         Y2              =   3840
      End
      Begin VB.Label Label6 
         BackStyle       =   0  'Transparent
         Caption         =   "退 出"
         BeginProperty Font 
            Name            =   "隶书"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   255
         Left            =   600
         TabIndex        =   6
         Top             =   3600
         Width           =   855
      End
      Begin VB.Line Line4 
         BorderColor     =   &H00C00000&
         X1              =   360
         X2              =   1560
         Y1              =   2640
         Y2              =   2640
      End
      Begin VB.Label Label5 
         BackStyle       =   0  'Transparent
         Caption         =   "必修课程"
         BeginProperty Font 
            Name            =   "隶书"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   255
         Left            =   360
         TabIndex        =   5
         Top             =   2400
         Width           =   1215
      End
      Begin VB.Line Line3 
         BorderColor     =   &H00C00000&
         X1              =   360
         X2              =   1560
         Y1              =   2040
         Y2              =   2040
      End
      Begin VB.Label Label4 
         BackStyle       =   0  'Transparent
         Caption         =   "选修课程"
         BeginProperty Font 
            Name            =   "隶书"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   255
         Left            =   360
         TabIndex        =   4
         Top             =   1800
         Width           =   1215
      End
      Begin VB.Line Line2 
         BorderColor     =   &H00C00000&
         X1              =   480
         X2              =   1320
         Y1              =   1440
         Y2              =   1440
      End
      Begin VB.Label Label3 
         BackStyle       =   0  'Transparent
         Caption         =   "课程表"
         BeginProperty Font 
            Name            =   "隶书"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   255
         Left            =   480
         TabIndex        =   3
         Top             =   1200
         Width           =   975
      End
      Begin VB.Line Line1 
         BorderColor     =   &H00C00000&
         X1              =   360
         X2              =   1560
         Y1              =   840
         Y2              =   840
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "本期课程"
         BeginProperty Font 
            Name            =   "隶书"
            Size            =   14.25
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00FF0000&
         Height          =   255
         Left            =   360
         TabIndex        =   2
         Top             =   600
         Width           =   1335
      End
   End
   Begin VB.Image Image1 
      Height          =   1185
      Left            =   4080
      Picture         =   "frmcourse_set.frx":0000
      Top             =   4800
      Width           =   4065
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "本科教务"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   26.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   615
      Left            =   4080
      TabIndex        =   0
      Top             =   360
      Width           =   2175
   End
End
Attribute VB_Name = "frmcourse_set"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim mrc As ADODB.Recordset
Dim myBookmark As Variant
Dim mcclean As Boolean
Private Sub Form_Load()
    With Grid1
        .CellAlignment = 4
        .TextMatrix(0, 0) = "编号"
        .TextMatrix(0, 1) = "课程名"
        .TextMatrix(0, 2) = "任课教员"
        .TextMatrix(0, 3) = "课程性质"
        .TextMatrix(0, 4) = "课时"
        .TextMatrix(0, 5) = "补考地点"
        .TextMatrix(0, 6) = "补考时间"
    End With
End Sub

Private Sub Label2_Click()
    Grid2.Visible = False
    Grid1.Visible = True
    Grid3.Visible = False
    Grid4.Visible = False
    
    Dim txtSQL As String
    Dim MsgText As String
    txtSQL = "select * from course"

    Set mrc = ExecuteSQL(txtSQL, MsgText)
    With Grid1
    .Rows = 2
    .CellAlignment = 4
        .TextMatrix(0, 0) = "编号"
        .TextMatrix(0, 1) = "课程名"
        .TextMatrix(0, 2) = "任课教员"
        .TextMatrix(0, 3) = "课程性质"
        .TextMatrix(0, 4) = "课时"
        .TextMatrix(0, 5) = "补考地点"
        .TextMatrix(0, 6) = "补考时间"
    
    '判断是否移动到数据集的最后
      mrc.MoveFirst
    Do While Not mrc.EOF
       .CellAlignment = 4
       .TextMatrix(.Rows - 1, 0) = mrc.Fields(0)
       .TextMatrix(.Rows - 1, 1) = mrc.Fields(1)
       .TextMatrix(.Rows - 1, 2) = mrc.Fields(2)
       .TextMatrix(.Rows - 1, 3) = mrc.Fields(3)
       .TextMatrix(.Rows - 1, 4) = mrc.Fields(4)
       .TextMatrix(.Rows - 1, 5) = mrc.Fields(5)
       .TextMatrix(.Rows - 1, 6) = mrc.Fields(6)
       .Rows = .Rows + 1
       '移动到下一条记录
       mrc.MoveNext
    Loop
  
  End With
  '关闭数据集
  mrc.Close
  
End Sub

Private Sub Label3_Click()
    Grid1.Visible = False
    Grid2.Visible = True
    Grid3.Visible = False
    Grid4.Visible = False
    

    Dim txtSQL As String
    Dim MsgText As String
     txtSQL = "select * from period"

  Set mrc = ExecuteSQL(txtSQL, MsgText)
  With Grid2
    .Rows = 2
    .CellAlignment = 4
        .TextMatrix(0, 0) = "星期"
        .TextMatrix(0, 1) = "上午1,2节"
        .TextMatrix(0, 2) = "上午3,4节"
        .TextMatrix(0, 3) = "下午5,6节"

    '判断是否移动到数据集的最后
     mrc.MoveFirst
    Do While Not mrc.EOF
       .CellAlignment = 4
       .TextMatrix(.Rows - 1, 0) = mrc.Fields(0)
       .TextMatrix(.Rows - 1, 1) = mrc.Fields(1)
       .TextMatrix(.Rows - 1, 2) = mrc.Fields(2)
       .TextMatrix(.Rows - 1, 3) = mrc.Fields(3)
       .Rows = .Rows + 1
       '移动到下一条记录
       mrc.MoveNext
    Loop
  
  End With
  '关闭数据集
 
  mrc.Close
End Sub

Private Sub Label4_Click()
    Grid1.Visible = False
    Grid3.Visible = True
    Grid2.Visible = False
    Grid4.Visible = False
    
    Dim txtSQL As String
    Dim MsgText As String
    txtSQL = "select * from course where characteristic = " & Trim(Text1.Text) & ""

  Set mrc = ExecuteSQL(txtSQL, MsgText)
  With Grid3
    .Rows = 2
    .CellAlignment = 4
        .TextMatrix(0, 0) = "编号"
        .TextMatrix(0, 1) = "课程名"
        .TextMatrix(0, 2) = "任课教员"
        .TextMatrix(0, 3) = "课程性质"
        .TextMatrix(0, 4) = "课时"
        .TextMatrix(0, 5) = "补考地点"
        .TextMatrix(0, 6) = "补考时间"
    
    '判断是否移动到数据集的最后
     mrc.MoveFirst
    Do While Not mrc.EOF
       .CellAlignment = 4
       .TextMatrix(.Rows - 1, 0) = mrc.Fields(0)
       .TextMatrix(.Rows - 1, 1) = mrc.Fields(1)
       .TextMatrix(.Rows - 1, 2) = mrc.Fields(2)
       .TextMatrix(.Rows - 1, 3) = mrc.Fields(3)
       .TextMatrix(.Rows - 1, 4) = mrc.Fields(4)
       .TextMatrix(.Rows - 1, 5) = mrc.Fields(5)
       .TextMatrix(.Rows - 1, 6) = mrc.Fields(6)
       .Rows = .Rows + 1
       '移动到下一条记录
        mrc.MoveNext
    Loop
  
  End With
  '关闭数据集
 
  mrc.Close
End Sub

Private Sub Label5_Click()
     Grid1.Visible = False
     Grid4.Visible = True
     Grid2.Visible = False
     Grid3.Visible = False
    
    Dim txtSQL As String
    Dim MsgText As String
    txtSQL = "select * from course where characteristic = " & Trim(Text2.Text) & ""

  Set mrc = ExecuteSQL(txtSQL, MsgText)
  With Grid4
    .Rows = 2
    .CellAlignment = 4
        .TextMatrix(0, 0) = "编号"
        .TextMatrix(0, 1) = "课程名"
        .TextMatrix(0, 2) = "任课教员"
        .TextMatrix(0, 3) = "课程性质"
        .TextMatrix(0, 4) = "课时"
        .TextMatrix(0, 5) = "补考地点"
        .TextMatrix(0, 6) = "补考时间"
    
    '判断是否移动到数据集的最后
      mrc.MoveFirst
    Do While Not mrc.EOF
       .CellAlignment = 4
       .TextMatrix(.Rows - 1, 0) = mrc.Fields(0)
       .TextMatrix(.Rows - 1, 1) = mrc.Fields(1)
       .TextMatrix(.Rows - 1, 2) = mrc.Fields(2)
       .TextMatrix(.Rows - 1, 3) = mrc.Fields(3)
       .TextMatrix(.Rows - 1, 4) = mrc.Fields(4)
       .TextMatrix(.Rows - 1, 5) = mrc.Fields(5)
       .TextMatrix(.Rows - 1, 6) = mrc.Fields(6)
       .Rows = .Rows + 1
       '移动到下一条记录
       mrc.MoveNext
    Loop
  
  End With
  '关闭数据集

  mrc.Close
End Sub

Private Sub Label6_Click()
    Unload Me
End Sub

Private Sub Label7_Click()
    frmmark_find.Show
End Sub

⌨️ 快捷键说明

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