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

📄 syslogin.frm

📁 一个酒厂派车单管理系统,很方便的系统
💻 FRM
字号:
VERSION 5.00
Object = "{097F6A0C-0018-11D9-BA52-000D87CBA130}#1.0#0"; "TextEx.ocx"
Begin VB.Form SysLogin 
   BorderStyle     =   3  'Fixed Dialog
   ClientHeight    =   4245
   ClientLeft      =   255
   ClientTop       =   1410
   ClientWidth     =   7380
   ClipControls    =   0   'False
   ControlBox      =   0   'False
   Icon            =   "SysLogin.frx":0000
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form2"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   4245
   ScaleWidth      =   7380
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame1 
      Height          =   4050
      Left            =   140
      TabIndex        =   0
      Top             =   60
      Width           =   7080
      Begin VB.PictureBox Picture1 
         Appearance      =   0  'Flat
         BackColor       =   &H80000005&
         BorderStyle     =   0  'None
         ForeColor       =   &H80000008&
         Height          =   1335
         Left            =   360
         Picture         =   "SysLogin.frx":628A
         ScaleHeight     =   1335
         ScaleWidth      =   6255
         TabIndex        =   9
         Top             =   360
         Width           =   6255
      End
      Begin VB.CommandButton xpCommand2 
         Caption         =   "退出系统(&E)"
         Height          =   375
         Left            =   4440
         TabIndex        =   8
         Top             =   2640
         Width           =   1335
      End
      Begin VB.CommandButton xpCommand1 
         Caption         =   "登录系统(&L)"
         Height          =   375
         Left            =   2880
         TabIndex        =   7
         Top             =   2640
         Width           =   1335
      End
      Begin TextEx.VbTextEx VbTextEx1 
         Height          =   300
         Left            =   1800
         TabIndex        =   3
         Top             =   2040
         Width           =   1455
         _ExtentX        =   2566
         _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 TextEx.VbTextEx VbTextEx2 
         Height          =   300
         Left            =   4200
         TabIndex        =   4
         Top             =   2040
         Width           =   1455
         _ExtentX        =   2566
         _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 VB.Label Vers 
         AutoSize        =   -1  'True
         Caption         =   "版本号:"
         Height          =   180
         Left            =   360
         TabIndex        =   10
         Top             =   2880
         Width           =   720
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "用户名:"
         Height          =   180
         Left            =   960
         TabIndex        =   6
         Top             =   2085
         Width           =   720
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "口  令:"
         Height          =   180
         Left            =   3405
         TabIndex        =   5
         Top             =   2085
         Width           =   720
      End
      Begin VB.Label lblCompany 
         AutoSize        =   -1  'True
         Caption         =   "Copyright(c)宣城庆平网络科技公司 1997 -2006"
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   1785
         TabIndex        =   2
         Top             =   3360
         Width           =   3570
      End
      Begin VB.Label lblWarning 
         Alignment       =   2  'Center
         Caption         =   "警告: 本程序受软件版权法保护,未经许可,禁止任意复制和传播。"
         BeginProperty Font 
            Name            =   "Arial"
            Size            =   8.25
            Charset         =   0
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   195
         Left            =   330
         TabIndex        =   1
         Top             =   3660
         Width           =   6495
      End
   End
End
Attribute VB_Name = "SysLogin"
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
Vers.Caption = "V1.0.2"
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 + -