📄 frmmain.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Object = "{E95A2510-F3D1-416D-823B-4F840FE98091}#3.0#0"; "Command.ocx"
Object = "{3A6644DE-3402-11D9-9DE7-C33FAA87690A}#1.0#0"; "WinXPCEngine.ocx"
Begin VB.Form frmMain
BackColor = &H00C0C0C0&
ClientHeight = 8580
ClientLeft = 60
ClientTop = 60
ClientWidth = 9315
ControlBox = 0 'False
LinkTopic = "Form1"
MDIChild = -1 'True
Picture = "frmMain.frx":0000
ScaleHeight = 8580
ScaleWidth = 9315
WindowState = 2 'Maximized
Begin WinXPC_Engine.WindowsXPC WindowsXPC1
Left = 2790
Top = 3960
_ExtentX = 6588
_ExtentY = 1085
ColorScheme = 2
Common_Dialog = 0 'False
End
Begin CSCommand.Command cmdExit
Height = 375
Left = 8040
TabIndex = 8
Top = 8040
Width = 1215
_ExtentX = 2143
_ExtentY = 661
IconAlign = 0
Icon = "frmMain.frx":151DA4
Caption = "关闭"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.TextBox txtOut
Height = 2175
Left = 3240
Locked = -1 'True
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 7
Top = 6240
Width = 4575
End
Begin VB.TextBox txtIn
Height = 2175
Left = 3240
Locked = -1 'True
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 5
Top = 3480
Width = 4575
End
Begin MSFlexGridLib.MSFlexGrid mgridIDuty
Height = 1095
Left = 4200
TabIndex = 3
Top = 960
Width = 2415
_ExtentX = 4260
_ExtentY = 1931
_Version = 393216
FixedRows = 0
FixedCols = 0
ForeColor = 8388608
BackColorFixed = 16512
ForeColorFixed = 8388736
ForeColorSel = 65535
BackColorBkg = 16777215
GridColorFixed = 4210752
End
Begin MSFlexGridLib.MSFlexGrid mgridODuty
Height = 1095
Left = 4200
TabIndex = 9
Top = 2160
Width = 2415
_ExtentX = 4260
_ExtentY = 1931
_Version = 393216
FixedRows = 0
FixedCols = 0
ForeColor = 8388608
BackColorFixed = 16512
ForeColorFixed = 8388736
ForeColorSel = 65535
BackColorBkg = 16777215
GridColorFixed = 4210752
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "班外"
Height = 195
Index = 2
Left = 3240
TabIndex = 11
Top = 2640
Width = 360
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "班内"
Height = 195
Index = 0
Left = 3240
TabIndex = 10
Top = 1320
Width = 360
End
Begin VB.Label Label4
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "校内消息:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00400040&
Height = 300
Index = 1
Left = 1440
TabIndex = 6
Top = 5640
Width = 1185
End
Begin VB.Label Label3
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "班内消息:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00404080&
Height = 300
Left = 1440
TabIndex = 4
Top = 3480
Width = 1305
End
Begin VB.Label Label2
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "值日生:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004000&
Height = 300
Left = 1440
TabIndex = 2
Top = 1080
Width = 960
End
Begin VB.Label lblDate
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "今日日期: "
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004080&
Height = 300
Left = 5880
TabIndex = 1
Top = 360
Width = 1605
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "今日日期: "
BeginProperty Font
Name = "MS Sans Serif"
Size = 18
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 3840
TabIndex = 0
Top = 240
Width = 1695
End
End
Attribute VB_Name = "frmMain"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim strSql As String
Dim RS As ADODB.Recordset
Private Sub cmdExit_Click()
Unload Me
End Sub
Private Sub Form_Load()
'加载数据
On Error Resume Next
Me.lblDate.Caption = Format(Date, "yyyy年mm月dd日")
strSql = "select 学号,姓名 from 学生基本情况表 where 学号 in (select * from 班内值日表)"
writeMS strSql, Me.mgridIDuty
strSql = "select 学号,姓名 from 学生基本情况表 where 学号 in (select * from 班外值日表)"
writeMS strSql, Me.mgridODuty
strSql = "select 班内信息,校内信息 from 公告信息表 where 日期='" & str(Date) & "'"
Set RS = dbSelect(strSql)
While Not RS.EOF
Me.txtIn.Text = RS.Fields(0)
Me.txtOut.Text = RS.Fields(1)
RS.MoveNext
Wend
Set RS = Nothing
Me.WindowsXPC1.InitSubClassing
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -