📄 main_htgl_lsdjcx.frm
字号:
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
BeginProperty Column12
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 Column13
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 Column14
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 Column15
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 Column16
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 Column17
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 Column18
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 = 675.213
EndProperty
BeginProperty Column01
ColumnWidth = 1890.142
EndProperty
BeginProperty Column02
ColumnWidth = 824.882
EndProperty
BeginProperty Column03
ColumnWidth = 840.189
EndProperty
BeginProperty Column04
ColumnWidth = 794.835
EndProperty
BeginProperty Column05
ColumnWidth = 1425.26
EndProperty
BeginProperty Column06
ColumnWidth = 1154.835
EndProperty
BeginProperty Column07
ColumnWidth = 810.142
EndProperty
BeginProperty Column08
ColumnWidth = 1170.142
EndProperty
BeginProperty Column09
ColumnWidth = 810.142
EndProperty
BeginProperty Column10
ColumnWidth = 480.189
EndProperty
BeginProperty Column11
ColumnWidth = 810.142
EndProperty
BeginProperty Column12
ColumnWidth = 810.142
EndProperty
BeginProperty Column13
ColumnWidth = 524.976
EndProperty
BeginProperty Column14
ColumnWidth = 794.835
EndProperty
BeginProperty Column15
ColumnWidth = 810.142
EndProperty
BeginProperty Column16
ColumnWidth = 975.118
EndProperty
BeginProperty Column17
ColumnWidth = 1065.26
EndProperty
BeginProperty Column18
ColumnWidth = 510.236
EndProperty
EndProperty
End
Begin VB.Label Labzj
BackStyle = 0 'Transparent
ForeColor = &H00FF0000&
Height = 240
Left = 1335
TabIndex = 4
Top = 4170
Width = 1395
End
Begin VB.Label Labys
BackStyle = 0 'Transparent
ForeColor = &H000000FF&
Height = 240
Left = 4020
TabIndex = 3
Top = 4170
Width = 1395
End
Begin VB.Label Labss
BackStyle = 0 'Transparent
ForeColor = &H00FF0000&
Height = 240
Left = 6720
TabIndex = 2
Top = 4170
Width = 2145
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "总计消费金额: 消费应收金额: 消费实收金额:"
Height = 225
Left = 75
TabIndex = 5
Top = 4200
Width = 8040
End
End
Attribute VB_Name = "main_htgl_lsdjcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Activate()
'初始化日期
DTP1.Value = Date - 10
DTP2.Value = Date
'统计历史消费信息
Adodc2.RecordSource = "select count(*) as 记录,sum(总计消费)as 合计,sum(消费应收)as 应收,sum(消费实收)as 实收 from 历史消费单据表 "
Adodc2.Refresh
If Adodc2.Recordset.Fields(1) <> "" Then Labzj.Caption = Format(Adodc2.Recordset.Fields(1), "0.00") Else Labzj.Caption = "0"
If Adodc2.Recordset.Fields(2) <> "" Then Labys.Caption = Format(Adodc2.Recordset.Fields(2), "0.00") Else Labys.Caption = "0"
If Adodc2.Recordset.Fields(3) <> "" Then Labss.Caption = Format(Adodc2.Recordset.Fields(3), "0.00") Else Labss.Caption = "0"
End Sub
Private Sub Form_Load()
'设置窗体标题
Me.Caption = Me.Caption & " 操作员: " & frm_main.St1.Panels(3).Text
End Sub
Private Sub Form_Unload(Cancel As Integer)
frm_main.Enabled = True '设置frm_main窗体有效
End Sub
Private Sub CmdFind_Click() '查询统计历史消费信息
Adodc1.RecordSource = "select * from 历史消费单据表 where 历史消费单据表.登记时间 between '" + Str(DTP1.Value) + "'AND '" + Str(DTP2.Value) + "'order by 消费单据号"
Adodc1.Refresh
Adodc2.RecordSource = "select count(*) as 记录,sum(总计消费)as 合计,sum(消费应收)as 应收,sum(消费实收)as 实收 from 历史消费单据表 where 历史消费单据表.登记时间 between '" + Str(DTP1.Value) + "'AND '" + Str(DTP2.Value) + "'"
Adodc2.Refresh
If Adodc2.Recordset.Fields(1) <> "" Then Labzj.Caption = Format(Adodc2.Recordset.Fields(1), "0.00") Else Labzj.Caption = "0"
If Adodc2.Recordset.Fields(2) <> "" Then Labys.Caption = Format(Adodc2.Recordset.Fields(2), "0.00") Else Labys.Caption = "0"
If Adodc2.Recordset.Fields(3) <> "" Then Labss.Caption = Format(Adodc2.Recordset.Fields(3), "0.00") Else Labss.Caption = "0"
End Sub
Private Sub CmdEnd_Click()
frm_main.Enabled = True
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -