?? 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 + -