资源名称:ERPSYS.zip [点击查看]
上传用户:zhpu1995
上传日期:2013-09-06
资源大小:61151k
文件大小:42k
源码类别:
企业管理
开发平台:
Visual Basic
- VERSION 5.00
- Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
- Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "COMDLG32.OCX"
- Begin VB.Form Xt_Control
- Caption = "桌面"
- ClientHeight = 5850
- ClientLeft = 675
- ClientTop = 1665
- ClientWidth = 8880
- Icon = "系统_主操作桌面.frx":0000
- LinkTopic = "Form1"
- MDIChild = -1 'True
- ScaleHeight = 5850
- ScaleWidth = 8880
- WindowState = 2 'Maximized
- Begin VB.PictureBox picSplitter
- BackColor = &H00808080&
- BorderStyle = 0 'None
- FillColor = &H00808080&
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 4800
- Left = 4650
- ScaleHeight = 2090.126
- ScaleMode = 0 'User
- ScaleWidth = 780
- TabIndex = 0
- Top = 780
- Visible = 0 'False
- Width = 72
- End
- Begin MSComctlLib.ImageList ImageList1
- Left = 5070
- Top = 1440
- _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 = "系统_主操作桌面.frx":1042
- Key = "stb"
- EndProperty
- BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主操作桌面.frx":2094
- Key = "xttb"
- EndProperty
- BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主操作桌面.frx":30E6
- Key = "szk"
- EndProperty
- BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主操作桌面.frx":3480
- Key = "kpgl"
- EndProperty
- BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主操作桌面.frx":44D2
- Key = "gnqx"
- EndProperty
- EndProperty
- End
- Begin MSComctlLib.ListView lvListView
- Height = 4785
- Left = 2115
- TabIndex = 5
- Top = 765
- Width = 2295
- _ExtentX = 4048
- _ExtentY = 8440
- Arrange = 2
- LabelEdit = 1
- LabelWrap = -1 'True
- HideSelection = -1 'True
- OLEDragMode = 1
- OLEDropMode = 1
- PictureAlignment= 1
- _Version = 393217
- Icons = "ImageList2"
- SmallIcons = "ImageList1"
- ColHdrIcons = "ImageList1"
- ForeColor = -2147483640
- BackColor = -2147483643
- BorderStyle = 1
- Appearance = 1
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "宋体"
- Size = 9
- Charset = 134
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- OLEDragMode = 1
- OLEDropMode = 1
- NumItems = 0
- End
- Begin VB.PictureBox picTitles
- Align = 1 'Align Top
- Appearance = 0 'Flat
- BorderStyle = 0 'None
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 300
- Left = 0
- ScaleHeight = 300
- ScaleWidth = 8880
- TabIndex = 1
- TabStop = 0 'False
- Top = 420
- Width = 8880
- Begin VB.Label lblTitle
- BorderStyle = 1 'Fixed Single
- Caption = "百利/ERP5.0"
- Height = 270
- Index = 0
- Left = 0
- TabIndex = 3
- Tag = " 树形视图:"
- Top = 12
- Width = 2016
- End
- Begin VB.Label lblTitle
- BorderStyle = 1 'Fixed Single
- Caption = " 列表视图:"
- Height = 270
- Index = 1
- Left = 2078
- TabIndex = 2
- Tag = " 列表视图:"
- Top = 12
- Width = 3216
- End
- End
- Begin MSComDlg.CommonDialog dlgCommonDialog
- Left = 3360
- Top = 2160
- _ExtentX = 847
- _ExtentY = 847
- _Version = 393216
- End
- Begin MSComctlLib.TreeView tvTreeView
- Height = 4800
- Left = 30
- TabIndex = 4
- Top = 720
- Width = 2010
- _ExtentX = 3545
- _ExtentY = 8467
- _Version = 393217
- Indentation = 564
- LabelEdit = 1
- Style = 7
- ImageList = "ImageList1"
- Appearance = 1
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "宋体"
- Size = 9
- Charset = 134
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- End
- Begin MSComctlLib.Toolbar tbToolBar
- Align = 1 'Align Top
- Height = 420
- Left = 0
- TabIndex = 6
- Top = 0
- Width = 8880
- _ExtentX = 15663
- _ExtentY = 741
- ButtonWidth = 609
- ButtonHeight = 582
- AllowCustomize = 0 'False
- Appearance = 1
- ImageList = "imlToolbarIcons"
- _Version = 393216
- BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628}
- NumButtons = 10
- BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Style = 3
- EndProperty
- BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Key = "返回"
- Object.ToolTipText = "返回"
- ImageKey = "xq"
- EndProperty
- BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Key = "向前"
- Object.ToolTipText = "向前"
- ImageKey = "xh"
- EndProperty
- BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Style = 3
- EndProperty
- BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Style = 3
- EndProperty
- BeginProperty Button6 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Style = 3
- EndProperty
- BeginProperty Button7 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Key = "大图标"
- Object.ToolTipText = "大图标"
- ImageKey = "dtb"
- Style = 2
- Value = 1
- EndProperty
- BeginProperty Button8 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Key = "小图标"
- Object.ToolTipText = "小图标"
- ImageKey = "xtb"
- Style = 2
- EndProperty
- BeginProperty Button9 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Key = "列表"
- Object.ToolTipText = "列表"
- ImageKey = "lb"
- Style = 2
- EndProperty
- BeginProperty Button10 {66833FEA-8583-11D1-B16A-00C0F0283628}
- Key = "详细资料"
- Object.ToolTipText = "详细资料"
- ImageKey = "xxzl"
- Style = 2
- EndProperty
- EndProperty
- End
- Begin MSComctlLib.ImageList imlToolbarIcons
- Left = 5040
- Top = 840
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 16
- ImageHeight = 16
- MaskColor = 12632256
- _Version = 393216
- BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
- NumListImages = 6
- BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主操作桌面.frx":486C
- Key = "xq"
- EndProperty
- BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主操作桌面.frx":4C06
- Key = "xh"
- EndProperty
- BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主操作桌面.frx":4FA0
- Key = "dtb"
- EndProperty
- BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主操作桌面.frx":533A
- Key = "xtb"
- EndProperty
- BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主操作桌面.frx":56D4
- Key = "lb"
- EndProperty
- BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主操作桌面.frx":5A6E
- Key = "xxzl"
- EndProperty
- EndProperty
- End
- Begin MSComctlLib.ImageList ImageList2
- Left = 5040
- Top = 2040
- _ExtentX = 1005
- _ExtentY = 1005
- BackColor = -2147483643
- ImageWidth = 32
- ImageHeight = 32
- MaskColor = 12632256
- _Version = 393216
- BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
- NumListImages = 3
- BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主操作桌面.frx":5E08
- Key = "y"
- EndProperty
- BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主操作桌面.frx":6AE2
- Key = ""
- EndProperty
- BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
- Picture = "系统_主操作桌面.frx":6E02
- Key = "i"
- EndProperty
- EndProperty
- End
- Begin VB.Image imgSplitter
- Height = 4785
- Left = 4440
- MousePointer = 9 'Size W E
- Top = 780
- Width = 150
- End
- End
- Attribute VB_Name = "Xt_Control"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Const NAME_COLUMN = 0
- Const TYPE_COLUMN = 1
- Const SIZE_COLUMN = 2
- Const DATE_COLUMN = 3
- Private Declare Function OSWinHelp% Lib "user32" Alias "WinHelpA" (ByVal hwnd&, ByVal HelpFile$, ByVal wCommand%, dwData As Any)
- Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
- Dim mbMoving As Boolean
- Const sglSplitLimit = 1000
- Dim nodX As Node
- Dim mitem As ListItem
- '<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
- Dim Ztxxrec As New ADODB.Recordset '帐套信息动态集
- Dim Xtgnbrec As New ADODB.Recordset '系统功能表
- Dim Xtqxxzrec As New ADODB.Recordset '系统权限限制动态集
- Dim Tsxx As String '系统提示信息
- Dim gnsyte As String '系统功能项索引
- Dim Xtrlrec As New ADODB.Recordset '系统日历动态集
- Dim Ctsfscdr As Boolean '窗体是否首次读入
- Dim sjgnbmStr As String '上级编码
- Private Sub lvListView_DblClick() '点击ListView执行相应功能
- If lvListView.ListItems.count > 0 Then
- Set Xtgnbrec = Cw_DataEnvi.DataConnect.Execute("SELECT * FROM xt_xtgnb where gnbm='" + Mid(Trim(lvListView.SelectedItem.Key), 2, Len(Trim(lvListView.SelectedItem.Key)) - 1) + "'")
- If Not Xtgnbrec.EOF Then
- If Xtgnbrec.Fields("mjbz") = True Then
- gnsyte = Trim(Xtgnbrec.Fields("gnsy"))
- Call Zxxymk(gnsyte)
- Else
- '---------------
- Dim Ssql As String
- sjgnbmStr = ""
- lvListView.ColumnHeaders.Clear
- lvListView.ListItems.Clear
- Ssql = "SELECT * FROM xt_xtgnb where sjgnbm='" + Xtgnbrec.Fields("gnbm") + "' and MenuList=1 order by gnbm"
- Set Xtgnbrec = Cw_DataEnvi.DataConnect.Execute(Ssql)
- lvListView.ColumnHeaders.Add 1, "rcsw", "明细", 3000, , "stb"
- Do While Not Xtgnbrec.EOF
- Set mitem = lvListView.ListItems.Add()
- mitem.Text = Trim(Xtgnbrec!gnmc)
- If Xtgnbrec.Fields("mjbz") Then
- mitem.SmallIcon = "gnqx"
- mitem.Icon = "y"
- Else
- mitem.Icon = "i"
- mitem.SmallIcon = "stb"
- End If
- mitem.Key = "T" & Trim(Xtgnbrec!gnbm)
- Xtgnbrec.MoveNext
- Loop
- '---------------
- End If
- End If
- End If
- End Sub
- Private Sub tvTreeView_KeyPress(KeyAscii As Integer)
- If KeyAscii = 13 Then
- tvTreeView_DblClick
- End If
- End Sub
- Private Sub tvTreeView_NodeClick(ByVal Node As MSComctlLib.Node)
- Dim Ssql As String
- If Node.Tag <> "" Then
- If Node.Tag = False Then
- Ssql = "SELECT * FROM xt_xtgnb where sjgnbm='" + Mid(Trim(tvTreeView.SelectedItem.Key), 2, Len(Trim(tvTreeView.SelectedItem.Key)) - 1) + "' and MenuList=1 order by gnbm"
- If sjgnbmStr = Mid(Trim(tvTreeView.SelectedItem.Key), 2, Len(Trim(tvTreeView.SelectedItem.Key)) - 1) Then
- Exit Sub
- Else
- sjgnbmStr = Mid(Trim(tvTreeView.SelectedItem.Key), 2, Len(Trim(tvTreeView.SelectedItem.Key)) - 1)
- End If
- Else
- Ssql = "SELECT * FROM xt_xtgnb a," _
- & "(SELECT sjgnbm FROM xt_xtgnb where gnbm='" + Mid(Trim(tvTreeView.SelectedItem.Key), 2, Len(Trim(tvTreeView.SelectedItem.Key)) - 1) + "')b" & " where a.sjgnbm=b.sjgnbm and MenuList=1 order by gnbm"
- End If
- Set Xtgnbrec = Cw_DataEnvi.DataConnect.Execute(Ssql)
- If Node.Tag = True Then
- If sjgnbmStr = Trim(Xtgnbrec!sjgnbm) Then
- Exit Sub
- Else
- sjgnbmStr = Trim(Xtgnbrec!sjgnbm)
- End If
- End If
- lvListView.ColumnHeaders.Clear
- lvListView.ListItems.Clear
- lvListView.ColumnHeaders.Add 1, "rcsw", "明细", 3000, , "stb"
- Do While Not Xtgnbrec.EOF
- Set mitem = lvListView.ListItems.Add()
- mitem.Text = Trim(Xtgnbrec!gnmc)
- If Xtgnbrec.Fields("mjbz") Then
- mitem.SmallIcon = "gnqx"
- mitem.Icon = "y"
- Else
- mitem.Icon = "i"
- mitem.SmallIcon = "stb"
- End If
- mitem.Key = "T" & Trim(Xtgnbrec!gnbm)
- Xtgnbrec.MoveNext
- Loop
- End If
- End Sub
- Private Sub lvListView_KeyPress(KeyAscii As Integer)
- If KeyAscii = vbKeyReturn Then
- Call lvListView_DblClick
- End If
- End Sub
- Public Sub Cshgns() '初始化系统功能树
- Set Xtgnbrec = Cw_DataEnvi.DataConnect.Execute("SELECT * FROM xt_xtgnb where gnbm like '01%' and MenuList=1 order by gnbm")
- tvTreeView.Nodes.Add , 4, "T", "百利/ERP5.0", "xttb"
- With Xtgnbrec
- Do While Not .EOF
- If .Fields("mjbz") Then
- Set nodX = tvTreeView.Nodes.Add("T" + Trim(.Fields("sjgnbm")), 4, "T" + Trim(.Fields("gnbm")), Trim(.Fields("gnmc")), "gnqx")
- Else
- If Trim(.Fields("sjgnbm")) = "" Then
- Set nodX = tvTreeView.Nodes.Add("T" + Trim(.Fields("sjgnbm")), 4, "T" + Trim(.Fields("gnbm")), Trim(.Fields("gnmc")), "kpgl")
- Else
- Set nodX = tvTreeView.Nodes.Add("T" + Trim(.Fields("sjgnbm")), 4, "T" + Trim(.Fields("gnbm")), Trim(.Fields("gnmc")), "stb")
- End If
- End If
- nodX.Tag = Xtgnbrec!mjbz
- If Len(Trim(.Fields("sjgnbm"))) <= 2 Then
- nodX.EnsureVisible
- End If
- .MoveNext
- Loop
- End With
- End Sub
- '系统功能树操作
- Private Sub tvTreeView_BeforeLabelEdit(Cancel As Integer) '屏蔽编辑
- Cancel = 1
- End Sub
- Private Sub tvTreeView_Collapse(ByVal Node As MSComctlLib.Node) '功能树收缩
- If Node.Index <> 1 And Node.Key <> "T01" Then
- Node.Image = "stb"
- End If
- End Sub
- Private Sub tvTreeView_Expand(ByVal Node As MSComctlLib.Node) '功能树展开
- If Node.Index <> 1 And Node.Key <> "T01" Then
- Node.Image = "szk"
- End If
- End Sub
- Private Sub tvTreeView_DblClick() '选择功能
- If tvTreeView.SelectedItem.Children = 0 Then
- Set Xtgnbrec = Cw_DataEnvi.DataConnect.Execute("SELECT * FROM xt_xtgnb where gnbm='" + Mid(Trim(tvTreeView.SelectedItem.Key), 2, Len(Trim(tvTreeView.SelectedItem.Key)) - 1) + "'")
- If Not Xtgnbrec.EOF Then
- gnsyte = Trim(Xtgnbrec.Fields("gnsy"))
- Call Zxxymk(gnsyte)
- End If
- End If
- End Sub
- Public Sub Zxxymk(gnsy As String) '根据用户选择执行相应程序
- Dim RecTemp As New ADODB.Recordset '临时使用动态集
- Dim Sqlstr As String '临时查询字符串
- If Len(Trim(gnsy)) = 0 Then
- Exit Sub
- End If
- On Error GoTo ErrHandle
- Select Case gnsy
- '文件
- Case "Cwzz_register" '用户重新注册
- XT_login.HelpContextID = "0110001"
- XT_login.Show 1
- Case "Cwzz_quit"
- Unload XT_Main
- '基础信息设置
- Case "Cwzz_kjkmsz" '会计科目设置
- JC_KjkmszFrm.HelpContextID = "0111001"
- Call XtWaitMess("Cwzz_kjkmsz")
- Case "Cwzz_pzlbsz" '凭证类别设置
- JC_FrmPzlbsz.HelpContextID = "0111002"
- JC_FrmPzlbsz.Show 1
- Case "Cwzz_cyzysz" '常用摘要设置
- JC_FrmCyzysz.HelpContextID = "0111003"
- JC_FrmCyzysz.Show 1
- '---------------------------------------------------------
- '以下为系统公用数据设置
- Case "Cwzz_jsfssz" '结算方式设置
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- With Gy_BaseSet
- XtReportCode = "Gy_Settlement"
- .ReportTitle = "结算方式设置"
- .TextGroupCode = "Gy_Settlement"
- .GridCode = "Gy_Settlement"
- .str_TableName = "Gy_Settlement"
- .str_FieldCode = "SSCode"
- .str_FieldName = "SSName"
- .str_Label = "结算方式"
- .Caption = "结算方式设置"
- .HelpContextID = "0111004"
- .Show 1
- End With
- Case "Cwzz_bmsz" '部门设置
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- Gy_Department.HelpContextID = "0111005"
- Gy_Department.Show 1
- Case "Cwzz_gszysz" '公司职员设置
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- Gy_Person.HelpContextID = "0111006"
- Gy_Person.Show 1
- Case "Cwzz_wbjhlsz" '外币及汇率设置
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- Gy_ForeignCurrency.HelpContextID = "0111007"
- Gy_ForeignCurrency.Show 1
- Case "Cwzz_wlgysfl"
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- With Gy_BaseSortSet
- XtReportCode = "Gy_SupplierSort"
- .ReportTitle = "供应商分类设置"
- .TextGroupCode = "Gy_SupplierSort"
- .GridCode = "Gy_SupplierSort"
- .CodSchemeIndex = "Gy_SupplierSort"
- .str_TableName = "Gy_SupplierSort"
- .str_SortCode = "SupplierSortCode"
- .str_SortName = "SupplierSortName"
- .str_Label = "供应商分类"
- .Caption = "供应商分类设置"
- .HelpContextID = "0111009"
- .Show 1
- End With
- Case "Cwzz_wlgyssz" '供应商设置
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- Gy_Supplier.HelpContextID = "0111010"
- Gy_Supplier.Show
- Gy_SupplierQuery.Show 1
- Case "Cwzz_wldwsz" '客户设置
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- Gy_Customer.HelpContextID = "0111008"
- Gy_Customer.Show
- Gy_CustomerQuery.Show 1
- '以上为系统公用数据设置
- '---------------------------------------------------------
- Case "Cwzz_xmmlsz" '项目目录设置
- JC_XmflszFrm.HelpContextID = "0111011"
- JC_XmflszFrm.Show 1
- Case "Cwzz_dlzlmsz" '多栏帐栏目设置
- JC_FrmDlzlmszMain.HelpContextID = "0111012"
- JC_FrmDlzlmszMain.Show 1
- Case "Cwzz_qcye" '期初余额录入
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- JC_FrmQcyelr.HelpContextID = "0112001"
- JC_FrmQcyelr.Show 1
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- ''奚俊峰 Begin
- ''
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- '凭证处理
- Case "Cwzz_jzpzcl" '记帐凭证处理
- PZ_JzpzclFrm.HelpContextID = "0113001"
- Call XtWaitMess("c_jzpzcl")
- Case "Cwzz_jzpzcx" '记帐凭证查询
- PZ_FrmPzcxjg.HelpContextID = "0113002"
- PZ_FrmPzcxjg.Show
- PZ_FrmPzcxtj.Show 1
- Case "Cwzz_jzpzhz" '记帐凭证汇总
- PZ_FrmPzhzjg.HelpContextID = "0113003"
- PZ_FrmPzhzjg.Show
- PZ_FrmPzhztj.Show 1
- '记帐
- Case "Cwzz_jzcl" '记帐处理
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- JZ_FrmJzcl.HelpContextID = "0114001"
- Call XtWaitMess("c_jzcl")
- Case "Cwzz_hfjz" '恢复记帐
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- JZ_FrmHfjz.HelpContextID = "0114002"
- Call XtWaitMess("c_hfjz")
- '帐簿管理
- Case "Cwzz_zflz" '总分类帐
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZB_Frmzflzjg.HelpContextID = "0116001"
- ZB_Frmzflzjg.Show
- ZB_Frmzflztj.Show 1
- Case "Cwzz_kmyebcx" '科目发生额及余额表
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZB_FrmKmyebjg.HelpContextID = "0116002"
- ZB_FrmKmyebjg.Show
- ZB_Frmkmyebtj.Show 1
- Case "Cwzz_mxzcx" '明细帐
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZB_Frmkmmxzjg.HelpContextID = "0116003"
- ZB_Frmkmmxzjg.Show
- ZB_Frmkmmxztj.Show 1
- Case "Cwzz_dlzcx" '多栏帐
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZB_FrmDlzcxjg.HelpContextID = "0116004"
- ZB_FrmDlzcxjg.Show
- ZB_FrmDlzcxtj.Show 1
- Case "Cwzz_rjzcx" '日记帐
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZB_FrmKmrjzjg.HelpContextID = "0116005"
- ZB_FrmKmrjzjg.Show
- ZB_FrmKmrjztj.Show 1
- '辅助核算
- '1.部门
- Case "Cwzz_fzbm_kmyeb" '科目余额表
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Bm_FrmKmyebjg.HelpContextID = "011701001"
- ZF_Bm_FrmKmyebjg.Show
- ZF_Bm_FrmKmyebtj.Show 1
- Case "Cwzz_fzbm_bmyeb" '部门总帐
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Bm_FrmBmyebjg.HelpContextID = "011701002"
- ZF_Bm_FrmBmyebjg.Show
- ZF_Bm_FrmBmyebtj.Show 1
- Case "Cwzz_fzbm_bmslmxz" '三栏明细帐
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Bm_Frmslmxzjg.HelpContextID = "011701003"
- ZF_Bm_Frmslmxzjg.Show
- ZF_Bm_Frmslmxztj.Show 1
- Case "Cwzz_fzbm_bmslzz" '三栏式总帐
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Bm_Frmslzzjg.HelpContextID = "011701004"
- ZF_Bm_Frmslzzjg.Show
- ZF_Bm_Frmslzztj.Show 1
- Case "Cwzz_dlsmxz" '多栏帐查询
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Bm_FrmDlzCxjg.HelpContextID = "011701005"
- ZF_Bm_FrmDlzCxjg.Show
- ZF_Bm_FrmDlzCxTj.Show 1
- '2.个人往来
- Case "Cwzz_fzgrwl_kmyeb" '科目余额表
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Gr_FrmKmyebjg.HelpContextID = "011702001"
- ZF_Gr_FrmKmyebjg.Show
- ZF_Gr_FrmKmyebtj.Show 1
- Case "Cwzz_fzgrwl_gryeb" '个人余额表
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Gr_FrmGryebjg.HelpContextID = "011702002"
- ZF_Gr_FrmGryebjg.Show
- ZF_Gr_FrmGryebtj.Show 1
- Case "Cwzz_fzgrwl_grslmxz" '三栏明细帐
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Gr_Frmslmxzjg.HelpContextID = "011702003"
- ZF_Gr_Frmslmxzjg.Show
- ZF_Gr_Frmslmxztj.Show 1
- Case "Cwzz_fzgr_grslzz" '三栏式总帐
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Gr_Frmslzzjg.HelpContextID = "011702004"
- ZF_Gr_Frmslzzjg.Show
- ZF_Gr_Frmslzztj.Show 1
- '3.客户往来
- Case "Cwzz_fzkhwl_kmyeb" '科目余额表
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Kh_Frmkmyebjg.HelpContextID = "011703001"
- ZF_Kh_Frmkmyebjg.Show
- ZF_Kh_FrmKmyebtj.Show 1
- Case "Cwzz_fzkhwl_khyeb" '客户余额表
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Kh_FrmKhyebjg.HelpContextID = "011703002"
- ZF_Kh_FrmKhyebjg.Show
- ZF_Kh_FrmKhyebtj.Show 1
- Case "Cwzz_fzkhwl_khslmxz" '三栏明细帐
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Kh_Frmslmxzjg.HelpContextID = "011703003"
- ZF_Kh_Frmslmxzjg.Show
- ZF_Kh_Frmslmxztj.Show 1
- Case "Cwzz_fzkh_khslzz" '三栏式总帐
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Kh_Frmslzzjg.HelpContextID = "011703004"
- ZF_Kh_Frmslzzjg.Show
- ZF_Kh_Frmslzztj.Show 1
- '4.供应商往来
- Case "Cwzz_fzgyswl_kmyeb" '科目余额表
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Gys_FrmKmyebjg.HelpContextID = "011704001"
- ZF_Gys_FrmKmyebjg.Show
- ZF_Gys_FrmKmyebtj.Show 1
- Case "Cwzz_fzgyswl_gysyeb" '供应商余额表
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Gys_FrmGysyebjg.HelpContextID = "011704002"
- ZF_Gys_FrmGysyebjg.Show
- ZF_Gys_FrmGysyebtj.Show 1
- Case "Cwzz_fzgyswl_gysslmxz" '三栏明细帐
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Gys_Frmslmxzjg.HelpContextID = "011704003"
- ZF_Gys_Frmslmxzjg.Show
- ZF_Gys_Frmslmxztj.Show 1
- Case "Cwzz_fzgys_gysslzz" '三栏式总帐
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- ZF_Gys_Frmslzzjg.HelpContextID = "011704004"
- ZF_Gys_Frmslzzjg.Show
- ZF_Gys_Frmslzztj.Show 1
- '月末处理
- Case "Cwzz_ymcl_ymjz" '月末结帐
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- YM_FrmYmjz.HelpContextID = "0120001"
- YM_FrmYmjz.Show 1
- Case "Cwzz_ymcl_ymfjz"
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- YM_FrmYmfjz.HelpContextID = "0120002"
- YM_FrmYmfjz.Show 1
- Case "Cwzz_ymcl_nmjz"
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- YM_FrmNmjz.HelpContextID = "0120003"
- YM_FrmNmjz.Show 1
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- ''奚俊峰 End
- ''
- ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
- '现金流量
- Case "Cwzz_xjllbbxm" '报表项目设置
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- XJ_FrmXjllbbxm.HelpContextID = "0119001"
- XJ_FrmXjllbbxm.Show 1
- Case "Cwzz_xjllsjfp" '现金流量分配
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- XJ_FrmXjllfpjg.HelpContextID = "0119002"
- XJ_FrmXjllfpjg.Show
- XJ_FrmXjllfptj.Show 1
- Case "Cwzz_xjllbcx" '现金流量表查询
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- XJ_FrmXjllbcxjg.HelpContextID = "0119003"
- XJ_FrmXjllbcxjg.Show
- XJ_FrmXjllbcxtj.Show 1
- '工具
- Case "Cwzz_gnbmkmrl" '会计日历
- XT_kjrlFrm.HelpContextID = "0121001"
- XT_kjrlFrm.Show 1
- Case "Cwzz_gnbmjsq" '计算器
- Shell "calc.exe", vbNormalFocus
- '帮助
- Case "Cwzz_wshxxd" '网上华夏新达
- ShellExecute 0, "open", "www.hxxd.com", "", "", 0
- Case "Cwzz_xtbz" '系统帮助
- Call F1bz
- Case "Cwzz_gy" '关于
- XT_frmAbout.Show
- '银行对帐
- Case "Cwzz_yhdzqc" '银行对帐期初
- Glo_Variable.YH_XTXZ = gnsy
- Glo_Variable.Unload_TF = True
- YH_FrmXzkm.Show 1
- Case "Cwzz_yhdzd" '银行对帐单
- Glo_Variable.YH_XTXZ = gnsy
- Glo_Variable.Unload_TF = True
- YH_FrmXzkm.Show 1
- Case "Cwzz_yhDzdCx" '银行对帐单查询
- Glo_Variable.YH_XTXZ = gnsy
- Glo_Variable.Unload_TF = True
- YH_FrmXzkm.Show 1
- Case "Cwzz_yhzddz" '银行自动对帐
- Glo_Variable.YH_XTXZ = gnsy
- Glo_Variable.Unload_TF = True
- YH_FrmXzkm.Show 1
- Case "Cwzz_yhye" '银行余额调节表
- YH_FrmYeb.HelpContextID = "0115005"
- Call XtWaitMess("c_yhye")
- Case "Cwzz_yhgdqk" '银行勾对情况
- Glo_Variable.YH_XTXZ = gnsy
- Glo_Variable.Unload_TF = True
- YH_FrmXzkm.Show 1
- Case "Cwzz_hxyhz" '核销银行帐
- YH_FrmHx.HelpContextID = "0115007"
- YH_FrmHx.Show 1
- '自动转帐
- Case "Cwzz_UserDefineTran"
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- AutoTran_TranList.TranClassCode = "01"
- AutoTran_TranList.HelpContextID = "0118001"
- AutoTran_TranList.Caption = "自定义转帐凭证"
- AutoTran_TranList.Show 1 '自定义转帐列表
- Case "Cwzz_ProfitTran"
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- AutoTran_TranList.TranClassCode = "04"
- AutoTran_TranList.HelpContextID = "0118003"
- AutoTran_TranList.Caption = "期间损益转帐凭证"
- AutoTran_TranList.Show 1 '期间损益转帐列表
- Case "Cwzz_ModelTran"
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- AutoTran_TranList.TranClassCode = "05"
- AutoTran_TranList.HelpContextID = "0118002"
- AutoTran_TranList.Caption = "模式转帐凭证"
- AutoTran_TranList.Show 1 '模式凭证帐转列表
- Case "Cwzz_ExchangeTran"
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- AutoTran_TranList.TranClassCode = "03"
- AutoTran_TranList.Caption = "汇兑损益凭证"
- AutoTran_TranList.Chk_Vouch = False
- AutoTran_TranList.Chk_Vouch.Enabled = False
- AutoTran_TranList.HelpContextID = "0118004"
- AutoTran_TranList.Show 1 '汇兑损益凭证列表
- Case "Cwzz_ImportVouch"
- '判断用户是否有此功能执行权限,如有则写上机日志(进入)
- If Not Security_Log(gnsy, Xtczybm, 1) Then
- Exit Sub
- End If
- AutoTran_ImportVouch.Show 1 '引入外部凭证
- If Glo_VouchSource = "" Then
- Exit Sub
- End If
- AutoTran_Importpz.HelpContextID = "0118005"
- AutoTran_Importpz.Show 1
- End Select
- '用户退出时写上机日志
- Security_Log gnsy, Xtczybm, 2, False
- Exit Sub
- ErrHandle:
- Tsxx = "此项系统功能有待完善!"
- Call Xtxxts(Tsxx, 0, 4)
- Exit Sub
- End Sub
- Private Sub Form_QueryUnload(Cancel As Integer, UnloadMode As Integer) '用户关闭窗体
- If Unload_TF = False Then
- Cancel = 1
- Me.WindowState = 1
- End If
- End Sub
- Private Sub Form_Load()
- Me.Left = 0
- Me.Top = 0
- Me.Width = XT_Main.Width - 60
- Me.Height = XT_Main.Height - 760 - 690
- Call Cshgns
- '启动调入数据等待提示
- Load Xt_Wait
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- On Error Resume Next
- Dim i As Integer
- For i = Forms.count - 1 To 1 Step -1
- Unload Forms(i)
- Next
- If Me.WindowState <> vbMinimized Then
- SaveSetting App.Title, "Settings", "MainLeft", Me.Left
- SaveSetting App.Title, "Settings", "MainTop", Me.Top
- SaveSetting App.Title, "Settings", "MainWidth", Me.Width
- SaveSetting App.Title, "Settings", "MainHeight", Me.Height
- End If
- SaveSetting App.Title, "Settings", "ViewMode", lvListView.View
- End Sub
- Private Sub Form_Resize()
- On Error Resume Next
- If Me.Width < 3000 Then Me.Width = 3000
- SizeControls imgSplitter.Left
- End Sub
- Private Sub imgSplitter_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
- With imgSplitter
- picSplitter.Move .Left, .Top, .Width 2, .Height - 20
- End With
- picSplitter.Visible = True
- mbMoving = True
- End Sub
- Private Sub imgSplitter_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
- Dim sglPos As Single
- If mbMoving Then
- sglPos = x + imgSplitter.Left
- If sglPos < sglSplitLimit Then
- picSplitter.Left = sglSplitLimit
- ElseIf sglPos > Me.Width - sglSplitLimit Then
- picSplitter.Left = Me.Width - sglSplitLimit
- Else
- picSplitter.Left = sglPos
- End If
- End If
- End Sub
- Private Sub imgSplitter_MouseUp(Button As Integer, Shift As Integer, x As Single, y As Single)
- SizeControls picSplitter.Left
- picSplitter.Visible = False
- mbMoving = False
- lvListView.Refresh
- End Sub
- Private Sub TreeView1_DragDrop(Source As Control, x As Single, y As Single)
- If Source = imgSplitter Then
- SizeControls x
- End If
- End Sub
- Sub SizeControls(x As Single)
- On Error Resume Next
- '设置 Width 属性
- If x < 3500 Then x = 3500
- If x > (Me.Width - 1500) Then x = Me.Width - 1500
- tvTreeView.Width = x
- imgSplitter.Left = x
- lvListView.Left = x + 40
- lvListView.Width = Me.Width - (tvTreeView.Width + 140)
- lblTitle(0).Width = tvTreeView.Width
- lblTitle(1).Left = lvListView.Left + 20
- lblTitle(1).Width = lvListView.Width - 40
- '设置 Top 属性
- tvTreeView.Top = tbToolBar.Height + picTitles.Height
- lvListView.Top = tvTreeView.Top
- '设置 height 属性
- tvTreeView.Height = Me.ScaleHeight - (picTitles.Top + picTitles.Height)
- lvListView.Height = tvTreeView.Height
- imgSplitter.Top = tvTreeView.Top
- imgSplitter.Height = tvTreeView.Height
- End Sub
- Private Sub tbToolBar_ButtonClick(ByVal Button As MSComctlLib.Button)
- On Error Resume Next
- Select Case Button.Key
- Case "返回"
- tvTreeView.SetFocus
- SendKeys "{up}", True
- Case "向前"
- tvTreeView.SetFocus
- SendKeys "{DOWN}", True
- Case "大图标"
- lvListView.View = lvwIcon
- Case "小图标"
- lvListView.View = lvwSmallIcon
- Case "列表"
- lvListView.View = lvwList
- Case "详细资料"
- lvListView.View = lvwReport
- End Select
- End Sub