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

📄 frmgrade_gl.frm

📁 一个学生信息管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form frmgrade_gl 
   Caption         =   "成绩管理"
   ClientHeight    =   5085
   ClientLeft      =   3495
   ClientTop       =   3165
   ClientWidth     =   7515
   LinkTopic       =   "Form1"
   Picture         =   "frmgrade_gl.frx":0000
   ScaleHeight     =   5085
   ScaleWidth      =   7515
   Begin MSFlexGridLib.MSFlexGrid Grid1 
      Height          =   3255
      Left            =   1800
      TabIndex        =   10
      Top             =   240
      Width           =   5415
      _ExtentX        =   9551
      _ExtentY        =   5741
      _Version        =   393216
      Rows            =   10
      Cols            =   5
      AllowUserResizing=   1
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   375
      Left            =   4080
      TabIndex        =   5
      Top             =   4440
      Width           =   735
   End
   Begin VB.TextBox Text1 
      Height          =   375
      Left            =   2400
      TabIndex        =   4
      Text            =   "Text1"
      Top             =   4440
      Width           =   1455
   End
   Begin VB.ComboBox Combo1 
      Height          =   300
      Left            =   2400
      TabIndex        =   2
      Text            =   "Combo1"
      Top             =   3840
      Width           =   1575
   End
   Begin VB.Line Line6 
      BorderColor     =   &H00C00000&
      X1              =   6480
      X2              =   7200
      Y1              =   4800
      Y2              =   4800
   End
   Begin VB.Label Label7 
      BackStyle       =   0  'Transparent
      Caption         =   "退  出"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   255
      Left            =   6480
      TabIndex        =   9
      Top             =   4560
      Width           =   735
   End
   Begin VB.Line Line5 
      BorderColor     =   &H00C00000&
      X1              =   5160
      X2              =   6120
      Y1              =   4800
      Y2              =   4800
   End
   Begin VB.Label Label6 
      BackStyle       =   0  'Transparent
      Caption         =   "奖罚名单"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   255
      Left            =   5160
      TabIndex        =   8
      Top             =   4560
      Width           =   975
   End
   Begin VB.Line Line4 
      BorderColor     =   &H00C00000&
      X1              =   5160
      X2              =   6120
      Y1              =   4080
      Y2              =   4080
   End
   Begin VB.Label Label5 
      BackStyle       =   0  'Transparent
      Caption         =   "成绩修改"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   255
      Left            =   5160
      TabIndex        =   7
      Top             =   3840
      Width           =   975
   End
   Begin VB.Line Line3 
      BorderColor     =   &H00C00000&
      X1              =   6360
      X2              =   7320
      Y1              =   4080
      Y2              =   4080
   End
   Begin VB.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "成绩录入"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   255
      Left            =   6360
      TabIndex        =   6
      Top             =   3840
      Width           =   975
   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
      Height          =   255
      Left            =   1680
      TabIndex        =   3
      Top             =   4440
      Width           =   615
   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
      Height          =   255
      Left            =   1680
      TabIndex        =   1
      Top             =   3840
      Width           =   615
   End
   Begin VB.Line Line2 
      BorderColor     =   &H00FFFFFF&
      BorderWidth     =   2
      X1              =   1215
      X2              =   1215
      Y1              =   360
      Y2              =   4800
   End
   Begin VB.Line Line1 
      BorderColor     =   &H00FF8080&
      BorderWidth     =   2
      X1              =   1200
      X2              =   1200
      Y1              =   360
      Y2              =   4800
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "学生成绩管理"
      BeginProperty Font 
         Name            =   "华文行楷"
         Size            =   36
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   4455
      Left            =   480
      TabIndex        =   0
      Top             =   360
      Width           =   735
   End
End
Attribute VB_Name = "frmgrade_gl"
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()
    Dim txtSQL As String
    Dim MsgText As String
    txtSQL = "select * from achievement"

    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) = "是否重修"

    '判断是否移动到数据集的最后
      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)
       .Rows = .Rows + 1
       '移动到下一条记录
       mrc.MoveNext
    Loop
  
  End With
  '关闭数据集
  mrc.Close
   Combo1.AddItem "模式识别"
   Combo1.AddItem "微电子技术"
    Combo1.AddItem "通信原理"
     
End Sub

Private Sub Label4_Click()
    frmgrade_edit.Show
    frmgrade_edit.Command6.Enabled = False
    frmgrade_edit.Command7.Enabled = False
    frmgrade_edit.Command8.Enabled = False
    frmgrade_edit.Command10.Enabled = False
    
End Sub

Private Sub Label5_Click()
    frmgrade_edit.Show
End Sub

Private Sub Label6_Click()
    frmmenu.Show
End Sub

Private Sub Label7_Click()
    Unload Me
End Sub

⌨️ 快捷键说明

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