📄 main_ysyf_fkcx.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 = 1035.213
EndProperty
BeginProperty Column02
ColumnWidth = 1560.189
EndProperty
BeginProperty Column03
ColumnWidth = 780.095
EndProperty
BeginProperty Column04
ColumnWidth = 494.929
EndProperty
BeginProperty Column05
ColumnWidth = 494.929
EndProperty
BeginProperty Column06
ColumnWidth = 810.142
EndProperty
BeginProperty Column07
ColumnWidth = 840.189
EndProperty
BeginProperty Column08
ColumnWidth = 840.189
EndProperty
BeginProperty Column09
ColumnWidth = 870.236
EndProperty
BeginProperty Column10
ColumnWidth = 1755.213
EndProperty
BeginProperty Column11
ColumnWidth = 2115.213
EndProperty
BeginProperty Column12
ColumnWidth = 1484.787
EndProperty
EndProperty
End
Begin MSDataListLib.DataCombo DataCombo1
Bindings = "main_ysyf_fkcx.frx":0021
Height = 330
Left = 1620
TabIndex = 11
Top = 75
Width = 3330
_ExtentX = 5874
_ExtentY = 582
_Version = 393216
ListField = "供应商全称"
Text = ""
End
Begin VB.Frame Frame2
Height = 495
Left = 15
TabIndex = 6
Top = 2775
Width = 11085
Begin VB.Label Labye
BackStyle = 0 'Transparent
Height = 240
Left = 7890
TabIndex = 10
Top = 180
Width = 2235
End
Begin VB.Label Labfk
BackStyle = 0 'Transparent
Height = 210
Left = 4305
TabIndex = 9
Top = 180
Width = 2340
End
Begin VB.Label Labqk
BackStyle = 0 'Transparent
Height = 225
Left = 975
TabIndex = 7
Top = 150
Width = 2130
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "欠款总计: 付款总计: 尚欠余额:"
Height = 285
Left = 165
TabIndex = 8
Top = 180
Width = 8370
End
End
Begin VB.CommandButton ComExit
Caption = "退出"
Height = 330
Left = 9915
TabIndex = 0
Top = 45
Width = 1200
End
Begin MSComCtl2.DTPicker DTP1
Height = 285
Left = 5430
TabIndex = 2
Top = 75
Width = 1425
_ExtentX = 2514
_ExtentY = 503
_Version = 393216
Format = 30015489
CurrentDate = 37132
End
Begin MSComCtl2.DTPicker DTP2
Height = 285
Left = 7245
TabIndex = 3
Top = 60
Width = 1410
_ExtentX = 2487
_ExtentY = 503
_Version = 393216
Format = 30015489
CurrentDate = 37132
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "日期 到"
Height = 300
Left = 4995
TabIndex = 4
Top = 135
Width = 2280
End
Begin VB.Label Label1
Caption = "请选择供应商名称:"
Height = 240
Left = 30
TabIndex = 1
Top = 135
Width = 2445
End
End
Attribute VB_Name = "main_ysyf_fkcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Sub Stat_qk_fk_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 Labfk.Caption = Adodc3.Recordset.Fields(1) Else Labfk.Caption = 0
Labye.Caption = Val(Labqk.Caption) - Val(Labfk.Caption)
End If
End Sub
Private Sub Form_Activate()
DTP1.Value = Date - 30: DTP2.Value = Date '初始化日期
Adodc3.RecordSource = "select sum(欠款记帐)as 欠款, sum(付款合计)as 付款 from gysmx"
Adodc3.Refresh
Call Stat_qk_fk_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 gysmx where 供应商全称='" + DataCombo1.BoundText + "'and 日期 between '" + Str(DTP1.Value) + "' And '" + Str(DTP2.Value) + "'order by 日期,时间"
Adodc1.Refresh
Adodc3.RecordSource = "select sum(欠款记帐)as 欠款, sum(付款合计)as 付款 from gysmx where 供应商全称='" + DataCombo1.BoundText + "'and gysmx.日期 between '" + Str(DTP1.Value) + "' And '" + Str(DTP2.Value) + "'"
Adodc3.Refresh
Call Stat_qk_fk_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 + -