📄
字号:
Tr_ParkList.HelpContextID = 1603011
Tr_ParkList.Show
Tr_ParkCxtj.Show 1
Case "Tr_Apply" '货物运单
'判断用户是否有此功能执行权限,如有则写上机日志(进入)
If Not Security_Log("Tr_Apply_edit", Xtczybm, 1) Then
Exit Sub
End If
Xtcdcs = "1"
Tr_Apply.HelpContextID = 1603001
Tr_Apply.Show 1
Case "Tr_ApplyList" '货物运单列表
Tr_ApplyList.HelpContextID = 1603002
Tr_ApplyList.Show
Tr_ApplyListcxtj.Show 1
Case "Tr_Hold" '调装
'判断用户是否有此功能执行权限,如有则写上机日志(进入)
If Not Security_Log("Tr_Hold_edit", Xtczybm, 1) Then
Exit Sub
End If
Xtcdcs = "1"
Tr_Hold.HelpContextID = 1603003
Tr_Hold.Show 1
Case "Tr_HoldList" '调装列表
Xtcdcs = "1"
Tr_HoldList.HelpContextID = 1603004
Tr_HoldList.Show
Tr_HoldListcxtj.Show 1
Case "Tr_Invoice" '货票
'判断用户是否有此功能执行权限,如有则写上机日志(进入)
If Not Security_Log("Tr_Invoice_edit", Xtczybm, 1) Then
Exit Sub
End If
Xtcdcs = "1"
Tr_Invoice.HelpContextID = 1603005
Tr_Invoice.Show 1
Case "Tr_InvoiceList" '货票列表
Xtcdcs = "1"
Tr_InvoiceList.HelpContextID = 1603006
Tr_InvoiceList.Show
Tr_InvoiceListcxtj.Show 1
Case "Tr_Mend" '维修
'判断用户是否有此功能执行权限,如有则写上机日志(进入)
If Not Security_Log("Tr_Mend_edit", Xtczybm, 1) Then
Exit Sub
End If
Xtcdcs = "1"
Tr_Mend.HelpContextID = 1603012
Tr_Mend.Show 1
Case "Tr_MendList" '维修列表
Xtcdcs = "1"
Tr_MendList.HelpContextID = 1603013
Tr_MendList.Show
Tr_MendListcxtj.Show 1
Case "Tr_Roadlading" '汽运提货单
'判断用户是否有此功能执行权限,如有则写上机日志(进入)
If Not Security_Log("Tr_Roadlading_edit", Xtczybm, 1) Then
Exit Sub
End If
Xtcdcs = "1"
Tr_RoadLading.HelpContextID = 1604001
Tr_RoadLading.Show 1
Case "Tr_RoadLadingList" '汽运提货单列表
Tr_Roadlad_list.HelpContextID = 1604002
Tr_Roadlad_list.Show
Tr_roadladcxtj.Show 1
Case "Tr_RoadOuting" '汽运卸货单
'判断用户是否有此功能执行权限,如有则写上机日志(进入)
If Not Security_Log("Tr_RoadOuting_edit", Xtczybm, 1) Then
Exit Sub
End If
Xtcdcs = "1"
Tr_RoadOuting.HelpContextID = 1604001
Tr_RoadOuting.Show 1
Case "Tr_RoadOutingList" '汽运卸货单列表
Tr_Roadout_list.HelpContextID = 1604002
Tr_Roadout_list.Show
Tr_RoadOutcxtj.Show 1
Case "Tr_RoadDeliver" '汽运送货单
'判断用户是否有此功能执行权限,如有则写上机日志(进入)
If Not Security_Log("Tr_RoadDeliver_edit", Xtczybm, 1) Then
Exit Sub
End If
Xtcdcs = "1"
Tr_RoadDeliver.HelpContextID = 1604003
Tr_RoadDeliver.Show 1
Case "Tr_RoadDeliverList" '汽运送货单列表
Tr_RoadDeliverList.HelpContextID = 1604004
Tr_RoadDeliverList.Show
Tr_roadDelivercxtj.Show 1
Case "Tr_ShipDeliver" '水运送货单
'判断用户是否有此功能执行权限,如有则写上机日志(进入)
If Not Security_Log("Tr_ShipDeliver_edit", Xtczybm, 1) Then
Exit Sub
End If
Xtcdcs = "1"
Tr_ShipDeliver.HelpContextID = 1604005
Tr_ShipDeliver.Show 1
Case "Tr_ShipDeliverList" '水运送货单列表
Tr_ShipDeliverList.HelpContextID = 1604006
Tr_ShipDeliverList.Show
Tr_ShipDelivercxtj.Show 1
Case "Tr_TrainAccount" '铁运台帐
Tr_TrainAccount.HelpContextID = 1605001
Tr_TrainAccount.Show
Tr_TrainAccountcxtj.Show 1
Case "Tr_UseReport" '铁路运用统计表
Tr_UseReport.HelpContextID = 1605002
Tr_UseReport.Show
Tr_UseReportcxtj.Show 1
Case "Tr_WorkReport" '铁运运输工作统计表
Tr_WorkReport.HelpContextID = 1605003
Tr_WorkReport.Show
Tr_WorkReportcxtj.Show 1
Case "Tr_DateReport" '铁运日统计表
Tr_DateReport.HelpContextID = 1605004
Tr_DateReport.Show
Tr_DateReportcxtj.Show 1
'工具
Case "c_gnbmkmrl" '会计日历
XT_kjrlFrm.Show 1
Case "c_gnbmjsq" '计算器
Shell App.Path & "\calc.exe", vbNormalFocus
'帮助
Case "Tr_SystempHelp" '系统帮助
Call F1bz
Case "Tr_About" '关于
XT_frmAbout.Show
End Select
'用户退出时写上机日志
Security_Log gnsy, Xtczybm, 2, False
Exit Sub
Cwcl:
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.Icon = XT_Main.Icon
'设置窗体位置大小,并调入系统功能树
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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -