📄 frmlessons.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#1.0#0"; "THREED32.OCX"
Begin VB.Form frmLessons
Caption = "教学计划"
ClientHeight = 3510
ClientLeft = 345
ClientTop = 2940
ClientWidth = 13380
LinkTopic = "Form1"
LockControls = -1 'True
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 3510
ScaleWidth = 13380
WindowState = 2 'Maximized
Begin Threed.SSPanel SSPanel1
Height = 495
Left = 180
TabIndex = 0
Top = 300
Width = 5175
_Version = 65536
_ExtentX = 9128
_ExtentY = 873
_StockProps = 15
Caption = "教 学 计 划 信 息 记 录"
ForeColor = 8388608
BackColor = 12632256
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 15.75
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BevelOuter = 1
Font3D = 1
End
Begin MSComctlLib.StatusBar StatBar
Align = 2 'Align Bottom
Height = 405
Left = 0
TabIndex = 1
Top = 3105
Width = 13380
_ExtentX = 23601
_ExtentY = 714
_Version = 393216
BeginProperty Panels {8E3867A5-8586-11D1-B16A-00C0F0283628}
NumPanels = 3
BeginProperty Panel1 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Object.Width = 3881
MinWidth = 3881
EndProperty
BeginProperty Panel2 {8E3867AB-8586-11D1-B16A-00C0F0283628}
Object.Width = 3528
MinWidth = 3528
EndProperty
BeginProperty Panel3 {8E3867AB-8586-11D1-B16A-00C0F0283628}
AutoSize = 1
Object.Width = 15610
Picture = "frmLessons.frx":0000
EndProperty
EndProperty
End
Begin Threed.SSPanel SSPanel2
Height = 555
Left = 60
TabIndex = 2
Top = 900
Width = 13215
_Version = 65536
_ExtentX = 23310
_ExtentY = 979
_StockProps = 15
BackColor = 12632256
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BevelOuter = 1
Begin VB.ComboBox tyComb
Height = 300
ItemData = "frmLessons.frx":0452
Left = 10920
List = "frmLessons.frx":0474
Style = 2 'Dropdown List
TabIndex = 6
Top = 120
Width = 1575
End
Begin VB.ComboBox xyComb
Height = 300
Left = 1260
Style = 2 'Dropdown List
TabIndex = 3
Top = 120
Width = 2715
End
Begin VB.ComboBox xqComb
Height = 300
ItemData = "frmLessons.frx":04D8
Left = 8760
List = "frmLessons.frx":04F7
Style = 2 'Dropdown List
TabIndex = 5
Top = 120
Width = 1035
End
Begin VB.ComboBox zyComb
Height = 300
Left = 4740
Style = 2 'Dropdown List
TabIndex = 4
Top = 120
Width = 3255
End
Begin VB.Label Label2
Alignment = 2 'Center
Caption = "课程性质"
Height = 255
Left = 9960
TabIndex = 11
Top = 180
Width = 915
End
Begin VB.Label Label1
Alignment = 2 'Center
Caption = "学院"
Height = 255
Left = 660
TabIndex = 9
Top = 180
Width = 555
End
Begin VB.Label Label4
Alignment = 2 'Center
Caption = "学期"
Height = 255
Left = 8160
TabIndex = 8
Top = 180
Width = 555
End
Begin VB.Label Label3
Alignment = 2 'Center
Caption = "专业"
Height = 255
Left = 4140
TabIndex = 7
Top = 180
Width = 555
End
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "frmLessons.frx":0519
Height = 1335
Left = 240
TabIndex = 10
Top = 1560
Width = 6495
_ExtentX = 11456
_ExtentY = 2355
_Version = 393216
AllowUpdate = -1 'True
AllowArrows = -1 'True
DefColWidth = 100
HeadLines = 2
RowHeight = 17
TabAction = 2
AllowAddNew = -1 'True
AllowDelete = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
ScrollBars = 3
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 7080
Top = 1920
Visible = 0 'False
Width = 2595
_ExtentX = 4577
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 1
LockType = 4
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
End
Attribute VB_Name = "frmLessons"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim cn As New ADODB.Connection '连接对象
Dim DataEdited As Boolean '数据已编辑标志
Dim bFirstStart As Boolean '窗体首次启动的标志
Private Sub Form_Load()
Dim msql$, mrs As ADODB.Recordset
'窗体中心定位
Call CenterPos(StudentMIS, Me)
Call SetAdc
DataEdited = False
bFirstStart = True
'填充学院组合框
msql$ = "select * from institute order by institute_id asc"
Set mrs = ExecuteSQL(msql)
Call ADDComboListRS(xyComb, mrs, True, "institute_name", "institute_id")
'填充专业组合框
msql$ = "select * from major order by institute_id,major_id asc"
Set mrs = ExecuteSQL(msql)
Call ADDComboListRS(zyComb, mrs, True, "major_name", "institute_id", "major_id")
'学期组合框
xqComb.ListIndex = 0
'课程类型组合框
tyComb.ListIndex = 0
End Sub
'窗体尺寸调整事件
Private Sub Form_Resize()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -