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

📄 czy_mm.frm

📁 这是一个医院管理系统中的院长查询模块
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form13 
   BackColor       =   &H00C0C0FF&
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "操作员口令更改..."
   ClientHeight    =   2970
   ClientLeft      =   3705
   ClientTop       =   2700
   ClientWidth     =   4920
   ClipControls    =   0   'False
   ControlBox      =   0   'False
   BeginProperty Font 
      Name            =   "隶书"
      Size            =   12
      Charset         =   134
      Weight          =   700
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   Icon            =   "CZY_MM.frx":0000
   LinkTopic       =   "Form13"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2970
   ScaleWidth      =   4920
   ShowInTaskbar   =   0   'False
   Begin VB.TextBox Text5 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   330
      IMEMode         =   3  'DISABLE
      Left            =   2175
      MaxLength       =   15
      PasswordChar    =   "*"
      TabIndex        =   3
      ToolTipText     =   "请输入密码"
      Top             =   2025
      Width           =   2055
   End
   Begin VB.TextBox Text4 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   330
      IMEMode         =   3  'DISABLE
      Left            =   2175
      MaxLength       =   15
      PasswordChar    =   "*"
      TabIndex        =   2
      ToolTipText     =   "请输入密码"
      Top             =   1575
      Width           =   2055
   End
   Begin VB.TextBox Text1 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   11.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   330
      IMEMode         =   3  'DISABLE
      Left            =   2145
      MaxLength       =   15
      TabIndex        =   0
      ToolTipText     =   "请输入操作员代码"
      Top             =   270
      Width           =   2070
   End
   Begin VB.TextBox Text2 
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   330
      IMEMode         =   3  'DISABLE
      Left            =   2160
      MaxLength       =   15
      PasswordChar    =   "*"
      TabIndex        =   1
      ToolTipText     =   "请输入密码"
      Top             =   1140
      Width           =   2055
   End
   Begin VB.CommandButton Command1 
      BackColor       =   &H00C0C0FF&
      Caption         =   "确定&Y"
      Height          =   330
      Left            =   885
      MaskColor       =   &H00FFFFFF&
      Style           =   1  'Graphical
      TabIndex        =   4
      Top             =   2520
      Width           =   1500
   End
   Begin VB.CommandButton Command2 
      BackColor       =   &H00C0C0FF&
      Cancel          =   -1  'True
      Caption         =   "返回&Q"
      Height          =   330
      Left            =   2685
      MaskColor       =   &H00FFFFFF&
      Style           =   1  'Graphical
      TabIndex        =   6
      Top             =   2520
      Width           =   1500
   End
   Begin VB.TextBox Text3 
      DataField       =   "cZY_name"
      DataSource      =   "Data1"
      Enabled         =   0   'False
      ForeColor       =   &H000000FF&
      Height          =   330
      IMEMode         =   3  'DISABLE
      Left            =   2145
      MaxLength       =   15
      TabIndex        =   5
      Top             =   690
      Width           =   2070
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "odbc;uid=sa;pwd=lpcy;database=yd_MZ;"
      DatabaseName    =   "ydhismz"
      DefaultCursorType=   0  'DefaultCursor
      DefaultType     =   2  'UseODBC
      Exclusive       =   0   'False
      Height          =   345
      Left            =   4860
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   "dbo.cmz_table"
      Top             =   2205
      Visible         =   0   'False
      Width           =   1215
   End
   Begin VB.Label Label5 
      BackStyle       =   0  'Transparent
      Caption         =   "新口令确认:"
      ForeColor       =   &H000000FF&
      Height          =   285
      Left            =   615
      TabIndex        =   11
      Top             =   2070
      Width           =   1860
   End
   Begin VB.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "  新口令:"
      ForeColor       =   &H000000FF&
      Height          =   285
      Left            =   615
      TabIndex        =   10
      Top             =   1620
      Width           =   1860
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "操作员代码:"
      ForeColor       =   &H00FF0000&
      Height          =   240
      Left            =   600
      TabIndex        =   9
      Top             =   315
      Width           =   1770
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Caption         =   "  旧口令:"
      ForeColor       =   &H00FF0000&
      Height          =   285
      Left            =   600
      TabIndex        =   8
      Top             =   1170
      Width           =   1860
   End
   Begin VB.Label Label3 
      BackStyle       =   0  'Transparent
      Caption         =   "   姓 名:"
      ForeColor       =   &H000000FF&
      Height          =   240
      Left            =   600
      TabIndex        =   7
      Top             =   735
      Width           =   1770
   End
End
Attribute VB_Name = "Form13"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1 = "" Or Text4 = "" Or Text5 = "" Then
MsgBox "请注意: 输入信息错误,请重新输入!"
Exit Sub
End If
If Text3 = " " Then
MsgBox "操作员代码输入错误,请注意大小写,然后重新录入!"
Text1 = ""
Text2 = ""
Text4 = ""
Text5 = ""
Text1.SetFocus
Exit Sub
End If
If Data1.Recordset!CZY_MM = DxMmm(Text2) Then
If Text4 <> Text5 Then
MsgBox "输入的新口令不能确认,请重新输入!"
Text4 = ""
Text5 = ""
Text4.SetFocus
Exit Sub
End If
Data1.Recordset.edit
Data1.Recordset!CZY_MM = DxMmm(Text4)
Data1.Recordset.Update
mmm.Data1.Refresh
MsgBox "成功更改口令!"
Unload Me
End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
Data1.Connect = DxPassWord
Data1.DatabaseName = "207his"
Data1.RecordSource = "SELECT * FROM CZY_TABLE WHERE KS = 'WWWW'"
End Sub

Private Sub Form_Unload(Cancel As Integer)
Form3.Enabled = True
Form3.SetFocus
End Sub

Private Sub Text1_Change()
If Len(Text1) > 2 Then
Data1.RecordSource = "SELECT * FROM CZY_TABLE WHERE CZY_id='" + Text1 + "'"
Data1.Refresh
If Text3 <> "" Then
Text2.SetFocus
End If
End If
End Sub

Private Sub Text2_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text4.SetFocus
End If
End Sub


Private Sub Text4_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text5.SetFocus
End If
End Sub


Private Sub Text5_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Command1.SetFocus
End If
End Sub

⌨️ 快捷键说明

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