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

📄 mrp_enter_editpassmo.dfm

📁 一个MRPII系统源代码版本
💻 DFM
字号:
inherited Frm_Mrp_Enter_EditPassMo: TFrm_Mrp_Enter_EditPassMo
  Left = 282
  Top = 123
  Caption = '生产订单批准'
  ClientHeight = 434
  Position = poMainformCenter
  OnDestroy = FormDestroy
  PixelsPerInch = 96
  TextHeight = 12
  inherited ControlBar: TControlBar
    inherited ToolBar: TToolBar
      inherited ToolButton6: TToolButton
        Hint = '父项需求追溯'
        Caption = '父项需求追溯'
      end
    end
  end
  inherited Pnl_Title: TPanel
    Caption = '生产订单批准'
  end
  inherited Pnl_Head: TPanel
    inherited Lbl_Condition: TLabel
      Width = 36
      Caption = '未下达'
    end
    inherited Lbl_Order: TLabel
      Width = 102
      Caption = '下单日期/生产单号'
    end
  end
  inherited Pnl_Hint: TPanel
    Top = 401
    Height = 33
    object Label1: TLabel
      Left = 266
      Top = 11
      Width = 60
      Height = 12
      Caption = '物料标识:'
    end
    object DBText1: TDBText
      Left = 325
      Top = 11
      Width = 42
      Height = 12
      AutoSize = True
      DataField = 'ItemFlag'
      DataSource = DataSource
    end
    object Label2: TLabel
      Left = 6
      Top = 11
      Width = 60
      Height = 12
      Caption = '部门标识:'
    end
    object DBText2: TDBText
      Left = 66
      Top = 11
      Width = 42
      Height = 12
      AutoSize = True
      DataField = 'DeptFlag'
      DataSource = DataSource
    end
    object DBText3: TDBText
      Left = 712
      Top = 11
      Width = 42
      Height = 12
      AutoSize = True
      DataField = 'MoLineDATE'
      DataSource = DataSource
    end
    object Label3: TLabel
      Left = 638
      Top = 11
      Width = 72
      Height = 12
      Caption = '约定交货日:'
    end
  end
  inherited Pnl_Body: TPanel
    Height = 304
    inherited DBGridEh: TDBGridEh
      Height = 304
      Options = [dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgConfirmDelete, dgCancelOnExit]
      ReadOnly = False
      OnDblClick = Act_ModifyExecute
      OnTitleClick = DBGridEhTitleClick
      FrozenCols = 6
      Columns = <
        Item
          FieldName = 'MoLinecheck'
          PickList.Strings = (
            '1'
            '0')
          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 = 28
          KeyList.Strings = (
            '1'
            '0')
          Checkboxes = True
        end
        Item
          FieldName = 'DeptCode'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '部门代码'
          Width = 50
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'DeptName'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '部门名称'
          Width = 90
          Visible = False
          KeyList.Strings = ()
        end
        Item
          Alignment = tArightJustify
          FieldName = 'MODATE'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '下单日期'
          Width = 65
          KeyList.Strings = ()
        end
        Item
          FieldName = 'plaflag'
          PickList.Strings = ()
          Width = 66
          KeyList.Strings = ()
        end
        Item
          FieldName = 'MONO'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '生产订单号'
          Width = 63
          KeyList.Strings = ()
        end
        Item
          FieldName = 'MoLineNO'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '订单行号'
          Width = 52
          KeyList.Strings = ()
        end
        Item
          FieldName = 'MoLineSTATUS'
          PickList.Strings = (
            '5 准备'
            '6 下达'
            '7 关闭'
            '8 永久关闭')
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '行状态'
          Width = 42
          KeyList.Strings = (
            '5'
            '6'
            '7'
            '8'
            '')
        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 = 160
          KeyList.Strings = ()
        end
        Item
          Alignment = taCenter
          FieldName = 'UomName'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '单位'
          Width = 26
          KeyList.Strings = ()
        end
        Item
          FieldName = 'SSQty'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '系统建议量'
          Width = 62
          KeyList.Strings = ()
        end
        Item
          FieldName = 'MOQTY'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '约定交货量'
          KeyList.Strings = ()
        end
        Item
          FieldName = 'MoNoFinishQTY'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '未结量'
          Width = 52
          KeyList.Strings = ()
        end
        Item
          Alignment = tArightJustify
          FieldName = 'MOStArtWorkDate'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '约定开工日'
          Width = 70
          KeyList.Strings = ()
        end
        Item
          Alignment = tArightJustify
          FieldName = 'MoLineDATE'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '约定交货日'
          Width = 70
          KeyList.Strings = ()
        end
        Item
          FieldName = 'Pla_EmployeeCode'
          PickList.Strings = ()
          Visible = False
          KeyList.Strings = ()
        end
        Item
          FieldName = 'BackFlush'
          PickList.Strings = (
            ''
            '是')
          ReadOnly = True
          Width = 76
          KeyList.Strings = (
            '0'
            '1')
        end>
    end
  end
  inherited AdoQry_Tmp: TAdoQuery
    Left = 373
    Top = 147
  end
  inherited ActionList: TActionList
    inherited Act_Modify: TAction
      Enabled = True
      Visible = True
      OnExecute = Act_ModifyExecute
    end
    inherited Act_CancelCheck: TAction [6]
      OnExecute = Act_CancelCheckExecute
    end
    inherited Act_Close: TAction [7]
    end
    inherited Act_Save: TAction [8]
    end
    inherited Act_Quit: TAction [9]
    end
    inherited Act_Hint: TAction [10]
    end
    inherited Act_Delete: TAction [11]
      Enabled = True
      Visible = True
      OnExecute = Act_DeleteExecute
    end
    inherited Act_next: TAction
      Caption = 'l'
    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 = '上级物料'
    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
    BeforeEdit = AdoQry_HeadBeforeEdit
    SQL.Strings = (
      'Select MoLine.*,Mo.*,Dept.DeptName,Item.ItemName '
      '       ,Uom.UomName,'
      '       Item.Pla_EmployeeCode,'
      
        '       Item.Pla_EmployeeCode+'#39' '#39'+Employee.EmployeeName as plafla' +
        'g,'
      '      Item.ItemCode+'#39' '#39'+Item.ItemName As ItemFlag,'
      '       Dept.DeptCode+'#39' '#39'+Dept.DeptName As DeptFlag '
      '        From MoLine '
      '     Join Item On MoLine.ItemCode=Item.ItemCode'
      'Join Mo On Mo.MoNo=MoLine.MoNo'
      'And (MoLineStatus=0 Or MoLineStatus=1)'
      'Left Outer Join Dept On Mo.DeptCode=Dept.DeptCode '
      
        'left outer join Employee on Item.Pla_EmployeeCode=Employee.emplo' +
        'yeeCode'
      'left outer join Uom on Item.UomCode=Uom.UomCode')
    Left = 248
    Top = 198
    object AdoQry_HeadMONO: TStringField
      FieldName = 'MONO'
      Origin = 'mo'
      Size = 16
    end
    object AdoQry_HeadMoLineNO: TIntegerField
      FieldName = 'MoLineNO'
      Origin = 'MoLine'
    end
    object AdoQry_HeadItemCode: TStringField
      FieldName = 'ItemCode'
      Origin = 'MoLine'
      Size = 16
    end
    object AdoQry_HeadMOQTY: TFloatField
      FieldName = 'MOQTY'
      Origin = 'MoLine'
      DisplayFormat = '#,##0'
    end
    object AdoQry_HeadMoLineDATE: TDateTimeField
      FieldName = 'MoLineDATE'
      Origin = 'MoLine'
      DisplayFormat = 'yyyy.mm.dd'
    end
    object AdoQry_HeadMoNoFinishQTY: TFloatField
      FieldName = 'MoNoFinishQTY'
      Origin = 'MoLine'
      DisplayFormat = '#,##0'
    end
    object AdoQry_HeadMoLineSTATUS: TIntegerField
      FieldName = 'MoLineSTATUS'
      Origin = 'MoLine'
    end
    object AdoQry_HeadMOStArtWorkDate: TDateTimeField
      FieldName = 'MOStArtWorkDate'
      Origin = 'MoLine'
      DisplayFormat = 'yyyy.mm.dd'
    end
    object AdoQry_HeadDeptCode: TStringField
      FieldName = 'DeptCode'
      Origin = 'mo'
      Size = 8
    end
    object AdoQry_HeadDeptName: TStringField
      FieldName = 'DeptName'
      Origin = 'Dept'
      Size = 40
    end
    object AdoQry_HeadItemName: TStringField
      FieldName = 'ItemName'
      Origin = 'Item'
      Size = 60
    end
    object AdoQry_HeadMODATE: TDateTimeField
      FieldName = 'MODATE'
      Origin = 'mo'
      DisplayFormat = 'yyyy.mm.dd'
    end
    object AdoQry_HeadUomName: TStringField
      FieldName = 'UomName'
      Origin = 'Uom'
      Size = 10
    end
    object AdoQry_HeadItemFlag: TStringField
      FieldName = 'ItemFlag'
      ReadOnly = True
      Size = 77
    end
    object AdoQry_HeadDeptFlag: TStringField
      FieldName = 'DeptFlag'
      ReadOnly = True
      Size = 49
    end
    object AdoQry_HeadMoLinecheck: TIntegerField
      FieldName = 'MoLinecheck'
      Origin = 'MoLine'
    end
    object AdoQry_HeadSSQty: TFloatField
      FieldName = 'SSQty'
      Origin = 'MoLine'
    end
    object AdoQry_HeadByProduct: TIntegerField
      FieldName = 'ByProduct'
    end
    object AdoQry_HeadMoRealInQty: TFloatField
      FieldName = 'MoRealInQty'
    end
    object AdoQry_HeadMoInQty: TFloatField
      FieldName = 'MoInQty'
    end
    object AdoQry_HeadCloseRemArk: TStringField
      FieldName = 'CloseRemArk'
      Size = 60
    end
    object AdoQry_HeadBilllineremArk: TStringField
      FieldName = 'BilllineremArk'
      Size = 250
    end
    object AdoQry_HeadParentMoLineNo: TIntegerField
      FieldName = 'ParentMoLineNo'
    end
    object AdoQry_HeadMONO_1: TStringField
      FieldName = 'MONO_1'
      Size = 16
    end
    object AdoQry_HeadMORemArk: TStringField
      FieldName = 'MORemArk'
      Size = 150
    end
    object AdoQry_HeadMOSpecial: TIntegerField
      FieldName = 'MOSpecial'
    end
    object AdoQry_HeadSaleType: TStringField
      FieldName = 'SaleType'
    end
    object AdoQry_HeadStandardFlag: TIntegerField
      FieldName = 'StandardFlag'
    end
    object AdoQry_HeadPla_EmployeeCode: TStringField
      DisplayLabel = '计划员代码'
      FieldName = 'Pla_EmployeeCode'
      Origin = 'Item'
      Size = 30
    end
    object AdoQry_Headplaflag: TStringField
      DisplayLabel = '计划员标识'
      FieldName = 'plaflag'
      ReadOnly = True
      Size = 91
    end
    object AdoQry_HeadBackFlush: TIntegerField
      DisplayLabel = '是否拉式领料'
      FieldName = 'BackFlush'
      Origin = 'MoLine'
    end
  end
  inherited DataSource: TDataSource
    Left = 328
    Top = 225
  end
  inherited PopuPmenu: TPopuPmenu
    Left = 444
  end
end

⌨️ 快捷键说明

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