📄 frmclerkset.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form frmClerkSet
BorderStyle = 3 'Fixed Dialog
Caption = "操作员设置"
ClientHeight = 7335
ClientLeft = 45
ClientTop = 330
ClientWidth = 8985
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
KeyPreview = -1 'True
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7335
ScaleWidth = 8985
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.Frame Frame2
Height = 1935
Left = 3960
TabIndex = 16
Top = 5040
Width = 4815
Begin VB.CommandButton cmdExit
Caption = "退出(&E)"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 3360
TabIndex = 11
Top = 1080
Width = 1215
End
Begin VB.CommandButton cmdModify
Caption = "修改(&M)"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 9
Top = 1080
Width = 1215
End
Begin VB.CommandButton cmdDelete
Caption = "删除(&D)"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1800
TabIndex = 10
Top = 1080
Width = 1215
End
Begin VB.CommandButton cmdSave
Caption = "保存(&S)"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 3360
TabIndex = 6
Top = 360
Width = 1215
End
Begin VB.CommandButton cmdCancel
Caption = "取消(&C)"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1800
TabIndex = 8
Top = 360
Width = 1215
End
Begin VB.CommandButton cmdNew
Caption = "新增(&A)"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 240
TabIndex = 7
Top = 360
Width = 1215
End
End
Begin VB.Frame Frame1
Height = 4335
Left = 3960
TabIndex = 0
Top = 600
Width = 4815
Begin VB.TextBox txtConfirm
Height = 375
IMEMode = 3 'DISABLE
Left = 1680
PasswordChar = "*"
TabIndex = 5
Top = 2760
Width = 2415
End
Begin VB.TextBox txtPassWord
Height = 375
IMEMode = 3 'DISABLE
Left = 1680
PasswordChar = "*"
TabIndex = 4
Top = 1920
Width = 2415
End
Begin VB.TextBox txtClerkName
Height = 375
Left = 1680
TabIndex = 3
Top = 1200
Width = 2415
End
Begin VB.TextBox txtClerkCode
Height = 375
Left = 1680
TabIndex = 2
Top = 480
Width = 2415
End
Begin VB.Label Label4
Alignment = 1 'Right Justify
Caption = "密码确认"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 240
TabIndex = 15
Top = 2760
Width = 1095
End
Begin VB.Label Label3
Alignment = 1 'Right Justify
Caption = "密 码"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 240
TabIndex = 14
Top = 2000
Width = 1095
End
Begin VB.Label Label2
Alignment = 1 'Right Justify
Caption = "姓 名"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 240
TabIndex = 13
Top = 1240
Width = 1095
End
Begin VB.Label Label1
Alignment = 1 'Right Justify
Caption = "代 码"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 240
TabIndex = 12
Top = 480
Width = 1095
End
End
Begin MSComctlLib.ListView lsvClerk
Height = 6255
Left = 0
TabIndex = 1
Top = 660
Width = 3855
_ExtentX = 6800
_ExtentY = 11033
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 VB.Label Label6
Caption = "操作员信息:"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 255
Left = 3960
TabIndex = 18
Top = 240
Width = 1575
End
Begin VB.Label Label5
Caption = "操作员列表:"
BeginProperty Font
Name = "宋体"
Size = 11.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00800000&
Height = 255
Left = 120
TabIndex = 17
Top = 240
Width = 1455
End
End
Attribute VB_Name = "frmClerkSet"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private mlClerkID As Long
Private Clerk As clsClerk
Private msStatus As String
Private Sub cmdCancel_Click()
If MsgBox("是否确认要取消该操作?", vbQuestion + vbYesNo, "取消操作") = vbNo Then Exit Sub
msStatus = "Init"
Call SetCmdEnabled(msStatus)
lsvClerk.Enabled = True
Frame1.Enabled = False
Call lsvClerk_ItemClick(lsvClerk.SelectedItem)
End Sub
Private Sub cmddelete_Click()
If MsgBox("是否要删除该操作员?", vbQuestion + vbYesNo, "删除信息") = vbYes Then
Set Clerk = New clsClerk
If lsvClerk.SelectedItem.Index > 0 Then
mlClerkID = lsvClerk.SelectedItem.SubItems(3)
If mlClerkID > 0 Then
Call Clerk.DeleteClerk(mlClerkID)
Call SetLsvClerk
msStatus = "Init"
SetCmdEnabled (msStatus)
ElseIf mlClerkID <= 0 Then
MsgBox "请选择要删除的操作员!", vbCritical + vbOKOnly, "提示"
End If
End If
Set Clerk = Nothing
Else
Exit Sub
End If
End Sub
Private Sub cmdExit_Click()
Dim lRes As Long
If msStatus <> "Init" Then
lRes = MsgBox("是否退出操作员设置?", vbQuestion + vbYesNo, "提示")
If lRes = vbYes Then
Unload Me
Else
Exit Sub
End If
Else
Unload Me
End If
End Sub
Private Sub SetCmdEnabled(ByVal Status As String)
Select Case Status
Case "Init"
cmdNew.Enabled = True
cmdCancel.Enabled = False
cmdSave.Enabled = False
cmdModify.Enabled = True
cmdDelete.Enabled = True
cmdExit.Enabled = True
Case "New"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -