📄 frmlc.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmLC
Caption = "资金流向明细表"
ClientHeight = 8625
ClientLeft = 60
ClientTop = 345
ClientWidth = 11415
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 8625
ScaleWidth = 11415
WindowState = 2 'Maximized
Begin VB.PictureBox Picture1
BorderStyle = 0 'None
Height = 1095
Left = 2760
ScaleHeight = 1095
ScaleWidth = 8535
TabIndex = 3
Top = 7440
Width = 8535
Begin VB.CommandButton cmdUpdate
Caption = "更新"
Height = 495
Left = 7680
TabIndex = 6
Top = 0
Width = 855
End
Begin VB.TextBox txtZjzj
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 975
Left = 1680
MultiLine = -1 'True
ScrollBars = 2 'Vertical
TabIndex = 5
Top = 30
Width = 5775
End
Begin VB.Label lblzjzj
Caption = "资金账号总结:"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 255
Left = 120
TabIndex = 4
Top = 75
Width = 1575
End
End
Begin MSComctlLib.ImageList ImageList2
Left = 2760
Top = 6760
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 15
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 8
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmLC.frx":0000
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmLC.frx":0542
Key = ""
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmLC.frx":0895
Key = ""
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmLC.frx":09A7
Key = ""
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmLC.frx":0EE9
Key = ""
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmLC.frx":0FFB
Key = ""
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmLC.frx":1105
Key = ""
EndProperty
BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmLC.frx":1217
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.ImageList ImageList1
Left = 2040
Top = 6760
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 2
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmLC.frx":1329
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "frmLC.frx":177B
Key = ""
EndProperty
EndProperty
End
Begin MSComctlLib.Toolbar Toolbar1
Align = 1 'Align Top
Height = 525
Left = 0
TabIndex = 2
Top = 0
Width = 11415
_ExtentX = 20135
_ExtentY = 926
ButtonWidth = 1455
ButtonHeight = 926
AllowCustomize = 0 'False
Style = 1
ImageList = "ImageList2"
_Version = 393216
BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
NumButtons = 14
BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "刷新账号"
Key = "Refresh"
ImageIndex = 5
EndProperty
BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "新增账号"
Key = "NewZjzh"
ImageIndex = 1
EndProperty
BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "修改账号"
Key = "EditZjzh"
ImageIndex = 6
EndProperty
BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "删除账号"
Key = "DeleteZjzh"
ImageIndex = 3
EndProperty
BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "新增明细"
Key = "NewDetail"
ImageIndex = 1
EndProperty
BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "修改明细"
Key = "EditDetail"
ImageIndex = 6
EndProperty
BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "删除明细"
Key = "DeleteDetail"
ImageIndex = 3
EndProperty
BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button11 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "打印预览"
Key = "PrintPreview"
ImageIndex = 7
EndProperty
BeginProperty Button12 {66833FEA-8583-11D1-B16A-00C0F0283628}
Enabled = 0 'False
Object.Visible = 0 'False
Caption = "信息打印"
Key = "Print"
ImageIndex = 8
EndProperty
BeginProperty Button13 {66833FEA-8583-11D1-B16A-00C0F0283628}
Style = 3
EndProperty
BeginProperty Button14 {66833FEA-8583-11D1-B16A-00C0F0283628}
Caption = "退出"
Key = "Exit"
ImageIndex = 4
EndProperty
EndProperty
End
Begin MSComctlLib.ListView lsvDetail
Height = 6735
Left = 2640
TabIndex = 1
Top = 600
Width = 8655
_ExtentX = 15266
_ExtentY = 11880
LabelWrap = -1 'True
HideSelection = -1 'True
_Version = 393217
ForeColor = -2147483640
BackColor = -2147483643
BorderStyle = 1
Appearance = 1
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
NumItems = 0
End
Begin MSComctlLib.TreeView trvItem
Height = 7815
Left = 0
TabIndex = 0
Top = 600
Width = 2535
_ExtentX = 4471
_ExtentY = 13785
_Version = 393217
Indentation = 266
LabelEdit = 1
Sorted = -1 'True
Style = 7
SingleSel = -1 'True
ImageList = "ImageList1"
Appearance = 1
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
End
Attribute VB_Name = "frmLC"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private rsItem As ADODB.Recordset
Private mlIndex As Long
Private mlFatherID As Long
Private Sub cmdUpdate_Click()
Dim sSQL As String
Dim sZjzj As String
If mlFatherID > 0 Then
sZjzj = Trim(txtZjzj.Text)
sSQL = "update zjzh set zjzj='" & sZjzj & "' where id=" & mlFatherID
GDB.Execute (sSQL)
End If
End Sub
Private Sub Form_Load()
Call iniListView
Call SetItemTree
End Sub
Private Sub SetItemTree()
Dim sSQL As String
Dim Nodx As MSComctlLib.Node
With trvItem
.Nodes.Clear
.Nodes.Add , , "*-1", "资金账号", 1
End With
sSQL = "select * from zjzh order by zjzh"
Set rsItem = GDB.Execute(sSQL)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -