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

📄 frm_load.frm

📁 我大学时候用vb做的物业管理系统
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Frm_load 
   BackColor       =   &H00C0FFFF&
   BorderStyle     =   0  'None
   Caption         =   "登陆"
   ClientHeight    =   3000
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   5895
   Icon            =   "Frm_load.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "Frm_load.frx":0CCA
   ScaleHeight     =   3000
   ScaleWidth      =   5895
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.PictureBox Picture1 
      BackColor       =   &H00FFFFFF&
      BorderStyle     =   0  'None
      Height          =   885
      Left            =   30
      Picture         =   "Frm_load.frx":61B4
      ScaleHeight     =   885
      ScaleWidth      =   5895
      TabIndex        =   8
      Top             =   0
      Width           =   5895
   End
   Begin VB.ComboBox Combo1 
      BackColor       =   &H00FF8080&
      ForeColor       =   &H00FFFFFF&
      Height          =   300
      ItemData        =   "Frm_load.frx":B4AB
      Left            =   1530
      List            =   "Frm_load.frx":B4B8
      TabIndex        =   2
      Top             =   1920
      Width           =   3765
   End
   Begin VB.TextBox Text2 
      BackColor       =   &H00FF8080&
      ForeColor       =   &H00FFFFFF&
      Height          =   300
      IMEMode         =   3  'DISABLE
      Left            =   1530
      MaxLength       =   6
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   1500
      Width           =   3765
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H00FF8080&
      ForeColor       =   &H00FFFFFF&
      Height          =   285
      Left            =   1530
      TabIndex        =   0
      Top             =   1155
      Width           =   3780
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确 定"
      Height          =   375
      Left            =   1710
      TabIndex        =   3
      Top             =   2460
      Width           =   945
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取 消"
      Height          =   375
      Left            =   3480
      TabIndex        =   5
      Top             =   2460
      Width           =   945
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   345
      Left            =   1260
      Top             =   3270
      Visible         =   0   'False
      Width           =   2025
      _ExtentX        =   3572
      _ExtentY        =   609
      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         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\毕业设计\TIZIANO.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\毕业设计\TIZIANO.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from tab_power"
      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.Label Label3 
      BackStyle       =   0  'Transparent
      Caption         =   "密  码:"
      Height          =   225
      Left            =   540
      TabIndex        =   7
      Top             =   1560
      Width           =   720
   End
   Begin VB.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "权限组:"
      Height          =   225
      Left            =   540
      TabIndex        =   6
      Top             =   1980
      Width           =   720
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "用户名:"
      Height          =   225
      Left            =   540
      TabIndex        =   4
      Top             =   1170
      Width           =   720
   End
End
Attribute VB_Name = "Frm_load"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public zt As String
Public group As String
Dim tim As Integer


Private Sub Command1_Click()
  If Trim(Text2.Text) = "" Then
     MsgBox "密码不能为空!"
     Exit Sub
  End If
  If Trim(Text1.Text) = "" Then
     MsgBox "操作员不能为空!"
     Exit Sub
  End If
  Dim message As String
  Adodc1.RecordSource = "select * from tab_power where 操作员姓名 = '" + Trim(Text1.Text) + "'"
  Adodc1.Refresh
  With Adodc1.Recordset
  If .RecordCount > 0 Then
      If Text2.Text = Trim(.Fields("密码")) Then
         If Combo1.Text = Trim(.Fields("组名")) Then
           .Fields(4) = 1 '设置当前登陆用户标识
           .Update
           zt = .Fields(4)
           group = .Fields(2)
           Load Frm_main
           Frm_main.Show
           Unload Me
         Else
           MsgBox "您选择的用户组有误,请重新选择!"
           Combo1.SetFocus
          End If
      Else
        MsgBox "密码错误,请重新输入密码!", 48, "物业管理系统"
        tim = tim + 1
        If tim = 3 Then
           message = MsgBox("密码输入错误,请向系统管理员查询!", 0, "")
           If message = vbOK Then End
        End If
        Text2.SetFocus
        Text2.Text = ""
     End If
  Else
   MsgBox "您输入的用户名不存在,请重新输入!", 48, "物业管理系统"
   Text1.Text = ""
   Text2.Text = ""
   
   Text1.SetFocus
  End If
  End With
End Sub
Private Sub Command2_Click()
  End
End Sub

⌨️ 快捷键说明

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