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

📄 mrp_enter_closemps.dfm

📁 一个MRPII系统源代码版本
💻 DFM
字号:
inherited Frm_Mrp_Enter_CloseMps: TFrm_Mrp_Enter_CloseMps
  Left = 36
  Top = 92
  Caption = '主生产计划关闭'
  ClientHeight = 450
  Position = poMainformCenter
  OnDestroy = FormDestroy
  PixelsPerInch = 96
  TextHeight = 12
  inherited ControlBar: TControlBar
    inherited ToolBar: TToolBar
      inherited TlBtn_Check: TToolButton
        Hint = '关闭'
        Caption = '关闭'
      end
      inherited TlBtn_CancelCheck: TToolButton
        Hint = '打开'
        Caption = '打开'
      end
    end
  end
  inherited Pnl_Title: TPanel
    Caption = '主生产计划关闭'
  end
  inherited Pnl_Head: TPanel
    inherited Lbl_Condition: TLabel
      Width = 216
      Caption = '((行状态=3 下达) OR (行状态=4 关闭))'
    end
    inherited Lbl_Order: TLabel
      Width = 132
      Caption = '月份/物料代码/需用日期'
    end
  end
  inherited Pnl_Hint: TPanel
    Top = 417
    Height = 33
    inherited Image4: TImage
      Height = 33
    end
    object Label2: TLabel
      Left = 1
      Top = 7
      Width = 60
      Height = 12
      Caption = '物料标识:'
    end
    object DBText2: TDBText
      Left = 72
      Top = 7
      Width = 42
      Height = 12
      AutoSize = True
      DataField = 'Itemflag'
      DataSource = DataSource
    end
    object Label3: TLabel
      Left = 592
      Top = 20
      Width = 60
      Height = 12
      Caption = '需用日期:'
    end
    object Label1: TLabel
      Left = 0
      Top = 20
      Width = 72
      Height = 12
      Caption = '生产订货量:'
    end
    object DBText1: TDBText
      Left = 72
      Top = 20
      Width = 42
      Height = 12
      AutoSize = True
      DataField = 'MpsQTY'
      DataSource = DataSource
    end
    object DBText3: TDBText
      Left = 654
      Top = 19
      Width = 42
      Height = 12
      AutoSize = True
      DataField = 'MpsDATE'
      DataSource = DataSource
    end
  end
  inherited Pnl_Body: TPanel
    Height = 320
    inherited Image3: TImage
      Height = 320
    end
    inherited DBGridEh: TDBGridEh
      Height = 320
      ReadOnly = False
      OnTitleClick = DBGridEhTitleClick
      FrozenCols = 5
      Columns = <
        Item
          FieldName = 'MpScheck'
          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 = 40
          KeyList.Strings = (
            '1'
            '0')
          Checkboxes = True
        end
        Item
          FieldName = 'MpsMonth'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '月份'
          Width = 50
          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 = 200
          KeyList.Strings = ()
        end
        Item
          Alignment = taCenter
          FieldName = 'UomName'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '计量单位'
          Width = 55
          KeyList.Strings = ()
        end
        Item
          FieldName = 'MpsStatus'
          PickList.Strings = (
            '2 准备'
            '3 下达'
            '4 关闭')
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '行状态'
          Width = 45
          KeyList.Strings = (
            '2'
            '3'
            '4')
        end
        Item
          FieldName = 'MpsQTY'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '生产订货量'
          Width = 70
          KeyList.Strings = ()
        end
        Item
          FieldName = 'MpsNoFinishQty'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '未结量'
          Width = 70
          KeyList.Strings = ()
        end
        Item
          FieldName = 'MpsDATE'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '需用日期'
          Width = 70
          KeyList.Strings = ()
        end
        Item
          FieldName = 'MpsRemArk'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '备注'
          Width = 150
          KeyList.Strings = ()
        end>
    end
  end
  inherited ActionList: TActionList
    inherited Act_CancelCheck: TAction
      OnExecute = Act_CancelCheckExecute
    end
    inherited Act_Check: TAction
      OnExecute = Act_CheckExecute
    end
  end
  inherited AdoQry_Head: TAdoQuery
    ConnectionString = 
      'Provider=SQLOLEDB.1;Password=mdrcmrm;Persist Security Info=True;' +
      'User ID=mdrcmrm;Initial Catalog=mdrcmrm;Data Source=NT2'
    BeforeInsert = AdoQry_HeadBeforeInsert
    SQL.Strings = (
      
        'select Mps.*,Item.ItemName,Item.ItemCode+'#39' '#39'+Item.ItemName As It' +
        'emFlag,Uom.UomName,MpsNoFinishQty=MpsQty-MpsFinishQty'
      '    From Mps,Item,Uom'
      '    Where (Mps.MpsStatus=2 or Mps.MpsStatus=3)'
      '          And Mps.ItemCode=Item.ItemCode'
      '          And Item.UomCode=Uom.UomCode')
    Left = 272
    Top = 214
    object AdoQry_HeadMpsId: TBCDField
      DisplayWidth = 7
      FieldName = 'MpsId'
      Origin = '#tmPmpSclose'
      ReadOnly = True
      Precision = 18
      Size = 0
    end
    object AdoQry_HeadMpsMonth: TStringField
      DisplayWidth = 9
      FieldName = 'MpsMonth'
      Origin = '#tmPmpSclose'
      FixedChAr = True
      Size = 7
    end
    object AdoQry_HeadItemCode: TStringField
      DisplayWidth = 16
      FieldName = 'ItemCode'
      Origin = '#tmPmpSclose'
      Size = 16
    end
    object AdoQry_HeadMpsDATE: TDateTimeField
      DisplayWidth = 18
      FieldName = 'MpsDATE'
      Origin = '#tmPmpSclose'
    end
    object AdoQry_HeadMpsQTY: TFloatField
      DisplayWidth = 10
      FieldName = 'MpsQTY'
      Origin = '#tmPmpSclose'
      DisplayFormat = '#,##0'
    end
    object AdoQry_HeadMpsStatus: TIntegerField
      DisplayWidth = 10
      FieldName = 'MpsStatus'
      Origin = '#tmPmpSclose'
    end
    object AdoQry_HeadMpsFinishQty: TFloatField
      DisplayWidth = 10
      FieldName = 'MpsFinishQty'
      Origin = '#tmPmpSclose'
      DisplayFormat = '#,##0'
    end
    object AdoQry_HeadMpsOutQty: TFloatField
      DisplayWidth = 10
      FieldName = 'MpsOutQty'
      Origin = '#tmPmpSclose'
      DisplayFormat = '#,##0'
    end
    object AdoQry_HeadMpsRemArk: TStringField
      DisplayWidth = 150
      FieldName = 'MpsRemArk'
      Origin = '#tmPmpSclose'
      Size = 150
    end
    object AdoQry_HeadItemName: TStringField
      DisplayWidth = 60
      FieldName = 'ItemName'
      Origin = '#tmPmpSclose'
      Size = 60
    end
    object AdoQry_HeadUomName: TStringField
      DisplayWidth = 10
      FieldName = 'UomName'
      Origin = '#tmPmpSclose'
      Size = 10
    end
    object AdoQry_HeadMpsNoFinishQty: TFloatField
      FieldName = 'MpsNoFinishQty'
      Origin = '#tmPmpSclose'
      ReadOnly = True
    end
    object AdoQry_HeadItemFlag: TStringField
      FieldName = 'ItemFlag'
      Origin = '#tmPmpSclose'
      ReadOnly = True
      Size = 77
    end
    object AdoQry_HeadMpScheck: TIntegerField
      FieldName = 'MpScheck'
      Origin = 'Mps'
    end
  end
  inherited PopuPmenu: TPopuPmenu
    Left = 444
  end
end

⌨️ 快捷键说明

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