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

📄 frmvouchermultilist.frm

📁 金算盘软件代码
💻 FRM
📖 第 1 页 / 共 4 页
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Object = "{6B7E6392-850A-101B-AFC0-4210102A8DA7}#1.3#0"; "COMCTL32.OCX"
Object = "{F6125AB1-8AB1-11CE-A77F-08002B2F4E98}#2.0#0"; "MSRDC20.OCX"
Begin VB.Form frmVoucherMultiList 
   AutoRedraw      =   -1  'True
   BackColor       =   &H80000004&
   Caption         =   "多张凭证复核"
   ClientHeight    =   4668
   ClientLeft      =   2580
   ClientTop       =   2592
   ClientWidth     =   7908
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   4665
   ScaleMode       =   0  'User
   ScaleWidth      =   8017.783
   StartUpPosition =   2  '屏幕中心
   Tag             =   "ctPayMethod////101"
   Begin MSRDC.MSRDC datGrid 
      Height          =   396
      Left            =   4128
      Top             =   2568
      Visible         =   0   'False
      Width           =   1188
      _ExtentX        =   2096
      _ExtentY        =   699
      _Version        =   393216
      Options         =   0
      CursorDriver    =   0
      BOFAction       =   0
      EOFAction       =   0
      RecordsetType   =   1
      LockType        =   3
      QueryType       =   0
      Prompt          =   3
      Appearance      =   1
      QueryTimeout    =   30
      RowsetSize      =   100
      LoginTimeout    =   15
      KeysetSize      =   0
      MaxRows         =   0
      ErrorThreshold  =   -1
      BatchSize       =   15
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Enabled         =   -1  'True
      ReadOnly        =   0   'False
      Appearance      =   -1  'True
      DataSourceName  =   ""
      RecordSource    =   ""
      UserName        =   ""
      Password        =   ""
      Connect         =   ""
      LogMessages     =   ""
      Caption         =   "MSRDC1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
   End
   Begin ComctlLib.ProgressBar ProgressBar1 
      Height          =   255
      Left            =   120
      TabIndex        =   8
      Top             =   4320
      Visible         =   0   'False
      Width           =   3495
      _ExtentX        =   6160
      _ExtentY        =   445
      _Version        =   327682
      Appearance      =   1
   End
   Begin VB.CommandButton cmdButton 
      Caption         =   "全部取消"
      Height          =   350
      Index           =   7
      Left            =   4080
      TabIndex        =   6
      Top             =   1545
      UseMaskColor    =   -1  'True
      Width           =   1215
   End
   Begin VB.CommandButton cmdButton 
      Caption         =   "全部选择"
      Height          =   350
      Index           =   5
      Left            =   4080
      TabIndex        =   4
      Top             =   825
      UseMaskColor    =   -1  'True
      Width           =   1215
   End
   Begin VB.CommandButton cmdButton 
      Caption         =   "条件选择"
      Height          =   350
      Index           =   6
      Left            =   4110
      TabIndex        =   5
      Top             =   1185
      UseMaskColor    =   -1  'True
      Width           =   1215
   End
   Begin MSFlexGridLib.MSFlexGrid grdList 
      Bindings        =   "frmVoucherMultiList.frx":0000
      Height          =   2355
      Left            =   90
      TabIndex        =   0
      Tag             =   "ctPayMethod////101"
      Top             =   45
      Width           =   3960
      _ExtentX        =   6985
      _ExtentY        =   4149
      _Version        =   393216
      Rows            =   20
      Cols            =   3
      FixedCols       =   0
      BackColor       =   16777215
      BackColorFixed  =   -2147483644
      BackColorSel    =   -2147483646
      BackColorBkg    =   16777215
      Redraw          =   -1  'True
      AllowBigSelection=   0   'False
      FocusRect       =   0
      SelectionMode   =   1
      AllowUserResizing=   1
   End
   Begin VB.CommandButton cmdButton 
      Height          =   350
      Index           =   8
      Left            =   4080
      Style           =   1  'Graphical
      TabIndex        =   7
      Tag             =   "1012"
      Top             =   1965
      UseMaskColor    =   -1  'True
      Width           =   1215
   End
   Begin VB.CommandButton cmdButton 
      Height          =   350
      Index           =   4
      Left            =   4080
      Style           =   1  'Graphical
      TabIndex        =   3
      Tag             =   "1002"
      Top             =   405
      UseMaskColor    =   -1  'True
      Width           =   1215
   End
   Begin VB.CommandButton cmdButton 
      Height          =   350
      Index           =   2
      Left            =   4080
      Style           =   1  'Graphical
      TabIndex        =   2
      Tag             =   "1307"
      Top             =   30
      UseMaskColor    =   -1  'True
      Width           =   1215
   End
   Begin VB.CommandButton cmdButton 
      Height          =   350
      Index           =   1
      Left            =   4080
      Style           =   1  'Graphical
      TabIndex        =   10
      TabStop         =   0   'False
      Tag             =   "1001"
      Top             =   45
      UseMaskColor    =   -1  'True
      Width           =   1215
   End
   Begin VB.CommandButton cmdButton 
      Height          =   350
      Index           =   0
      Left            =   4080
      Picture         =   "frmVoucherMultiList.frx":0016
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   45
      UseMaskColor    =   -1  'True
      Width           =   1215
   End
   Begin VB.CommandButton cmdButton 
      Height          =   350
      Index           =   3
      Left            =   4080
      Style           =   1  'Graphical
      TabIndex        =   9
      TabStop         =   0   'False
      Tag             =   "1001"
      Top             =   45
      UseMaskColor    =   -1  'True
      Width           =   1215
   End
End
Attribute VB_Name = "frmVoucherMultiList"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'王成

Option Explicit
Dim strSQL  As String
Public intFormType As String

Private WithEvents mclsSubClass As SubClass32.SubClass          '钩子对象
Attribute mclsSubClass.VB_VarHelpID = -1
Private WithEvents mclsSubClassform As SubClass32.SubClass
Attribute mclsSubClassform.VB_VarHelpID = -1
Private mclsList As list    '列表对象
Attribute mclsList.VB_VarHelpID = -1
Private mclsVoucher As clsVoucherMethod
'////////////////////////////////////////////////
'/////                赋值
'////////////////////////////////////////////////
Private Const intViewID = 692                           '凭证列表:不同的列表窗口,其值不同
Private Const lngBottonWidth = 1233
Private Const lngBottonHeight = 350

'Private WithEvents mclsMainControl As MainControl              '主控对象

Private thehWnd As Long
Private mblnIsSaveListset As Boolean                            'Whether or not save lngViewID in list
Private mblnIsFocus As Boolean    '
Private mlistID As Long

'凭证权限
Dim arrRights_Make()  As Long
Dim arrRights_Check() As Long '保存本人可复核/取消复核其他操作员的凭证的哪些操作员的ID(注意:数组不能包括当前操作员的ID:gclsBase.OperatorID,因为本人不能复核自己的凭证)
Dim arrRights_Post()  As Long '保存本人可记帐/取消记帐其他操作员的凭证的哪些操作员的ID

Public Sub SetFormType(FormType As Integer, argtheHwnd As Long)
    intFormType = FormType
    thehWnd = argtheHwnd
End Sub
Private Sub Form_KeyPress(KeyAscii As Integer)
    On Error Resume Next
    If KeyAscii = vbKeyEscape Then
        Unload Me
    ElseIf KeyAscii = vbKeyReturn Then
        BKKEY Me.ActiveControl.hwnd, vbKeyTab
    End If
End Sub

Private Sub cMsgBox(strMsg As String, Optional strTitle As String)
    If Trim(strTitle) = "" Then
        strTitle = "提示信息"
    End If

    ShowMsg thehWnd, strMsg, MB_OK + MB_ICONEXCLAMATION + MB_SYSTEMMODAL, strTitle
End Sub

Public Sub SetForm()
     Select Case intFormType
    Case 0
        Me.HelpContextID = 10210     '热键帮助(F1)
        Me.Caption = "多张凭证复核"
        cmdButton(0).Visible = True
        cmdButton(1).Visible = False
        cmdButton(2).Visible = False
        cmdButton(3).Visible = False
        cmdButton(0).Enabled = True
        cmdButton(1).Enabled = False
        cmdButton(2).Enabled = False
        cmdButton(3).Enabled = False
    Case 1
        Me.HelpContextID = 10211 '热键帮助(F1)
        Me.Caption = "多张复核取消"
        cmdButton(0).Visible = False
        cmdButton(1).Visible = True
        cmdButton(2).Visible = False
        cmdButton(3).Visible = False
        cmdButton(0).Enabled = False
        cmdButton(1).Enabled = True
        cmdButton(2).Enabled = False
        cmdButton(3).Enabled = False
    Case 2
        Me.HelpContextID = 10212 '热键帮助(F1)
        Me.Caption = "多张凭证记帐"
        cmdButton(0).Visible = False
        cmdButton(1).Visible = False
        cmdButton(2).Visible = True
        cmdButton(3).Visible = False
        cmdButton(0).Enabled = False
        cmdButton(1).Enabled = False
        cmdButton(2).Enabled = True
        cmdButton(3).Enabled = False
        cmdButton(3).BackColor = cmdButton(4).MaskColor
    Case 3
        Me.HelpContextID = 10213  '热键帮助(F1)
        Me.Caption = "多张记帐取消"
        cmdButton(0).Visible = False
        cmdButton(1).Visible = False
        cmdButton(2).Visible = False
        cmdButton(3).Visible = True
        cmdButton(0).Enabled = False
        cmdButton(1).Enabled = False
        cmdButton(2).Enabled = False
        cmdButton(3).Enabled = True
    End Select
End Sub
Private Sub GotoRow(lngRow As Long)
    With grdList
        .Row = lngRow
        .ColSel = .Cols - 1
    End With
End Sub

'返回行为row,列为col的cell在TextArray中的位置
Private Function pos(Row As Long, col As Long)
    pos = col + grdList.Cols * Row
End Function

'获得当前行的lngVoucherID
Private Function GetlngVoucherID() As Long

⌨️ 快捷键说明

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