📄 frmbbtime.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmbbtime
BackColor = &H00FF8080&
Caption = "报表时间设置"
ClientHeight = 2235
ClientLeft = 60
ClientTop = 345
ClientWidth = 5820
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2235
ScaleWidth = 5820
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command1
Caption = "取消"
Height = 495
Index = 1
Left = 3240
TabIndex = 6
Top = 1560
Width = 975
End
Begin VB.CommandButton Command1
Caption = "确认"
Height = 495
Index = 0
Left = 1440
TabIndex = 5
Top = 1560
Width = 975
End
Begin MSComCtl2.DTPicker DTPicker2
Height = 375
Left = 3840
TabIndex = 0
Top = 960
Width = 1215
_ExtentX = 2143
_ExtentY = 661
_Version = 393216
CustomFormat = "yyyy-MM-dd"
Format = 85983235
CurrentDate = 38250
End
Begin MSComCtl2.DTPicker DTPicker1
Height = 375
Left = 1200
TabIndex = 1
Top = 960
Width = 1215
_ExtentX = 2143
_ExtentY = 661
_Version = 393216
CustomFormat = "yyyy-MM-dd"
Format = 85983235
CurrentDate = 37519
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "请选择时间范围"
BeginProperty Font
Name = "MS Sans Serif"
Size = 18
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 495
Left = 1320
TabIndex = 4
Top = 240
Width = 2535
End
Begin VB.Label Labsearch
BackStyle = 0 'Transparent
Caption = "起始时间"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 375
Index = 6
Left = 240
TabIndex = 3
Top = 960
Width = 855
End
Begin VB.Label Labsearch
BackStyle = 0 'Transparent
Caption = "截止时间"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 375
Index = 7
Left = 3000
TabIndex = 2
Top = 960
Width = 855
End
End
Attribute VB_Name = "frmbbtime"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click(Index As Integer)
If Index = 0 Then
If DTPicker1.Value > DTPicker2.Value Then
MsgBox "截止时间应晚于开始时间!"
DTPicker1.SetFocus
Else
endtime = Format(DTPicker2.Value, "yyyy-MM-dd")
starttime = Format(DTPicker1.Value, "yyyy-MM-dd")
Select Case bbtype
Case 1
Unload frmbbtime
DaReportzh.Show
Case 2
Unload frmbbtime
Dareportsr.Show
Case 3
Unload frmbbtime
Dareportsk.Show
Case 4
Unload frmbbtime
dareportyq.Show
Case 5
Unload frmbbtime
Dareportwwg.Show
Case 6
Unload frmbbtime
Dareportxqd.Show
End Select
End If
Else
Unload frmbbtime
End If
End Sub
Private Sub Form_Load()
DTPicker2.Value = Date
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -