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

📄 frmac_detailselect.frm

📁 一个用VB写的财务软件源码
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
Begin VB.Form frmAC_DetailSelect 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "明细账:选择范围"
   ClientHeight    =   2895
   ClientLeft      =   3570
   ClientTop       =   2850
   ClientWidth     =   4770
   HelpContextID   =   1052
   Icon            =   "frmAC_DetailSelect.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2895
   ScaleWidth      =   4770
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  '屏幕中心
   WhatsThisButton =   -1  'True
   WhatsThisHelp   =   -1  'True
   Begin VB.CommandButton cmdFzCondition 
      Caption         =   "辅助条件"
      Height          =   345
      Left            =   3390
      TabIndex        =   27
      Top             =   2475
      Width           =   1065
   End
   Begin VB.Frame fraFzCondition 
      Height          =   1065
      Left            =   195
      TabIndex        =   24
      Top             =   2940
      Width           =   4215
      Begin VB.TextBox txtEndJe 
         Height          =   270
         Left            =   2880
         TabIndex        =   34
         Top             =   630
         Width           =   1095
      End
      Begin VB.TextBox txtStartJe 
         Height          =   285
         Left            =   855
         TabIndex        =   33
         Top             =   630
         Width           =   1095
      End
      Begin VB.CheckBox chkJe 
         Caption         =   "金额"
         Height          =   195
         Left            =   135
         TabIndex        =   32
         Top             =   675
         Width           =   690
      End
      Begin VB.TextBox txtZY 
         Height          =   270
         Left            =   840
         TabIndex        =   26
         Top             =   240
         Width           =   3135
      End
      Begin VB.CheckBox chkZy 
         Caption         =   "摘要"
         Height          =   255
         Left            =   120
         TabIndex        =   25
         Top             =   240
         Width           =   735
      End
      Begin VB.Line Line3 
         X1              =   2115
         X2              =   2745
         Y1              =   765
         Y2              =   765
      End
   End
   Begin VB.TextBox txtSubjectEnd 
      Height          =   285
      Left            =   1290
      MaxLength       =   18
      TabIndex        =   1
      Top             =   480
      Width           =   2760
   End
   Begin VB.CommandButton cmdSubjectEnd 
      Height          =   285
      Left            =   4080
      Picture         =   "frmAC_DetailSelect.frx":000C
      Style           =   1  'Graphical
      TabIndex        =   16
      Top             =   480
      Width           =   315
   End
   Begin VB.TextBox txtSubjectStart 
      Height          =   285
      Left            =   1290
      MaxLength       =   18
      TabIndex        =   0
      Top             =   60
      Width           =   2760
   End
   Begin VB.CommandButton cmdSubjectStart 
      Height          =   285
      Left            =   4080
      Picture         =   "frmAC_DetailSelect.frx":010E
      Style           =   1  'Graphical
      TabIndex        =   15
      Top             =   90
      Width           =   315
   End
   Begin VB.Frame Frame1 
      Height          =   1485
      Left            =   180
      TabIndex        =   14
      Top             =   840
      Width           =   4275
      Begin VB.CheckBox chkBlankKm 
         Caption         =   "包含空白科目"
         Height          =   285
         Left            =   2655
         TabIndex        =   10
         Top             =   1080
         Value           =   1  'Checked
         Width           =   1500
      End
      Begin VB.TextBox txtGradeEnd 
         Height          =   270
         Left            =   2520
         TabIndex        =   6
         Top             =   675
         Width           =   645
      End
      Begin VB.TextBox txtGradeStart 
         Height          =   270
         Left            =   1305
         TabIndex        =   5
         Top             =   675
         Width           =   645
      End
      Begin VB.CheckBox ChkTd 
         Caption         =   "套 打"
         Height          =   315
         Left            =   1800
         TabIndex        =   9
         Top             =   1080
         Visible         =   0   'False
         Width           =   855
      End
      Begin VB.CheckBox ChkNotRecord 
         Caption         =   "包含未记账凭证"
         Height          =   345
         Left            =   165
         TabIndex        =   8
         Top             =   1080
         Width           =   1815
      End
      Begin VB.CheckBox chkEndLevelSubject 
         Caption         =   "末级科目"
         Height          =   135
         Left            =   180
         TabIndex        =   7
         Top             =   1260
         Visible         =   0   'False
         Width           =   1035
      End
      Begin VB.TextBox txtMonthFrom 
         Enabled         =   0   'False
         Height          =   285
         Left            =   2040
         MaxLength       =   2
         TabIndex        =   3
         Top             =   240
         Width           =   360
      End
      Begin VB.TextBox txtYear 
         Height          =   285
         Left            =   1050
         Locked          =   -1  'True
         TabIndex        =   2
         Top             =   240
         Width           =   690
      End
      Begin VB.TextBox txtMonthTo 
         Enabled         =   0   'False
         Height          =   285
         Left            =   3330
         MaxLength       =   2
         TabIndex        =   4
         Top             =   240
         Width           =   360
      End
      Begin MSComCtl2.UpDown updMonthTo 
         Height          =   285
         Left            =   3690
         TabIndex        =   31
         Top             =   240
         Width           =   270
         _ExtentX        =   423
         _ExtentY        =   503
         _Version        =   393216
         Value           =   1
         BuddyControl    =   "txtMonthTo"
         BuddyDispid     =   196630
         OrigLeft        =   2820
         OrigTop         =   570
         OrigRight       =   3015
         OrigBottom      =   855
         Max             =   12
         SyncBuddy       =   -1  'True
         BuddyProperty   =   0
         Enabled         =   -1  'True
      End
      Begin MSComCtl2.UpDown updMonthFrom 
         Height          =   285
         Left            =   2400
         TabIndex        =   29
         Top             =   240
         Width           =   270
         _ExtentX        =   423
         _ExtentY        =   503
         _Version        =   393216
         Value           =   1
         BuddyControl    =   "txtMonthFrom"
         BuddyDispid     =   196628
         OrigLeft        =   2670
         OrigTop         =   270
         OrigRight       =   2940
         OrigBottom      =   555
         Max             =   12
         SyncBuddy       =   -1  'True
         BuddyProperty   =   0
         Enabled         =   -1  'True
      End
      Begin VB.Label Label9 
         Caption         =   "——"
         Height          =   240
         Left            =   2025
         TabIndex        =   30
         Top             =   720
         Width           =   420
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         Caption         =   "科目级次:"
         Height          =   180
         Left            =   180
         TabIndex        =   28
         Top             =   720
         Width           =   855
      End
      Begin VB.Label Label3 
         AutoSize        =   -1  'True
         Caption         =   "月"
         Height          =   180
         Left            =   2730
         TabIndex        =   23
         Top             =   315
         Width           =   180
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "年"
         Height          =   180
         Left            =   1800
         TabIndex        =   22
         Top             =   315
         Width           =   180
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "查询日期:"
         Height          =   180
         Left            =   180
         TabIndex        =   21
         Top             =   315
         Width           =   900
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         Caption         =   "月"
         Height          =   180
         Left            =   3990
         TabIndex        =   20
         Top             =   315
         Width           =   180
      End
      Begin VB.Label Label8 
         AutoSize        =   -1  'True
         Caption         =   "至"
         Height          =   180
         Left            =   3060
         TabIndex        =   19
         Top             =   315
         Width           =   180
      End
   End
   Begin VB.CommandButton cmdHelp 
      Caption         =   "帮助(&H)"
      CausesValidation=   0   'False
      Height          =   345
      Left            =   2310
      TabIndex        =   13
      Top             =   2475
      Width           =   1065
   End
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取消(&C)"
      CausesValidation=   0   'False
      Height          =   345
      Left            =   1230
      TabIndex        =   12
      Top             =   2475
      Width           =   1065
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确认(&O)"
      Height          =   345
      Left            =   150
      TabIndex        =   11
      Top             =   2475
      Width           =   1065
   End
   Begin VB.Label Label6 
      AutoSize        =   -1  'True
      Caption         =   "终止科目:"
      Height          =   180
      Left            =   330
      TabIndex        =   18
      Top             =   525
      Width           =   900
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      Caption         =   "起始科目:"
      Height          =   180
      Left            =   330
      TabIndex        =   17
      Top             =   150
      Width           =   900
   End
   Begin VB.Line Line1 
      X1              =   105
      X2              =   4485
      Y1              =   2385
      Y2              =   2385
   End
   Begin VB.Line Line2 
      BorderColor     =   &H80000005&
      X1              =   105
      X2              =   4485
      Y1              =   2430
      Y2              =   2430
   End
End
Attribute VB_Name = "frmAC_DetailSelect"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Dim CSubject As clsSubject

'开始科目代码和名称
Private m_sSubjectCodeStart As String
Private m_sSubjectNameStart As String

'终止科目代码,名称
Private m_sSubjectCodeEnd As String
Private m_sSubjectNameEnd As String
'末节科目标志
Private m_bMjFlag As Boolean
'包含未记账凭证
Private m_bIncludeNotRecord As Boolean
Public Ok As Boolean

Public Property Get usJcFlag() As Boolean
   If chkEndLevelSubject.value = 1 Then
       usJcFlag = True
   Else
       usJcFlag = False
   End If
End Property

Public Property Get usIncludeNRecordFlag() As Boolean
   If ChkNotRecord.value = 1 Then
       usIncludeNRecordFlag = True
   Else
       usIncludeNRecordFlag = False
   End If
End Property

Public Property Get usSubjectCodeStart() As String
    usSubjectCodeStart = m_sSubjectCodeStart
End Property

Public Property Get usSubjectNameStart() As String
    usSubjectNameStart = m_sSubjectNameStart
End Property

Public Property Get usSubjectCodeEnd() As String
    usSubjectCodeEnd = m_sSubjectCodeEnd
End Property

Public Property Get usSubjectNameEnd() As String
    usSubjectNameEnd = m_sSubjectNameEnd
End Property


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

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

Private Sub ChkNotRecord_KeyPress(KeyAscii As Integer)
    If KeyAscii = 13 Then

⌨️ 快捷键说明

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