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