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

📄 inv_opinvqry.dfm

📁 一个MRPII系统源代码版本
💻 DFM
字号:
inherited Frm_Inv_OpInvQry: TFrm_Inv_OpInvQry
  Left = 4
  Top = 201
  Caption = '委外加工材料结存表'
  ClientHeight = 553
  ClientWidth = 800
  PixelsPerInch = 96
  TextHeight = 12
  inherited ControlBar: TControlBar
    Width = 800
  end
  inherited Pnl_Title: TPanel
    Width = 800
    Caption = '委外加工材料结存表'
    inherited Image2: TImage
      Width = 800
    end
  end
  inherited Pnl_Head: TPanel
    Width = 800
    inherited Image1: TImage
      Width = 800
    end
    object Label1: TLabel
      Left = 484
      Top = 19
      Width = 108
      Height = 12
      Caption = '库存未税金额合计:'
    end
    object lbl_SumAmount: TLabel
      Left = 593
      Top = 18
      Width = 78
      Height = 12
      Caption = 'lbl_SumAmount'
    end
  end
  inherited Pnl_Hint: TPanel
    Top = 520
    Width = 800
    Height = 33
    inherited Image4: TImage
      Width = 800
      Height = 33
    end
    object Label2: TLabel
      Left = 444
      Top = 12
      Width = 60
      Height = 12
      Caption = '金额合计:'
    end
    object Edit1: TEdit
      Left = 504
      Top = 8
      Width = 121
      Height = 20
      ReadOnly = True
      TabOrder = 0
    end
  end
  inherited Pnl_Body: TPanel
    Width = 800
    Height = 423
    inherited Image3: TImage
      Width = 800
      Height = 423
    end
    inherited DBGridEh: TDBGridEh
      Width = 800
      Height = 423
      Columns = <
        Item
          FieldName = 'ItemCodeName'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '物料标识'
          Width = 319
          KeyList.Strings = ()
        end
        Item
          FieldName = 'opInv'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '库存数量'
          Width = 91
          KeyList.Strings = ()
        end
        Item
          FieldName = 'Price'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '未税价'
          KeyList.Strings = ()
        end
        Item
          FieldName = 'Amount'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '未税额'
          Width = 100
          KeyList.Strings = ()
        end>
    end
  end
  inherited ActionList: TActionList
    Left = 200
    Top = 208
  end
  inherited AdoQry_Main: TAdoQuery
    AutoCalcFields = False
    CurSorType = ctStatic
    SQL.Strings = (
      
        'select a.ItemCode,a.ItemCode+'#39' '#39'+i.ItemName as ItemCodeName,a.op' +
        'Inv,Price=case a.opInv when 0 then 0 else a.Amount/a.opInv end,a' +
        '.Amount from (select opCurrentInv.ItemCode,'
      
        '                        sum(isnull(opCurrentInv.opInv,0)) as opi' +
        'nv,'
      
        '                        sum(isnull(opCurrentInv.opInv*opAveragep' +
        'rice.opAveragePrice,0)) as Amount'
      '                         from opCurrentInv '
      '                         left join opAveragePrice '
      
        '                           on opCurrentInv.VendorCode=opAveragep' +
        'rice.VendorCode and '
      
        '                              opCurrentInv.ItemCode=opAveragepri' +
        'ce.ItemCode '
      'group by opCurrentInv.ItemCode) a'
      'left join Item i'
      '  on a.ItemCode=i.ItemCode')
  end
  inherited ExtPrintReport: TExtPrintReport
    PAperType = ptNArrow
  end
end

⌨️ 快捷键说明

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