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

📄 inv_oppoinvqry.dfm

📁 一个MRPII系统源代码版本
💻 DFM
字号:
inherited Frm_Inv_OpPoInvQry: TFrm_Inv_OpPoInvQry
  Left = 20
  Top = 89
  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
  end
  inherited Pnl_Hint: TPanel
    Top = 506
    Width = 800
    Height = 47
    inherited Image4: TImage
      Width = 800
      Height = 47
    end
    object Label1: TLabel
      Left = 16
      Top = 26
      Width = 60
      Height = 12
      Caption = '物料标识:'
    end
    object DBText1: TDBText
      Left = 80
      Top = 24
      Width = 65
      Height = 17
      DataField = 'ItemCodeName'
      DataSource = DataSource
    end
  end
  inherited Pnl_Body: TPanel
    Width = 800
    Height = 409
    inherited Image3: TImage
      Width = 800
      Height = 409
    end
    inherited DBGridEh: TDBGridEh
      Width = 800
      Height = 409
      Columns = <
        Item
          FieldName = 'pono'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '订单号'
          Width = 80
          KeyList.Strings = ()
        end
        Item
          FieldName = 'polineno'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '行号'
          Width = 30
          KeyList.Strings = ()
        end
        Item
          FieldName = 'ItemCodeName'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '物料标识'
          Width = 250
          KeyList.Strings = ()
        end
        Item
          FieldName = 'UomName'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '单位'
          Width = 28
          KeyList.Strings = ()
        end
        Item
          FieldName = 'poCtrlqty'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '限额数量'
          Width = 61
          KeyList.Strings = ()
        end
        Item
          FieldName = 'opBillqty'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '累计领用数'
          Width = 63
          KeyList.Strings = ()
        end
        Item
          FieldName = 'InvBillqty'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '累计交货数'
          Width = 65
          KeyList.Strings = ()
        end
        Item
          FieldName = 'remnant'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '结存数'
          Width = 65
          KeyList.Strings = ()
        end>
    end
  end
  inherited ActionList: TActionList
    Left = 192
    Top = 240
  end
  inherited AdoQry_Main: TAdoQuery
    AutoCalcFields = False
    CurSorType = ctStatic
    SQL.Strings = (
      
        'select a.pono, a.polineno, a.ItemCode, a.ItemCode+'#39' '#39'+i.ItemName' +
        ' as ItemCodeName, '
      
        'u.UomName,  a.poCtrlqty, a.opBillqty, a.InvBillqty, a.remnant fr' +
        'om '
      
        '(select l.pono,l.polineno,l.ItemCode,sum(isnull(l.poCtrlqty,0)) ' +
        'as poCtrlqty,'
      
        'sum(isnull(o.opBillqty,0)) as opBillqty,sum(isnull(i.InvBillqty,' +
        '0)) as InvBillqty,'
      
        'sum(isnull(o.opBillqty,0))-sum(isnull(i.InvBillqty,0)) as remnan' +
        't from po p '
      
        'left join opItemList l on    p.pono=l.pono left join InvInBillli' +
        'ne i on  '
      
        'l.pono=i.pono and  l.polineno=i.polineno and  l.ItemCode=i.Itemc' +
        'ode left '
      
        'join opBill o on  i.InvBillid=o.InvBillid and  i.InvBilllineno=o' +
        '.InvBilllineno and  '
      
        'i.ItemCode=o.ItemCode  where (p.VendorCode ='#39'2'#39' and p.pono='#39#39')  ' +
        'group by l.pono,  l.polineno, l.ItemCode) a  left join Item i   ' +
        'on a.ItemCode=i.ItemCode  left join Uom u   on i.UomCode=u.Uomco' +
        'de ')
    Left = 328
    Top = 257
  end
  inherited ExtPrintReport: TExtPrintReport
    PAperType = ptNArrow
  end
end

⌨️ 快捷键说明

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