📄 main_tjbb_xsybb.frm
字号:
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column02
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 Column03
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 Column04
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 Column05
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 Column06
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 Column07
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 Column08
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 Column09
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 Column10
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 Column11
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
ColumnWidth = 840.189
EndProperty
BeginProperty Column01
ColumnWidth = 1409.953
EndProperty
BeginProperty Column02
ColumnWidth = 645.165
EndProperty
BeginProperty Column03
ColumnWidth = 494.929
EndProperty
BeginProperty Column04
ColumnWidth = 510.236
EndProperty
BeginProperty Column05
ColumnWidth = 494.929
EndProperty
BeginProperty Column06
ColumnWidth = 420.095
EndProperty
BeginProperty Column07
ColumnWidth = 764.787
EndProperty
BeginProperty Column08
ColumnWidth = 599.811
EndProperty
BeginProperty Column09
ColumnWidth = 629.858
EndProperty
BeginProperty Column10
ColumnWidth = 959.811
EndProperty
BeginProperty Column11
ColumnWidth = 1649.764
EndProperty
EndProperty
End
Begin MSComCtl2.DTPicker DTP1
Height = 300
Left = 1110
TabIndex = 0
Top = 60
Width = 2250
_ExtentX = 3969
_ExtentY = 529
_Version = 393216
Format = 30146561
CurrentDate = 37538
End
Begin MSComCtl2.DTPicker DTP2
Height = 300
Left = 3690
TabIndex = 10
Top = 60
Width = 2250
_ExtentX = 3969
_ExtentY = 529
_Version = 393216
Format = 30146561
CurrentDate = 37538
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "请选择日期 至"
Height = 345
Left = 105
TabIndex = 1
Top = 120
Width = 3645
End
End
Attribute VB_Name = "main_tjbb_xsybb"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
DTP1.Value = Date - 30: DTP2.Value = Date '设置日期
Me.Caption = Me.Caption & " 操作员: " & frm_main.St1.Panels(3).Text
End Sub
Private Sub Form_Unload(Cancel As Integer)
frm_main.Enabled = True
End Sub
Private Sub Comfind_Click() '查询统计商品销售信息
Adodc1.RecordSource = "select * from xsd where 日期 between '" + Str(DTP1.Value) + "'AND '" + Str(DTP2.Value) + "'order by 票号"
Adodc1.Refresh
Adodc2.RecordSource = "select count(*)as pz,sum(数量)as 数量1,sum(金额)as 金额1 from xsd where 日期 between '" + Str(DTP1.Value) + "'AND '" + Str(DTP2.Value) + "'"
Adodc2.Refresh
If Adodc2.Recordset.Fields(0) <> "" Then Labpz.Caption = Adodc2.Recordset.Fields(0) Else Labpz.Caption = 0
If Adodc2.Recordset.Fields(1) <> "" Then Labsl.Caption = Adodc2.Recordset.Fields(1) Else Labsl.Caption = 0
If Adodc2.Recordset.Fields(2) <> "" Then Labje.Caption = Format(Adodc2.Recordset.Fields(2), "0.00") Else Labje.Caption = "0.00"
End Sub
Private Sub Comend_Click()
frm_main.Enabled = True
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -