📄 frmprint.frm
字号:
VERSION 5.00
Object = "{3EE95895-7935-11D5-B692-0050BA6549E8}#28.0#0"; "FLATCOM.OCX"
Object = "{D959C709-8613-11D1-9840-002078110E7D}#1.0#0"; "AS97POPUP.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form FrmPrint
BorderStyle = 0 'None
Caption = "Form1"
ClientHeight = 4320
ClientLeft = 0
ClientTop = 0
ClientWidth = 6270
LinkTopic = "Form1"
ScaleHeight = 4320
ScaleWidth = 6270
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
BackColor = &H80000018&
Caption = "选择考勤表类型"
ForeColor = &H00FF0000&
Height = 615
Left = 240
TabIndex = 4
Top = 360
Width = 5775
Begin VB.OptionButton Option3
Appearance = 0 'Flat
BackColor = &H80000018&
Caption = "类型3"
ForeColor = &H00FF0000&
Height = 255
Left = 2520
TabIndex = 7
Top = 240
Width = 855
End
Begin VB.OptionButton Option2
Appearance = 0 'Flat
BackColor = &H80000018&
Caption = "类型2"
ForeColor = &H00FF0000&
Height = 255
Left = 1440
TabIndex = 6
Top = 240
Width = 855
End
Begin VB.OptionButton Option1
Appearance = 0 'Flat
BackColor = &H80000018&
Caption = "类型1"
ForeColor = &H00FF0000&
Height = 255
Left = 360
MaskColor = &H00FFFF00&
TabIndex = 5
Top = 240
Width = 975
End
End
Begin as97Popup.asPopup asPopup2
Height = 495
Left = 2160
Top = 3600
Width = 615
_ExtentX = 1085
_ExtentY = 873
CustomPicture = "FrmPrint.frx":0000
MouseOverPicture= "FrmPrint.frx":0CDA
MouseDownPicture= "FrmPrint.frx":19B4
Caption = ""
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
UseFrame = 0 'False
ScaleWidth = 41
ScaleMode = 0
ScaleHeight = 33
BackStyle = 0
End
Begin as97Popup.asPopup asPopup1
Height = 495
Left = 720
Top = 3600
Width = 615
_ExtentX = 1085
_ExtentY = 873
CustomPicture = "FrmPrint.frx":268E
MouseOverPicture= "FrmPrint.frx":3368
MouseDownPicture= "FrmPrint.frx":4042
Caption = ""
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
UseFrame = 0 'False
ScaleWidth = 41
ScaleMode = 0
ScaleHeight = 33
BackStyle = 0
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "FrmPrint.frx":4D1C
Height = 2055
Left = 240
TabIndex = 3
Top = 1440
Width = 5775
_ExtentX = 10186
_ExtentY = 3625
_Version = 393216
BackColor = -2147483624
ForeColor = 16711680
HeadLines = 1
RowHeight = 15
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
DataMember = "Command1"
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
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin MSComCtl2.DTPicker DTPicker2
Height = 255
Left = 3720
TabIndex = 1
Top = 1080
Width = 2295
_ExtentX = 4048
_ExtentY = 450
_Version = 393216
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
CalendarBackColor= -2147483624
CalendarForeColor= 16711680
CalendarTitleForeColor= 16711680
CustomFormat = "MM-dd-yyyy"
Format = 24510467
CurrentDate = 37543
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 255
Left = 240
TabIndex = 0
Top = 1080
Width = 2175
_ExtentX = 3836
_ExtentY = 450
_Version = 393216
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
CalendarBackColor= -2147483624
CalendarForeColor= 16711680
CalendarTitleForeColor= 16711680
CustomFormat = "MM-dd-yyyy"
Format = 24510467
CurrentDate = 37543
End
Begin FlatCom.MoveBar MoveBar1
Align = 1 'Align Top
Height = 270
Left = 0
Top = 0
Width = 6270
_ExtentX = 11060
_ExtentY = 476
BackColor = 16711680
ForeColor = 8438015
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Caption = "考勤信息输出"
End
Begin as97Popup.asPopup asPopup3
Height = 615
Left = 4920
Top = 3600
Width = 735
_ExtentX = 1296
_ExtentY = 1085
CustomPicture = "FrmPrint.frx":4D3B
MouseOverPicture= "FrmPrint.frx":5A15
MouseDownPicture= "FrmPrint.frx":5D2F
Caption = ""
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
UseFrame = 0 'False
ScaleWidth = 49
ScaleMode = 0
BackStyle = 0
End
Begin as97Popup.asPopup asPopup4
Height = 495
Left = 3360
Top = 3600
Width = 615
_ExtentX = 1085
_ExtentY = 873
CustomPicture = "FrmPrint.frx":6A09
MouseOverPicture= "FrmPrint.frx":76E3
MouseDownPicture= "FrmPrint.frx":83BD
Caption = ""
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
UseFrame = 0 'False
ScaleWidth = 41
ScaleMode = 0
ScaleHeight = 33
BackStyle = 0
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "> >"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 2760
TabIndex = 2
Top = 1080
Width = 615
End
Begin VB.Shape Shape1
Height = 255
Left = 0
Top = 240
Width = 375
End
End
Attribute VB_Name = "FrmPrint"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub asPopup1_Click(Cancel As Boolean)
'************类型1执行
If Option1.Value = True Then
If DataEnvironment1.rsCommand1.State <> adStateClosed Then
DataEnvironment1.rsCommand1.Close
End If
' 读取 Text1 设定给参数一
DataEnvironment1.Commands("Command1").Parameters(0) = CStr(DTPicker1.Value)
' 读取 Text2 设定给参数二
DataEnvironment1.Commands("Command1").Parameters(1) = CStr(DTPicker2.Value)
DataGrid1.DataMember = "Command1"
Set DataGrid1.DataSource = DataEnvironment1
' DataReport1.Show
' DataReport4.Sections(2).Controls("Label8").Caption = "欠" & CStr(Text1.Text) & "个月物业费"
End If
'***************类型2执行
If Option2.Value = True Then
If DataEnvironment1.rsCommand2.State <> adStateClosed Then
DataEnvironment1.rsCommand2.Close
End If
' 读取 Text1 设定给参数一
DataEnvironment1.Commands("Command2").Parameters(0) = CStr(DTPicker1.Value)
' 读取 Text2 设定给参数二
DataEnvironment1.Commands("Command2").Parameters(1) = CStr(DTPicker2.Value)
DataGrid1.DataMember = "Command2"
Set DataGrid1.DataSource = DataEnvironment1
End If
End Sub
Private Sub asPopup2_Click(Cancel As Boolean)
If DataEnvironment1.rsCommand1.State <> adStateClosed Then
DataEnvironment1.rsCommand1.Close
End If
' 读取 Text1 设定给参数一
DataEnvironment1.Commands("Command1").Parameters(0) = CStr(DTPicker1.Value)
' 读取 Text2 设定给参数二
DataEnvironment1.Commands("Command1").Parameters(1) = CStr(DTPicker2.Value)
DataGrid1.DataMember = "Command1"
Set DataGrid1.DataSource = DataEnvironment1
DataReport1.Show
DataReport1.Sections(2).Controls("Label6").Caption = "开始日期:" & CStr(DTPicker1.Value)
DataReport1.Sections(2).Controls("Label7").Caption = "结束日期:" & CStr(DTPicker2.Value)
End Sub
Private Sub asPopup3_Click(Cancel As Boolean)
Unload Me
End Sub
Private Sub asPopup4_Click(Cancel As Boolean)
FrmMonth.Show
End Sub
Private Sub Form_Load()
Me.BackColor = &H80000018
Me.BorderStyle = 0
Shape1.BorderWidth = 8
Shape1.BorderColor = &HFF8080
MoveBar1.BackColor = &HFF8080
MoveBar1.Align = 1
DTPicker1.Value = Date
DTPicker2.Value = Date
Option1.Value = True
End Sub
Private Sub Form_Resize()
Shape1.Top = 270
Shape1.Left = 0
Shape1.Height = Me.Height - 270
Shape1.Width = Me.Width
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -