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

📄 pm_qry_analyzerpo3.dfm

📁 一个MRPII系统源代码版本
💻 DFM
字号:
inherited Frm_Pm_Qry_AnalyzerPo3: TFrm_Pm_Qry_AnalyzerPo3
  Left = 180
  Top = 17
  Caption = '采购订单执行情况分析'
  ClientHeight = 505
  ClientWidth = 730
  PixelsPerInch = 96
  TextHeight = 12
  inherited ControlBar: TControlBar
    Width = 730
    inherited ToolBar: TToolBar
      ButtonWidth = 24
      inherited TlBtn_Look: TToolButton
        Left = 24
      end
      inherited TlBtn_Sum: TToolButton
        Left = 48
      end
      inherited ToolButton5: TToolButton
        Left = 72
      end
      inherited TlBtn_Filter: TToolButton
        Left = 78
      end
      inherited TlBtn_Locate: TToolButton
        Left = 102
      end
      inherited ToolButton3: TToolButton
        Left = 126
      end
      inherited TlBtn_Order: TToolButton
        Left = 132
      end
      inherited TlBtn_SetColumn: TToolButton
        Left = 156
      end
      inherited ToolButton9: TToolButton
        Left = 180
      end
      inherited TlBtn_Preview: TToolButton
        Left = 186
      end
      inherited TlBtn_Print: TToolButton
        Left = 210
      end
      inherited TlBtn_Excel: TToolButton
        Left = 234
      end
      inherited ToolButton13: TToolButton
        Left = 258
      end
      inherited ToolButton4: TToolButton
        Left = 264
      end
    end
  end
  inherited Pnl_Title: TPanel
    Width = 730
    Caption = '按供应商+物料代码分析'
    inherited Image2: TImage
      Width = 730
    end
  end
  inherited Pnl_Head: TPanel
    Width = 730
    Height = 49
    inherited Image1: TImage
      Width = 730
      Height = 49
    end
    inherited Lbl_OrderTitle: TLabel
      Left = 13
      Top = 32
    end
    inherited Lbl_ConditionTitle: TLabel
      Left = 16
      Top = 2
    end
    inherited Lbl_Condition: TLabel
      Top = 3
      Width = 24
      Caption = '全部'
    end
    inherited Lbl_Order: TLabel
      Left = 76
      Top = 33
      Width = 126
      Caption = '供应商代码 / 物料代码'
    end
  end
  inherited Pnl_Hint: TPanel
    Top = 464
    Width = 730
    Height = 41
    inherited Image4: TImage
      Width = 730
      Height = 41
    end
    object Label1: TLabel
      Left = 12
      Top = 24
      Width = 60
      Height = 12
      Caption = '物料标识:'
    end
    object dbtxtItemflag: TDBText
      Left = 73
      Top = 24
      Width = 78
      Height = 12
      AutoSize = True
      DataField = 'Itemflag'
      DataSource = DataSource
    end
    object Label2: TLabel
      Left = 0
      Top = 8
      Width = 72
      Height = 12
      Caption = '供应商标识:'
    end
    object dbtxtVendorflag: TDBText
      Left = 73
      Top = 8
      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 = 616
      Top = 7
      Width = 90
      Height = 12
      AutoSize = True
      DataField = 'FinishRate'
      DataSource = DataSource
    end
  end
  inherited Pnl_Body: TPanel
    Top = 106
    Width = 730
    Height = 358
    inherited Image3: TImage
      Width = 730
      Height = 358
    end
    inherited DBGridEh: TDBGridEh
      Width = 730
      Height = 358
      FrozenCols = 2
      Columns = <
        Item
          FieldName = 'Vendorflag'
          PickList.Strings = ()
          Width = 200
          KeyList.Strings = ()
        end
        Item
          FieldName = 'Itemflag'
          PickList.Strings = ()
          Width = 200
          KeyList.Strings = ()
        end
        Item
          FieldName = 'VendorCode'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '供应商代码'
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'VendorName'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '供应商名称'
          Width = 196
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'ItemCode'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '物料代码'
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'ItemName'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '物料描述'
          Width = 200
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'TotalPoQty'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '约定交货量'
          Width = 75
          KeyList.Strings = ()
        end
        Item
          FieldName = 'poinqty'
          PickList.Strings = ()
          Width = 43
          KeyList.Strings = ()
        end
        Item
          FieldName = 'TotalFinishQty'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '完成数量'
          Width = 55
          KeyList.Strings = ()
        end
        Item
          FieldName = 'TotalPoNoFinishQty'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '未结量'
          Width = 43
          KeyList.Strings = ()
        end
        Item
          FieldName = 'FinishRate'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '完成率'
          Width = 39
          KeyList.Strings = ()
        end>
    end
  end
  inherited AdoQry_Tmp: TAdoQuery
    Left = 445
    Top = 259
  end
  inherited ActionList: TActionList
    Top = 208
  end
  inherited AdoQry_Main: TAdoQuery
    ConnectionString = 
      'Provider=SQLOLEDB.1;Password=mdrcmrm;Persist Security Info=True;' +
      'User ID=mdrcmrm;Initial Catalog=mdrcmrm_B;Data Source=192.168.0.' +
      '151'
    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' +
        'ine.PoLineStatus,Item.ItemName'
      ''
      ''
      ''
      ''
      ' '
      ' '
      ' '
      ' ')
    Left = 360
    Top = 217
    object AdoQry_MaInvendorCode: TStringField
      FieldName = 'VendorCode'
      Origin = 'po'
      Size = 12
    end
    object AdoQry_MaInvendorName: TStringField
      FieldName = 'VendorName'
      Origin = 'Vendor'
      Size = 60
    end
    object AdoQry_MainItemCode: TStringField
      FieldName = 'ItemCode'
      Origin = 'poline'
      Size = 16
    end
    object AdoQry_MainItemName: TStringField
      FieldName = 'ItemName'
      Origin = 'Item'
      Size = 30
    end
    object AdoQry_MainTotalPoQty: TFloatField
      FieldName = 'TotalPoQty'
      ReadOnly = True
    end
    object AdoQry_MainTotalFinishQty: TFloatField
      FieldName = 'TotalFinishQty'
      ReadOnly = True
    end
    object AdoQry_MainTotalPoNoFinishQty: TFloatField
      FieldName = 'TotalPoNoFinishQty'
      ReadOnly = True
    end
    object AdoQry_MainTotalPoTaxACount: TBCDField
      FieldName = 'TotalPoTaxACount'
      ReadOnly = True
      Precision = 32
      Size = 2
    end
    object AdoQry_MainTotalPoNoTaxACount: TBCDField
      FieldName = 'TotalPoNoTaxACount'
      ReadOnly = True
      Precision = 32
      Size = 2
    end
    object AdoQry_MainFinishRate: TStringField
      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 = 560
    Top = 321
  end
  inherited ExtPrintReport: TExtPrintReport
    Left = 144
    Top = 161
  end
  inherited PopuPmenu: TPopuPmenu
    Left = 280
    Top = 217
  end
end

⌨️ 快捷键说明

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