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

📄 frmtermg.frm

📁 北大青鸟教学管理系统是学习规范编程范本.功能非常完备,代码编写有章法,不可多得
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "msflxgrd.ocx"
Begin VB.Form frmTermG 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "学期信息管理"
   ClientHeight    =   7335
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6870
   Icon            =   "frmTermG.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   7335
   ScaleWidth      =   6870
   Begin VB.CommandButton cmdSave 
      Caption         =   "保存更改(&C)"
      Height          =   375
      Left            =   3960
      TabIndex        =   26
      ToolTipText     =   "保存所作更改"
      Top             =   6840
      Width           =   1215
   End
   Begin VB.CommandButton cmdLast 
      Caption         =   ">>"
      Enabled         =   0   'False
      Height          =   375
      Left            =   1320
      TabIndex        =   11
      ToolTipText     =   "最后一条"
      Top             =   3360
      Width           =   360
   End
   Begin VB.CommandButton cmdPrevious 
      Caption         =   "<"
      Enabled         =   0   'False
      Height          =   375
      Left            =   600
      TabIndex        =   9
      ToolTipText     =   "上一条"
      Top             =   3360
      Width           =   360
   End
   Begin VB.CommandButton cmdFirst 
      Caption         =   "<<"
      Enabled         =   0   'False
      Height          =   375
      Left            =   240
      TabIndex        =   8
      ToolTipText     =   "最前一条"
      Top             =   3360
      Width           =   360
   End
   Begin VB.CommandButton cmdNext 
      Caption         =   ">"
      Enabled         =   0   'False
      Height          =   375
      Left            =   960
      TabIndex        =   10
      ToolTipText     =   "下一条"
      Top             =   3360
      Width           =   360
   End
   Begin VB.CommandButton cmdQuit 
      Caption         =   "关闭(&L)"
      Height          =   375
      Left            =   5520
      TabIndex        =   18
      ToolTipText     =   "不保存关闭窗口"
      Top             =   6840
      Width           =   1215
   End
   Begin VB.CommandButton cmdNew 
      Caption         =   "新建(&N)"
      Enabled         =   0   'False
      Height          =   375
      Left            =   3000
      TabIndex        =   17
      ToolTipText     =   "新增记录"
      Top             =   3360
      Width           =   855
   End
   Begin VB.CommandButton cmdModi 
      Caption         =   "修改(&M)"
      Enabled         =   0   'False
      Height          =   375
      Left            =   4920
      TabIndex        =   16
      ToolTipText     =   "修改记录"
      Top             =   3360
      Width           =   855
   End
   Begin VB.CommandButton cmdDel 
      Caption         =   "删除(&D)"
      Enabled         =   0   'False
      Height          =   375
      Left            =   3960
      TabIndex        =   15
      ToolTipText     =   "删除记录"
      Top             =   3360
      Width           =   855
   End
   Begin VB.CommandButton cmdAdd 
      Caption         =   "保存(&S)"
      Enabled         =   0   'False
      Height          =   375
      Left            =   5880
      TabIndex        =   14
      ToolTipText     =   "保存记录到列表"
      Top             =   3360
      Width           =   855
   End
   Begin VB.CommandButton cmdSearch 
      Caption         =   "检索(&S)"
      Height          =   375
      Left            =   5400
      TabIndex        =   13
      ToolTipText     =   "信息检索"
      Top             =   120
      Width           =   1335
   End
   Begin VB.Frame FraClass 
      Caption         =   "班级基本信息"
      Enabled         =   0   'False
      Height          =   2775
      Left            =   120
      TabIndex        =   12
      Top             =   3960
      Width           =   6615
      Begin VB.TextBox txtTerm 
         Height          =   375
         Left            =   1080
         TabIndex        =   3
         Top             =   720
         Width           =   2055
      End
      Begin VB.TextBox txtRemark 
         Height          =   735
         Left            =   1080
         TabIndex        =   7
         Top             =   1800
         Width           =   5295
      End
      Begin VB.TextBox txtDirector 
         Height          =   375
         Left            =   4320
         TabIndex        =   6
         Top             =   1280
         Width           =   2055
      End
      Begin VB.TextBox txtStartDate 
         Height          =   375
         Left            =   4320
         TabIndex        =   4
         Top             =   760
         Width           =   2055
      End
      Begin VB.TextBox txtTermNo 
         Enabled         =   0   'False
         Height          =   375
         Left            =   1080
         TabIndex        =   1
         Top             =   240
         Width           =   2055
      End
      Begin VB.TextBox txtEndDate 
         Height          =   375
         Left            =   1080
         TabIndex        =   5
         Top             =   1245
         Width           =   2055
      End
      Begin VB.TextBox txtClassCode 
         Height          =   375
         Left            =   4320
         TabIndex        =   2
         Top             =   240
         Width           =   2055
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         Caption         =   "学期"
         Height          =   180
         Left            =   240
         TabIndex        =   25
         Top             =   817
         Width           =   360
      End
      Begin VB.Label Label6 
         AutoSize        =   -1  'True
         Caption         =   "备注"
         Height          =   180
         Left            =   240
         TabIndex        =   24
         Top             =   1800
         Width           =   360
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "班主任"
         Height          =   180
         Left            =   3480
         TabIndex        =   23
         Top             =   1320
         Width           =   540
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "结束日期"
         Height          =   180
         Left            =   240
         TabIndex        =   22
         Top             =   1335
         Width           =   720
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "开学日期"
         Height          =   180
         Left            =   3480
         TabIndex        =   21
         Top             =   840
         Width           =   720
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "班级编号"
         Height          =   180
         Left            =   3480
         TabIndex        =   20
         Top             =   360
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "学期编号"
         Height          =   180
         Left            =   240
         TabIndex        =   19
         Top             =   360
         Width           =   720
      End
   End
   Begin MSFlexGridLib.MSFlexGrid MsflxTerm 
      Height          =   2655
      Left            =   120
      TabIndex        =   0
      Top             =   550
      Width           =   6615
      _ExtentX        =   11668
      _ExtentY        =   4683
      _Version        =   393216
      Rows            =   3
      Cols            =   8
      FixedRows       =   2
      FocusRect       =   0
      SelectionMode   =   1
      AllowUserResizing=   1
   End
End
Attribute VB_Name = "frmTermG"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim IfSave As Boolean
Dim IfNew As Boolean

Private Sub InitMsflx()
    Dim intIndex As Integer
    MsflxTerm.MergeCells = flexMergeFree
    MsflxTerm.Row = 0
    MsflxTerm.ColWidth(0) = 600                '设定第一列宽为600
    For intIndex = 1 To MsflxTerm.Cols - 1
        MsflxTerm.Col = intIndex
        MsflxTerm.Text = "班级信息列表"
        MsflxTerm.ColWidth(intIndex) = 1100

    Next intIndex
    MsflxTerm.MergeRow(0) = True
    
    MsflxTerm.Row = 1
    MsflxTerm.Col = 0
    MsflxTerm.Text = "序号"
    
    MsflxTerm.Col = 1
    MsflxTerm.Text = "学期编号"
    
    MsflxTerm.Col = 2
    MsflxTerm.Text = "学期"
    
    MsflxTerm.Col = 3
    MsflxTerm.Text = "班级编号"

    MsflxTerm.Col = 4
    MsflxTerm.Text = "开学日期"

    
    MsflxTerm.Col = 5
    MsflxTerm.Text = "结束日期"
    
    MsflxTerm.Col = 6
    MsflxTerm.Text = "班主任"
    
    MsflxTerm.Col = 7
    MsflxTerm.Text = "备注"
    
End Sub

Private Sub cmdAdd_Click()
    If txtTermNo = "" Or txtTerm = "" Or txtClassCode = "" Or txtStartDate = "" Or txtDirector = "" Then
        MsgBox "请输入完整信息....", vbInformation + vbOKOnly, "信息不完整"

⌨️ 快捷键说明

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