📄 m5.bas
字号:
End If
End If
hrs.MoveNext
Next
hrs.Close
End Select
End Sub
Public Sub huikuan3(username As String, MenuItem As Long)
Select Case MenuItem
Case 1
hrs.CursorLocation = adUseClient
hrs.Open "权限设置", hconn, adOpenKeyset, adLockPessimistic
For j = 1 To hrs.RecordCount
If hrs.Fields(0).Value = username Then
If hrs.Fields(51).Value = "1" Then
Form34.Frame1.Visible = True
Form34.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
End If
hrs.MoveNext
Next
hrs.Close
Case 2
hrs.CursorLocation = adUseClient
hrs.Open "权限设置", hconn, adOpenKeyset, adLockPessimistic
For j = 1 To hrs.RecordCount
If hrs.Fields(0).Value = username Then
If hrs.Fields(52).Value = "1" Then
Form34.Frame2.Visible = True
Form34.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
End If
hrs.MoveNext
Next
hrs.Close
Case 3
hrs.CursorLocation = adUseClient
hrs.Open "权限设置", hconn, adOpenKeyset, adLockPessimistic
For j = 1 To hrs.RecordCount
If hrs.Fields(0).Value = username Then
If hrs.Fields(53).Value = "1" Then
Form34.Frame3.Visible = True
Form34.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
End If
hrs.MoveNext
Next
hrs.Close
Case 4
hrs.CursorLocation = adUseClient
hrs.Open "权限设置", hconn, adOpenKeyset, adLockPessimistic
For j = 1 To hrs.RecordCount
If hrs.Fields(0).Value = username Then
If hrs.Fields(54).Value = "1" Then
Form34.Frame4.Visible = True
Form34.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
End If
hrs.MoveNext
Next
hrs.Close
Case 5
hrs.CursorLocation = adUseClient
hrs.Open "权限设置", hconn, adOpenKeyset, adLockPessimistic
For j = 1 To hrs.RecordCount
If hrs.Fields(0).Value = username Then
If hrs.Fields(55).Value = "1" Then
Form34.Frame9.Visible = True
Form34.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
End If
hrs.MoveNext
Next
hrs.Close
Case 6
If ii(71) = "1" Then
Form64.Frame1.Visible = True
Form64.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
Case 7
If ii(72) = "1" Then
Form64.Frame3.Visible = True
Form64.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
Case 8
Form2.VerticalMenu2(4).Visible = False
End Select
End Sub
Public Sub huikuan4(username As String, MenuItem As Long)
Select Case MenuItem
Case 1
hrs.CursorLocation = adUseClient
hrs.Open "权限设置", hconn, adOpenKeyset, adLockPessimistic
For j = 1 To hrs.RecordCount
If hrs.Fields(0).Value = username Then
If hrs.Fields(49).Value = "1" Then
Form45.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
End If
hrs.MoveNext
Next
hrs.Close
Case 2
If ii(67) <> "0" Then
Form55.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
Case 3
Form2.VerticalMenu2(4).Visible = False
Case 4
hrs.CursorLocation = adUseClient
hrs.Open "权限设置", hconn, adOpenKeyset, adLockPessimistic
For j = 1 To hrs.RecordCount
If hrs.Fields(0).Value = username Then
If hrs.Fields(49).Value = "1" Then
biaoming = "定线"
Form47.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
End If
hrs.MoveNext
Next
hrs.Close
Case 5
hrs.CursorLocation = adUseClient
hrs.Open "权限设置", hconn, adOpenKeyset, adLockPessimistic
For j = 1 To hrs.RecordCount
If hrs.Fields(0).Value = username Then
If hrs.Fields(49).Value = "1" Then
biaoming = "竣工"
Form47.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
End If
hrs.MoveNext
Next
hrs.Close
Case 6
hrs.CursorLocation = adUseClient
hrs.Open "权限设置", hconn, adOpenKeyset, adLockPessimistic
For j = 1 To hrs.RecordCount
If hrs.Fields(0).Value = username Then
If hrs.Fields(49).Value = "1" Then
biaoming = "零星验字工程"
Form47.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
End If
hrs.MoveNext
Next
hrs.Close
Case 7
hrs.CursorLocation = adUseClient
hrs.Open "权限设置", hconn, adOpenKeyset, adLockPessimistic
For j = 1 To hrs.RecordCount
If hrs.Fields(0).Value = username Then
If hrs.Fields(49).Value = "1" Then
biaoming = "建筑物位置测定"
Form47.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
End If
hrs.MoveNext
Next
hrs.Close
Case 8
hrs.CursorLocation = adUseClient
hrs.Open "权限设置", hconn, adOpenKeyset, adLockPessimistic
For j = 1 To hrs.RecordCount
If hrs.Fields(0).Value = username Then
If hrs.Fields(49).Value = "1" Then
biaoming = "计划内"
Form47.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
End If
hrs.MoveNext
Next
hrs.Close
Case 9
hrs.CursorLocation = adUseClient
hrs.Open "权限设置", hconn, adOpenKeyset, adLockPessimistic
For j = 1 To hrs.RecordCount
If hrs.Fields(0).Value = username Then
If hrs.Fields(49).Value = "1" Then
biaoming = "地籍"
Form47.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
End If
hrs.MoveNext
Next
hrs.Close
Case 10
hrs.CursorLocation = adUseClient
hrs.Open "权限设置", hconn, adOpenKeyset, adLockPessimistic
For j = 1 To hrs.RecordCount
If hrs.Fields(0).Value = username Then
If hrs.Fields(49).Value = "1" Then
biaoming = "松北"
Form47.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
End If
hrs.MoveNext
Next
hrs.Close
Case 11
If ii(67) <> "0" Then
Form57.Show vbModal
Else
MsgBox "没有权限进行该项操作!", vbInformation, "提示"
End If
End Select
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -