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

📄 pm_qry_analyzerpo5.dfm

📁 一个MRPII系统源代码版本
💻 DFM
字号:
inherited Frm_Pm_Qry_AnalyzerPo5: TFrm_Pm_Qry_AnalyzerPo5
  Left = 161
  Top = 136
  Caption = '采购订单执行情况分析'
  PixelsPerInch = 96
  TextHeight = 12
  inherited Pnl_Title: TPanel
    Caption = '按物料代码+供应商'
  end
  inherited Pnl_Head: TPanel
    Height = 48
    inherited Image1: TImage
      Height = 48
    end
    inherited Lbl_OrderTitle: TLabel
      Top = 33
    end
    inherited Lbl_ConditionTitle: TLabel
      Top = 4
    end
    inherited Lbl_Condition: TLabel
      Top = 4
      Width = 24
      Caption = '全部'
    end
    inherited Lbl_Order: TLabel
      Top = 33
      Width = 126
      Caption = '物料代码 / 供应商代码'
    end
  end
  inherited Pnl_Hint: TPanel
    Top = 384
    Height = 45
    inherited Image4: TImage
      Height = 45
    end
    object Label2: TLabel
      Left = 8
      Top = 24
      Width = 72
      Height = 12
      Caption = '供应商标识:'
    end
    object Label1: TLabel
      Left = 20
      Top = 8
      Width = 60
      Height = 12
      Caption = '物料标识:'
    end
    object dbtxtItemflag: TDBText
      Left = 88
      Top = 8
      Width = 78
      Height = 12
      AutoSize = True
      DataField = 'Itemflag'
      DataSource = DataSource
    end
    object dbtxtVendorflag: TDBText
      Left = 88
      Top = 24
      Width = 90
      Height = 12
      AutoSize = True
      DataField = 'Vendorflag'
      DataSource = DataSource
    end
    object Label3: TLabel
      Left = 560
      Top = 8
      Width = 48
      Height = 12
      Caption = '完成率:'
    end
    object dbtxtFinishrate: TDBText
      Left = 604
      Top = 7
      Width = 90
      Height = 12
      AutoSize = True
      DataField = 'FinishRate'
      DataSource = DataSource
    end
  end
  inherited Pnl_Body: TPanel
    Top = 105
    Height = 279
    inherited Image3: TImage
      Height = 279
    end
    inherited DBGridEh: TDBGridEh
      Height = 279
      FrozenCols = 2
      Columns = <
        Item
          FieldName = 'Itemflag'
          PickList.Strings = ()
          Width = 200
          KeyList.Strings = ()
        end
        Item
          FieldName = 'Vendorflag'
          PickList.Strings = ()
          Width = 200
          KeyList.Strings = ()
        end
        Item
          FieldName = 'ItemCode'
          PickList.Strings = ()
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'ItemName'
          PickList.Strings = ()
          Width = 200
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'VendorCode'
          PickList.Strings = ()
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'VendorName'
          PickList.Strings = ()
          Width = 202
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'TotalPoQty'
          PickList.Strings = ()
          Width = 75
          KeyList.Strings = ()
        end
        Item
          FieldName = 'poinqty'
          PickList.Strings = ()
          Width = 48
          KeyList.Strings = ()
        end
        Item
          FieldName = 'TotalFinishQty'
          PickList.Strings = ()
          Width = 46
          KeyList.Strings = ()
        end
        Item
          FieldName = 'TotalPoNoFinishQty'
          PickList.Strings = ()
          Title.Caption = '未结量'
          Width = 40
          KeyList.Strings = ()
        end
        Item
          FieldName = 'FinishRate'
          PickList.Strings = ()
          Width = 43
          KeyList.Strings = ()
        end>
    end
  end
  inherited ActionList: TActionList
    Left = 208
    Top = 160
  end
  inherited AdoQry_Main: TAdoQuery
    ConnectionString = 
      'Provider=SQLOLEDB.1;Password=mdrcmrm;Persist Security Info=True;' +
      'User ID=mdrcmrm;Initial Catalog=mdrcmrm_B;Data Source=ZHENGJIArO' +
      'NG'
    CurSorType = ctStatic
    SQL.Strings = (
      'Select Po.VendorCode,'
      '    Vendor.VendorName,'
      '    Vendorflag=po.VendorCode+'#39' '#39'+Vendor.VendorName,'
      '    Itemflag=poline.ItemCode+'#39' '#39'+Item.ItemName,'
      '    PoLine.ItemCode,'
      '    Item.ItemName,'
      '    LineStatus=case PoLine.PoLineStatus'
      '                 when 5 then '#39'5 准备'#39
      '                 when 6 then '#39'6 下达'#39
      '                 when 7 then '#39'7 关闭'#39
      '               end,'
      '    Sum(PoLine.PoQty) As TotalPoQty,'
      '    sum(poline.poinqty) as poinqty,'
      '    Sum(PoLine.PoQty-PoLine.PONoFinishQty) As TotalFinishQty,'
      '    Convert(varChAr,Case Sum(PoLine.PoQty) when 0 then 0'
      '    else'
      
        '    Sum(PoLine.PoQty-PoLine.PONoFinishQty)*100/Sum(PoLine.PoQty)' +
        ' end)+'#39'%'#39
      '      As FinishRate,'
      '    Sum(PoLine.PoNoFinishQty) As TotalPoNoFinishQty,'
      '    Sum(PoLine.PoTaxAmount) As TotalPoTaxACount,'
      '    Sum(PoLine.PoNoTaxAmount) As TotalPoNoTaxACount'
      
        '    From PoLine Left Outer Join Item On PoLine.ItemCode=Item.Ite' +
        'mCode,'
      '    Po Left Outer Join Vendor On Po.VendorCode=Vendor.VendorCode'
      '    where (PoLine.PoNo=Po.PoNo)'
      
        '    Group By Po.VendorCode,Vendor.VendorName,PoLine.ItemCode,PoL' +
        'ineStatus,Item.ItemName')
    Left = 312
    Top = 169
    object AdoQry_MainItemCode: TStringField
      DisplayLabel = '物料代码'
      FieldName = 'ItemCode'
      Size = 16
    end
    object AdoQry_MainItemName: TStringField
      DisplayLabel = '物料名称'
      FieldName = 'ItemName'
      Size = 30
    end
    object AdoQry_MaInvendorCode: TStringField
      DisplayLabel = '供应商代码'
      FieldName = 'VendorCode'
      Size = 12
    end
    object AdoQry_MaInvendorName: TStringField
      DisplayLabel = '供应商名称'
      FieldName = 'VendorName'
      Size = 60
    end
    object AdoQry_MainTotalPoQty: TFloatField
      DisplayLabel = '约定交货量'
      FieldName = 'TotalPoQty'
      ReadOnly = True
    end
    object AdoQry_MainTotalFinishQty: TFloatField
      DisplayLabel = '完成量'
      FieldName = 'TotalFinishQty'
      ReadOnly = True
    end
    object AdoQry_MainTotalPoNoFinishQty: TFloatField
      DisplayLabel = '差异量'
      FieldName = 'TotalPoNoFinishQty'
      ReadOnly = True
    end
    object AdoQry_MainTotalPoTaxACount: TBCDField
      DisplayLabel = '含税金额'
      FieldName = 'TotalPoTaxACount'
      ReadOnly = True
      Precision = 32
      Size = 2
    end
    object AdoQry_MainTotalPoNoTaxACount: TBCDField
      DisplayLabel = '未税金额'
      FieldName = 'TotalPoNoTaxACount'
      ReadOnly = True
      Precision = 32
      Size = 2
    end
    object AdoQry_MainFinishRate: TStringField
      DisplayLabel = '完成率'
      FieldName = 'FinishRate'
      ReadOnly = True
      Size = 31
    end
    object AdoQry_MaInvendorflag: TStringField
      DisplayLabel = '供应商标识'
      FieldName = 'Vendorflag'
      ReadOnly = True
      Size = 73
    end
    object AdoQry_MainItemflag: TStringField
      DisplayLabel = '物料标识'
      FieldName = 'Itemflag'
      ReadOnly = True
      Size = 77
    end
    object AdoQry_Mainpoinqty: TFloatField
      DisplayLabel = '待检量'
      FieldName = 'poinqty'
      ReadOnly = True
    end
  end
  inherited DataSource: TDataSource
    Left = 368
    Top = 145
  end
end

⌨️ 快捷键说明

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