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

📄 form4.frm

📁 用VB实现的客房信息管理系统。具体的功能是管理员登陆和客房管理
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form4 
   Caption         =   "住宿登记"
   ClientHeight    =   5520
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   8580
   LinkTopic       =   "Form4"
   ScaleHeight     =   5520
   ScaleWidth      =   8580
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command5 
      Caption         =   "取消"
      Height          =   495
      Left            =   4560
      TabIndex        =   23
      Top             =   4320
      Width           =   1095
   End
   Begin VB.TextBox Text9 
      DataField       =   "性别"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   1680
      TabIndex        =   22
      Top             =   2280
      Width           =   1455
   End
   Begin VB.CommandButton Command4 
      Caption         =   "返回"
      Height          =   495
      Left            =   5640
      TabIndex        =   21
      Top             =   4320
      Width           =   1095
   End
   Begin VB.CommandButton Command3 
      Caption         =   "确认"
      Height          =   495
      Left            =   3480
      TabIndex        =   20
      Top             =   4320
      Width           =   1095
   End
   Begin VB.CommandButton Command2 
      Caption         =   "删除"
      Height          =   495
      Left            =   2400
      TabIndex        =   19
      Top             =   4320
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "新客户登记"
      Height          =   495
      Left            =   1320
      TabIndex        =   18
      Top             =   4320
      Width           =   1095
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   615
      Left            =   3000
      Top             =   4800
      Visible         =   0   'False
      Width           =   1815
      _ExtentX        =   3201
      _ExtentY        =   1085
      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=guan"
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   "guan"
      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 Text8 
      DataField       =   "离店日期"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   5760
      TabIndex        =   17
      Top             =   3480
      Width           =   1455
   End
   Begin VB.TextBox Text7 
      DataField       =   "住店日期"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   5760
      TabIndex        =   16
      Top             =   2880
      Width           =   1455
   End
   Begin VB.TextBox Text6 
      DataField       =   "用房天数"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   5760
      TabIndex        =   15
      Top             =   2280
      Width           =   1455
   End
   Begin VB.TextBox Text5 
      DataField       =   "顾客编号"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   5760
      TabIndex        =   14
      Top             =   1680
      Width           =   1455
   End
   Begin VB.TextBox Text4 
      DataField       =   "国籍"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   1680
      TabIndex        =   13
      Top             =   3480
      Width           =   1455
   End
   Begin VB.TextBox Text3 
      DataField       =   "年龄"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   1680
      TabIndex        =   12
      Top             =   2880
      Width           =   1455
   End
   Begin VB.TextBox Text2 
      DataField       =   "姓名"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   1680
      TabIndex        =   11
      Top             =   1680
      Width           =   1455
   End
   Begin VB.TextBox Text1 
      DataField       =   "房号"
      DataSource      =   "Adodc1"
      Height          =   495
      Left            =   4440
      TabIndex        =   2
      Top             =   840
      Width           =   2055
   End
   Begin VB.Label Label6 
      Caption         =   "国籍"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   840
      TabIndex        =   10
      Top             =   3480
      Width           =   495
   End
   Begin VB.Label Label5 
      Caption         =   "年龄"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   840
      TabIndex        =   9
      Top             =   2880
      Width           =   495
   End
   Begin VB.Label Label4 
      Caption         =   "性别"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   840
      TabIndex        =   8
      Top             =   2280
      Width           =   495
   End
   Begin VB.Label Label3 
      Caption         =   "姓名"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   840
      TabIndex        =   7
      Top             =   1680
      Width           =   495
   End
   Begin VB.Label Label10 
      Caption         =   "离店日期"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   4560
      TabIndex        =   6
      Top             =   3480
      Width           =   975
   End
   Begin VB.Label Label9 
      Caption         =   "住店日期"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   4560
      TabIndex        =   5
      Top             =   2880
      Width           =   975
   End
   Begin VB.Label Label8 
      Caption         =   "用房天数"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   4560
      TabIndex        =   4
      Top             =   2280
      Width           =   975
   End
   Begin VB.Label Label7 
      Caption         =   "顾客编码"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   4560
      TabIndex        =   3
      Top             =   1680
      Width           =   975
   End
   Begin VB.Label Label2 
      Caption         =   "房号"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2040
      TabIndex        =   1
      Top             =   840
      Width           =   615
   End
   Begin VB.Label Label1 
      Caption         =   "客户信息登记"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   14.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3120
      TabIndex        =   0
      Top             =   240
      Width           =   1935
   End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Drive1_Change()

End Sub

Private Sub Command1_Click()
Adodc1.Recordset.AddNew
Command1.Enabled = False
Command2.Enabled = False
Command3.Enabled = True
Command4.Enabled = True
End Sub

Private Sub Command2_Click()
x = MsgBox("确实要删除当前记录吗?", vbYesNo + vbQuestion, "确认")
If x = vbYes Then
Adodc1.Recordset.Delete
Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
End If
Else
Adodc1.Refresh
End If
End Sub

Private Sub Command3_Click()
 Adodc1.Recordset.Update
Command1.Enabled = True
Command2.Enabled = True
End Sub

Private Sub Command4_Click()
Unload Me
MDIForm1.Show
End Sub

Private Sub Command5_Click()
Adodc1.Refresh
Command1.Enabled = True
Command2.Enabled = True
End Sub

⌨️ 快捷键说明

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