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

📄 login.frm

📁 一个酒厂派车单管理系统,很方便的系统
💻 FRM
字号:
VERSION 5.00
Object = "{097F6A0C-0018-11D9-BA52-000D87CBA130}#1.0#0"; "TextEx.ocx"
Object = "{FF595003-27F5-4C41-AA2B-7BE9248B642D}#1.1#0"; "XPControl.ocx"
Begin VB.Form Login 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "系统登录"
   ClientHeight    =   1845
   ClientLeft      =   45
   ClientTop       =   390
   ClientWidth     =   5550
   ControlBox      =   0   'False
   Icon            =   "Login.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1845
   ScaleWidth      =   5550
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame1 
      Caption         =   "系统登录"
      Height          =   1455
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   3615
      Begin TextEx.VbTextEx VbTextEx2 
         Height          =   300
         Left            =   1560
         TabIndex        =   4
         Top             =   915
         Width           =   1815
         _ExtentX        =   3201
         _ExtentY        =   529
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         PasswordChar    =   "*"
         AutoSelectAll   =   -1  'True
      End
      Begin TextEx.VbTextEx VbTextEx1 
         Height          =   300
         Left            =   1560
         TabIndex        =   3
         Top             =   360
         Width           =   1815
         _ExtentX        =   3201
         _ExtentY        =   529
         BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         AutoSelectAll   =   -1  'True
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "口  令:"
         Height          =   180
         Left            =   840
         TabIndex        =   2
         Top             =   960
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "用户名:"
         Height          =   180
         Left            =   840
         TabIndex        =   1
         Top             =   405
         Width           =   720
      End
   End
   Begin xpControls.xpCommand xpCommand2 
      Height          =   375
      Left            =   3960
      TabIndex        =   5
      Top             =   720
      Width           =   1455
      _ExtentX        =   2566
      _ExtentY        =   661
      Caption         =   "退出系统(&E)"
      ForeColor       =   0
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Icon            =   "Login.frx":038A
   End
   Begin xpControls.xpCommand xpCommand1 
      Height          =   375
      Left            =   3960
      TabIndex        =   6
      Top             =   240
      Width           =   1455
      _ExtentX        =   2566
      _ExtentY        =   661
      Caption         =   "登录系统(&L)"
      ForeColor       =   0
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Icon            =   "Login.frx":0924
   End
End
Attribute VB_Name = "Login"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Conn As New ADODB.Connection
Private Rs As New ADODB.Recordset

Private Sub Form_Load()
If Conn.State = 1 Then Conn.Close
DBname = App.Path & "\xjdb.dll"
DBpass = "www.ahxc.net"
DBconn
Conn.Open Connstr
End Sub

Private Sub VbTextEx1_GotFocus()
xpCommand1.Default = False
End Sub

Private Sub VbTextEx2_GotFocus()
xpCommand1.Default = True
End Sub

Private Sub xpCommand1_Click()
'On Error Resume Next
If Conn.State = 1 Then
Sql = "select * from xjuser where username='" & Trim(VbTextEx1.Text) & "'"
If Rs.State = 1 Then Rs.Close
Rs.Open Sql, Conn, 1, 1
If Not (Rs.EOF And Rs.BOF) Then
If Rs("passs") = MD5.MD5(VbTextEx2.Text, 32) Then
Loguser = Rs("username")
Flags = Split(Rs("flags"), ",")
Car.Show
Unload Me
Exit Sub
End If
MsgBox "用户名或密码错误请重新登录!", 0 + 16 + 0
'VbTextEx1.Text = Sql
Exit Sub
End If
End If
End Sub

Private Sub xpCommand2_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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