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

📄 setpasswd.frm

📁 vb酒店管理系统的原码下载
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form setpasswd 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "修改口令"
   ClientHeight    =   1710
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5790
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1710
   ScaleWidth      =   5790
   StartUpPosition =   2  '屏幕中心
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   3720
      Top             =   45
      Visible         =   0   'False
      Width           =   1365
      _ExtentX        =   2408
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      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         =   "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.Frame Frame1 
      Height          =   1530
      Left            =   105
      TabIndex        =   0
      Top             =   60
      Width           =   5580
      Begin VB.CommandButton Command2 
         Caption         =   "放弃"
         Height          =   285
         Left            =   3990
         TabIndex        =   5
         Top             =   855
         Width           =   1005
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确认"
         Enabled         =   0   'False
         Height          =   285
         Left            =   3990
         TabIndex        =   4
         Top             =   420
         Width           =   1005
      End
      Begin VB.TextBox Text3 
         Height          =   300
         IMEMode         =   3  'DISABLE
         Left            =   1680
         PasswordChar    =   "*"
         TabIndex        =   3
         Top             =   1020
         Width           =   1500
      End
      Begin VB.TextBox Text2 
         Height          =   300
         IMEMode         =   3  'DISABLE
         Left            =   1680
         PasswordChar    =   "*"
         TabIndex        =   2
         Top             =   690
         Width           =   1500
      End
      Begin VB.TextBox Text1 
         Height          =   300
         IMEMode         =   3  'DISABLE
         Left            =   1680
         PasswordChar    =   "*"
         TabIndex        =   1
         Top             =   300
         Width           =   1500
      End
      Begin VB.Label Label3 
         Caption         =   "验证新口令:"
         Height          =   285
         Left            =   360
         TabIndex        =   8
         Top             =   1080
         Width           =   1110
      End
      Begin VB.Label Label2 
         Caption         =   "新口令:"
         Height          =   240
         Left            =   375
         TabIndex        =   7
         Top             =   735
         Width           =   1140
      End
      Begin VB.Label Label1 
         Caption         =   "旧口令:"
         Height          =   270
         Left            =   375
         TabIndex        =   6
         Top             =   345
         Width           =   990
      End
   End
End
Attribute VB_Name = "setpasswd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
        Adodc1.Recordset.Fields("userno") = Text3.Text
        Adodc1.Recordset.Update
        MsgBox "恭喜您:口令修改成功!", vbOKOnly, "提示"
        Adodc1.Recordset.Close
        Unload Me
End Sub

Private Sub Command2_Click()
    Unload Me
End Sub


'星级酒店管理系统最初功能演示版,提供所有星级酒店管理中的客房管理,
'房态管理,客史管理,客人资料管理,帐务管理,报表管理,餐饮收费管理
'菜谱管理,夜审处理,数据库备份等功能.所有功能皆可以运行,(但有一些BUG未处理)
'此代码完全可以完成星级酒店上述管理功能.(提供者:帅)
'--------------------------------------------------------------
'代码编写于:2001.12  系统分析:帅   代码编写:帅    版权所有:帅
'--------------------------------------------------------------
'本份代码仅提供给程序太平洋的所有朋友学习,研究之用.
'其它网站一律不得转载,否则为侵权行为,本人保留法律追诉权力.
'这也是本人最早的VB版程序,代码质量不好.望笑纳.:)
'--------------------------------------------------------------
'提供日期:2003-05-31    提供者:帅
'--------------------------------------------------------------
'系统提从与ACCESS或SQL相接,在登录时,选择全局数据库,就与SQL数据库
'连接,字符串存放在SERVER.DAT文本文件中;选择本地数据库,与本地ACCESS
'数据库相连,连接字符串存放在LOCAT.DAT文件中.(当前存放为e:\hotel2\room.mdb)
'---------------------------------------------------------------
'将ACCESS中所有表导入SQL中,并将有的表中的ID字段改为自动编码,就可以使用.
'---------------------------------------------------------------------
'
'
Private Sub Form_Load()
    Adodc1.ConnectionString = My_PROVIDER
    Adodc1.CommandType = adCmdText
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
    Dim strFind As String
    
    If KeyAscii = Asc(Chr(13)) Then
        Adodc1.ConnectionString = My_PROVIDER
        Adodc1.CommandType = adCmdText
        Adodc1.RecordSource = "select * from 用户 where username like '" & CzyName & "' and userno like '" & Me.Text1.Text & "'"
        Adodc1.Refresh
    
        If Adodc1.Recordset.RecordCount <> 0 Then
        
            Me.Text2.SetFocus
            
        Else
            MsgBox "请注意:旧口令不对!重新输入。", vbOKOnly, "提示"
            Me.Text1.SetFocus
        End If
    
    End If
End Sub

Private Sub Text1_LostFocus()
    Dim strFind As String
    
    If KeyAscii = Asc(Chr(13)) Then
        Adodc1.ConnectionString = My_PROVIDER
        Adodc1.CommandType = adCmdText
        Adodc1.RecordSource = "select * from 用户 where username like '" & CzyName & "' and userno like '" & Me.Text1.Text & "'"
        Adodc1.Refresh
    
        If Adodc1.Recordset.RecordCount <> 0 Then
        
            Me.Text2.SetFocus
            
        Else
            MsgBox "请注意:旧口令不对!重新输入。", vbOKOnly, "提示"
            Me.Text1.SetFocus
        End If
    
    End If

End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)
    If KeyAscii = Asc(Chr(13)) Then
            If IsNull(Text2) Or Text2 = "" Then
                MsgBox "请注意:口令不能为空!", 48, "提示"
                Text2.SetFocus
            Else
                Text3.SetFocus
            End If
    
    End If

End Sub

Private Sub Text3_KeyPress(KeyAscii As Integer)
    If KeyAscii = Asc(Chr(13)) Then
        If Text2.Text <> Text3.Text Then
            MsgBox "请注意:新口令二次验证不符!重新输入。", vbOKOnly, "提示"
            Text2.SetFocus
        Else
            Command1.Enabled = True
            Command1.SetFocus
        
        End If
        
    
    End If

End Sub

⌨️ 快捷键说明

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