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

📄 设置操作人员.frm

📁 vb酒店管理系统的原码下载
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form 操作人员设置 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "设置操作人员"
   ClientHeight    =   2400
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6465
   LinkTopic       =   "Form4"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2400
   ScaleWidth      =   6465
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "删除"
      Height          =   285
      Left            =   4470
      TabIndex        =   10
      Top             =   1980
      Width           =   840
   End
   Begin VB.CommandButton Command1 
      Caption         =   "增加"
      Height          =   285
      Left            =   3585
      TabIndex        =   9
      Top             =   1980
      Width           =   840
   End
   Begin VB.CommandButton Command3 
      Caption         =   "关闭"
      Height          =   285
      Left            =   5370
      TabIndex        =   7
      Top             =   1980
      Width           =   825
   End
   Begin VB.Frame Frame1 
      Height          =   1815
      Left            =   90
      TabIndex        =   0
      Top             =   60
      Width           =   6300
      Begin VB.ComboBox Combo1 
         DataField       =   "user_type"
         DataSource      =   "Adodc1"
         Height          =   300
         ItemData        =   "设置操作人员.frx":0000
         Left            =   4440
         List            =   "设置操作人员.frx":0010
         TabIndex        =   11
         Top             =   1080
         Width           =   1380
      End
      Begin VB.TextBox Text3 
         DataField       =   "userno"
         DataSource      =   "Adodc1"
         Height          =   345
         IMEMode         =   3  'DISABLE
         Left            =   1695
         PasswordChar    =   "*"
         TabIndex        =   5
         Top             =   1065
         Width           =   1335
      End
      Begin VB.TextBox Text2 
         DataField       =   "usertype"
         DataSource      =   "Adodc1"
         Height          =   345
         Left            =   4455
         TabIndex        =   3
         Top             =   465
         Width           =   1335
      End
      Begin VB.TextBox Text1 
         DataField       =   "username"
         DataSource      =   "Adodc1"
         Height          =   345
         Left            =   1695
         TabIndex        =   1
         Top             =   450
         Width           =   1335
      End
      Begin VB.Label Label4 
         Caption         =   "操作类别:"
         Height          =   315
         Left            =   3405
         TabIndex        =   12
         Top             =   540
         Width           =   975
      End
      Begin VB.Label Label3 
         Caption         =   "密      码:"
         Height          =   315
         Left            =   450
         TabIndex        =   6
         Top             =   1125
         Width           =   1140
      End
      Begin VB.Label Label2 
         Caption         =   "操作类型:"
         Height          =   315
         Left            =   3435
         TabIndex        =   4
         Top             =   1110
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "操作员姓名:"
         Height          =   315
         Left            =   465
         TabIndex        =   2
         Top             =   510
         Width           =   1140
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   75
      Top             =   1995
      Width           =   1905
      _ExtentX        =   3360
      _ExtentY        =   661
      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=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      Caption         =   "操作员"
      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.Label Label12 
      Height          =   240
      Left            =   2055
      TabIndex        =   8
      Top             =   2055
      Width           =   1065
   End
End
Attribute VB_Name = "操作人员设置"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'星级酒店管理系统最初功能演示版,提供所有星级酒店管理中的客房管理,
'房态管理,客史管理,客人资料管理,帐务管理,报表管理,餐饮收费管理
'菜谱管理,夜审处理,数据库备份等功能.所有功能皆可以运行,(但有一些BUG未处理)
'此代码完全可以完成星级酒店上述管理功能.(提供者:帅)
'--------------------------------------------------------------
'代码编写于:2001.12  系统分析:帅   代码编写:帅    版权所有:帅
'--------------------------------------------------------------
'本份代码仅提供给程序太平洋的所有朋友学习,研究之用.
'其它网站一律不得转载,否则为侵权行为,本人保留法律追诉权力.
'这也是本人最早的VB版程序,代码质量不好.望笑纳.:)
'--------------------------------------------------------------
'提供日期:2003-05-31    提供者:帅
'--------------------------------------------------------------
'系统提从与ACCESS或SQL相接,在登录时,选择全局数据库,就与SQL数据库
'连接,字符串存放在SERVER.DAT文本文件中;选择本地数据库,与本地ACCESS
'数据库相连,连接字符串存放在LOCAT.DAT文件中.(当前存放为e:\hotel2\room.mdb)
'---------------------------------------------------------------
'将ACCESS中所有表导入SQL中,并将有的表中的ID字段改为自动编码,就可以使用.
'---------------------------------------------------------------------
'
'
Private Sub Adodc1_MoveComplete(ByVal adReason As ADODB.EventReasonEnum, ByVal pError As ADODB.Error, adStatus As ADODB.EventStatusEnum, ByVal pRecordset As ADODB.Recordset)
    Me.Label12.Caption = CStr(Adodc1.Recordset.AbsolutePosition) & "/" & CStr(Adodc1.Recordset.RecordCount)

End Sub

Private Sub Command1_Click()
    If Command1.Caption = "增加" Then
        Adodc1.Recordset.AddNew
        Command1.Caption = "保存"
    Else
        Adodc1.Recordset.Update
        Command1.Caption = "增加"
    End If
End Sub

Private Sub Command2_Click()
    If MsgBox("确认您要删除“" & Adodc1.Recordset.Fields("username") & "”操作员吗?", 49, "提示") = vbOK Then
        Adodc1.Recordset.Delete
        If Not Adodc1.Recordset.BOF Then
            Adodc1.Recordset.MovePrevious
        End If
    End If
End Sub

Private Sub Command3_Click()
    Unload Me
End Sub

Private Sub Form_Load()
    Adodc1.ConnectionString = My_PROVIDER
    Adodc1.CommandType = adCmdText
    Adodc1.RecordSource = "select * from 用户 order by username"
    Adodc1.Refresh

End Sub

⌨️ 快捷键说明

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