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

📄 mrp_qry_informaltotalmrp_po.dfm

📁 一个MRPII系统源代码版本
💻 DFM
字号:
inherited Frm_Mrp_Qry_InformalTotalMrp_Po: TFrm_Mrp_Qry_InformalTotalMrp_Po
  Left = 70
  Top = 78
  Caption = '采购订单表'
  PixelsPerInch = 96
  TextHeight = 12
  inherited ControlBar: TControlBar
    inherited ToolBar: TToolBar
      inherited TlBtn_Filter: TToolButton
        Visible = False
      end
      inherited TlBtn_Locate: TToolButton
        Visible = False
      end
      inherited TlBtn_Order: TToolButton
        Visible = False
      end
    end
  end
  inherited Pnl_Title: TPanel
    Caption = '采购订单表'
  end
  inherited Pnl_Head: TPanel
    Height = 4
  end
  inherited Pnl_Body: TPanel
    Top = 61
    Height = 342
    inherited DBGridEh: TDBGridEh
      Height = 342
      OnDblClick = Act_LookExecute
      FrozenCols = 5
      Columns = <
        Item
          FieldName = 'Employeeflag'
          PickList.Strings = ()
          Width = 71
          KeyList.Strings = ()
        end
        Item
          FieldName = 'pcno'
          PickList.Strings = ()
          Width = 63
          KeyList.Strings = ()
        end
        Item
          FieldName = 'PoNo'
          PickList.Strings = ()
          Width = 65
          KeyList.Strings = ()
        end
        Item
          FieldName = 'POLINENo'
          PickList.Strings = ()
          Width = 50
          KeyList.Strings = ()
        end
        Item
          FieldName = 'podate'
          PickList.Strings = ()
          Width = 63
          KeyList.Strings = ()
        end
        Item
          FieldName = 'Vendorflag'
          PickList.Strings = ()
          Width = 150
          KeyList.Strings = ()
        end
        Item
          FieldName = 'Itemflag'
          PickList.Strings = ()
          Width = 200
          KeyList.Strings = ()
        end
        Item
          FieldName = 'POStArtWorkDate'
          PickList.Strings = ()
          Width = 70
          KeyList.Strings = ()
        end
        Item
          FieldName = 'POLineDATE'
          PickList.Strings = ()
          Width = 69
          KeyList.Strings = ()
        end
        Item
          FieldName = 'POQTY'
          PickList.Strings = ()
          KeyList.Strings = ()
        end
        Item
          FieldName = 'PONoFinishQty'
          PickList.Strings = ()
          Width = 42
          KeyList.Strings = ()
        end
        Item
          FieldName = 'POLINESTATUS'
          PickList.Strings = (
            '5 准备'
            '6 下达'
            '7 关闭'
            '8 永久性关闭')
          Width = 43
          KeyList.Strings = (
            '5'
            '6'
            '7'
            '8')
        end
        Item
          FieldName = 'PoType'
          PickList.Strings = (
            '普通采购'
            '委外加工'
            '进口采购')
          Width = 67
          KeyList.Strings = (
            '0'
            '1'
            '2')
        end
        Item
          FieldName = 'POREFERENCEDPRICE'
          PickList.Strings = (
            '否'
            '是')
          KeyList.Strings = (
            '0'
            '1')
        end
        Item
          FieldName = 'PoTaxPrice'
          PickList.Strings = ()
          Width = 43
          KeyList.Strings = ()
        end
        Item
          FieldName = 'PoTaxAmount'
          PickList.Strings = ()
          Width = 56
          KeyList.Strings = ()
        end
        Item
          FieldName = 'PoNoTaxPrice'
          PickList.Strings = ()
          Width = 39
          KeyList.Strings = ()
        end
        Item
          FieldName = 'PONoTaxAmount'
          PickList.Strings = ()
          Width = 54
          KeyList.Strings = ()
        end>
    end
  end
  inherited AdoQry_Tmp: TAdoQuery
    Left = 229
    Top = 131
  end
  inherited ActionList: TActionList
    Top = 168
    inherited Act_Look: TAction
      Enabled = True
      Visible = True
      OnExecute = Act_LookExecute
    end
  end
  inherited AdoQry_Main: TAdoQuery
    SQL.Strings = (
      'Select Po.PoNo,po.podate,Po.EmployeeCode,Employee.EmployeeName,'
      '       Po.VendorCode,Po.PoType,po.pcno,PoLine.*,Item.ItemCode,'
      '      Item.ItemName,Item.UomCode,Uom.UomName,Vendor.VendorName,'
      '      Employeeflag=po.EmployeeCode+'#39' '#39'+Employee.EmployeeName,'
      '      Vendorflag=po.VendorCode+'#39' '#39'+Vendor.VendorName,'
      '      Itemflag=poline.ItemCode+'#39' '#39'+Item.ItemName,'
      '      linestatus=case poline.polinestatus '
      '                         when 5 then '#39'5 准备'#39
      '                         when 6 then '#39'6 下达'#39
      '                         when 7 then '#39'7 关闭'#39
      '                         when 8 then '#39'8 永久关闭'#39
      '                      end'
      'From PoLine '
      '   Join Item On PoLine.ItemCode=Item.ItemCode'
      '   Join Po On PoLine.PoNo=Po.PoNo'
      
        '   left outer join Employee on Po.EmployeeCode=Employee.Employee' +
        'Code'
      '   Left Join Vendor On Po.VendorCode=Vendor.VendorCode'
      '   Left Outer Join Uom On Item.UomCode=Uom.UomCode')
    Top = 193
    object AdoQry_MainPoNo: TStringField
      DisplayLabel = '采购订单号'
      FieldName = 'PoNo'
      Size = 16
    end
    object AdoQry_Mainpodate: TDateTimeField
      DisplayLabel = '下单日期'
      FieldName = 'podate'
    end
    object AdoQry_MainEmployeeCode: TStringField
      FieldName = 'EmployeeCode'
      Size = 30
    end
    object AdoQry_MainEmployeeName: TStringField
      FieldName = 'EmployeeName'
      Size = 60
    end
    object AdoQry_MaInvendorCode: TStringField
      FieldName = 'VendorCode'
      Size = 12
    end
    object AdoQry_MainPoType: TIntegerField
      DisplayLabel = '订单类型'
      FieldName = 'PoType'
    end
    object AdoQry_Mainpcno: TStringField
      DisplayLabel = '采购合同号'
      FieldName = 'pcno'
      Size = 16
    end
    object AdoQry_MainPONO_1: TStringField
      FieldName = 'PONO_1'
      Size = 16
    end
    object AdoQry_MainPOLINENo: TIntegerField
      DisplayLabel = '订单行号'
      FieldName = 'POLINENo'
    end
    object AdoQry_MainItemCode: TStringField
      FieldName = 'ItemCode'
      Size = 16
    end
    object AdoQry_MainPOLineDATE: TDateTimeField
      DisplayLabel = '约定交货日'
      FieldName = 'POLineDATE'
    end
    object AdoQry_MainPOQTY: TFloatField
      DisplayLabel = '约定交货量'
      FieldName = 'POQTY'
    end
    object AdoQry_MainPONoFinishQty: TFloatField
      DisplayLabel = '未结量'
      FieldName = 'PONoFinishQty'
    end
    object AdoQry_MainPOREFERENCEDPRICE: TIntegerField
      DisplayLabel = '是否参考价'
      FieldName = 'POREFERENCEDPRICE'
    end
    object AdoQry_MainPOLINESTATUS: TIntegerField
      DisplayLabel = '行状态'
      FieldName = 'POLINESTATUS'
    end
    object AdoQry_MainPoNoTaxPrice: TFloatField
      DisplayLabel = '未税价'
      FieldName = 'PoNoTaxPrice'
    end
    object AdoQry_MainPONoTaxAmount: TBCDField
      DisplayLabel = '未税金额'
      FieldName = 'PONoTaxAmount'
      Precision = 18
      Size = 2
    end
    object AdoQry_MainPoTaxPrice: TFloatField
      DisplayLabel = '含税价'
      FieldName = 'PoTaxPrice'
    end
    object AdoQry_MainPoTaxAmount: TBCDField
      DisplayLabel = '含税金额'
      FieldName = 'PoTaxAmount'
      Precision = 18
      Size = 2
    end
    object AdoQry_MainPOStArtWorkDate: TDateTimeField
      DisplayLabel = '约定开工日'
      FieldName = 'POStArtWorkDate'
    end
    object AdoQry_MainPoRealInQty: TFloatField
      FieldName = 'PoRealInQty'
    end
    object AdoQry_MainPoInQty: TFloatField
      FieldName = 'PoInQty'
    end
    object AdoQry_MainPoLineCheck: TIntegerField
      FieldName = 'PoLineCheck'
    end
    object AdoQry_MainSSQty: TFloatField
      FieldName = 'SSQty'
    end
    object AdoQry_MainCloseRemArk: TStringField
      FieldName = 'CloseRemArk'
      Size = 60
    end
    object AdoQry_MainItemCode_1: TStringField
      FieldName = 'ItemCode_1'
      Size = 16
    end
    object AdoQry_MainItemName: TStringField
      FieldName = 'ItemName'
      Size = 60
    end
    object AdoQry_MainUomCode: TStringField
      FieldName = 'UomCode'
      Size = 4
    end
    object AdoQry_MainUomName: TStringField
      DisplayLabel = '计量单位'
      FieldName = 'UomName'
      Size = 10
    end
    object AdoQry_MaInvendorName: TStringField
      FieldName = 'VendorName'
      Size = 60
    end
    object AdoQry_MainEmployeeflag: TStringField
      DisplayLabel = '采购员标识'
      FieldName = 'Employeeflag'
      ReadOnly = True
      Size = 91
    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_Mainlinestatus: TStringField
      DisplayLabel = '行状态'
      FieldName = 'linestatus'
      ReadOnly = True
      Size = 10
    end
  end
  inherited DataSource: TDataSource
    Left = 320
    Top = 145
  end
  inherited PopuPmenu: TPopuPmenu
    Left = 232
    Top = 209
  end
end

⌨️ 快捷键说明

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