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

📄 frmaccountfixedasset.frm

📁 金算盘软件代码
💻 FRM
📖 第 1 页 / 共 5 页
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
Object = "{F6125AB1-8AB1-11CE-A77F-08002B2F4E98}#2.0#0"; "MSRDC20.OCX"
Object = "{0D452EE1-E08F-101A-852E-02608C4D0BB4}#2.0#0"; "FM20.DLL"
Object = "{9C4B12C2-D5CE-11D1-9ABC-444553540000}#1.0#0"; "GACEDIT.DLL"
Begin VB.Form frmAccountFixedAsset 
   Caption         =   "固定资产列表"
   ClientHeight    =   6270
   ClientLeft      =   60
   ClientTop       =   420
   ClientWidth     =   7020
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   6270
   ScaleWidth      =   7020
   Begin MSRDC.MSRDC Data1 
      Height          =   330
      Left            =   2880
      Top             =   5880
      Visible         =   0   'False
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   582
      _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 GATLCTRLLibCtl.CalEdit txtEdit 
      Height          =   255
      Left            =   4305
      OleObjectBlob   =   "frmAccountFixedAsset.frx":0000
      TabIndex        =   11
      Top             =   5910
      Visible         =   0   'False
      Width           =   765
   End
   Begin VB.CommandButton cmdSeekAgain 
      BeginProperty Font 
         Name            =   "System"
         Size            =   9.75
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   300
      Left            =   6600
      Style           =   1  'Graphical
      TabIndex        =   5
      TabStop         =   0   'False
      Tag             =   "1017"
      Top             =   60
      UseMaskColor    =   -1  'True
      Width           =   315
   End
   Begin MSFlexGridLib.MSFlexGrid msgGrid 
      Bindings        =   "frmAccountFixedAsset.frx":0081
      Height          =   4635
      Left            =   150
      TabIndex        =   0
      Top             =   975
      Width           =   6675
      _ExtentX        =   11774
      _ExtentY        =   8176
      _Version        =   393216
      Rows            =   20
      Cols            =   20
      FixedCols       =   0
      RowHeightMin    =   250
      BackColor       =   16777215
      FocusRect       =   2
      SelectionMode   =   1
   End
   Begin TabDlg.SSTab tabList 
      Height          =   5175
      Left            =   75
      TabIndex        =   4
      Top             =   570
      Width           =   6855
      _ExtentX        =   12091
      _ExtentY        =   9128
      _Version        =   393216
      Style           =   1
      TabHeight       =   520
      TabMaxWidth     =   1764
      TabCaption(0)   =   "变动资料(&Z)"
      TabPicture(0)   =   "frmAccountFixedAsset.frx":0095
      Tab(0).ControlEnabled=   -1  'True
      Tab(0).ControlCount=   0
      TabCaption(1)   =   "工作量(&W)"
      TabPicture(1)   =   "frmAccountFixedAsset.frx":00B1
      Tab(1).ControlEnabled=   0   'False
      Tab(1).ControlCount=   0
      TabCaption(2)   =   "固资卡片(&D)"
      TabPicture(2)   =   "frmAccountFixedAsset.frx":00CD
      Tab(2).ControlEnabled=   0   'False
      Tab(2).ControlCount=   0
   End
   Begin VB.Frame Frame1 
      Height          =   75
      Left            =   60
      TabIndex        =   3
      Top             =   390
      Width           =   6855
   End
   Begin VB.TextBox txtFind 
      Height          =   300
      Left            =   3870
      TabIndex        =   8
      Top             =   60
      Width           =   2685
   End
   Begin VB.ComboBox cboFind 
      Height          =   300
      Left            =   690
      Style           =   2  'Dropdown List
      TabIndex        =   2
      Top             =   60
      Width           =   1545
   End
   Begin MSForms.CommandButton cmdReport 
      Height          =   345
      Left            =   1320
      TabIndex        =   10
      Tag             =   "1018"
      Top             =   5850
      Width           =   1215
      Caption         =   "报表"
      PicturePosition =   196613
      Size            =   "2138;614"
      FontName        =   "宋体"
      FontHeight      =   180
      FontCharSet     =   134
      FontPitchAndFamily=   34
      ParagraphAlign  =   3
   End
   Begin MSForms.CommandButton cmdEdit 
      Height          =   345
      Left            =   105
      TabIndex        =   9
      Tag             =   "1018"
      Top             =   5850
      Width           =   1215
      Caption         =   "编辑"
      PicturePosition =   196613
      Size            =   "2138;614"
      FontName        =   "宋体"
      FontHeight      =   180
      FontCharSet     =   134
      FontPitchAndFamily=   34
      ParagraphAlign  =   3
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "内容(&C)"
      Height          =   180
      Index           =   1
      Left            =   3240
      TabIndex        =   7
      Top             =   120
      Width           =   630
   End
   Begin MSForms.CheckBox chkShowAll 
      Height          =   255
      Left            =   5910
      TabIndex        =   6
      Top             =   5880
      Visible         =   0   'False
      Width           =   1065
      VariousPropertyBits=   746588185
      BackColor       =   -2147483633
      ForeColor       =   -2147483630
      DisplayStyle    =   4
      Size            =   "1879;450"
      Value           =   "0"
      Caption         =   "全部显示"
      FontName        =   "宋体"
      FontEffects     =   1073750016
      FontHeight      =   180
      FontCharSet     =   134
      FontPitchAndFamily=   34
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "查找(&B)"
      Height          =   180
      Index           =   0
      Left            =   75
      TabIndex        =   1
      Top             =   135
      Width           =   630
   End
End
Attribute VB_Name = "frmAccountFixedAsset"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
''''''''''''''''''''''''''''''''''''''''''''''
'   固定资产列表窗体
'   作者:肖宇
'   日期:98-07-05
'
'   功能:
'       1.生成固资列表
'       2.固资的增加、减少及其它变动
'       3.固资卡片查阅
'       4.固资工作量录入
'       3.查看固资报表
'       5.生成凭证
'
''''''''''''''''''''''''''''''''''''''''''''''
Option Explicit

Private Const ViewID_Alter = 118
Private Const ViewID_Work = 119
Private Const ViewID_Card = 120

Private WithEvents mclsList As Grid                 'Grid类
Attribute mclsList.VB_VarHelpID = -1
Private WithEvents mclsMainControl As MainControl   'MainControl类
Attribute mclsMainControl.VB_VarHelpID = -1
Private WithEvents mclsSubClassform As SubClass32.SubClass
Attribute mclsSubClassform.VB_VarHelpID = -1

Private mblnFind As Boolean
Private mblnSort As Boolean
Private mintAction As Integer
Private mlngLastSortedCol As Long
Private mlngLastSortedType As Long

Private Sub Form_Deactivate()
    frmMain.SetEditUnEnabled
End Sub

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If KeyCode = 27 And Not txtEdit.Visible Then
        Unload Me
    End If
End Sub

Private Sub Form_Load()
    Screen.MousePointer = vbHourglass
    mintAction = -1
    mlngLastSortedType = 1
    mlngLastSortedCol = 0
    If gclsBase.AccountSys = "3" Then
        tabList.Tabs = 2
        tabList.TabCaption(1) = "固资卡片(&D)"
    End If
    Set mclsMainControl = gclsSys.MainControls.Add(Me)
    Set mclsSubClassform = New SubClass32.SubClass
    mclsSubClassform.hwnd = Me.hwnd
    mclsSubClassform.Messages(WM_GETMINMAXINFO) = True
    Set mclsList = New Grid
    chkShowAll_Click
    Me.HelpContextID = 61006
    Screen.MousePointer = vbDefault
    txtEdit.Visible = False
End Sub


Private Sub Form_Activate()
    Dim vntMessage As Variant
    
    gclsSys.CurrFormName = Me.hwnd
    SetHelpID HelpContextID
    RefreshMenu
    Select Case tabList.TabCaption(tabList.Tab)
    Case "变动资料(&Z)"
        For Each vntMessage In mclsMainControl.Messages
            If vntMessage = msgFixed Then
                mclsMainControl.Messages.Remove CStr(vntMessage) '清除消息
                RefreshAlterGrid
            End If
        Next
    Case "工作量(&W)"
        For Each vntMessage In mclsMainControl.Messages
            If vntMessage = msgFixed Then
                mclsMainControl.Messages.Remove CStr(vntMessage) '清除消息
                RefreshWorkGrid
            End If
        Next
    Case "固资卡片(&D)"
        For Each vntMessage In mclsMainControl.Messages
            If vntMessage = msgFixed Then
                mclsMainControl.Messages.Remove CStr(vntMessage) '清除消息
                RefreshCardGrid
            End If
        Next
    End Select
End Sub

'调整窗体上控件的位置
Private Sub Form_Resize()
    Dim lngCnt As Long
    Dim sngTmp As Single
    
    On Error Resume Next

⌨️ 快捷键说明

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