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

📄 pm_enter_newfreepasspo.dfm

📁 一个MRPII系统源代码版本
💻 DFM
字号:
inherited Frm_Pm_Enter_NewFreePassPo: TFrm_Pm_Enter_NewFreePassPo
  Top = 103
  Caption = '独立采购订单批准'
  ClientHeight = 408
  ClientWidth = 792
  OnDestroy = FormDestroy
  PixelsPerInch = 96
  TextHeight = 12
  inherited ControlBar: TControlBar
    Width = 792
    inherited ToolBar: TToolBar
      inherited ToolButton6: TToolButton
        Hint = '反查父项物料(Enter)'
      end
    end
  end
  inherited Pnl_Title: TPanel
    Width = 792
    Caption = '独立采购订单批准'
    inherited Image2: TImage
      Width = 792
    end
  end
  inherited Pnl_Head: TPanel
    Width = 792
    inherited Image1: TImage
      Width = 792
    end
    inherited Lbl_Condition: TLabel
      Width = 42
      Caption = '未下达 '
    end
    inherited Lbl_Order: TLabel
      Width = 126
      Caption = '采购员代码/采购订单号'
    end
    object Button5: TButton
      Left = 597
      Top = 7
      Width = 89
      Height = 25
      Caption = 'Bom子项联查'
      TabOrder = 0
      OnClick = Button5Click
    end
  end
  inherited Pnl_Hint: TPanel
    Top = 380
    Width = 792
    Height = 28
    inherited Image4: TImage
      Width = 792
      Height = 28
    end
    object Label2: TLabel
      Left = 8
      Top = 3
      Width = 72
      Height = 12
      Caption = '物料标识  :'
    end
    object DBText2: TDBText
      Left = 77
      Top = 3
      Width = 42
      Height = 12
      AutoSize = True
      DataField = 'ItemFlag'
      DataSource = DataSource
    end
    object Label3: TLabel
      Left = 653
      Top = 3
      Width = 72
      Height = 12
      Caption = '约定交货日:'
    end
    object DBText3: TDBText
      Left = 721
      Top = 3
      Width = 42
      Height = 12
      AutoSize = True
      DataField = 'POLineDATE'
      DataSource = DataSource
    end
    object Label1: TLabel
      Left = 7
      Top = 16
      Width = 72
      Height = 12
      Caption = '供应商标示:'
    end
    object DBText1: TDBText
      Left = 77
      Top = 16
      Width = 42
      Height = 12
      AutoSize = True
      DataField = 'VendorFlag'
      DataSource = DataSource
    end
  end
  inherited Pnl_Body: TPanel
    Width = 792
    Height = 283
    inherited Image3: TImage
      Width = 792
      Height = 283
    end
    inherited DBGridEh: TDBGridEh
      Width = 792
      Height = 283
      ReadOnly = False
      OnDblClick = Act_LookExecute
      OnTitleClick = DBGridEhTitleClick
      FrozenCols = 5
      Columns = <
        Item
          FieldName = 'PoLineCheck'
          PickList.Strings = (
            '0'
            '1')
          Title.Alignment = taCenter
          Title.Caption = '标记'
          Title.Font.ChArset = GB2312_CHArSET
          Title.Font.Color = clBlue
          Title.Font.Height = -12
          Title.Font.Name = '宋体'
          Title.Font.Style = []
          Width = 32
          KeyList.Strings = (
            '1'
            '0')
          Checkboxes = True
        end
        Item
          FieldName = 'EmployeeCode'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '采购员代码'
          Width = 70
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'EmployeeName'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '采购姓名'
          Width = 70
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'EmployeeFlag'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '采购员ID'
          Width = 60
          KeyList.Strings = ()
        end
        Item
          FieldName = 'PONO'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '采购订单号'
          Width = 68
          KeyList.Strings = ()
        end
        Item
          FieldName = 'POLINENo'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '订单行号'
          Width = 55
          KeyList.Strings = ()
        end
        Item
          FieldName = 'POLINESTATUS'
          PickList.Strings = (
            '5 准备'
            '6 下达'
            '')
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '行状态'
          Width = 45
          KeyList.Strings = (
            '5'
            '6')
        end
        Item
          Alignment = tArightJustify
          FieldName = 'PoDate'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '下单日期'
          Width = 70
          KeyList.Strings = ()
        end
        Item
          FieldName = 'ItemCode'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '物料代码'
          Width = 90
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'ItemName'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '物料描述'
          Width = 200
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'ItemFlag'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '物料标识'
          Width = 196
          KeyList.Strings = ()
        end
        Item
          Alignment = taCenter
          FieldName = 'UomName'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '单位'
          Width = 30
          KeyList.Strings = ()
        end
        Item
          FieldName = 'POQTY'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '约定交货量'
          Width = 70
          KeyList.Strings = ()
        end
        Item
          FieldName = 'PONoFinishQty'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '未结量'
          Width = 65
          KeyList.Strings = ()
        end
        Item
          Alignment = tArightJustify
          FieldName = 'POStArtWorkDate'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '约定开工日'
          Width = 67
          KeyList.Strings = ()
        end
        Item
          Alignment = tArightJustify
          FieldName = 'POLineDATE'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '约定交货日'
          Width = 70
          KeyList.Strings = ()
        end
        Item
          FieldName = 'VendorCode'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '供应商代码'
          Width = 70
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'VendorName'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '供应商名称'
          Width = 120
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'VendorFlag'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '供应商标识'
          Width = 150
          KeyList.Strings = ()
        end
        Item
          FieldName = 'POinQTY'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '待检量'
          KeyList.Strings = ()
        end
        Item
          FieldName = 'ReferenceNo'
          PickList.Strings = ()
          Width = 62
          KeyList.Strings = ()
        end>
    end
  end
  inherited ActionList: TActionList
    inherited Act_Modify: TAction
      OnExecute = Act_ModifyExecute
    end
    inherited Act_Delete: TAction
      OnExecute = Act_DeleteExecute
    end
    inherited Act_CancelCheck: TAction
      OnExecute = Act_CancelCheckExecute
    end
    inherited Act_Look: TAction
      Caption = '反查父项物料'
      Enabled = True
      Hint = '反查父项物料'
      Visible = True
      OnExecute = Act_LookExecute
    end
    inherited Act_Check: TAction
      OnExecute = Act_CheckExecute
    end
    inherited Act_Expend: TAction
      Caption = '上级物料'
      Hint = '上级物料(Enter)'
    end
  end
  inherited AdoQry_Head: TAdoQuery
    ConnectionString = 
      'Provider=SQLOLEDB.1;Password=mdrcmrm;Persist Security Info=True;' +
      'User ID=mdrcmrm;Initial Catalog=mdrcmrm_B;Data Source=192.168.0.' +
      '151'
    BeforeInsert = AdoQry_HeadBeforeInsert
    SQL.Strings = (
      
        'Select PoLine.*,Po.*,Vendor.VendorName,Item.ItemName,Item.PmCode' +
        ',Item.Qclt,Employee.EmployeeName,Uom.UomName,'
      'Employee.EmployeeCode+'#39' '#39'+Employee.EmployeeName As EmployeeFlag,'
      'Item.ItemCode+'#39' '#39'+Item.ItemName As ItemFlag,'
      'Vendor.VendorCode+'#39' '#39'+Vendor.VendorName As VendorFlag'
      'From PoLine '
      'Join Po On Po.PoNo=PoLine.PoNo     '
      'Join Item On PoLine.ItemCode=Item.ItemCode'
      'And  (POLineStatus=5 Or POLineStatus=6)'
      'Left Outer Join Vendor On Po.VendorCode=Vendor.VendorCode'
      'join Employee on Employee.EmployeeCode=po.EmployeeCode'
      'Join Uom On Uom.UomCode=Item.UomCode')
    Left = 552
    Top = 145
    object AdoQry_HeadPONO: TStringField
      FieldName = 'PONO'
      Origin = 'PoLine'
      Size = 16
    end
    object AdoQry_HeadPOLINENo: TIntegerField
      FieldName = 'POLINENo'
      Origin = 'PoLine'
    end
    object AdoQry_HeadItemCode: TStringField
      FieldName = 'ItemCode'
      Origin = 'PoLine'
      Size = 16
    end
    object AdoQry_HeadPOLineDATE: TDateTimeField
      FieldName = 'POLineDATE'
      Origin = 'PoLine'
      DisplayFormat = 'yyyy.mm.dd'
    end
    object AdoQry_HeadPOQTY: TFloatField
      FieldName = 'POinQTY'
      Origin = 'PoLine'
      DisplayFormat = '#,##0'
    end
    object AdoQry_HeadPONoFinishQty: TFloatField
      FieldName = 'PONoFinishQty'
      Origin = 'PoLine'
      DisplayFormat = '#,##0'
    end
    object AdoQry_HeadPOREFERENCEDPRICE: TIntegerField
      FieldName = 'POREFERENCEDPRICE'
      Origin = 'PoLine'
    end
    object AdoQry_HeadPOLINESTATUS: TIntegerField
      FieldName = 'POLINESTATUS'
      Origin = 'PoLine'
    end
    object AdoQry_HeadPoNoTaxPrice: TFloatField
      FieldName = 'PoNoTaxPrice'
      Origin = 'PoLine'
      DisplayFormat = '#,##0.00'
    end
    object AdoQry_HeadPONoTaxAmount: TBCDField
      FieldName = 'PONoTaxAmount'
      Origin = 'PoLine'
      DisplayFormat = '#,##0.00'
      Precision = 18
      Size = 2
    end
    object AdoQry_HeadPoTaxPrice: TFloatField
      FieldName = 'PoTaxPrice'
      Origin = 'PoLine'
      DisplayFormat = '#,##0.00'
    end
    object AdoQry_HeadPoTaxAmount: TBCDField
      FieldName = 'PoTaxAmount'
      Origin = 'PoLine'
      DisplayFormat = '#,##0.00'
      Precision = 18
      Size = 2
    end
    object AdoQry_HeadPOStArtWorkDate: TDateTimeField
      FieldName = 'POStArtWorkDate'
      Origin = 'PoLine'
      DisplayFormat = 'yyyy.mm.dd'
    end
    object AdoQry_HeadPOQTY2: TFloatField
      FieldName = 'POQTY'
      Origin = 'PoLine'
      DisplayFormat = '#,##0'
    end
    object AdoQry_HeadVendorCode: TStringField
      FieldName = 'VendorCode'
      Origin = 'Po'
      Size = 12
    end
    object AdoQry_HeadVendorName: TStringField
      FieldName = 'VendorName'
      Origin = 'Vendor'
      Size = 60
    end
    object AdoQry_HeadItemName: TStringField
      FieldName = 'ItemName'
      Origin = 'Item'
      Size = 60
    end
    object AdoQry_HeadPoDate: TDateTimeField
      FieldName = 'PoDate'
      Origin = 'Po'
      DisplayFormat = 'yyyy.mm.dd'
    end
    object AdoQry_HeadEmployeeCode: TStringField
      FieldName = 'EmployeeCode'
      Origin = 'po'
      Size = 30
    end
    object AdoQry_HeadEmployeeName: TStringField
      FieldName = 'EmployeeName'
      Origin = 'Employee'
      Size = 60
    end
    object AdoQry_HeadUomName: TStringField
      FieldName = 'UomName'
      Origin = 'Uom'
      Size = 10
    end
    object AdoQry_HeadEmployeeFlag: TStringField
      FieldName = 'EmployeeFlag'
      ReadOnly = True
      Size = 91
    end
    object AdoQry_HeadItemFlag: TStringField
      FieldName = 'ItemFlag'
      ReadOnly = True
      Size = 77
    end
    object AdoQry_HeadVendorFlag: TStringField
      FieldName = 'VendorFlag'
      ReadOnly = True
      Size = 73
    end
    object AdoQry_HeadPoLineCheck: TIntegerField
      FieldName = 'PoLineCheck'
      Origin = 'PoLine'
    end
    object AdoQry_HeadPmCode: TIntegerField
      FieldName = 'PmCode'
    end
    object AdoQry_HeadQclt: TIntegerField
      FieldName = 'Qclt'
    end
    object AdoQry_HeadPOType: TIntegerField
      FieldName = 'POType'
    end
    object AdoQry_HeadPassEmployeeCode: TStringField
      FieldName = 'PassEmployeeCode'
      Size = 30
    end
    object AdoQry_HeadVendorOrdinal: TIntegerField
      FieldName = 'VendorOrdinal'
    end
    object AdoQry_HeadReferenceNo: TStringField
      DisplayLabel = '参考号'
      FieldName = 'ReferenceNo'
      Size = 30
    end
  end
  inherited DataSource: TDataSource
    Top = 257
  end
end

⌨️ 快捷键说明

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