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

📄 frmpz_inputlocate.frm

📁 一个用VB写的财务软件源码
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmPZ_InputLocate 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "凭证修改定位"
   ClientHeight    =   1410
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   2955
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1410
   ScaleWidth      =   2955
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取消(&C)"
      Height          =   345
      Left            =   1560
      TabIndex        =   3
      Top             =   960
      Width           =   1065
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确定(&O)"
      Default         =   -1  'True
      Height          =   345
      Left            =   240
      TabIndex        =   2
      Top             =   960
      Width           =   1065
   End
   Begin VB.ComboBox cboPZZL 
      BackColor       =   &H80000014&
      Height          =   300
      Left            =   1440
      Style           =   2  'Dropdown List
      TabIndex        =   5
      Top             =   180
      Width           =   1395
   End
   Begin VB.TextBox txtPZBH 
      Alignment       =   1  'Right Justify
      BackColor       =   &H8000000E&
      Height          =   285
      Left            =   1440
      MaxLength       =   4
      TabIndex        =   1
      Top             =   555
      Width           =   1395
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "凭证编号(&Z):"
      Height          =   180
      Left            =   120
      TabIndex        =   0
      Top             =   600
      Width           =   1170
   End
   Begin VB.Label Label7 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "凭证类型(&L):"
      Height          =   180
      Left            =   120
      TabIndex        =   4
      Top             =   240
      Width           =   1170
   End
End
Attribute VB_Name = "frmPZ_InputLocate"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private m_sPZZL As String
Private m_cPzBh As String

Public OK As Boolean

Public Property Let usPZZL(ByVal NewPZZL As String)
    m_sPZZL = NewPZZL
End Property
Public Property Get usPZZL() As String
    usPZZL = m_sPZZL
End Property

Public Property Let usPZBH(ByVal NewPZBH As String)
    m_cPzBh = NewPZBH
End Property
Public Property Get usPZBH() As String
    usPZBH = m_cPzBh
End Property



Private Sub cmdCancel_Click()
    OK = False
    Me.Hide
End Sub

Private Sub cmdOk_Click()

    If Len(txtPZBH.text) <> 4 Then
        MsgBox "凭证编号的长度为四位!", vbInformation
        Exit Sub
    End If
    
    m_sPZZL = cboPzzl.text
    m_cPzBh = txtPZBH.text
    OK = True
    Me.Hide
    
End Sub





Private Sub Form_Initialize()
    OK = False
End Sub

Private Sub form_load()
    Dim rstPZZL As ADODB.Recordset
    
'   装入凭证种类
    Set rstPZZL = New ADODB.Recordset
    With rstPZZL
        .CursorLocation = adUseClient
        .Open "select * from tZW_type" & glo.sOperateYear & " order by signID", _
                    glo.cnnMain, adOpenStatic, adLockReadOnly
        If .RecordCount <> 0 Then
            .MoveFirst
            Do Until .EOF
                cboPzzl.AddItem .Fields("sign").Value
                .MoveNext
            Loop
            cboPzzl.ListIndex = 0
        End If
        .Close
    End With
    
End Sub

Private Sub txtPZBH_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then
        SendKeys "{tab}"
    Else
        KeyAscii = IntegerEnabled(KeyAscii)
    End If
End Sub

⌨️ 快捷键说明

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