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

📄 frmzongfen.frm

📁 财务管理信息系统
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         Appearance      =   1
         BackColor       =   -2147483643
         ForeColor       =   -2147483640
         Orientation     =   0
         Enabled         =   -1
         Connect         =   "DSN=ais"
         OLEDBString     =   ""
         OLEDBFile       =   ""
         DataSourceName  =   "ais"
         OtherAttributes =   ""
         UserName        =   ""
         Password        =   ""
         RecordSource    =   "select * from 本期汇总账簿"
         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 VB.CheckBox cbbCheck 
         Caption         =   "无发生金额的不显示"
         Height          =   255
         Left            =   360
         TabIndex        =   6
         Top             =   960
         Width           =   3975
      End
      Begin VB.CommandButton btnSearch 
         Caption         =   "搜索"
         Height          =   255
         Left            =   4200
         TabIndex        =   4
         Top             =   240
         Width           =   735
      End
      Begin VB.TextBox txbOne 
         Height          =   375
         Left            =   2280
         TabIndex        =   3
         Top             =   120
         Width           =   1575
      End
      Begin VB.Label lblCount 
         Height          =   255
         Left            =   120
         TabIndex        =   8
         Top             =   240
         Width           =   1215
      End
      Begin VB.Label Label2 
         Caption         =   "需要查询历史账簿,需要在""期末结帐""时将【本期汇总帐簿】表的数据倒入历史,实例不提供"
         Height          =   375
         Left            =   120
         TabIndex        =   5
         Top             =   600
         Width           =   8055
      End
      Begin VB.Label Label1 
         Caption         =   "科目代码"
         Height          =   255
         Left            =   1440
         TabIndex        =   2
         Top             =   240
         Width           =   855
      End
   End
   Begin MSComctlLib.Toolbar Toolbar1 
      Align           =   1  'Align Top
      Height          =   615
      Left            =   0
      TabIndex        =   0
      Top             =   0
      Width           =   9840
      _ExtentX        =   17357
      _ExtentY        =   1085
      ButtonWidth     =   1138
      ButtonHeight    =   926
      Appearance      =   1
      ImageList       =   "ImageList1"
      _Version        =   393216
      BeginProperty Buttons {66833FE8-8583-11D1-B16A-00C0F0283628} 
         NumButtons      =   5
         BeginProperty Button1 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "首记录"
            Key             =   "btnFirst"
            ImageIndex      =   1
         EndProperty
         BeginProperty Button2 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "上记录"
            Key             =   "btnBefore"
            ImageIndex      =   2
         EndProperty
         BeginProperty Button3 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "下记录"
            Key             =   "btnNext"
            ImageIndex      =   3
         EndProperty
         BeginProperty Button4 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "尾记录"
            Key             =   "btnLast"
            ImageIndex      =   4
         EndProperty
         BeginProperty Button5 {66833FEA-8583-11D1-B16A-00C0F0283628} 
            Caption         =   "退出"
            Key             =   "btnExit"
            ImageIndex      =   10
         EndProperty
      EndProperty
      Begin MSComctlLib.ImageList ImageList1 
         Left            =   7440
         Top             =   0
         _ExtentX        =   1005
         _ExtentY        =   1005
         BackColor       =   -2147483643
         ImageWidth      =   16
         ImageHeight     =   16
         MaskColor       =   12632256
         _Version        =   393216
         BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
            NumListImages   =   10
            BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmZongFen.frx":0457
               Key             =   ""
            EndProperty
            BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmZongFen.frx":0569
               Key             =   ""
            EndProperty
            BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmZongFen.frx":067B
               Key             =   ""
            EndProperty
            BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmZongFen.frx":078D
               Key             =   ""
            EndProperty
            BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmZongFen.frx":089F
               Key             =   ""
            EndProperty
            BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmZongFen.frx":09B1
               Key             =   ""
            EndProperty
            BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmZongFen.frx":0AC3
               Key             =   ""
            EndProperty
            BeginProperty ListImage8 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmZongFen.frx":0BD5
               Key             =   ""
            EndProperty
            BeginProperty ListImage9 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmZongFen.frx":0CE7
               Key             =   ""
            EndProperty
            BeginProperty ListImage10 {2C247F27-8591-11D1-B16A-00C0F0283628} 
               Picture         =   "frmZongFen.frx":0DF9
               Key             =   ""
            EndProperty
         EndProperty
      End
   End
End
Attribute VB_Name = "frmZongFen"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub LoadData()
    Dim strFilter As String
    If Len(Trim(Me.txbOne.Text)) = 0 Then
        If Me.cbbCheck.Value = 1 Then
            strFilter = "where 本期借方合计 <>0 or 本期贷方合计<>0"
        End If
    Else
        strFilter = "where 科目代码=" + Trim(Me.txbOne.Text)
        If Me.cbbCheck.Value = 1 Then
            strFilter = strFilter + " and (本期借方合计 <>0 or 本期贷方合计<>0)"
        End If
    End If
    Dim db As New DataBases
    Dim rs As Recordset
    Set rs = db.RunSelectSQL("select * from 本期汇总账簿  " + strFilter)
    Set Adodc1.Recordset = rs
    lblCount.Caption = "记录数:" + CStr(rs.RecordCount)
End Sub


Private Sub btnSearch_Click()
    LoadData
End Sub

Private Sub cbbCheck_Click()
    LoadData
End Sub

Private Sub form_load()
    Dim db As New DataBases
    Adodc1.ConnectionString = db.sConn
    LoadData
End Sub

Private Sub Toolbar1_ButtonClick(ByVal Button As MSComctlLib.Button)
    If StrComp(Button.Key, "btnFirst") = 0 Then
        Adodc1.Recordset.MoveFirst
    ElseIf StrComp(Button.Key, "btnBefore") = 0 Then
        Adodc1.Recordset.MovePrevious
    ElseIf StrComp(Button.Key, "btnNext") = 0 Then
        Adodc1.Recordset.MoveNext
    ElseIf StrComp(Button.Key, "btnLast") = 0 Then
        Adodc1.Recordset.MoveLast
    ElseIf StrComp(Button.Key, "btnExit") = 0 Then
        Hide
    End If
End Sub

⌨️ 快捷键说明

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