ad_qry_depreciationdept.dfm

来自「一个MRPII系统源代码版本」· DFM 代码 · 共 164 行

DFM
164
字号
inherited Frm_Ad_Qry_DepreciationDept: TFrm_Ad_Qry_DepreciationDept
  Left = 3
  Top = 73
  Caption = '折旧计提明细表_按部门'
  ClientHeight = 444
  ClientWidth = 780
  PixelsPerInch = 96
  TextHeight = 12
  inherited ControlBar: TControlBar
    Width = 780
    inherited ToolBar: TToolBar
      inherited TlBtn_Sum: TToolButton
        Action = Act_Delete
      end
    end
  end
  inherited Pnl_Title: TPanel
    Width = 780
    Caption = '折旧计提明细表_按部门'
    inherited Image2: TImage
      Width = 780
    end
  end
  inherited Pnl_Head: TPanel
    Width = 780
    inherited Image1: TImage
      Width = 780
    end
    inherited Lbl_Order: TLabel
      Left = 75
      Width = 126
      Caption = '部门代码/固定资产编号'
    end
  end
  inherited Pnl_Hint: TPanel
    Top = 418
    Width = 780
    inherited Image4: TImage
      Width = 780
    end
  end
  inherited Pnl_Body: TPanel
    Width = 780
    Height = 321
    inherited Image3: TImage
      Width = 780
      Height = 321
    end
    inherited DBGridEh: TDBGridEh
      Width = 780
      Height = 321
      FooterRowCount = 1
      SumList.Active = True
      Columns = <
        Item
          FieldName = 'DeptFlag'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '部门标识'
          Width = 200
          Footer.Color = clYellow
          Footer.ValueType = fvtStaticText
          Footer.Value = '合计'
          KeyList.Strings = ()
        end
        Item
          FieldName = 'AssetFlag'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '固定资产标识'
          Width = 200
          Footer.Color = clYellow
          KeyList.Strings = ()
        end
        Item
          FieldName = 'DepreciationMonth'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '月份'
          Width = 80
          Footer.Color = clYellow
          KeyList.Strings = ()
        end
        Item
          FieldName = 'SumDepreciation'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '折旧额'
          Width = 100
          Footer.Alignment = tArightJustify
          Footer.Color = clYellow
          Footer.ValueType = fvtSum
          Footer.FieldName = 'SumDepreciation'
          KeyList.Strings = ()
        end
        Item
          FieldName = 'SDepreciation'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '占折旧总额(%)'
          Width = 100
          Footer.Alignment = tArightJustify
          Footer.Color = clYellow
          Footer.ValueType = fvtSum
          Footer.FieldName = 'SDepreciation'
          KeyList.Strings = ()
        end>
    end
  end
  inherited AdoQry_Tmp: TAdoQuery
    Left = 445
    Top = 283
  end
  inherited ActionList: TActionList
    Left = 440
    Top = 200
    inherited Act_Delete: TAction
      Enabled = False
      Visible = False
    end
  end
  inherited AdoQry_Main: TAdoQuery
    ConnectionString = 
      'Provider=SQLOLEDB.1;Password=mdrcmrm;Persist Security Info=True;' +
      'User ID=mdrcmrm;Initial Catalog=Mrpii_Standard;Data Source=192.1' +
      '68.0.151;Use procedure for Prepare=1;Auto Translate=True;Packet ' +
      'Size=4096;Workstation ID=XYB'
    CurSorType = ctStatic
    SQL.Strings = (
      
        'select Ad_Depreciation_Dept.DeptCode,Dept.DeptName,Ad_Depreciati' +
        'on_Dept.DeptCode+'#39' '#39'+Dept.DeptName DeptFlag'
      
        ',Ad_Depreciation_Dept.AssetCode,Ad_AssetCard.AssetName,Ad_Deprec' +
        'iation_Dept.AssetCode+'#39' '#39'+Ad_AssetCard.AssetName AssetFlag'
      
        ',Ad_Depreciation_Dept.DepreciationMonth,Sum(Depreciation) SumDep' +
        'reciation '
      ' ,Sum(Depreciation)/'
      '(Select Sum(Depreciation) from Ad_Depreciation_Dept '
      ' Where DepreciationMonth Between '#39'2002.03'#39' And '#39'2002.04'#39' '
      ' And DeptCode Between '#39'0001'#39' And '#39'0004'#39' )*100 SDepreciation '
      ' from Ad_Depreciation_Dept,Dept,Ad_AssetCard '
      ' Where DepreciationMonth Between '#39'2002.03'#39' And '#39'2002.04'#39' '
      ' And Ad_Depreciation_Dept.DeptCode Between '#39'0001'#39' And '#39'0004'#39
      ' And Ad_Depreciation_Dept.DeptCode=Dept.DeptCode '
      ' And Ad_Depreciation_Dept.AssetCode=Ad_AssetCard.AssetCode'
      
        ' Group By Ad_Depreciation_Dept.DeptCode,Dept.DeptName,Ad_Depreci' +
        'ation_Dept.AssetCode,Ad_AssetCard.AssetName,Ad_Depreciation_Dept' +
        '.DepreciationMonth ')
    Left = 312
    Top = 241
  end
  inherited DataSource: TDataSource
    Left = 368
    Top = 257
  end
  inherited PopuPmenu: TPopuPmenu
    Left = 232
    Top = 225
  end
end

⌨️ 快捷键说明

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