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

📄 main_mmsz.frm

📁 图书综合管理系统 VB毕业设计 原代码+论文
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form main_xtgl_mmsz 
   BackColor       =   &H00FF8080&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "密码设置"
   ClientHeight    =   3555
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6360
   Icon            =   "main_mmsz.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "main_mmsz.frx":000C
   ScaleHeight     =   3555
   ScaleWidth      =   6360
   StartUpPosition =   1  '所有者中心
   Begin VB.TextBox TxtNMM 
      BackColor       =   &H00FFFFFF&
      Height          =   360
      IMEMode         =   3  'DISABLE
      Left            =   1560
      MaxLength       =   6
      PasswordChar    =   "*"
      TabIndex        =   9
      Top             =   2205
      Width           =   2880
   End
   Begin VB.TextBox TxtOMM 
      BackColor       =   &H00FFFFFF&
      Height          =   345
      IMEMode         =   3  'DISABLE
      Left            =   1560
      MaxLength       =   6
      TabIndex        =   8
      Top             =   1665
      Width           =   2880
   End
   Begin VB.TextBox TxtCZY 
      BackColor       =   &H00FFFFFF&
      Height          =   345
      Left            =   1560
      TabIndex        =   7
      Top             =   1140
      Width           =   2880
   End
   Begin VB.TextBox TxtBH 
      BackColor       =   &H00FFFFFF&
      Height          =   345
      Left            =   1560
      TabIndex        =   6
      Top             =   615
      Width           =   2880
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   -975
      Top             =   2175
      Visible         =   0   'False
      Width           =   1305
      _ExtentX        =   2302
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=books.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=books.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from qxb"
      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 Text3 
      BackColor       =   &H00FFFFFF&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   -510
      MaxLength       =   6
      PasswordChar    =   "*"
      TabIndex        =   2
      Top             =   3465
      Width           =   2880
   End
   Begin VB.TextBox Text2 
      BackColor       =   &H00FFFFFF&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   -525
      MaxLength       =   6
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   2895
      Width           =   2880
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H00FFFFFF&
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   -525
      TabIndex        =   0
      Top             =   2340
      Width           =   2880
   End
   Begin VB.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "请输入编号、操作员、原密码和新密码"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   360
      Left            =   210
      TabIndex        =   10
      Top             =   105
      Width           =   6000
   End
   Begin VB.Label Label3 
      BackStyle       =   0  'Transparent
      Caption         =   "编  号                              操作员                              原密码                            新密码"
      Height          =   1875
      Left            =   885
      TabIndex        =   5
      Top             =   690
      Width           =   1005
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Height          =   465
      Left            =   4395
      TabIndex        =   4
      Top             =   2715
      Width           =   1560
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Height          =   465
      Left            =   2625
      TabIndex        =   3
      Top             =   2730
      Width           =   1560
   End
End
Attribute VB_Name = "main_xtgl_mmsz"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
 Data1.DatabaseName = App.Path & "\KFGL.MDB"     '自动识别数据库路径
End Sub
Private Sub Form_Activate()
 text1.SetFocus     'text1获得焦点
End Sub
Private Sub Form_Unload(Cancel As Integer)
 main.Enabled = True
End Sub
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
 If KeyCode = vbKeyReturn Then Text2.SetFocus     '回车text2获得焦点
End Sub
Private Sub text2_KeyDown(KeyCode As Integer, Shift As Integer)
 If KeyCode = vbKeyReturn Then Text3.SetFocus     '回车text3获得焦点
End Sub
Private Sub label1_Click()     '修改操作员密码
 Data1.RecordSource = "select * from qxsz where 操作员='" & text1.Text & "'"
 Data1.Refresh
 If text1.Text <> "" And Text2.Text <> "" And Text2.Text = Data1.Recordset.Fields("密码") Then
 If Text3.Text <> "" Then
  Data1.Recordset.Edit
  Data1.Recordset.Fields("密码") = Text3.Text
  MsgBox ("密码修改成功,退出操作员密码修改!")
  Data1.Recordset.Update
  main.Enabled = True
  Unload Me
 Else
  MsgBox ("请输入新密码!!")
 End If
 Else
 If text1.Text = "" Then
  MsgBox ("请输入操作员!")
  text1.SetFocus
 Else
  If text1.Text <> Data1.Recordset.Fields("操作员") Then
  text1.SetFocus
  text1.Text = ""
  MsgBox ("无此操作员,请重新输入!")
  End If
 End If
 If Text2.Text = "" Then
  MsgBox ("请输入操作员原密码!")
  Text2.SetFocus
 Else
  If Text2.Text <> ma.Text Then
   MsgBox ("原密码错误,请重新输入原密码!")
   Text2.SetFocus
  End If
 End If
 End If
End Sub
Private Sub label2_Click()
 main.Enabled = True
 Unload Me
End Sub

⌨️ 快捷键说明

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