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

📄 pgpass.frm

📁 这是一个啤酒行业的软件,用VB6开发的
💻 FRM
字号:
VERSION 5.00
Begin VB.Form pgpass 
   Caption         =   "开票人员身份认证"
   ClientHeight    =   2970
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5145
   LinkTopic       =   "Form1"
   ScaleHeight     =   2970
   ScaleWidth      =   5145
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text1 
      Height          =   315
      IMEMode         =   3  'DISABLE
      Left            =   1830
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   1740
      Width           =   1455
   End
   Begin VB.ComboBox Combo2 
      Height          =   300
      Left            =   1830
      TabIndex        =   0
      Top             =   1020
      Width           =   1470
   End
   Begin VB.Label Label3 
      Caption         =   "请输入进入本系统的身份认证"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   225
      Left            =   990
      TabIndex        =   4
      Top             =   420
      Width           =   2865
   End
   Begin VB.Image Image1 
      Height          =   825
      Left            =   0
      Picture         =   "pgpass.frx":0000
      Top             =   120
      Width           =   825
   End
   Begin VB.Label Label1 
      Caption         =   "口    令"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   225
      Index           =   2
      Left            =   870
      TabIndex        =   3
      Top             =   1800
      Width           =   975
   End
   Begin VB.Label Label1 
      Caption         =   "操 作 员"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   225
      Index           =   0
      Left            =   870
      TabIndex        =   2
      Top             =   1080
      Width           =   945
   End
End
Attribute VB_Name = "pgpass"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim ENv As rdoEnvironment
Dim cn As rdoConnection
Dim result As rdoResultset
Dim result1 As rdoResultset
Dim d_conn, sql As String
Dim i, k, p, l As Integer

Private Sub Combo2_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
       KeyAscii = 0
       SendKeys "{tab}"
    End If
End Sub

Private Sub Form_Load()
    Move Screen.Width / 2 - pgpass.Width / 2, Screen.Height / 2 - pgpass.Height / 2 - 500
    Set ENv = rdoEnvironments(0)
     ENv.CursorDriver = rdUseOdbc
     d_conn = "uid=sa;pwd=;driver={SQL SERVER};SERVER=ntserver;database=rongpin2004;"
     Set cn = ENv.OpenConnection(dsname:="odbc_api_demo", Prompt:=rdodriverprompt, ReadOnly:=False, Connect:=d_conn)
     sql = "select *  from  pgpass"
     Set result = cn.OpenResultset(sql, rdOpenDynamic, rdConcurRowVer)
     If result.RowCount <> 0 Then
        Do While Not result.EOF()
           Combo2.AddItem result("姓名")
           result.MoveNext
        Loop
     End If
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
   If KeyAscii = 13 Then
        sql = "select * from pgpass where 姓名='" & Trim(Combo2.Text) & "' and  口令='" & Trim(Text1.Text) & "'"
        Set result = cn.OpenResultset(sql, rdOpenDynamic, rdConcurRowVer)
        If result.RowCount <> 0 Then
           username = Trim(Combo2.Text)
           username1 = Trim(Text1.Text)
           Unload Me
           pgmain.Show 1
        Else
           MsgBox "口令不对!!"
           Exit Sub
        End If
   End If
End Sub

⌨️ 快捷键说明

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