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

📄 dlufrm.frm

📁 一个vb工资管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form dlufrm 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "用户登录"
   ClientHeight    =   4125
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   6510
   Icon            =   "dlufrm.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Moveable        =   0   'False
   ScaleHeight     =   4125
   ScaleWidth      =   6510
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   ""
      DefaultCursorType=   0  '缺省游标
      DefaultType     =   2  '使用 ODBC
      Exclusive       =   0   'False
      Height          =   495
      Left            =   240
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   ""
      Top             =   120
      Visible         =   0   'False
      Width           =   1455
   End
   Begin VB.Frame Frame2 
      Height          =   975
      Left            =   240
      TabIndex        =   8
      Top             =   3000
      Width           =   5895
      Begin VB.CommandButton Command3 
         Caption         =   "选项(&X)"
         Height          =   495
         Left            =   4080
         TabIndex        =   11
         Top             =   240
         Width           =   1455
      End
      Begin VB.CommandButton Command2 
         Caption         =   "取消(&Q)"
         Height          =   495
         Left            =   2160
         TabIndex        =   10
         Top             =   240
         Width           =   1335
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确定(&Y)"
         Height          =   495
         Left            =   240
         TabIndex        =   9
         Top             =   240
         Width           =   1335
      End
   End
   Begin VB.Frame Frame1 
      Height          =   2295
      Left            =   240
      TabIndex        =   0
      Top             =   600
      Width           =   5895
      Begin VB.TextBox Text3 
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   1680
         PasswordChar    =   "*"
         TabIndex        =   7
         Top             =   1680
         Width           =   3855
      End
      Begin VB.TextBox Text2 
         Height          =   375
         Left            =   1680
         Locked          =   -1  'True
         TabIndex        =   6
         Top             =   960
         Width           =   3855
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   1680
         TabIndex        =   5
         Top             =   240
         Width           =   3855
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "操作员密码:"
         Height          =   180
         Left            =   360
         TabIndex        =   4
         Top             =   1800
         Width           =   1080
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "操作员姓名:"
         Height          =   180
         Left            =   360
         TabIndex        =   3
         Top             =   1080
         Width           =   1080
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "操作员代码:"
         Height          =   180
         Left            =   360
         TabIndex        =   2
         Top             =   360
         Width           =   1080
      End
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "工资管理系统用户登录"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   15
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000FF&
      Height          =   300
      Left            =   1920
      TabIndex        =   1
      Top             =   120
      Width           =   3150
   End
End
Attribute VB_Name = "dlufrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
  If Trim(Text3.Text) = Data1.Recordset.Fields(2) Then
     
        czy = Data1.Recordset.Fields(1)
        bz = Text1.Text
        Unload Me
        gzglxt.Show
  Else
     MsgBox "密码不符,请核对后再输入"
     Text3.Text = ""
     Text3.SetFocus
  End If
End Sub

Private Sub Command2_Click()
  End
End Sub

Private Sub Form_Load()
  Data1.DatabaseName = App.Path + "\gzglxt.mdb"
  Data1.RecordSource = "mmk"
  Data1.Refresh
End Sub

Private Sub Text1_Change()
  If Len(Text1.Text) >= 2 Then
     Data1.Recordset.FindFirst "czydm=" + "'" + Text1.Text + "'"
     If Data1.Recordset.NoMatch = True Then
        MsgBox "操作员代码不存在,请核对后再输入!"
        Text1.Text = ""
        Text1.SetFocus
     Else
        Text2.Text = Data1.Recordset.Fields(1)
        Text3.SetFocus
     End If
  End If
End Sub

Private Sub Text3_KeyPress(KeyAscii As Integer)
  If KeyAscii = 13 Then
     Command1.SetFocus
  End If
End Sub

⌨️ 快捷键说明

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