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

📄 pm_qry_analyzerpo7.dfm

📁 一个MRPII系统源代码版本
💻 DFM
字号:
inherited Frm_Pm_Qry_AnalyzerPo7: TFrm_Pm_Qry_AnalyzerPo7
  Left = 124
  Top = 79
  Caption = '采购订单执行情况分析'
  PixelsPerInch = 96
  TextHeight = 12
  inherited Pnl_Title: TPanel
    Caption = '按业务员+物料代码'
  end
  inherited Pnl_Head: TPanel
    Height = 50
    inherited Image1: TImage
      Height = 50
    end
    inherited Lbl_OrderTitle: TLabel
      Top = 32
    end
    inherited Lbl_Condition: TLabel
      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 = 1
    end
    object Panel1: TPanel
      Left = 0
      Top = 1
      Width = 694
      Height = 44
      Align = alBottom
      BevelOuter = bvNone
      TabOrder = 0
      object Label1: TLabel
        Left = 21
        Top = 24
        Width = 60
        Height = 12
        Caption = '物料标识:'
      end
      object dbtxtItemflag: TDBText
        Left = 83
        Top = 24
        Width = 78
        Height = 12
        AutoSize = True
        DataField = 'Itemflag'
        DataSource = DataSource
      end
      object Label2: TLabel
        Left = 9
        Top = 8
        Width = 72
        Height = 12
        Caption = '业务员标识:'
      end
      object dbtxTEmployeeflag: TDBText
        Left = 83
        Top = 8
        Width = 102
        Height = 12
        AutoSize = True
        DataField = 'Employeeflag'
        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
  end
  inherited Pnl_Body: TPanel
    Top = 107
    Height = 277
    inherited Image3: TImage
      Height = 277
    end
    inherited DBGridEh: TDBGridEh
      Height = 277
      FrozenCols = 2
      Columns = <
        Item
          FieldName = 'Employeeflag'
          PickList.Strings = ()
          Width = 100
          KeyList.Strings = ()
        end
        Item
          FieldName = 'Itemflag'
          PickList.Strings = ()
          Width = 200
          KeyList.Strings = ()
        end
        Item
          FieldName = 'EmployeeCode'
          PickList.Strings = ()
          Width = 69
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'EmployeeName'
          PickList.Strings = ()
          Width = 65
          Visible = False
          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 = 'TotalPoQty'
          PickList.Strings = ()
          Width = 75
          KeyList.Strings = ()
        end
        Item
          FieldName = 'poinqty'
          PickList.Strings = ()
          Width = 48
          KeyList.Strings = ()
        end
        Item
          FieldName = 'TotalFinishQty'
          PickList.Strings = ()
          Width = 52
          KeyList.Strings = ()
        end
        Item
          FieldName = 'TotalPoNoFinishQty'
          PickList.Strings = ()
          Title.Caption = '未结量'
          Width = 42
          KeyList.Strings = ()
        end
        Item
          FieldName = 'FinishRate'
          PickList.Strings = ()
          Width = 40
          KeyList.Strings = ()
        end>
    end
  end
  inherited ActionList: TActionList
    Left = 208
    Top = 152
  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.EmployeeCode,'
      '    Employee.EmployeeName,'
      '    Employeeflag=po.EmployeeCode+'#39' '#39'+Employee.EmployeeName,'
      '    PoLine.ItemCode,'
      '    Item.ItemName,'
      '    Itemflag=poline.ItemCode+'#39' '#39'+Item.ItemName,'
      '    poLineStatus=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 Employee On Po.EmployeeCode=Employee.empl' +
        'oyeeCode'
      '    where (PoLine.PoNo=Po.PoNo)'
      
        '    Group By Po.EmployeeCode,Employee.EmployeeName,PoLine.ItemCo' +
        'de,PoLine.PoLineStatus,Item.ItemName'
      ' ')
    Left = 304
    Top = 201
    object AdoQry_MainEmployeeCode: TStringField
      DisplayLabel = '业务员代码'
      FieldName = 'EmployeeCode'
      Size = 30
    end
    object AdoQry_MainEmployeeName: TStringField
      DisplayLabel = '业务员名称'
      FieldName = 'EmployeeName'
      Size = 60
    end
    object AdoQry_MainItemCode: TStringField
      DisplayLabel = '物料代码'
      FieldName = 'ItemCode'
      Size = 16
    end
    object AdoQry_MainItemName: TStringField
      DisplayLabel = '物料描述'
      FieldName = 'ItemName'
      Size = 30
    end
    object AdoQry_MainTotalPoQty: TFloatField
      DisplayLabel = '约定交货量'
      FieldName = 'TotalPoQty'
      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_MainTotalFinishQty: TFloatField
      DisplayLabel = '完成数量'
      FieldName = 'TotalFinishQty'
      ReadOnly = True
    end
    object AdoQry_MainTotalPoNoFinishQty: TFloatField
      DisplayLabel = '差异量'
      FieldName = 'TotalPoNoFinishQty'
      ReadOnly = True
    end
    object AdoQry_MainFinishRate: TStringField
      DisplayLabel = '完成率'
      FieldName = 'FinishRate'
      ReadOnly = True
      Size = 31
    end
    object AdoQry_MainEmployeeflag: TStringField
      DisplayLabel = '业务员标识'
      FieldName = 'Employeeflag'
      ReadOnly = True
      Size = 91
    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 = 352
    Top = 153
  end
end

⌨️ 快捷键说明

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