?? frmzhanghu.frm
字號:
ColumnCount = 6
BeginProperty Column00
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 Column01
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 Column02
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 Column03
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 Column04
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 Column05
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
Locked = -1 'True
ColumnWidth = 854.929
EndProperty
BeginProperty Column01
Locked = -1 'True
ColumnWidth = 1409.953
EndProperty
BeginProperty Column02
ColumnWidth = 840.189
EndProperty
BeginProperty Column03
ColumnWidth = 840.189
EndProperty
BeginProperty Column04
ColumnWidth = 870.236
EndProperty
BeginProperty Column05
ColumnWidth = 824.882
EndProperty
EndProperty
End
Begin VB.Frame Frame1
Height = 735
Left = 0
TabIndex = 1
Top = 480
Width = 9735
Begin VB.CommandButton btnTry
Caption = "試算平衡"
Height = 375
Left = 4200
TabIndex = 4
Top = 240
Width = 1455
End
Begin VB.CommandButton btnStart
Caption = "啟用帳簿"
Height = 375
Left = 2280
TabIndex = 3
Top = 240
Width = 1455
End
Begin VB.CommandButton btnNew
Caption = "建立新帳簿"
Height = 375
Left = 360
TabIndex = 2
Top = 240
Width = 1455
End
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 420
Left = 0
TabIndex = 0
Top = 0
Width = 9795
_ExtentX = 17277
_ExtentY = 741
ButtonWidth = 609
ButtonHeight = 582
Appearance = 1
ImageList = "ImageList1"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 1
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Key = "btnSave"
ImageIndex = 1
EndProperty
EndProperty
Begin MSComctlLib.ImageList ImageList1
Left = 6000
Top = 0
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 1
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmZhangHu.frx":046C
Key = ""
EndProperty
EndProperty
End
End
End
Attribute VB_Name = "frmZhangHu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub btnNew_Click()
If MsgBox("是否清除原賬簿信息,并初始化新帳簿?", vbYesNo, "刪除") = vbYes Then
Dim db As New DataBases
db.RunSelectSQL ("exec sf_初始化帳戶")
db.CloseConn
End If
Adodc1.Recordset.Requery
End Sub
Private Sub btnStart_Click()
Dim dlgPingHeng As New frmPingHeng
If dlgPingHeng.CalPingHeng(0) <> True Then
MsgBox "初始數據試算不平衡,請檢查數據", , "確認"
Return
End If
Dim strMsg As String
strMsg = "試算結果平衡,"
strMsg = strMsg + "啟用新帳簿將刪除所有歷史數據,按確認繼續"
MsgBox strMsg, , "確認"
'調用sf_初始化帳戶存儲過程建立新帳簿
Dim db As New DataBases
db.RunSelectSQL ("exec sf_啟用帳戶")
strMsg = "新帳簿成功啟用"
MsgBox strMsg, , "確認"
Unload dlgPingHeng
End Sub
Private Sub btnTry_Click()
Dim dlgPingHeng As New frmPingHeng
dlgPingHeng.Show vbModal
End Sub
Private Sub form_load()
Dim db As New DataBases
Adodc1.ConnectionString = db.sConn
Adodc2.ConnectionString = db.sConn
End Sub
Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
If StrComp(Button.Key, "btnSave") = 0 Then
Adodc1.Recordset.UpdateBatch adAffectAll
Adodc2.Recordset.UpdateBatch adAffectAll
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -