📄 frmop.frm
字号:
VERSION 5.00
Begin VB.Form frmOP
BorderStyle = 1 'Fixed Single
Caption = "用户管理"
ClientHeight = 2655
ClientLeft = 45
ClientTop = 330
ClientWidth = 3630
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 2655
ScaleWidth = 3630
Begin VB.ListBox lstOP
Height = 2400
Left = 120
TabIndex = 4
Top = 120
Width = 2055
End
Begin VB.CommandButton cmdOP
Caption = "新增 "
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2400
TabIndex = 3
Top = 135
Width = 1095
End
Begin VB.CommandButton cmdEdit
Caption = "编辑 "
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2415
TabIndex = 2
Top = 630
Width = 1095
End
Begin VB.CommandButton cmdDel
Caption = "删除 "
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2415
TabIndex = 1
Top = 1125
Width = 1095
End
Begin VB.CommandButton cmdCancel
Caption = "返回 "
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2400
TabIndex = 0
Top = 2115
Width = 1095
End
End
Attribute VB_Name = "frmOP"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'人人为我,我为人人
'枕善居收藏整理
'发布日期:2007/07/09
'描 述:CBB三表户外计量系统 Ver 5.2
'网 站:http://www.Mndsoft.com/ (VB6源码博客)
'网 站:http://www.VbDnet.com/ (VB.NET源码博客,主要基于.NET2005)
'e-mail :Mndsoft@163.com
'e-mail :Mndsoft@126.com
'OICQ :88382850
' 如果您有新的好的代码别忘记给枕善居哦!
'****************************************************************************
Private Sub cmdCancel_Click()
Unload frmOP
End Sub
Private Sub cmdDel_Click()
Dim rcOP As Recordset
If MsgBox("确定要删除此操作员设置吗?", 32 + 1 + 256, "删除操作员设置") = 1 Then
Set rcOP = dbCbb.OpenRecordset("OPMap", dbOpenDynaset)
rcOP.FindFirst "ID=""" + lstOP.Text + """"
If rcOP.NoMatch Then
MsgBox "在操作员设置库中没有找到匹配信息!", 48, "删除操作员设置"
Exit Sub
Else
rcOP.Delete
initLstOP
'status
AppendStatusInfo "删除操作员" & Trim(lstOP.List(lstOP.ListIndex)), icoBLUE
SaveLog "删除操作员" & Trim(lstOP.List(lstOP.ListIndex)), 0
End If
End If
End Sub
Private Sub cmdEdit_Click()
If Trim(lstOP.List(ListIndex)) <> "" Then
curSetOP = Trim(lstOP.List(ListIndex))
frmOPSet.Show
initLstOP
End If
End Sub
Private Sub cmdOP_Click()
curSetOP = ""
frmOPSet.Show
initLstOP
End Sub
Private Sub Form_Load()
If UBound(curForm) > 0 Then
curForm(UBound(curForm)).Enabled = False
End If
ReDim Preserve curForm(UBound(curForm) + 1)
Set curForm(UBound(curForm)) = Me
initLstOP
DoEvents
End Sub
Private Sub Form_Unload(Cancel As Integer)
ReDim Preserve curForm(UBound(curForm) - 1)
If UBound(curForm) > 0 Then
curForm(UBound(curForm)).Enabled = True
End If
End Sub
Private Sub lstOP_DblClick()
If Trim(lstOP.List(ListIndex)) <> "" Then
curSetOP = Trim(lstOP.List(ListIndex))
frmOPSet.Show
initLstOP
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -