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

📄 frmfixedinit.frm

📁 金算盘软件代码
💻 FRM
📖 第 1 页 / 共 3 页
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Object = "{0D452EE1-E08F-101A-852E-02608C4D0BB4}#2.0#0"; "FM20.DLL"
Object = "{F6125AB1-8AB1-11CE-A77F-08002B2F4E98}#2.0#0"; "MSRDC20.OCX"
Begin VB.Form frmFixedInit 
   Caption         =   "固定资产期初"
   ClientHeight    =   4980
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   7170
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   4980
   ScaleWidth      =   7170
   Begin VB.CommandButton cmdBalance 
      Caption         =   "平衡检查"
      Height          =   360
      Left            =   1320
      TabIndex        =   8
      Top             =   4515
      Width           =   1155
   End
   Begin MSRDC.MSRDC Data1 
      Height          =   330
      Left            =   3390
      Top             =   4470
      Visible         =   0   'False
      Width           =   1335
      _ExtentX        =   2355
      _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 VB.ComboBox cboFind 
      Height          =   300
      Left            =   735
      Style           =   2  'Dropdown List
      TabIndex        =   3
      Top             =   60
      Width           =   1545
   End
   Begin VB.TextBox txtFind 
      Height          =   300
      Left            =   3915
      TabIndex        =   5
      Top             =   60
      Width           =   2685
   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            =   6645
      Style           =   1  'Graphical
      TabIndex        =   1
      TabStop         =   0   'False
      Tag             =   "1017"
      Top             =   60
      UseMaskColor    =   -1  'True
      Width           =   315
   End
   Begin MSFlexGridLib.MSFlexGrid msgGrid 
      Bindings        =   "frmFixedInit.frx":0000
      Height          =   3660
      Left            =   150
      TabIndex        =   0
      Top             =   510
      Width           =   6675
      _ExtentX        =   11774
      _ExtentY        =   6456
      _Version        =   393216
      Rows            =   20
      Cols            =   20
      FixedCols       =   0
      BackColor       =   16777215
      FocusRect       =   2
      SelectionMode   =   1
   End
   Begin MSForms.CheckBox chkShowAll 
      Height          =   255
      Left            =   5850
      TabIndex        =   7
      Top             =   4485
      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 MSForms.CommandButton cmdEdit 
      Height          =   345
      Left            =   90
      TabIndex        =   6
      Tag             =   "1018"
      Top             =   4515
      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         =   "查找(&B)"
      Height          =   180
      Index           =   0
      Left            =   120
      TabIndex        =   2
      Top             =   135
      Width           =   630
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "内容(&C)"
      Height          =   180
      Index           =   1
      Left            =   3285
      TabIndex        =   4
      Top             =   120
      Width           =   630
   End
End
Attribute VB_Name = "frmFixedInit"
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 = 1014
Private Const mblnInit = True

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 Sub cmdBalance_Click()
    Dim dblAcc1 As Double, dblAcc2 As Double
    Dim dblFix1 As Double, dblFix2 As Double
    
    MsgForm.PleaseWait
    CheckBalance 2, dblAcc1, dblAcc2, dblFix1, dblFix2
    Unload MsgForm
    
    frmChkFixBal.DispCard dblAcc1, dblAcc2, dblFix1, dblFix2
    Set frmChkFixBal = Nothing
End Sub

Private Sub Form_Deactivate()
    frmMain.SetEditUnEnabled
End Sub

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    On Error Resume Next
    If Shift = 2 And KeyCode = vbKeyReturn Then
'        cmdOK_Click 0
    ElseIf KeyCode = vbKeyEscape Then
        If (TypeOf Screen.ActiveControl Is ListText) Then
            If Not Screen.ActiveControl.ReferVisible Then
                Unload Me
            End If
        Else
'            If Not txtEdit.Visible And Not valEdit.Visible Then
'                Unload Me
'            End If
        End If
    ElseIf Not (TypeOf Screen.ActiveControl Is ListText) Then
        If Not (TypeOf Screen.ActiveControl Is MSFlexGrid) Then
'            If KeyCode = vbKeyReturn And Not txtEdit.Visible And Not valEdit.Visible Then
'               KeyCode = 0
'               SendKeys "{Tab}", True
'            End If
        End If
    ElseIf Not Screen.ActiveControl.ReferVisible Then
        If KeyCode = vbKeyReturn Then
           KeyCode = 0
           SendKeys "{Tab}"
        End If
    End If
End Sub

Private Sub Form_Load()
    Screen.MousePointer = vbHourglass
    mintAction = -1
    Set mclsMainControl = gclsSys.MainControls.Add(Me)
    Set mclsSubClassform = New SubClass32.SubClass
    mclsSubClassform.hWnd = Me.hWnd
    mclsSubClassform.Messages(WM_GETMINMAXINFO) = True
    Set mclsList = New Grid
    Me.HelpContextID = 61008
    Screen.MousePointer = vbDefault
End Sub


Private Sub Form_Activate()
    Dim vntMessage As Variant
    
    gclsSys.CurrFormName = Me.hWnd
    SetHelpID HelpContextID
    RefreshMenu
    For Each vntMessage In mclsMainControl.Messages
        If vntMessage = msgFixed Then
            mclsMainControl.Messages.Remove CStr(vntMessage) '清除消息
            RefreshAlterGrid
        End If
    Next
End Sub

'调整窗体上控件的位置
Private Sub Form_Resize()
    Dim lngCnt As Long
    Dim sngTmp As Single
    
    On Error Resume Next
    
    If Me.Left + Me.width < 0 Or Me.Left > Screen.width Then
        Me.Left = 300
    End If
    
    If Me.WindowState <> vbMinimized Then
        msgGrid.top = ListFormTop + 400
        msgGrid.Left = ListFormLeft
        msgGrid.width = ScaleWidth - ListFormRight - ListFormLeft
        msgGrid.Height = ScaleHeight - ListFormBottom - 900
        cmdEdit.Left = ListFormLeft
        cmdEdit.top = ScaleHeight - ListFormBottom - 450 + 90
        cmdBalance.Left = cmdEdit.Left + cmdEdit.width + 15
        cmdBalance.top = cmdEdit.top
        txtFind.width = ScaleWidth - txtFind.Left - cmdSeekAgain.width - ListFormLeft - ListFormRight
        cmdSeekAgain.Left = txtFind.Left + txtFind.width + 45
        chkShowAll.top = cmdEdit.top
        chkShowAll.Left = ScaleWidth - 200 - chkShowAll.width
    End If
End Sub

Private Sub Form_Unload(Cancel As Integer)
    On Error Resume Next

    Set frmFixedAdd = Nothing
    gclsSys.MainControls.Remove Me
    Set mclsMainControl = Nothing
    Set mclsList = Nothing
    Set mclsSubClassform = Nothing
End Sub


Private Sub mclsMainControl_ChildActive()
    Form_Activate
End Sub

Private Sub mclsMainControl_ToolRefresh()
    RefreshAlterGrid
End Sub

Private Sub mclsSubClassForm_WndProc(Msg As Long, wParam As Long, lParam As Long, Result As Long)
    Dim MinMax As MINMAXINFO

    If Msg = WM_GETMINMAXINFO Then
        CopyMemory MinMax, ByVal lParam, Len(MinMax)

        MinMax.ptMinTrackSize.x = 430
        MinMax.ptMinTrackSize.y = 250

        CopyMemory ByVal lParam, MinMax, Len(MinMax)
        Result = 0
    End If
End Sub

'显示全部卡片资料
Private Sub chkShowAll_Click()
    Dim lngRow As Long
    Dim lngHeight As Long
    

⌨️ 快捷键说明

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