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

📄 frmgk.frm

📁 鲜花管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{74848F95-A02A-4286-AF0C-A3C755E4A5B3}#1.0#0"; "actskn43.ocx"
Begin VB.Form frmgk 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Form1"
   ClientHeight    =   4365
   ClientLeft      =   2850
   ClientTop       =   2640
   ClientWidth     =   6120
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4365
   ScaleWidth      =   6120
   Begin VB.TextBox txthy 
      Alignment       =   2  'Center
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   2520
      TabIndex        =   11
      Text            =   "否"
      Top             =   2520
      Width           =   1215
   End
   Begin VB.CommandButton cmdhy 
      Caption         =   "升级会员"
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   4080
      TabIndex        =   10
      Top             =   2520
      Width           =   1455
   End
   Begin VB.CommandButton cmdqd 
      Caption         =   "确 定"
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   1080
      TabIndex        =   5
      Top             =   3480
      Width           =   1215
   End
   Begin VB.CommandButton cmgqk 
      Caption         =   "清 空"
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3600
      TabIndex        =   4
      Top             =   3480
      Width           =   1215
   End
   Begin VB.TextBox txtadd 
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   2520
      TabIndex        =   3
      Top             =   1800
      Width           =   3015
   End
   Begin VB.TextBox txttel 
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   2520
      TabIndex        =   2
      Top             =   1080
      Width           =   3015
   End
   Begin VB.TextBox txtname 
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   14.25
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   2520
      TabIndex        =   1
      Top             =   360
      Width           =   3015
   End
   Begin VB.TextBox txtid 
      Height          =   375
      Left            =   1800
      TabIndex        =   0
      Top             =   4680
      Width           =   2895
   End
   Begin ACTIVESKINLibCtl.Skin Skin1 
      Left            =   120
      OleObjectBlob   =   "frmgk.frx":0000
      Top             =   3480
   End
   Begin ACTIVESKINLibCtl.SkinLabel SkinLabel2 
      Height          =   345
      Left            =   360
      OleObjectBlob   =   "frmgk.frx":0234
      TabIndex        =   6
      Top             =   480
      Width           =   1695
   End
   Begin ACTIVESKINLibCtl.SkinLabel SkinLabel3 
      Height          =   345
      Left            =   360
      OleObjectBlob   =   "frmgk.frx":0297
      TabIndex        =   7
      Top             =   1200
      Width           =   1695
   End
   Begin ACTIVESKINLibCtl.SkinLabel SkinLabel4 
      Height          =   345
      Left            =   360
      OleObjectBlob   =   "frmgk.frx":02FC
      TabIndex        =   8
      Top             =   1920
      Width           =   1695
   End
   Begin ACTIVESKINLibCtl.SkinLabel SkinLabel5 
      Height          =   345
      Left            =   360
      OleObjectBlob   =   "frmgk.frx":035F
      TabIndex        =   9
      Top             =   2640
      Width           =   1695
   End
End
Attribute VB_Name = "frmgk"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rs As ADODB.Recordset
Dim sql As String

Private Sub cmdhy_Click()
    txthy.Text = "是"
    MsgBox "成功的升为会员!"
End Sub

Private Sub cmdqd_Click()
    Select Case frmgk.Caption
        Case "添加客户"
            If rs.RecordCount <> 0 Then
                rs.MoveLast
                txtid.Text = Format(Right(rs.Fields("顾客编号"), 5) + 1, "0####")

            Else
                txtid.Text = "00001"
            End If
            If txtname.Text = "" Then
                MsgBox "请输入顾客姓名!"
                Exit Sub
            End If
            If txttel.Text = "" Then
                MsgBox "请输入顾客电话!"
                Exit Sub
            End If
            If txtadd.Text = "" Then
                MsgBox "请输入顾客地址!"
                Exit Sub
            End If
            rs.AddNew
            rs.Fields("顾客编号").Value = txtid.Text
            rs.Fields("顾客姓名").Value = txtname.Text
            rs.Fields("顾客电话").Value = txttel.Text
            rs.Fields("顾客地址").Value = txtadd.Text
            rs.Fields("会员").Value = txthy.Text
            rs.Update
            MsgBox "添加成功"
        Case "修改客户"
            sql = "select * from yonghu where 顾客编号='" & txtid.Text & "'"
            Set rs = search(sql)
            If txtname.Text = "" Then
                MsgBox "请输入顾客姓名!"
                Exit Sub
            End If
            If txttel.Text = "" Then
                MsgBox "请输入顾客电话!"
                Exit Sub
            End If
            If txtadd.Text = "" Then
                MsgBox "请输入顾客地址!"
                Exit Sub
            End If
            rs.Fields("顾客编号").Value = txtid.Text
            rs.Fields("顾客姓名").Value = txtname.Text
            rs.Fields("顾客电话").Value = txttel.Text
            rs.Fields("顾客地址").Value = txtadd.Text
            rs.Fields("会员").Value = txthy.Text
            rs.Update
            MsgBox "修改成功"
            
    End Select
    FrmQuanBuCust.rs.Requery
End Sub

Private Sub cmgqk_Click()
    txtname.Text = ""
    txtadd.Text = ""
    txttel.Text = ""
    txtname.SetFocus
End Sub


Private Sub Form_Load()
    Call showskin(Skin1, hwnd)
    Set rs = search("select * from yonghu")
End Sub

⌨️ 快捷键说明

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