📄
字号:
Xtcdcs = "1"
ArNote_FrmOtherBill.Show 1
Security_Log gnsy, Xtczybm, 2, False '用户退出时写上机日志
Case "Ar_OtherBillList" '其它应收单列表-陈
If Not Security_Log("Ar_OtherBillList", Xtczybm, 1) Then
Exit Sub
End If
ArNote_FrmOtherBillList.Show
ArNote_FrmOtherBillQuery.Show 1
'坏帐处理
Case "Ar_BadDebtsLoss"
If Not Security_Log("Ar_BadDebtsLoss", Xtczybm, 1) Then
Exit Sub
End If
BadDebt_FrmLossList.Show '坏帐损失选择列表-陈
Case "Ar_BadDebtsBack"
If Not Security_Log("Ar_BadDebtsBack", Xtczybm, 1) Then
Exit Sub
End If
BadDebt_FrmReturnList.Show '坏帐收回选择列表-陈
Case "Ar_BadManage"
If Not Security_Log("Ar_BadManage", Xtczybm, 1) Then
Exit Sub
End If
BadDebt_FrmBadList.Show '坏帐处理查询列表-陈
BadDebt_FrmBadQuery.Show 1 '坏帐处理查询条件-陈
'统计报表
Case "Ar_CustBlance" '客户余额表-陈
If Not Security_Log("Ar_CustBlance", Xtczybm, 1) Then
Exit Sub
End If
Report_FrmCusList.Show
Report_FrmCusQuery.Show 1
Case "Ar_AccSum" '应收总帐列表-陈
If Not Security_Log("Ar_AccSum", Xtczybm, 1) Then
Exit Sub
End If
Report_FrmAccSumList.Show
Report_FrmAccSumQuery.Show 1
Case "Ar_AccList" '应收明细帐列表-陈
If Not Security_Log("Ar_AccList", Xtczybm, 1) Then
Exit Sub
End If
Report_FrmAccMxList.Show
Report_FrmAccMxQuery.Show 1
Case "Ar_AccAgeAnalyse" '账龄分析表-陈
If Not Security_Log("Ar_AccAgeAnalyse", Xtczybm, 1) Then
Exit Sub
End If
Report_FrmAccAgeList.Show
Report_FrmAccAgeQuery.Show 1
'应收票据
Case "Ar_Note" '应收票据录入
'判断用户是否有此功能执行权限,如有则写上机日志(进入)
If Not Security_Log("Ar_Note_Edit", Xtczybm, 1) Then
Exit Sub
End If
TranPara = ""
Xtcdcs = "1"
Note_FrmNoteIn.Show 1
Security_Log gnsy, Xtczybm, 2, False '用户退出时写上机日志
Case "Ar_NoteList" '应收票据查询列表
If Not Security_Log("Ar_NoteList", Xtczybm, 1) Then
Exit Sub
End If
Note_FrmNoteList.Show
Note_FrmNoteQuery.Show 1
'制作凭证
Case "Ar_InvoiceVouch" '销售发票制作凭证
If Not Security_Log("Ar_InvoiceVouch", Xtczybm, 1) Then
Exit Sub
End If
ItemType = "1"
PZ_FrmInvoiceList.HelpContextID = 20601
PZ_FrmInvoiceList.Show
PZ_FrmInvoiceFilter.HelpContextID = 20601
PZ_FrmInvoiceFilter.Show 1
Case "Ar_OtherVouch" '其它应收单制作凭证
If Not Security_Log("Ar_OtherVouch", Xtczybm, 1) Then
Exit Sub
End If
ItemType = "2" '其它应收单、代垫费用单票据大类型
PZ_FrmOCBillList.HelpContextID = 20602
PZ_FrmOCBillList.Show
PZ_FrmOCBillFilter.HelpContextID = 20602
PZ_FrmOCBillFilter.Show 1
Case "Ar_CloseVouch" '收款单制作凭证
If Not Security_Log("Ar_CloseVouch", Xtczybm, 1) Then
Exit Sub
End If
ItemType = "3" '收款的票据大类型
PZ_FrmOCBillList.HelpContextID = 20603
PZ_FrmOCBillList.Show
PZ_FrmOCBillFilter.HelpContextID = 20603
PZ_FrmOCBillFilter.Show 1
Case "Ar_NoteVouch" '应收票据制凭证
If Not Security_Log("Ar_NoteVouch", Xtczybm, 1) Then
Exit Sub
End If
ItemType = "0"
PZ_FrmNoteList.HelpContextID = 20604
PZ_FrmNoteList.Show
PZ_FrmNoteFilter.HelpContextID = 20604
PZ_FrmNoteFilter.Show 1
Case "Ar_NoteChangeVouch" '应收票据变动
If Not Security_Log("Ar_NoteChangeVouch", Xtczybm, 1) Then
Exit Sub
End If
ItemType = "4" '票据变动的票据大类型
PZ_FrmNoteChList.HelpContextID = 20605
PZ_FrmNoteChList.Show
PZ_FrmNoteChFilter.HelpContextID = 20605
PZ_FrmNoteChFilter.Show 1
Case "Ar_CancelVouch" '核销制凭证
If Not Security_Log("Ar_CancelVouch", Xtczybm, 1) Then
Exit Sub
End If
ItemType = "52" '应收冲应付
PZ_FrmCancelList.HelpContextID = 20606
PZ_FrmCancelList.Show
PZ_FrmCancelFilter.HelpContextID = 20606
PZ_FrmCancelFilter.Show 1
Case "Ar_EOMMana" '月末结帐
If Not Security_Log("Ar_EOMMana", Xtczybm, 1) Then
Exit Sub
End If
RP_FrmYmjz.HelpContextID = 20901
RP_FrmYmjz.Show 1
Security_Log gnsy, Xtczybm, 2, False '用户退出时写上机日志
'工具
Case "Ar_gnbmkjrl" '会计日历
XT_kjrlFrm.HelpContextID = 21002
XT_kjrlFrm.Show 1
Case "Ar_gnbmjsq" '计算器
Shell "calc.exe", vbNormalFocus
'帮助
Case "Ar_xtbz" '系统帮助
Call F1bz
Case "Ar_gy" '关于
XT_frmAbout.Show
End Select
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 + -