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

📄 frm0303.frm

📁 便利店管理系统 VB+ACCESS 附上数据库和源码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frm0303 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "口令修改"
   ClientHeight    =   2280
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4770
   Icon            =   "frm0303.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   2280
   ScaleWidth      =   4770
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取消"
      Height          =   375
      Left            =   2520
      TabIndex        =   7
      Top             =   1740
      Width           =   1395
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确定"
      Default         =   -1  'True
      Height          =   375
      Left            =   780
      TabIndex        =   6
      Top             =   1740
      Width           =   1395
   End
   Begin VB.TextBox txNewPsw2 
      Height          =   315
      IMEMode         =   3  'DISABLE
      Left            =   1800
      PasswordChar    =   "*"
      TabIndex        =   2
      Top             =   1140
      Width           =   2475
   End
   Begin VB.TextBox txNewPsw1 
      Height          =   315
      IMEMode         =   3  'DISABLE
      Left            =   1800
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   660
      Width           =   2475
   End
   Begin VB.TextBox txOldPsw 
      Height          =   315
      IMEMode         =   3  'DISABLE
      Left            =   1800
      PasswordChar    =   "*"
      TabIndex        =   0
      Top             =   180
      Width           =   2475
   End
   Begin VB.Label lbNewPsw2 
      Alignment       =   1  'Right Justify
      AutoSize        =   -1  'True
      Caption         =   "新口令重复"
      Height          =   195
      Left            =   840
      TabIndex        =   5
      Top             =   1200
      Width           =   900
   End
   Begin VB.Label lbNewPsw1 
      Alignment       =   1  'Right Justify
      AutoSize        =   -1  'True
      Caption         =   "新口令"
      Height          =   195
      Left            =   1200
      TabIndex        =   4
      Top             =   720
      Width           =   540
   End
   Begin VB.Label lbOldPsw 
      Alignment       =   1  'Right Justify
      AutoSize        =   -1  'True
      Caption         =   "旧口令"
      Height          =   195
      Left            =   1200
      TabIndex        =   3
      Top             =   240
      Width           =   540
   End
End
Attribute VB_Name = "frm0303"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub LoadFormLang()
    Me.Caption = getFormCaptionResource("0303")
    
    Me.lbOldPsw.Caption = getResource("resOldPassWord")
    Me.lbNewPsw1.Caption = getResource("resNewPassWord1")
    Me.lbNewPsw2.Caption = getResource("resNewPassWord2")
        
    Me.cmdOK.Caption = getResource("resOK")
    Me.cmdCancel.Caption = getResource("resCancel")
End Sub

Private Sub cmdCancel_Click()
    Unload Me
End Sub

Private Sub cmdOK_Click()
    Dim sql As String
    
    If LCase$(curSystemUser.uPWS) <> LCase$(Me.txOldPsw.Text) Then
        MsgBox getResource("resMsgF0303003"), vbCritical + vbOKOnly
        Me.txOldPsw.SetFocus
        Exit Sub
    End If
    
    If Me.txNewPsw1.Text <> Me.txNewPsw2.Text Then
        MsgBox getResource("resMsgF0303002"), vbCritical + vbOKOnly
        Me.txNewPsw1.SetFocus
        Exit Sub
    End If
    
    If Me.txNewPsw1.Text = "" And Me.txNewPsw2.Text = "" Then
        If MsgBox(getResource("resMsgF0303001"), vbCritical + vbYesNo) = vbNo Then
            Me.txNewPsw1.SetFocus
            Exit Sub
        End If
    End If
    
    sql = "UPDATE SystemUser SET PWS ='" & Me.txNewPsw1.Text & "' WHERE ID='" & curSystemUser.uID & "'"
    If RunSql(sql) Then
        MsgBox getResource("resMsgF0303004"), vbCritical + vbOKOnly
        Unload Me
    Else
        MsgBox getResource("resMsgF0303005"), vbCritical + vbOKOnly
    End If
    
End Sub

Private Sub Form_Load()
    Call LoadFormLang
End Sub

⌨️ 快捷键说明

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