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

📄 frmsupplieredit.frm

📁 主要是基本的办公用品管理操作界面, 包含基本信息管理、办公用品管理
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmSupplierEdit 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "编辑供货商信息"
   ClientHeight    =   4320
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4320
   ScaleWidth      =   4680
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Cmd_Cancel 
      Caption         =   "取 消"
      Height          =   495
      Left            =   3000
      TabIndex        =   11
      Top             =   3600
      Width           =   1215
   End
   Begin VB.CommandButton Cmd_OK 
      Caption         =   "确 定"
      Height          =   495
      Left            =   840
      TabIndex        =   10
      Top             =   3600
      Width           =   1215
   End
   Begin VB.TextBox txtMemo 
      Height          =   330
      Left            =   1560
      TabIndex        =   8
      Top             =   2932
      Width           =   2655
   End
   Begin VB.TextBox txtContact 
      Height          =   330
      Left            =   1560
      TabIndex        =   6
      Top             =   2272
      Width           =   2655
   End
   Begin VB.TextBox txtAddress 
      Height          =   330
      Left            =   1560
      TabIndex        =   4
      Top             =   1612
      Width           =   2655
   End
   Begin VB.TextBox txtTel 
      Height          =   330
      Left            =   1560
      TabIndex        =   2
      Top             =   952
      Width           =   2655
   End
   Begin VB.TextBox txtName 
      Height          =   330
      Left            =   1560
      TabIndex        =   1
      Top             =   292
      Width           =   2655
   End
   Begin VB.Label Label5 
      AutoSize        =   -1  'True
      Caption         =   "备      注"
      Height          =   195
      Left            =   360
      TabIndex        =   9
      Top             =   3000
      Width           =   630
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      Caption         =   "联 系 人"
      Height          =   195
      Left            =   360
      TabIndex        =   7
      Top             =   2340
      Width           =   630
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      Caption         =   "联系地址"
      Height          =   195
      Left            =   360
      TabIndex        =   5
      Top             =   1680
      Width           =   720
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "联系电话"
      Height          =   195
      Left            =   360
      TabIndex        =   3
      Top             =   1020
      Width           =   720
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "供货商名称"
      Height          =   195
      Left            =   360
      TabIndex        =   0
      Top             =   360
      Width           =   900
   End
End
Attribute VB_Name = "FrmSupplierEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public OriSId As Long
Public Modify As Boolean

Private Sub Cmd_Cancel_Click()
  Unload Me
End Sub

Private Sub Cmd_OK_Click()
  '检查输入数据的有效性
  If Len(Trim(txtName)) = 0 Then
    MsgBox "请输入供应商名称"
    txtName.SetFocus
    Exit Sub
  End If
  If Len(Trim(txtContact)) = 0 Then
    MsgBox "请输入联系人姓名"
    txtContact.SetFocus
    Exit Sub
  End If
  If Len(Trim(txtTel)) = 0 Then
    MsgBox "请输入联系电话"
    txtTel.SetFocus
    Exit Sub
  End If
  With MySupplier
    .SName = Trim(txtName)
    .Tel = Trim(txtTel)
    .Address = Trim(txtAddress)
    .Contact = Trim(txtContact)
    .Memos = Trim(txtMemo)
    If Modify = False Then
      .Insert
      MsgBox "添加成功"
    Else
      .Update (OriSId)
      MsgBox "保存成功"
    End If
  End With
  Unload Me
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -