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

📄 frmusu_jsfs.frm

📁 一个用VB写的财务软件源码
💻 FRM
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form frmUSU_Jsfs 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "结算方式选择"
   ClientHeight    =   5715
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3735
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   5715
   ScaleWidth      =   3735
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  '所有者中心
   Begin VB.CommandButton cmdCancel 
      Cancel          =   -1  'True
      Caption         =   "取消(&C)"
      Height          =   345
      Left            =   2645
      TabIndex        =   2
      Top             =   5310
      Width           =   1065
   End
   Begin VB.CommandButton cmdOk 
      Caption         =   "确定(&O)"
      Default         =   -1  'True
      Height          =   345
      Left            =   1440
      TabIndex        =   1
      Top             =   5310
      Width           =   1065
   End
   Begin MSComctlLib.TreeView tvwJsfs 
      Height          =   5235
      Left            =   50
      TabIndex        =   0
      Top             =   0
      Width           =   3660
      _ExtentX        =   6456
      _ExtentY        =   9234
      _Version        =   393217
      HideSelection   =   0   'False
      LabelEdit       =   1
      Style           =   7
      ImageList       =   "ImageList2"
      Appearance      =   1
   End
   Begin MSComctlLib.ImageList ImageList2 
      Left            =   0
      Top             =   0
      _ExtentX        =   1005
      _ExtentY        =   1005
      BackColor       =   -2147483643
      ImageWidth      =   16
      ImageHeight     =   16
      MaskColor       =   12632256
      _Version        =   393216
      BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628} 
         NumListImages   =   3
         BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmUSU_Jsfs.frx":0000
            Key             =   "Collapse"
         EndProperty
         BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmUSU_Jsfs.frx":0454
            Key             =   "Expand"
         EndProperty
         BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628} 
            Picture         =   "frmUSU_Jsfs.frx":08A8
            Key             =   "Root"
         EndProperty
      EndProperty
   End
End
Attribute VB_Name = "frmUSU_Jsfs"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Public Valid As Boolean         '确定或取消有效性

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

Private Sub cmdOk_Click()
    MousePointer = vbHourglass
    Valid = True
    If tvwJsfs.SelectedItem.Key <> "R" Then
        Me.Hide
    End If
    MousePointer = vbDefault
End Sub

Private Sub form_load()
    Dim rstTemp As ADODB.Recordset
    
    Set rstTemp = New ADODB.Recordset
    rstTemp.CursorLocation = adUseClient
        '打开数据集。
    If rstTemp.State = adStateClosed Then rstTemp.Open "Select * from tZW_Jsfs" & glo.sOperateYear & " order by cCode", glo.cnnMain, adOpenStatic, adLockOptimistic
        '赋类的记录集
    '装载树
    tvwJsfs.Nodes.Add , , "R", "结算方式", "Root"
    tvwJsfs.Nodes("R").Expanded = True
    LoadTvw rstTemp, tvwJsfs, "R", "cCode", "cName", "Collapse", "Expand", "bEnd"
    rstTemp.Close
    Set rstTemp = Nothing
End Sub

Private Sub tvwJsfs_DblClick()
    Valid = True
    If tvwJsfs.SelectedItem.Key <> "R" Then
        Me.Hide
    End If
End Sub
Public Property Get JsfsName() As String
    JsfsName = Mid(tvwJsfs.SelectedItem, InStr(tvwJsfs.SelectedItem, "=") + 1)
End Property
Public Property Get JsfsCode() As String
    JsfsCode = Right(tvwJsfs.SelectedItem.Key, Len(tvwJsfs.SelectedItem.Key) - 1)
End Property

⌨️ 快捷键说明

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