📄 main_qtgl_drxfcx.frm
字号:
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
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 1244.976
EndProperty
BeginProperty Column01
ColumnWidth = 794.835
EndProperty
BeginProperty Column02
ColumnWidth = 840.189
EndProperty
BeginProperty Column03
ColumnWidth = 794.835
EndProperty
BeginProperty Column04
ColumnWidth = 1110.047
EndProperty
BeginProperty Column05
ColumnWidth = 1080
EndProperty
BeginProperty Column06
ColumnWidth = 810.142
EndProperty
BeginProperty Column07
ColumnWidth = 1170.142
EndProperty
BeginProperty Column08
ColumnWidth = 810.142
EndProperty
BeginProperty Column09
ColumnWidth = 480.189
EndProperty
BeginProperty Column10
ColumnWidth = 810.142
EndProperty
BeginProperty Column11
ColumnWidth = 810.142
EndProperty
BeginProperty Column12
ColumnWidth = 524.976
EndProperty
BeginProperty Column13
ColumnWidth = 794.835
EndProperty
BeginProperty Column14
ColumnWidth = 810.142
EndProperty
BeginProperty Column15
ColumnWidth = 975.118
EndProperty
BeginProperty Column16
ColumnWidth = 1065.26
EndProperty
BeginProperty Column17
ColumnWidth = 510.236
EndProperty
EndProperty
End
Begin VB.Label Labss
BackStyle = 0 'Transparent
ForeColor = &H00FF0000&
Height = 240
Left = 6675
TabIndex = 4
Top = 4275
Width = 2145
End
Begin VB.Label Labys
BackStyle = 0 'Transparent
ForeColor = &H000000FF&
Height = 240
Left = 3975
TabIndex = 3
Top = 4275
Width = 1395
End
Begin VB.Label Labzj
BackStyle = 0 'Transparent
ForeColor = &H00FF0000&
Height = 240
Left = 1290
TabIndex = 2
Top = 4275
Width = 1395
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "总计消费金额: 消费应收金额: 消费实收金额:"
Height = 225
Left = 30
TabIndex = 1
Top = 4305
Width = 8040
End
End
Attribute VB_Name = "main_qtgl_drxfcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Activate()
'添加查询字段列表
Combo1.AddItem ("消费单据号")
Combo1.AddItem ("主客箱号")
Combo1.AddItem ("主客姓名")
Combo1.AddItem ("结帐方式")
Combo1.ListIndex = 0
'统计总计消费金额、消费应收金额、消费实收金额
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() '查询统计日消费信息
'按Combo1.Text中的字段查询日消费单据信息
Adodc1.RecordSource = "select * from 日消费单据表 where (日消费单据表." & Combo1.Text & " like + '" + Text1.Text + "'+'%')order by 消费单据号"
Adodc1.Refresh
'统计总计消费金额、消费应收金额、消费实收金额
Adodc2.RecordSource = "select count(*) as 记录,sum(总计消费)as 合计,sum(消费应收)as 应收,sum(消费实收)as 实收 from 日消费单据表 where (日消费单据表." & Combo1.Text & " like + '" + Text1.Text + "'+'%')"
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 '设置frm_main有效
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -