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

📄 h_a_welcome.frm

📁 个人开发二手书交易系统,有书籍信息和订单信息的发布处理功能
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form a_welcome 
   AutoRedraw      =   -1  'True
   BorderStyle     =   1  'Fixed Single
   Caption         =   "登录二手书交易系统"
   ClientHeight    =   5130
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   7875
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5130
   ScaleWidth      =   7875
   StartUpPosition =   2  '屏幕中心
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   120
      Top             =   120
      Visible         =   0   'False
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   582
      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         =   ""
      OLEDBString     =   ""
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   ""
      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.CommandButton Command2 
      Caption         =   "退  出"
      Height          =   495
      Left            =   4800
      TabIndex        =   10
      Top             =   4320
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确  定"
      Height          =   495
      Left            =   1920
      TabIndex        =   9
      Top             =   4320
      Width           =   1215
   End
   Begin VB.Frame Frame1 
      Caption         =   "登陆"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   2415
      Left            =   1080
      TabIndex        =   2
      Top             =   1680
      Width           =   5775
      Begin VB.ComboBox Combo1 
         Height          =   300
         ItemData        =   "h_a_welcome.frx":0000
         Left            =   2160
         List            =   "h_a_welcome.frx":000D
         TabIndex        =   8
         Top             =   1440
         Width           =   1575
      End
      Begin VB.TextBox Text2 
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   2160
         PasswordChar    =   "*"
         TabIndex        =   7
         Top             =   960
         Width           =   2175
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   2160
         TabIndex        =   6
         Top             =   480
         Width           =   2175
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "登陆权限"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   720
         TabIndex        =   5
         Top             =   1560
         Width           =   855
      End
      Begin VB.Label Label4 
         AutoSize        =   -1  'True
         Caption         =   "密码"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   1080
         TabIndex        =   4
         Top             =   1080
         Width           =   495
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "帐号"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   210
         Left            =   1080
         TabIndex        =   3
         Top             =   600
         Width           =   420
      End
   End
   Begin VB.Label Label2 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      Caption         =   "上海财经大学二手书交易系统"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   21.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   435
      Left            =   0
      TabIndex        =   1
      Top             =   840
      Width           =   7995
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      AutoSize        =   -1  'True
      Caption         =   "欢迎使用"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   21.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   435
      Left            =   3090
      TabIndex        =   0
      Top             =   360
      Width           =   1815
   End
End
Attribute VB_Name = "a_welcome"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False




Private Sub Command1_Click()

If Combo1.Text = "user" Then




If Text1 = "" Then
MsgBox "请填写帐号!", vbOKOnly + vbExclamation, "提示"
Text1.SetFocus: Exit Sub
End If
 
 Adodc1.RecordSource = "select * from hy where id='" & Text1.Text & "'"
 Adodc1.Refresh

If Adodc1.Recordset.RecordCount <> 0 Then
    If Text2 = "" Then
    MsgBox "请输入密码!", vbOKOnly + vbExclamation, "提示"
    Text2.SetFocus: Exit Sub
    End If
    If Adodc1.Recordset.Fields("mima") = Text2 Then
    
    
    yhid = Text1                                        '传递用户帐号
    main.Show
    Unload Me
   '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
    
    Else
    MsgBox "密码错误!", vbOKOnly + vbExclamation, "提示"
    Text2 = ""
    Text2.SetFocus
    j = j + 1
    If j > 3 Then
    MsgBox "对不起,重试超过3次!", vbOKOnly + vbExclamation, "提示"
    Unload Me
    End If
    
    
   
 
   
: Exit Sub
 End If
Else
    MsgBox "帐号不存在,请重新输入!", vbOKOnly + vbExclamation, "提示"
    Text1 = ""
    Text2 = ""
    Text1.SetFocus: Exit Sub

   

       
End If

ElseIf Combo1.Text = "admin" Then

If Text1.Text = "" Then
MsgBox "请输入帐号!", vbOKOnly + vbExclamation, "提示"

Text1.SetFocus: Exit Sub

End If

If Text2.Text = "" Then
MsgBox "请输入密码!", vbOKOnly + vbExclamation, "提示"

Text2.SetFocus: Exit Sub


End If
Adodc1.RecordSource = "select * from gly where id= '" & Text1.Text & "'"
Adodc1.Refresh
If Adodc1.Recordset.RecordCount = 0 Then
MsgBox "查无此帐号,请重新输入!", vbOKOnly + vbExclamation, "提示"
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus: Exit Sub
End If

If Text2.Text = Adodc1.Recordset.Fields("mima") Then


glyid = Text1
main.Show '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Unload Me
Else
 q = MsgBox("密码不正确,请重新输入!!", vbOKOnly + vbExclamation, "提示")
    If q = vbOK Then
    i = i + 1
    Text2.Text = ""
    Text2.SetFocus
    End If
   If i >= 3 Then
    w = MsgBox("重试超过三次!", vbOKOnly + vbExclamation, "sorry!")
     If w = vbOK Then
Unload Me
     End If
     End If

End If


ElseIf Combo1.Text = "sysadmin" Then

msg = MsgBox("功能开发中,请选择其他操作", vbOKOnly + vbExclamation, "sorry!")
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus: Exit Sub
Else


End If


End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
Adodc1.ConnectionString = cns1 & App.Path & cns2
Adodc1.RecordSource = "select * from hy"
Adodc1.Refresh
yhid = ""             '初始化用户状态传递变量
mm = 0
j = 0          '初始化计数变量
i = 0
End Sub


⌨️ 快捷键说明

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