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

📄 addcuminfo.frm

📁 售楼信息管理系统 相当好的VB课程设计啊 ,
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form addcuminfo 
   BackColor       =   &H00FF8080&
   Caption         =   "客户信息登记"
   ClientHeight    =   4965
   ClientLeft      =   6000
   ClientTop       =   3990
   ClientWidth     =   6795
   Icon            =   "addcuminfo.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   ScaleHeight     =   4965
   ScaleWidth      =   6795
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   360
      Top             =   240
      Visible         =   0   'False
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   2
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   3
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "DSN=shoulouinfo"
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   "shoulouinfo"
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "客户信息"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.TextBox Text9 
      DataField       =   "联系地址"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   4440
      TabIndex        =   9
      Top             =   3360
      Width           =   1815
   End
   Begin VB.CommandButton cmdback 
      Caption         =   "返回"
      Height          =   375
      Left            =   5760
      TabIndex        =   25
      Top             =   4320
      Width           =   975
   End
   Begin VB.CommandButton cmdcan 
      Caption         =   "取消"
      Height          =   375
      Left            =   4680
      TabIndex        =   24
      Top             =   4320
      Width           =   855
   End
   Begin VB.CommandButton cmdok 
      Caption         =   "确定"
      Default         =   -1  'True
      Height          =   375
      Left            =   3600
      TabIndex        =   23
      Top             =   4320
      Width           =   855
   End
   Begin VB.CommandButton cmddel 
      Caption         =   "删除"
      Height          =   375
      Left            =   2520
      TabIndex        =   22
      Top             =   4320
      Width           =   855
   End
   Begin VB.CommandButton cmdmod 
      Caption         =   "修改"
      Height          =   375
      Left            =   1440
      TabIndex        =   21
      Top             =   4320
      Width           =   855
   End
   Begin VB.CommandButton cmdadd 
      Caption         =   "新增"
      Height          =   375
      Left            =   360
      TabIndex        =   20
      Top             =   4320
      Width           =   855
   End
   Begin VB.ComboBox Combo1 
      DataField       =   "性别"
      DataSource      =   "Adodc1"
      Height          =   300
      ItemData        =   "addcuminfo.frx":08CA
      Left            =   1440
      List            =   "addcuminfo.frx":08CC
      TabIndex        =   2
      Top             =   1560
      Width           =   1095
   End
   Begin VB.TextBox Text8 
      DataField       =   "车牌号"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   4440
      TabIndex        =   8
      Top             =   2760
      Width           =   1815
   End
   Begin VB.TextBox Text7 
      DataField       =   "电子邮件"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   4440
      TabIndex        =   7
      Top             =   2160
      Width           =   1815
   End
   Begin VB.TextBox Text6 
      DataField       =   "姓名"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   4440
      TabIndex        =   1
      Top             =   960
      Width           =   1335
   End
   Begin VB.TextBox Text5 
      DataField       =   "身份证号"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   1440
      TabIndex        =   5
      Top             =   3360
      Width           =   1815
   End
   Begin VB.TextBox Text4 
      DataField       =   "联系电话"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   1440
      TabIndex        =   4
      Top             =   2760
      Width           =   1815
   End
   Begin VB.TextBox Text3 
      DataField       =   "出生日期"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   1440
      TabIndex        =   3
      Top             =   2160
      Width           =   1815
   End
   Begin VB.TextBox Text2 
      DataField       =   "邮编"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   4440
      TabIndex        =   6
      Top             =   1560
      Width           =   1815
   End
   Begin VB.TextBox Text1 
      DataField       =   "客户ID"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   1440
      TabIndex        =   0
      Top             =   960
      Width           =   1335
   End
   Begin VB.Label Label11 
      Alignment       =   1  'Right Justify
      BackColor       =   &H00FF8080&
      Caption         =   "联系地址"
      ForeColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   3480
      TabIndex        =   26
      Top             =   3480
      Width           =   855
   End
   Begin VB.Label Label10 
      Alignment       =   1  'Right Justify
      BackColor       =   &H00FF8080&
      Caption         =   "车牌号"
      ForeColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   3600
      TabIndex        =   19
      Top             =   2880
      Width           =   735
   End
   Begin VB.Label Label9 
      Alignment       =   1  'Right Justify
      BackColor       =   &H00FF8080&
      Caption         =   "电子邮件"
      ForeColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   3480
      TabIndex        =   18
      Top             =   2280
      Width           =   855
   End
   Begin VB.Label Label8 
      Alignment       =   1  'Right Justify
      BackColor       =   &H00FF8080&
      Caption         =   "身份证号"
      ForeColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   480
      TabIndex        =   17
      Top             =   3480
      Width           =   855
   End
   Begin VB.Label Label7 
      Alignment       =   1  'Right Justify
      BackColor       =   &H00FF8080&
      Caption         =   "姓名"
      ForeColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   3720
      TabIndex        =   16
      Top             =   1080
      Width           =   615
   End
   Begin VB.Label Label6 
      Alignment       =   1  'Right Justify
      BackColor       =   &H00FF8080&
      Caption         =   "邮编"
      ForeColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   3720
      TabIndex        =   15
      Top             =   1680
      Width           =   615
   End
   Begin VB.Label Label5 
      Alignment       =   1  'Right Justify
      BackColor       =   &H00FF8080&
      Caption         =   "联系电话"
      ForeColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   480
      TabIndex        =   14
      Top             =   2880
      Width           =   855
   End
   Begin VB.Label Label4 
      Alignment       =   1  'Right Justify
      BackColor       =   &H00FF8080&
      Caption         =   "出生日期"
      ForeColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   480
      TabIndex        =   13
      Top             =   2280
      Width           =   855
   End
   Begin VB.Label Label3 
      Alignment       =   1  'Right Justify
      BackColor       =   &H00FF8080&
      Caption         =   "性别"
      ForeColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   720
      TabIndex        =   12
      Top             =   1560
      Width           =   615
   End
   Begin VB.Label Label2 
      Alignment       =   1  'Right Justify
      BackColor       =   &H00FF8080&
      Caption         =   "客户编号"
      ForeColor       =   &H00FFFFFF&
      Height          =   255
      Left            =   480
      TabIndex        =   11
      Top             =   1080
      Width           =   855
   End
   Begin VB.Label Label1 
      BackColor       =   &H00FF8080&
      Caption         =   "客户信息登记"
      BeginProperty Font 
         Name            =   "华文新魏"
         Size            =   15.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0080FFFF&
      Height          =   495
      Left            =   2400
      TabIndex        =   10
      Top             =   240
      Width           =   2055
   End
End
Attribute VB_Name = "addcuminfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdadd_Click()
Text1.Enabled = True
Text2.Enabled = True
Text3.Enabled = True
Text4.Enabled = True
Text5.Enabled = True
Text6.Enabled = True
Text7.Enabled = True
Text8.Enabled = True
Text9.Enabled = True
Combo1.Enabled = True

Adodc1.Recordset.MoveNext
Adodc1.Recordset.AddNew

End Sub
Private Sub cmdback_Click()
    Unload Me
End Sub

Private Sub cmdcan_Click()
    Adodc1.Refresh
End Sub

Private Sub cmddel_Click()
    Dim answer As String
    On Error GoTo delerror
    answer = MsgBox("确定要删除吗?", vbYesNo, "")
If answer = vbYes Then
     Adodc1.Recordset.Delete
     Adodc1.Recordset.MoveNext
     If Adodc1.Recordset.EOF Then
        Adodc1.Recordset.MoveLast
    MsgBox "成功删除!", vbOKOnly + vbExclamation, ""
    End If
    Else
        Adodc1.Refresh
   End If
delerror:
If Err.Number <> 0 Then
   MsgBox Err.Description
End If
End Sub

Private Sub cmdmod_Click()
    Text1.Enabled = True
    Text2.Enabled = True
    Text3.Enabled = True
    Text4.Enabled = True
    Text5.Enabled = True
    Text6.Enabled = True
    Text7.Enabled = True
    Text8.Enabled = True
    Text9.Enabled = True
    Combo1.Enabled = True
    Adodc1.Recordset.Update
End Sub

Private Sub cmdok_Click()
    If Trim(Combo1.Text) = "" Then
   MsgBox "请选性别", vbOKOnly + vbExclamation, ""
   Combo1.SetFocus
   Exit Sub
End If
If Trim(Text1.Text) = "" Then
   MsgBox "编号不能为空", vbOKOnly + vbExclamation, ""
   Text1.SetFocus
   Exit Sub
End If
If Trim(Text6.Text) = "" Then
   MsgBox "姓名不能为空", vbOKOnly + vbExclamation, ""
   Text6.SetFocus
   Exit Sub
End If
If Trim(Text5.Text) = "" Then
   MsgBox "身份证号不能为空", vbOKOnly + vbExclamation, ""
   Text5.SetFocus
   Exit Sub
End If
   If Not IsDate(Text3.Text) Then
      MsgBox "请按照yyyy-mm-dd格式输入日期", vbOKOnly + vbExclamation, ""
      Text3.SetFocus
      Exit Sub
End If
 Dim answer As String
    
    answer = MsgBox("确定要进行操作吗?", vbYesNo, "")
If answer = vbYes Then
     Adodc1.Recordset.Update
     MsgBox "操作成功!", vbOKOnly + vbExclamation, ""
   
    Else
        Adodc1.Refresh
    
 End If
End Sub

Private Sub Form_Load()
Combo1.AddItem "男"
Combo1.AddItem "女"
Text1.Enabled = False
Text2.Enabled = False
Text3.Enabled = False
Text4.Enabled = False
Text5.Enabled = False
Text6.Enabled = False
Text7.Enabled = False
Text8.Enabled = False
Text9.Enabled = False
Combo1.Enabled = False
End Sub

⌨️ 快捷键说明

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