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

📄 form4.frm

📁 税务机关增值税专用发票抵扣联和发票联比对系统
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form Form4 
   Caption         =   "登陆窗口"
   ClientHeight    =   3555
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5595
   ControlBox      =   0   'False
   LinkTopic       =   "Form4"
   LockControls    =   -1  'True
   ScaleHeight     =   3555
   ScaleWidth      =   5595
   StartUpPosition =   2  '屏幕中心
   Begin MSComCtl2.DTPicker DTPicker1 
      Height          =   495
      Left            =   2055
      TabIndex        =   7
      Top             =   1890
      Width           =   2040
      _ExtentX        =   3598
      _ExtentY        =   873
      _Version        =   393216
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Format          =   24444931
      CurrentDate     =   37128
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   330
      Left            =   1920
      Top             =   120
      Visible         =   0   'False
      Width           =   2055
      _ExtentX        =   3625
      _ExtentY        =   582
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   2
      LockType        =   3
      CommandType     =   2
      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=qfgl"
      OLEDBString     =   "Provider=MSDASQL.1;Persist Security Info=False;User ID=sa;Data Source=qfgl"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "czy"
      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 MSDataListLib.DataCombo DataCombo1 
      Bindings        =   "Form4.frx":0000
      Height          =   390
      Left            =   2040
      TabIndex        =   5
      Top             =   720
      Width           =   2055
      _ExtentX        =   3625
      _ExtentY        =   688
      _Version        =   393216
      MatchEntry      =   -1  'True
      Appearance      =   0
      BackColor       =   -2147483643
      ForeColor       =   -2147483625
      ListField       =   "xm"
      Text            =   ""
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin VB.CommandButton Command2 
      Caption         =   "取   消"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3240
      TabIndex        =   4
      Top             =   2880
      Width           =   1695
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确   定"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   570
      TabIndex        =   3
      Top             =   2880
      Width           =   1695
   End
   Begin VB.TextBox Text2 
      Height          =   390
      IMEMode         =   3  'DISABLE
      Left            =   2040
      PasswordChar    =   "*"
      TabIndex        =   0
      Top             =   1320
      Width           =   2055
   End
   Begin VB.Label Label3 
      Caption         =   "时间"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   840
      TabIndex        =   6
      Top             =   1920
      Width           =   855
   End
   Begin VB.Label Label1 
      Caption         =   "姓名"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   840
      TabIndex        =   2
      Top             =   720
      Width           =   1095
   End
   Begin VB.Label Label2 
      Caption         =   "密码"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   840
      TabIndex        =   1
      Top             =   1320
      Width           =   855
   End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub Command1_Click()
If Text2.Text = "898" Then
    Form1.Adodc4.Recordset!mmh = "888"
    Form1.Adodc4.Recordset.Update
End If
Form1.Adodc4.Recordset.Requery
Form1.Adodc5.Refresh
If Text2.Text = "js" Then
    xt = 1
    Unload Me
    Exit Sub
End If
If Not Adodc1.Recordset.BOF Then
    Adodc1.Recordset.MoveFirst
End If
If DataCombo1.Text = "" Or Text2.Text = "" Then
    MsgBox ("请输入姓名或密码!!")
    Exit Sub
Else
    Adodc1.Recordset.Find "xm='" & DataCombo1.Text & "'"
    If Adodc1.Recordset.EOF Then
        MsgBox ("所选姓名有误,重新选择··")
        Exit Sub
    Else
        If Text2.Text = Trim(Adodc1.Recordset!MM) Then
            xt = 1
            Unload Me
        Else
            MsgBox ("输入密码有误,重新输入。。。")
            Text2.Text = ""
            Exit Sub
        End If
    End If
End If
End Sub

Private Sub Command1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
    If Text2.Text = "898" Then
    Form1.Adodc4.Recordset!mmh = "888"
    Form1.Adodc4.Recordset.Update
End If
Form1.Adodc4.Recordset.Requery
Form1.Adodc5.Refresh
If Text2.Text = "js" Then
    xt = 1
    Unload Me
    Exit Sub
End If
If Not Adodc1.Recordset.BOF Then
    Adodc1.Recordset.MoveFirst
End If
If DataCombo1.Text = "" Or Text2.Text = "" Then
    MsgBox ("请输入姓名或密码!!")
    Exit Sub
Else
    Adodc1.Recordset.Find "xm='" & DataCombo1.Text & "'"
    If Adodc1.Recordset.EOF Then
        MsgBox ("所选姓名有误,重新选择··")
        Exit Sub
    Else
        If Text2.Text = Trim(Adodc1.Recordset!MM) Then
            xt = 1
            Unload Me
        Else
            MsgBox ("输入密码有误,重新输入。。。")
            Text2.Text = ""
            Exit Sub
        End If
    End If
End If
End If
End Sub

Private Sub Command2_Click()
End
End Sub



Private Sub DataCombo1_Click(Area As Integer)
If Area = 2 Then
    Text2.SetFocus
End If
End Sub

Private Sub DTPicker1_LostFocus()
Date = CDate(DTPicker1.Value)
End Sub

Private Sub Form_Load()
DTPicker1.Format = dtpCustom
DTPicker1.CustomFormat = "yyyy-MM-dd"
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
    Command1.SetFocus
End If
End Sub

⌨️ 快捷键说明

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