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

📄 dispfrm.frm

📁 guan yu pai ke xi tong de ruan jian
💻 FRM
📖 第 1 页 / 共 3 页
字号:
VERSION 5.00
Begin VB.Form DispFrm 
   Caption         =   "课表处理"
   ClientHeight    =   4455
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   9570
   Icon            =   "DispFrm.frx":0000
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   ScaleHeight     =   4455
   ScaleWidth      =   9570
   Begin VB.CommandButton Command2 
      Caption         =   "0"
      Height          =   255
      Left            =   4920
      TabIndex        =   12
      ToolTipText     =   "返回"
      Top             =   3600
      Width           =   255
   End
   Begin VB.Frame Frame1 
      BorderStyle     =   0  'None
      Height          =   3855
      Left            =   5640
      TabIndex        =   4
      Top             =   0
      Width           =   2175
      Begin VB.CommandButton Command1 
         BackColor       =   &H8000000A&
         Caption         =   "停止处理"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   42
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1875
         Index           =   4
         Left            =   120
         MaskColor       =   &H00E0E0E0&
         TabIndex        =   15
         Top             =   1800
         Visible         =   0   'False
         Width           =   1965
      End
      Begin VB.CommandButton Command1 
         Caption         =   "全 部 清 除"
         Height          =   375
         Index           =   1
         Left            =   120
         TabIndex        =   14
         Top             =   2280
         Width           =   1965
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Index           =   1
         IntegralHeight  =   0   'False
         Left            =   120
         Style           =   2  'Dropdown List
         TabIndex        =   11
         Top             =   1320
         Width           =   1905
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确 定"
         Height          =   375
         Index           =   2
         Left            =   120
         TabIndex        =   10
         Top             =   2760
         Width           =   885
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Index           =   0
         IntegralHeight  =   0   'False
         Left            =   120
         Style           =   2  'Dropdown List
         TabIndex        =   9
         Top             =   600
         Width           =   1905
      End
      Begin VB.OptionButton Option1 
         Caption         =   "教师课表"
         Height          =   255
         Index           =   1
         Left            =   120
         TabIndex        =   8
         Top             =   960
         Width           =   1905
      End
      Begin VB.OptionButton Option1 
         Caption         =   "班级课表"
         Height          =   255
         Index           =   0
         Left            =   120
         TabIndex        =   7
         Top             =   240
         Value           =   -1  'True
         Width           =   1305
      End
      Begin VB.Timer Timer1 
         Enabled         =   0   'False
         Interval        =   100
         Left            =   1560
         Top             =   120
      End
      Begin VB.CommandButton Command1 
         Caption         =   "取 消"
         Height          =   375
         Index           =   3
         Left            =   1200
         TabIndex        =   5
         Top             =   2760
         Width           =   885
      End
      Begin VB.CommandButton Command1 
         Caption         =   "自 动 填 充"
         Height          =   375
         Index           =   0
         Left            =   120
         TabIndex        =   6
         Top             =   1800
         Width           =   1965
      End
   End
   Begin VB.VScrollBar VScroll1 
      Height          =   3255
      Left            =   5040
      TabIndex        =   3
      Top             =   240
      Width           =   255
   End
   Begin VB.HScrollBar HScroll1 
      Height          =   255
      Left            =   720
      TabIndex        =   2
      Top             =   3480
      Width           =   2775
   End
   Begin VB.PictureBox WinPage 
      BackColor       =   &H8000000A&
      Height          =   3375
      Left            =   0
      ScaleHeight     =   3315
      ScaleWidth      =   4635
      TabIndex        =   0
      Top             =   0
      Width           =   4695
      Begin VB.ListBox List1 
         BackColor       =   &H80000013&
         Height          =   1680
         Left            =   480
         TabIndex        =   13
         ToolTipText     =   "选择一个科目,调整到选定位置。"
         Top             =   360
         Visible         =   0   'False
         Width           =   1455
      End
      Begin VB.PictureBox DispPage 
         Appearance      =   0  'Flat
         AutoRedraw      =   -1  'True
         BackColor       =   &H80000005&
         BorderStyle     =   0  'None
         ForeColor       =   &H80000008&
         Height          =   2880
         Left            =   0
         ScaleHeight     =   2880
         ScaleWidth      =   3720
         TabIndex        =   1
         ToolTipText     =   "单击选中,双击进行排课,拖动进行移动,Del键删除,Ctrl+Del清空该课表,Shift+Del清空所有课表。"
         Top             =   0
         Width           =   3720
      End
   End
   Begin VB.Menu PopMenu 
      Caption         =   "PopMenu"
      Visible         =   0   'False
      Begin VB.Menu PopMenus 
         Caption         =   "选择课表"
         Index           =   0
         Begin VB.Menu SelectClasA 
            Caption         =   "班级课表"
            Begin VB.Menu BanList 
               Caption         =   "班级1"
               Index           =   0
            End
         End
         Begin VB.Menu SelectClasB 
            Caption         =   "教师课表"
            Begin VB.Menu ShiList 
               Caption         =   "教师1"
               Index           =   0
            End
         End
      End
      Begin VB.Menu PopMenus 
         Caption         =   "排课处理"
         Index           =   1
         Begin VB.Menu kemu 
            Caption         =   "科目1"
            Index           =   0
         End
      End
      Begin VB.Menu PopMenus 
         Caption         =   "更改任课教师"
         Index           =   2
         Begin VB.Menu teachers 
            Caption         =   "教师1"
            Index           =   0
         End
      End
      Begin VB.Menu PopMenus 
         Caption         =   "删除当前科目"
         Index           =   3
      End
      Begin VB.Menu PopMenus 
         Caption         =   "清空当前课表"
         Index           =   4
      End
      Begin VB.Menu PopMenus 
         Caption         =   "清空所有课表"
         Index           =   5
      End
   End
End
Attribute VB_Name = "DispFrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private RowHeight As Long '行高.
Private ColWidth As Long '列宽.
Private TemDataSet As MDD_Data  '用于暂存数据.
Private Type POINTS
        X  As Integer '教学日。
        Y  As Integer '时段。
        Z  As Integer '节数。
End Type
Private SelectDown As POINTS
Private SelectUp As POINTS
Private CurrXY As POINTS

Private Sub BanList_Click(Index As Integer)
    Combo1(0).ListIndex = Index
    Option1(0).Value = True
End Sub

Private Sub ShiList_Click(Index As Integer)
    Combo1(1).ListIndex = Index
    Option1(1).Value = True
End Sub


Private Sub Combo1_Click(Index As Integer)
    PageRefresh
End Sub

Private Sub Combo1_GotFocus(Index As Integer)
    Me.Option1(Index).Value = True
    PageRefresh
End Sub
Private Sub Command1_Click(Index As Integer)
    Dim RowIndex As Long
    Dim ColIndex As Long
    Dim TemStr As String
    Select Case Index
    Case 0: '自动填充.
        If TemDataSet.Tables(0).RowCount > 20 Then
            '如果班级数大于20个,则必须经过注册才能进行自动处理.
            If ApplyMode = False Then
                If MsgBox("您还没有注册!请注册您的产品!" & Chr(13) & "未注册时自动处理要求不能超过20个班级!" & Chr(13) & "您现在就要注册吗?", vbYesNo, "未注册...") = vbYes Then Apply.Show 1
                Exit Sub
            End If
        End If
        Me.MousePointer = 11
        Me.Command1(0).Visible = False
        Me.Command1(4).Visible = True
        Me.Command1(4).SetFocus
        Me.Timer1.Enabled = True
        TemDataSet.DispStart '开始处理,直到用户按"停止"按钮.
        Me.Timer1.Enabled = False
        Me.Command1(0).Visible = True
        Me.Command1(4).Visible = False
        Me.PageRefresh
        Me.Caption = App.ProductName & "  <课程处理>"
        Me.MousePointer = 0
    Case 1: '全部清除.
        For RowIndex = 0 To TemDataSet.Tables(8).RowCount - 1

⌨️ 快捷键说明

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