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

📄 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    =   1755
   ClientLeft      =   4260
   ClientTop       =   3345
   ClientWidth     =   3150
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1755
   ScaleWidth      =   3150
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   360
      Top             =   2640
      Width           =   2895
      _ExtentX        =   5106
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      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=MRSOFT"
      OLEDBString     =   "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=MRSOFT"
      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 
      Height          =   375
      Left            =   1920
      TabIndex        =   9
      Text            =   "Text4"
      Top             =   2040
      Width           =   1215
   End
   Begin VB.TextBox Text3 
      Height          =   375
      Left            =   240
      TabIndex        =   8
      Text            =   "Text3"
      Top             =   2040
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Caption         =   "系统登录"
      Height          =   1335
      Left            =   0
      TabIndex        =   2
      Top             =   0
      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            =   "mr"
         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            =   1560
      TabIndex        =   1
      Top             =   1440
      Width           =   735
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   300
      Left            =   2400
      TabIndex        =   0
      Top             =   1440
      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
'Public adoCon As New ADODB.Connection
'Public adoRs As New ADODB.Recordset


Private Sub Command1_Click()
If frm_XTDL.Caption = "系统登录" Then
If Text2.Text = "mr" And Text1.Text = "mingrisoft" Then
 frm_XTDL.Hide
frm_main.Show
Else
'    Set adoCon = New ADODB.Connection
'    adoCon.Open "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Initial Catalog=Data_MRSOFT;Data Source=MRVB"
  Adodc1.RecordSource = "select * from Table_YHDL where 用户名 ='" & Text2.Text & "'"
  Adodc1.Refresh
  If Adodc1.Recordset.EOF Then
  MsgBox "对不起 没有此用户的信息"
  Text2.Text = ""
  Text1.Text = ""
  Else
   Adodc1.RecordSource = "select * from Table_YHDL where  口令='" & Text1.Text & "'"
   Adodc1.Refresh
   If Adodc1.Recordset.EOF Then
    MsgBox "密码不正确,请您确认后重新输入"
    Text1.Text = ""
    Text1.SetFocus
    Else
    frm_main.Show
    frm_XTDL.Hide
 End If
 End If
 End If
 ElseIf frm_XTDL.Caption = "系统初始化权限管理" Then
 If Text2.Text = "mr" And Text1.Text = "mingrisoft" Then
frm_SJQL.Show
 frm_XTDL.Hide
Else
 Adodc1.RecordSource = "select * from Table_YHDL where 用户名 ='" & Text2.Text & "'"
 Adodc1.Refresh
  If Adodc1.Recordset.EOF Then
 MsgBox "对不起 没有此用户的信息"
 Text2.Text = ""
 Text1.Text = ""
 Else
   Adodc1.RecordSource = "select * from Table_YHDL where  口令='" & Text1.Text & "'"
   Adodc1.Refresh
   If Adodc1.Recordset.EOF Then
    MsgBox "密码不正确,请您确认后重新输入"
    Text1.Text = ""
    Text1.SetFocus
    Else
    frm_SJQL.Show
    frm_XTDL.Hide
 End If
 End If
 End If
 Else
 End If

End Sub

Private Sub Command2_Click()
If frm_XTDL.Caption = "系统登录" Then
End
ElseIf frm_XTDL.Caption = "系统初始化权限管理" Then
frm_XTDL.Hide
Else
End If
End Sub


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

Private Sub Command4_Click()
frm_Databack.Show
frm_Databack.Left = 2255
frm_Databack.Top = 1600
frm_Databack.Caption = "数据库恢复"
frm_Databack.Option1.Value = 0
frm_Databack.Option2.Value = 1
frm_Databack.CmdBackup.Caption = "开始恢复"
  Unload frm_XTDL
  Unload frm_main

End Sub

Private Sub Form_Load()
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
End Sub

Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
   Call Command1_Click
Else
End If
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 + -