⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmprotypeedit.frm

📁 用vb编的一个商品库存管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmProTypeEdit 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "编辑产品类目"
   ClientHeight    =   2085
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4080
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2085
   ScaleWidth      =   4080
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame1 
      Height          =   1095
      Left            =   240
      TabIndex        =   2
      Top             =   120
      Width           =   3615
      Begin VB.TextBox txtTypeName 
         Height          =   270
         Left            =   1200
         MaxLength       =   20
         TabIndex        =   3
         Top             =   579
         Width           =   2175
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "类目名称"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   180
         Left            =   240
         TabIndex        =   6
         Top             =   600
         Width           =   720
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "上级类目"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   180
         Left            =   240
         TabIndex        =   5
         Top             =   240
         Width           =   720
      End
      Begin VB.Label lblUpper 
         AutoSize        =   -1  'True
         BackColor       =   &H00FFC0C0&
         BackStyle       =   0  'Transparent
         Caption         =   "员工姓名"
         Height          =   180
         Left            =   1200
         TabIndex        =   4
         Top             =   240
         Width           =   720
      End
   End
   Begin VB.CommandButton Cmd_Cancel 
      Cancel          =   -1  'True
      Caption         =   "取 消"
      Height          =   400
      Left            =   2193
      MouseIcon       =   "FrmProTypeEdit.frx":0000
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   1440
      Width           =   1300
   End
   Begin VB.CommandButton Cmd_Ok 
      Caption         =   "确 定"
      Height          =   400
      Left            =   588
      MouseIcon       =   "FrmProTypeEdit.frx":030A
      MousePointer    =   99  'Custom
      Style           =   1  'Graphical
      TabIndex        =   0
      Top             =   1440
      Width           =   1300
   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 + -