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

📄 main_xtgl_mm.frm

📁 商品进销存管理系统 采用VB和SQL2000开发 具有很强的实用性
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form main_xtgl_mm 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "系统管理-【密码修改】"
   ClientHeight    =   3105
   ClientLeft      =   2715
   ClientTop       =   3690
   ClientWidth     =   6525
   Icon            =   "main_xtgl_mm.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   3105
   ScaleWidth      =   6525
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Tag             =   "修改密码"
   Begin MSAdodcLib.Adodc Ado_update 
      Height          =   330
      Left            =   1245
      Top             =   4410
      Width           =   1650
      _ExtentX        =   2910
      _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.CommandButton Command2 
      Caption         =   "取消"
      Height          =   390
      Left            =   3360
      Picture         =   "main_xtgl_mm.frx":038A
      TabIndex        =   2
      TabStop         =   0   'False
      Top             =   2640
      Width           =   1575
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   390
      Left            =   1605
      Picture         =   "main_xtgl_mm.frx":1D44
      TabIndex        =   1
      Top             =   2640
      Width           =   1575
   End
   Begin VB.Frame Frame1 
      Height          =   2535
      Left            =   30
      TabIndex        =   3
      Top             =   -60
      Width           =   6465
      Begin VB.TextBox Text1 
         BackColor       =   &H00FFFFFF&
         Height          =   315
         IMEMode         =   3  'DISABLE
         Index           =   2
         Left            =   2130
         PasswordChar    =   "*"
         TabIndex        =   7
         Top             =   1860
         Width           =   2880
      End
      Begin VB.TextBox Text1 
         BackColor       =   &H00FFFFFF&
         Height          =   315
         IMEMode         =   3  'DISABLE
         Index           =   1
         Left            =   2130
         PasswordChar    =   "*"
         TabIndex        =   6
         Top             =   1305
         Width           =   2880
      End
      Begin VB.TextBox Text1 
         BackColor       =   &H00FFFFFF&
         Height          =   315
         Index           =   0
         Left            =   2130
         TabIndex        =   0
         Top             =   765
         Width           =   2880
      End
      Begin VB.Label Label1 
         BackStyle       =   0  'Transparent
         Caption         =   "请输入操作员、原密码及新密码"
         ForeColor       =   &H000000FF&
         Height          =   225
         Left            =   180
         TabIndex        =   5
         Top             =   315
         Width           =   4290
      End
      Begin VB.Label Label2 
         BackStyle       =   0  'Transparent
         Caption         =   "操作员                原密码                  新密码"
         Height          =   1365
         Left            =   1425
         TabIndex        =   4
         Top             =   825
         Width           =   690
      End
   End
End
Attribute VB_Name = "main_xtgl_mm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'*************************************************************************
'**模 块 名:main_xtgl_mm
'**版权说明:吉林省明日科技有限公司享有本软件的所有版权,如果本软件用于商
'**          业用途,必须经过吉林省明日科技有限公司授权。如果提供网上免费
'**          下载,必须经过吉林省明日科技有限公司授权,并保证程序的完整,
'**          不得修改代码、注释和相关内容,否则,我公司将追究其法律责任
'**网    址:www.mingrisoft.com  价值无限,服务无限
'**电    话:(0431)84978981,84978982
'**创 建 人:明日科技
'**日    期:2007-10-31
'**修 改 人:MRLBB
'**日    期:2007-10-31
'**描    述:
'*************************************************************************

Private Sub Form_Load()
    If bFlag = True Then
        Text1(0) = main_xtgl_czqx.DataList1.BoundText
    Else
       Text1(0).text = OP
    End If
    Ado_update.ConnectionString = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=db_JXC;Data Source=."
End Sub

Private Sub text1_GotFocus(Index As Integer)
    Text1(Index).BackColor = &HFFFF80
    Text1(Index).SelStart = 0
    Text1(Index).SelLength = Len(Text1(Index))
End Sub
Private Sub text1_LostFocus(Index As Integer)
    Text1(Index).BackColor = &HFFFFFF
End Sub
Private Sub Text1_KeyDown(Index As Integer, KeyCode As Integer, Shift As Integer)
    If KeyCode = vbKeyReturn And Index < 2 Then Text1(Index + 1).SetFocus
    If KeyCode = vbKeyReturn And Index = 2 Then Command1.SetFocus
    If KeyCode = vbKeyUp And Index > 0 Then Text1(Index - 1).SetFocus
End Sub

Private Sub Command1_Click()     '确认修改操作员信息
    Dim rs1 As New ADODB.Recordset
    If Len(Text1(0)) = 0 Then
        MsgBox "请输入操作员!"
        Exit Sub
    End If
    If Len(Text1(1)) = 0 Then
        MsgBox "请输入原密码!"
        Exit Sub
    End If

    Ado_update.RecordSource = "tb_power where 操作员='" + Text1(0).text + "'"
    Ado_update.Refresh
'     rs1.Open "tb_power where 操作员='" + Text1(0).text + "'", Cnn, adOpenStatic  '查询操作员信息
    If Ado_update.Recordset.RecordCount > 0 Then
        If Text1(1) <> Ado_update.Recordset.Fields("密码") Then

            MsgBox "原密码不正确!"

            Text1(1).SetFocus
        Else
            If Len(Text1(2)) = 0 Then
                MsgBox "请输入新密码!"
                Text1(2).SetFocus
            Else
                Ado_update.Recordset.Fields("密码") = Text1(2)
                Ado_update.Recordset.Update
                Ado_update.Refresh
                MsgBox "密码修改成功!"
                RegInfo Me
                Command2_Click
            End If
        End If
    Else
        MsgBox "操作员不正确!"
        Text1(0).SetFocus
    End If
End Sub
Private Sub Command2_Click()
  Unload Me
End Sub

⌨️ 快捷键说明

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