📄 main_ysyf_skcx.frm
字号:
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
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
SplitCount = 1
BeginProperty Split0
Locked = -1 'True
BeginProperty Column00
ColumnWidth = 1319.811
EndProperty
BeginProperty Column01
ColumnWidth = 1005.165
EndProperty
BeginProperty Column02
ColumnWidth = 2160
EndProperty
BeginProperty Column03
ColumnWidth = 569.764
EndProperty
BeginProperty Column04
ColumnWidth = 434.835
EndProperty
BeginProperty Column05
ColumnWidth = 494.929
EndProperty
BeginProperty Column06
ColumnWidth = 780.095
EndProperty
BeginProperty Column07
ColumnWidth = 780.095
EndProperty
BeginProperty Column08
ColumnWidth = 780.095
EndProperty
BeginProperty Column09
ColumnWidth = 870.236
EndProperty
BeginProperty Column10
ColumnWidth = 1454.74
EndProperty
BeginProperty Column11
ColumnWidth = 1440
EndProperty
BeginProperty Column12
ColumnWidth = 14.74
EndProperty
EndProperty
End
Begin MSDataListLib.DataCombo DataCombo1
Bindings = "main_ysyf_skcx.frx":0021
Height = 330
Left = 1500
TabIndex = 11
Top = 60
Width = 3300
_ExtentX = 5821
_ExtentY = 582
_Version = 393216
ListField = "客户全称"
Text = ""
End
Begin VB.Frame Frame2
Height = 495
Left = 60
TabIndex = 6
Top = 2955
Width = 10965
Begin VB.Label Labye
BackStyle = 0 'Transparent
Height = 240
Left = 7875
TabIndex = 10
Top = 195
Width = 2235
End
Begin VB.Label Labsk
BackStyle = 0 'Transparent
Height = 210
Left = 4305
TabIndex = 9
Top = 180
Width = 2340
End
Begin VB.Label Labqk
BackStyle = 0 'Transparent
Height = 225
Left = 960
TabIndex = 8
Top = 180
Width = 2130
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "欠款总计: 收款总计: 尚欠余额:"
Height = 330
Left = 60
TabIndex = 7
Top = 210
Width = 9255
End
End
Begin VB.CommandButton ComExit
Caption = "退出"
Height = 330
Left = 9840
TabIndex = 0
Top = 75
Width = 1200
End
Begin MSComCtl2.DTPicker DTP1
Height = 285
Left = 5340
TabIndex = 2
Top = 105
Width = 1425
_ExtentX = 2514
_ExtentY = 503
_Version = 393216
Format = 30146561
CurrentDate = 37132
End
Begin MSComCtl2.DTPicker DTP2
Height = 285
Left = 7155
TabIndex = 3
Top = 90
Width = 1410
_ExtentX = 2487
_ExtentY = 503
_Version = 393216
Format = 30146561
CurrentDate = 37132
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "日期 到"
Height = 300
Left = 4875
TabIndex = 4
Top = 150
Width = 2160
End
Begin VB.Label Label1
Caption = "请选择客户名称:"
Height = 240
Left = 120
TabIndex = 1
Top = 135
Width = 1440
End
End
Attribute VB_Name = "main_ysyf_skcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Sub Stat_qk_sk_ye() '定义显示汇总结果的函数
If Adodc3.Recordset.RecordCount > 0 Then
If Adodc3.Recordset.Fields(0) <> "" Then Labqk.Caption = Adodc3.Recordset.Fields(0) Else Labqk.Caption = 0
If Adodc3.Recordset.Fields(1) <> "" Then Labsk.Caption = Adodc3.Recordset.Fields(1) Else Labsk.Caption = 0
Labye.Caption = Val(Labqk.Caption) - Val(Labsk.Caption)
End If
End Sub
Private Sub Form_Activate()
DTP1.Value = Date - 30: DTP2.Value = Date '初始化日期
'查询统计应收款信息
Adodc3.RecordSource = "select sum(欠款记帐)as 欠款, sum(收款合计)as 付款 from khmx"
Adodc3.Refresh
Call Stat_qk_sk_ye '调用函数
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 DataCombo1_Change()
DataCombo1.Text = Trim(DataCombo1.BoundText) '去除空格
End Sub
Private Sub Comfind_Click() '查询统计应收款信息
Adodc1.RecordSource = "select * from khmx where 客户全称 like '" + DataCombo1.BoundText + "'and 日期 between '" + Str(DTP1.Value) + "' And '" + Str(DTP2.Value) + "'order by 日期,时间"
Adodc1.Refresh
Adodc3.RecordSource = "select sum(欠款记帐)as 欠款, sum(收款合计)as 付款 from khmx where 客户全称 like '" + DataCombo1.BoundText + "'and 日期 between '" + Str(DTP1.Value) + "' And '" + Str(DTP2.Value) + "'"
Adodc3.Refresh
Call Stat_qk_sk_ye '调用函数
End Sub
Private Sub ComExit_Click()
frm_main.Enabled = True
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -