main_bb_datawindow.frm
来自「完整的物资管理系统源码」· FRM 代码 · 共 99 行
FRM
99 行
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form main_bb_datawindow
BorderStyle = 3 'Fixed Dialog
Caption = "日期选择窗口"
ClientHeight = 2220
ClientLeft = 45
ClientTop = 330
ClientWidth = 6360
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2220
ScaleWidth = 6360
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 1545
TabIndex = 4
Top = 1380
Width = 1560
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 3300
TabIndex = 3
Top = 1380
Width = 1560
End
Begin MSComCtl2.DTPicker DTP1
Height = 300
Left = 1095
TabIndex = 0
Top = 435
Width = 1995
_ExtentX = 3519
_ExtentY = 529
_Version = 393216
Format = 53346305
CurrentDate = 37536
End
Begin MSComCtl2.DTPicker DTP2
Height = 300
Left = 3975
TabIndex = 1
Top = 435
Width = 1995
_ExtentX = 3519
_ExtentY = 529
_Version = 393216
Format = 53346305
CurrentDate = 37536
End
Begin VB.Label Label1
Caption = "开始日期 结束日期"
Height = 210
Left = 270
TabIndex = 2
Top = 495
Width = 5130
End
End
Attribute VB_Name = "main_bb_datawindow"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Select Case intTag
Case 1
DataE1.rsCommand1.Open "select * from tb_rk where 进货日期 between '" + Str(DTP1.Value) + "'AND '" + Str(DTP2.Value) + "'and 检验和试验结果='合格'or 检验和试验结果='不合格'"
If DataE1.rsCommand1.RecordCount > 0 Then
Printer.Orientation = 2
DR_jhjybb.Show 1
Unload Me
Else
MsgBox "无数据!", , "提示窗口"
DataE1.rsCommand1.Close
End If
Case 2
strStartDate = DTP1.Value
strEndDate = DTP2.Value
Load frm_bb_bhgbb
frm_bb_bhgbb.Show 1
Unload Me
End Select
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
DTP1.Value = Date
DTP2.Value = Date + 30
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?