📄 frmusu_kmhelp.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form frmUSU_KmHelp
BorderStyle = 3 'Fixed Dialog
Caption = "科目选择"
ClientHeight = 7110
ClientLeft = 45
ClientTop = 330
ClientWidth = 6270
ControlBox = 0 'False
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7110
ScaleWidth = 6270
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Tag = "科目帮助"
Begin MSComctlLib.ImageList ImageList1
Left = 180
Top = 6450
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 5
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmUSU_KmHelp.frx":0000
Key = "Root"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmUSU_KmHelp.frx":0454
Key = "Expand"
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmUSU_KmHelp.frx":08A8
Key = "Collapse"
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmUSU_KmHelp.frx":0CFC
Key = "Selected"
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmUSU_KmHelp.frx":0E10
Key = "UnSelected"
EndProperty
EndProperty
End
Begin VB.PictureBox Picture1
Height = 675
Left = 10
ScaleHeight = 615
ScaleWidth = 6195
TabIndex = 5
Top = 5940
Width = 6250
Begin VB.CheckBox chkXj
Caption = "现金流量"
Height = 195
Left = 2580
TabIndex = 15
Top = 360
Width = 1215
End
Begin VB.CheckBox chkYh
Caption = "银行账"
Height = 195
Left = 5100
TabIndex = 14
Top = 360
Width = 1215
End
Begin VB.CheckBox chkRj
Caption = "日记账"
Height = 195
Left = 3840
TabIndex = 13
Top = 360
Width = 1215
End
Begin VB.CheckBox chkWb
Caption = "外币科目"
Height = 195
Left = 1320
TabIndex = 12
Top = 360
Width = 1215
End
Begin VB.CheckBox chkSl
Caption = "数量科目"
Height = 195
Left = 60
TabIndex = 11
Top = 360
Width = 1215
End
Begin VB.CheckBox chkXm
Caption = "项目"
Height = 195
Left = 5100
TabIndex = 10
Top = 60
Width = 1215
End
Begin VB.CheckBox chkBm
Caption = "部门"
Height = 195
Left = 3840
TabIndex = 9
Top = 60
Width = 1215
End
Begin VB.CheckBox chkGys
Caption = "供应商往来"
Height = 195
Left = 2580
TabIndex = 8
Top = 60
Width = 1215
End
Begin VB.CheckBox chkKh
Caption = "客户往来"
Height = 195
Left = 1320
TabIndex = 7
Top = 60
Width = 1215
End
Begin VB.CheckBox chkGr
Caption = "个人往来"
Height = 195
Left = 60
TabIndex = 6
Top = 60
Width = 1215
End
End
Begin VB.CommandButton cmdFilter
Caption = "过滤(&F)"
Height = 345
Left = 4290
TabIndex = 4
Top = 6700
Width = 1065
End
Begin VB.CommandButton cmdOk
Caption = "确定(&O)"
Default = -1 'True
Height = 345
Left = 915
TabIndex = 1
Top = 6700
Width = 1065
End
Begin VB.CommandButton cmdCancel
Cancel = -1 'True
Caption = "取消(&C)"
Height = 345
Left = 2610
TabIndex = 0
Top = 6700
Width = 1065
End
Begin MSComctlLib.TreeView tvwKm
Height = 5595
Index = 1
Left = 10
TabIndex = 2
Top = 330
Width = 6255
_ExtentX = 11033
_ExtentY = 9869
_Version = 393217
HideSelection = 0 'False
LabelEdit = 1
Style = 7
HotTracking = -1 'True
ImageList = "ImageList1"
Appearance = 1
End
Begin MSComctlLib.TabStrip tabKmSelect
Height = 6000
Left = -15
TabIndex = 3
Top = 0
Width = 6315
_ExtentX = 11139
_ExtentY = 10583
HotTracking = -1 'True
_Version = 393216
BeginProperty Tabs {1EFB6598-857C-11D1-B16A-00C0F0283628}
NumTabs = 1
BeginProperty Tab1 {1EFB659A-857C-11D1-B16A-00C0F0283628}
ImageVarType = 2
EndProperty
EndProperty
End
End
Attribute VB_Name = "frmUSU_KmHelp"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private selNode As Boolean '非明细科目为True
Private bMulSelNode As Boolean '科目是否多选择
Private m_bSelAll As Boolean '可以选择任意科目
Private m_bSelChild As Boolean '包含下级科目(只有在bMulSelNode为true)
Private chkCode As String '暂存当前复选节点关键字
Private rstType As ADODB.Recordset 'rstTYPE 为科目类型数据集
Private rstTrade As ADODB.Recordset
Private Iwatch As Integer
Private m_SubjectName As String
Private m_SubjectCode As String
Private clsOnekjkm As clsDepart
Private loadflag() As Boolean
Public Valid As Boolean ' 点击取消按钮时赋False 确定按钮时赋True
' 是否科目多选
' 返回True:表示多选择,False:表示单选
Public Property Get MultiSelNode() As Boolean
MultiSelNode = bMulSelNode
End Property
Public Property Let MultiSelNode(bMul As Boolean)
bMulSelNode = bMul
End Property
'是否需要选择下级科目
'true - 表示不需选择; false - 表示需选择;
Public Property Let ubSelChild(B As Boolean)
m_bSelChild = B
End Property
'是否需要选择最细一级科目
'true - 表示不需选择; false - 表示需选择;
Public Property Let ubSelAll(bSelAll As Boolean)
m_bSelAll = bSelAll
End Property
' 串连选择的多个科目代码,返回窗体调用结果
Public Property Get strChk() As String
Dim strSel As String
Dim Node As Node
Dim i As Integer
On Error Resume Next
strSel = ""
For i = 1 To tabKmSelect.Tabs.Count
For Each Node In tvwKm(i).Nodes
If Node.Checked Then
strSel = strSel & "," & Right(Node.Key, Len(Node.Key) - 1)
End If
Next Node
Next i
If strSel <> "" Then strChk = Right(strSel, Len(strSel) - 1)
Set Node = Nothing
End Property
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -