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

📄 frm_xtdl.frm

📁 房地产管理系统 对房地产的销售做日常的管理维护等
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frm_XTDL 
   Caption         =   "房地产销售管理系统"
   ClientHeight    =   1890
   ClientLeft      =   4260
   ClientTop       =   3345
   ClientWidth     =   3330
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1890
   ScaleWidth      =   3330
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   0
      Top             =   2160
      Width           =   2175
      _ExtentX        =   3836
      _ExtentY        =   661
      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=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=ljm"
      OLEDBString     =   "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=ljm"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from Table_YHDL"
      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.TextBox Text4 
      DataField       =   "口令"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   2160
      TabIndex        =   8
      Text            =   "Text4"
      Top             =   2160
      Width           =   1215
   End
   Begin VB.Frame Frame1 
      Caption         =   "系统登录"
      Height          =   1335
      Left            =   120
      TabIndex        =   2
      Top             =   120
      Width           =   3135
      Begin VB.CommandButton Command3 
         Caption         =   "<<"
         Height          =   310
         Left            =   2640
         TabIndex        =   7
         Top             =   360
         Width           =   350
      End
      Begin VB.TextBox Text2 
         Height          =   300
         Left            =   1200
         TabIndex        =   6
         Text            =   "Administrator"
         Top             =   360
         Width           =   1455
      End
      Begin VB.TextBox Text1 
         Height          =   300
         IMEMode         =   3  'DISABLE
         Left            =   1200
         PasswordChar    =   "*"
         TabIndex        =   3
         Top             =   840
         Width           =   1815
      End
      Begin VB.Label Label2 
         Caption         =   "口令"
         Height          =   255
         Left            =   240
         TabIndex        =   5
         Top             =   960
         Width           =   615
      End
      Begin VB.Label Label1 
         Caption         =   "用户名"
         Height          =   375
         Left            =   240
         TabIndex        =   4
         Top             =   480
         Width           =   735
      End
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   300
      Left            =   1680
      TabIndex        =   1
      Top             =   1560
      Width           =   735
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   300
      Left            =   2520
      TabIndex        =   0
      Top             =   1560
      Width           =   735
   End
End
Attribute VB_Name = "frm_XTDL"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False


Private Sub Command1_Click()
If Text2.Text = "Administrator" And Text1.Text = "ljm2004" Then
Unload Me
MDI_main.Show
Else
 Adodc1.RecordSource = "select * from Table_YHDL where 用户名 ='" & Text2.Text & "'"
 Adodc1.Refresh
  If Adodc1.Recordset.RecordCount > 0 Then
      If Text1.Text = Text4.Text Then
    frm_XTDL.Hide
    MDI_main.Show
      Else
      MsgBox "密码不正确,请您确认后重新输入"
      Text1.Text = ""
      Text1.SetFocus
      End If
  Else
  MsgBox "对不起 没有此用户的信息"
  Text2.Text = ""
  Text1.Text = ""
  End If
  End If
'MDI_main.StatusBar1.Panels.Item(2).Text = "当前操作员: " + frm_RYXS.ListView1.SelectedItem.Text
End Sub

Private Sub Command2_Click()
If frm_XTDL.Caption = "房地产销售管理系统" Then
End
ElseIf frm_XTDL.Caption = "数据清理权限管理" Then
Unload Me
Else
End If
End Sub


Private Sub Command3_Click()
'frm_XTDL.Hide
Unload Me
frm_RYXS.Show
frm_RYXS.Caption = "操作员选择"
End Sub

Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
If Text2.Text = "Administrator" And Text1.Text = "ljm2004" Then
frm_XTDL.Hide
MDI_main.Show
Else
 Adodc1.RecordSource = "select * from Table_YHDL where 用户名 ='" & Text2.Text & "'"
 Adodc1.Refresh
  If Adodc1.Recordset.RecordCount > 0 Then
      If Text1.Text = Text4.Text Then
frm_XTDL.Hide
     MDI_main.Show
      Else
      MsgBox "密码不正确,请您确认后重新输入"
      Text1.Text = ""
      Text1.SetFocus
      End If
  Else
  MsgBox "对不起 没有此用户的信息"
  Text2.Text = ""
  Text1.Text = ""
  End If
  End If
  Else
End If
'MDI_main.StatusBar1.Panels.Item(2).Text = "当前操作员: " + frm_RYXS.ListView1.SelectedItem.Text
End Sub

Private Sub Text2_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text1.SetFocus
Else
End If
End Sub

⌨️ 快捷键说明

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