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

📄 frm_logic.frm

📁 物业管理系统在一本书上的数据光盘
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frm_load 
   Caption         =   "登录窗口"
   ClientHeight    =   3390
   ClientLeft      =   1650
   ClientTop       =   2100
   ClientWidth     =   6480
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   3390
   ScaleWidth      =   6480
   StartUpPosition =   1  '所有者中心
   Begin MSComctlLib.ImageList ImageList1 
      Left            =   5070
      Top             =   780
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   32
      ImageHeight     =   32
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   1
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frm_logic.frx":0000
            Key             =   ""
         EndProperty
      EndProperty
   End
   Begin VB.Frame Frame1 
      Height          =   3480
      Left            =   2070
      TabIndex        =   0
      Top             =   -75
      Width           =   4425
      Begin MSComctlLib.ListView ListView1 
         Height          =   2115
         Left            =   30
         TabIndex        =   8
         Top             =   135
         Width           =   4350
         _ExtentX        =   7673
         _ExtentY        =   3731
         LabelWrap       =   -1  'True
         HideSelection   =   -1  'True
         _Version        =   393217
         Icons           =   "ImageList1"
         ForeColor       =   -2147483640
         BackColor       =   16777215
         BorderStyle     =   1
         Appearance      =   1
         NumItems        =   4
         BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            Object.Width           =   2540
         EndProperty
         BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            SubItemIndex    =   1
            Object.Width           =   2540
         EndProperty
         BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            SubItemIndex    =   2
            Object.Width           =   2540
         EndProperty
         BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628} 
            SubItemIndex    =   3
            Object.Width           =   2540
         EndProperty
      End
      Begin VB.CommandButton Command2 
         Caption         =   "退 出"
         Height          =   400
         Left            =   2220
         TabIndex        =   1
         Top             =   2940
         Width           =   1635
      End
      Begin VB.Frame Frame2 
         Height          =   660
         Left            =   60
         TabIndex        =   3
         Top             =   2175
         Width           =   4305
         Begin VB.TextBox Text2 
            BackColor       =   &H00FF8080&
            ForeColor       =   &H00FFFFFF&
            Height          =   300
            IMEMode         =   3  'DISABLE
            Left            =   3000
            MaxLength       =   6
            PasswordChar    =   "*"
            TabIndex        =   4
            Top             =   225
            Width           =   1215
         End
         Begin VB.TextBox Text1 
            BackColor       =   &H00FF8080&
            ForeColor       =   &H00FFFFFF&
            Height          =   285
            Left            =   885
            Locked          =   -1  'True
            TabIndex        =   5
            Top             =   225
            Width           =   1440
         End
         Begin VB.Label Label1 
            Caption         =   "用户名:"
            Height          =   225
            Left            =   150
            TabIndex        =   7
            Top             =   270
            Width           =   720
         End
         Begin VB.Label Label2 
            BackStyle       =   0  'Transparent
            Caption         =   "密码:"
            Height          =   240
            Left            =   2415
            TabIndex        =   6
            Top             =   270
            Width           =   570
         End
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确 定"
         Height          =   400
         Left            =   600
         TabIndex        =   2
         Top             =   2940
         Width           =   1635
      End
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   345
      Left            =   15
      Top             =   300
      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=D:\工程与实践\物业管理系统\program\db_wygl.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\工程与实践\物业管理系统\program\db_wygl.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.Image Image1 
      Height          =   3390
      Left            =   0
      Picture         =   "frm_logic.frx":1CDA
      Stretch         =   -1  'True
      Top             =   0
      Width           =   2055
   End
End
Attribute VB_Name = "frm_load"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim itmX As ListItem
Dim tim, i As Integer
Dim key, list As String
Private Sub Form_Load()
  Adodc1.RecordSource = "select * from tab_power "
  Adodc1.Refresh
  If Adodc1.Recordset.RecordCount > 0 Then
     Adodc1.Recordset.MoveFirst
     Do While Adodc1.Recordset.EOF = False
     key = Trim(Adodc1.Recordset.Fields("操作员姓名"))
     Set itmX = ListView1.ListItems.Add(, , key, 1)
     Adodc1.Recordset.MoveNext
     Loop
  End If
End Sub
Private Sub Text2_KeyDown(KeyCode As Integer, Shift As Integer)
  If KeyCode = 13 Then Command1.SetFocus
End Sub
Private Sub ListView1_DblClick()
If ListView1.ListItems.Count > 0 Then
   list = ListView1.SelectedItem
   Adodc1.RecordSource = "select * from tab_power where 操作员姓名 = '" + list + "'"
   Adodc1.Refresh
   With Adodc1.Recordset
        If .RecordCount > 0 Then
           Text1.Text = list
           Text2.SetFocus
        End If
   End With
Else
   MsgBox "请选择操作员!"
End If
End Sub
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
         Load Frm_main
         Frm_main.Show
         Unload Me
         For i = 2 To 8
         If .Fields(i) = -1 Then Frm_main.mnu1(i).Enabled = False Else Frm_main.mnu1(i).Enabled = True
         Next i
      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
  End If
  End With
End Sub
Private Sub Command2_Click()
  End
End Sub



⌨️ 快捷键说明

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