📄 frmprotypeedit.frm
字号:
VERSION 5.00
Begin VB.Form frmprotypeedit
Caption = "编辑产品类目"
ClientHeight = 2550
ClientLeft = 60
ClientTop = 345
ClientWidth = 4755
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 2550
ScaleWidth = 4755
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Cmd_Cancel
Caption = "取消"
Height = 495
Left = 2880
MouseIcon = "frmprotypeedit.frx":0000
MousePointer = 99 'Custom
TabIndex = 6
Top = 1920
Width = 1215
End
Begin VB.CommandButton cmd_ok
Caption = "确定"
Height = 495
Left = 600
MouseIcon = "frmprotypeedit.frx":030A
MousePointer = 99 'Custom
TabIndex = 5
Top = 1920
Width = 1215
End
Begin VB.Frame Frame1
Height = 1575
Left = 240
TabIndex = 0
Top = 240
Width = 4215
Begin VB.TextBox txtTypeName
Height = 375
Left = 1200
TabIndex = 4
Top = 960
Width = 2175
End
Begin VB.Label lblUpper
AutoSize = -1 'True
Caption = "员工姓名"
Height = 180
Left = 1320
TabIndex = 3
Top = 360
Width = 720
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "类目名称:"
Height = 180
Left = 120
TabIndex = 2
Top = 1080
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "上级类目:"
Height = 180
Left = 120
TabIndex = 1
Top = 360
Width = 900
End
End
End
Attribute VB_Name = "frmprotypeedit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean
Public OriUpper As Integer
Public OriId As Integer
Public OriName As String
Private Sub Cmd_Cancel_Click()
Unload Me
End Sub
Private Sub Cmd_OK_Click()
If Trim(txtTypeName) = "" Then
MsgBox "请输入用户名"
txtUserName.SetFocus
Exit Sub
End If
With MyProType
If Modify = False Or OriName <> Trim(txtTypeName) Then
If .In_DB(MakeStr(txtTypeName)) = True Then
MsgBox "类目名称已经存在,请重新输入"
txtTypeName.SetFocus
txtTypeName.SelStart = 0
txtTypeName.SelLength = Len(txtTypeName)
Exit Sub
End If
End If
.TypeName = MakeStr(txtTypeName)
.UpperId = OriUpper
If Modify = False Then
.Insert
Else
.Update (OriId)
End If
End With
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -