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

📄 inv_opout_b.dfm

📁 一个MRPII系统源代码版本
💻 DFM
字号:
inherited Frm_Inv_OpOut_B: TFrm_Inv_OpOut_B
  Left = -15
  Top = 130
  Caption = ''
  ClientHeight = 495
  Windowstate = wsMaximized
  PixelsPerInch = 96
  TextHeight = 12
  inherited ControlBar: TControlBar
    inherited ToolBar: TToolBar
      inherited TlBtn_Locate: TToolButton
        Action = Act_None
      end
      inherited ToolButton7: TToolButton
        Action = Act_Copy
      end
      inherited TlBtn_Modify: TToolButton
        Hint = '修改'
        Action = Act_auto
      end
      inherited ToolButton6: TToolButton
        Enabled = False
        Visible = False
      end
      inherited TlBtn_Preview: TToolButton
        Hint = '打印预览(不计打印次数)'
      end
    end
  end
  inherited Pnl_Title: TPanel
    Height = 43
    inherited Image2: TImage
      Height = 43
    end
    object Btn_QryOpCurrentInv: TBitBtn
      Left = 599
      Top = 12
      Width = 137
      Height = 29
      Caption = '相应供应商月结存'
      Font.ChArset = GB2312_CHArSET
      Font.Color = clBlue
      Font.Height = -14
      Font.Name = '宋体'
      Font.Style = []
      ParentFont = False
      TabOrder = 0
      OnClick = Btn_QryOpCurrentInvClick
    end
  end
  inherited Pnl_Head: TPanel
    Top = 73
    Height = 73
    inherited Image1: TImage
      Height = 73
    end
    object Label2: TLabel
      Left = 24
      Top = 11
      Width = 36
      Height = 12
      Caption = '仓库:'
    end
    object Label5: TLabel
      Left = 216
      Top = 11
      Width = 36
      Height = 12
      Caption = '货位:'
    end
    object Label9: TLabel
      Left = 408
      Top = 32
      Width = 72
      Height = 12
      Caption = '采购订单号:'
    end
    object Label10: TLabel
      Left = 606
      Top = 35
      Width = 36
      Height = 12
      Caption = '日期:'
    end
    object Label4: TLabel
      Left = 24
      Top = 55
      Width = 36
      Height = 12
      Caption = '备注:'
    end
    object Label1: TLabel
      Left = 12
      Top = 32
      Width = 48
      Height = 12
      Caption = '供应商:'
    end
    object Lbl_VendorCodeName: TLabel
      Left = 59
      Top = 32
      Width = 6
      Height = 12
    end
    object Lbl_PoNo: TLabel
      Left = 479
      Top = 32
      Width = 6
      Height = 12
    end
    object Label7: TLabel
      Left = 594
      Top = 11
      Width = 48
      Height = 12
      Caption = '单据号:'
    end
    object Cmbx_WhCodeName: TComboBox
      Left = 57
      Top = 6
      Width = 142
      Height = 20
      Style = csDropDownList
      ItemHeight = 12
      TabOrder = 0
      OnChange = Cmbx_WhCodeNameChange
      OnExit = Cmbx_WhCodeNameExit
    end
    object Cmbx_Position: TComboBox
      Left = 249
      Top = 6
      Width = 121
      Height = 20
      Style = csDropDownList
      ItemHeight = 12
      TabOrder = 1
      OnChange = Cmbx_PositionChange
      OnExit = Cmbx_PositionExit
    end
    object Medt_Date: TMaskEdit
      Left = 639
      Top = 27
      Width = 76
      Height = 20
      EditMask = '9999.99.99;1;_'
      MaxLength = 10
      TabOrder = 2
      Text = '    .  .  '
      OnExit = Medt_DateExit
    end
    object Edt_Memo: TEdit
      Left = 57
      Top = 50
      Width = 625
      Height = 20
      TabOrder = 3
    end
    object Edt_BillNo: TEdit
      Left = 639
      Top = 6
      Width = 105
      Height = 20
      ReadOnly = True
      TabOrder = 4
    end
    object CheckBox1: TCheckBox
      Left = 408
      Top = 8
      Width = 97
      Height = 17
      Caption = '显示全部物料'
      TabOrder = 5
      OnClick = Cmbx_WhCodeNameChange
    end
  end
  inherited Pnl_Hint: TPanel
    Top = 469
    object Label3: TLabel
      Left = 8
      Top = 8
      Width = 120
      Height = 12
      Caption = '当前订单行物料描述:'
    end
    object Label6: TLabel
      Left = 392
      Top = 8
      Width = 96
      Height = 12
      Caption = '当前行物料描述:'
    end
    object Lbl_PoItemName: TLabel
      Left = 134
      Top = 9
      Width = 6
      Height = 12
    end
    object DBText1: TDBText
      Left = 492
      Top = 7
      Width = 42
      Height = 12
      AutoSize = True
      DataField = 'ItemName'
      DataSource = DataSource
    end
  end
  inherited Pnl_Body: TPanel
    Top = 146
    Height = 323
    inherited Image3: TImage
      Height = 323
    end
    inherited DBGridEh: TDBGridEh
      Height = 323
      ReadOnly = False
      OnDblClick = nil
      OnEnter = DBGridEhEnter
      OnKeyDown = DBGridEhKeyDown
      Columns = <
        Item
          FieldName = 'PoLIneNo'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '订单行号'
          Width = 51
          KeyList.Strings = ()
        end
        Item
          FieldName = 'ItemCode'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '物料代码'
          Width = 125
          KeyList.Strings = ()
        end
        Item
          FieldName = 'ItemName'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '物料描述'
          Width = 250
          KeyList.Strings = ()
        end
        Item
          FieldName = 'UomName'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '计量单位'
          Width = 50
          KeyList.Strings = ()
        end
        Item
          FieldName = 'usestyle'
          PickList.Strings = (
            '发料'
            '销售')
          Title.Alignment = taCenter
          Title.Caption = '用料方式'
          KeyList.Strings = (
            '0'
            '1')
        end
        Item
          FieldName = 'PoCtrlQty'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '限额数量'
          Width = 53
          KeyList.Strings = ()
        end
        Item
          FieldName = 'PoRealQty'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '累计领料数量'
          Width = 76
          KeyList.Strings = ()
        end
        Item
          FieldName = 'UseableStore'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '可用库存'
          Width = 57
          KeyList.Strings = ()
        end
        Item
          FieldName = 'POOutQty'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '本次领料数量'
          Width = 74
          KeyList.Strings = ()
        end
        Item
          FieldName = 'BatchNo'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '批次号'
          KeyList.Strings = ()
        end
        Item
          FieldName = 'BomQty'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '定额'
          Width = 55
          KeyList.Strings = ()
        end
        Item
          FieldName = 'BomScrAp_Percent'
          PickList.Strings = ()
          ReadOnly = True
          Title.Alignment = taCenter
          Title.Caption = '损耗'
          Width = 69
          KeyList.Strings = ()
        end
        Item
          FieldName = 'BillLineRemArk'
          PickList.Strings = ()
          Title.Alignment = taCenter
          Title.Caption = '备注'
          Width = 171
          KeyList.Strings = ()
        end>
    end
  end
  inherited AdoQry_Tmp: TAdoQuery
    Top = 211
  end
  inherited ActionList: TActionList
    Left = 192
    Top = 224
    inherited Act_New: TAction
      Enabled = True
    end
    inherited Act_Modify: TAction
      Hint = '修改'
      ShortCut = 119
    end
    inherited Act_Copy: TAction
      Enabled = False
      Visible = False
    end
    inherited Act_auto: TAction
      ShortCut = 0
      OnExecute = Act_autoExecute
    end
  end
  inherited AdoQry_Body: TAdoQuery
    AutoCalcFields = False
    ConnectionString = 
      'Provider=SQLOLEDB.1;Password=mdrcmrm;Persist Security Info=True;' +
      'User ID=mdrcmrm;Initial Catalog=mdrcmrm_B;Data Source=192.168.0.' +
      '151'
    Filtered = True
    AfterOpen = nil
    BeforePost = AdoQry_BodyBeforePost
    AfterScroll = AdoQry_BodyAfterScroll
    Prepared = True
    SQL.Strings = (
      'select   op.pono,'
      '         Op.PoLIneNo,'
      '         Op.ItemCode,'
      '         Item.ItemName,'
      '         Uom.UomName,'
      '         Op.PoCtrlQty,'
      '         Op.PoRealQty,'
      '         Op.POOutQty,'
      '         BatchLine.BatchNo,'
      '         c.OnHandInv as UseableStore,'
      '         op.BillLineRemArk,'
      '         op.BomQty,'
      '         op.ite_ItemCode,'
      '                 Bom.usestyle,'
      '         op.ItemListid,'
      '         op.BomScrAp_Percent'
      '    from OpItemList OP'
      '    right join CurrentInv c'
      '      on (c.whCode='#39'01'#39') and'
      '         (c.WhPositionCode='#39'0101'#39') and'
      '         (c.OnHandInv>0) and'
      '         (c.ItemCode=op.ItemCode)'
      '    left Join Item'
      '      on Item.ItemCode=Op.ItemCode join'
      
        '         Uom  on Uom.UomCode=Item.UomCode  and Op.PoNo='#39'P0106001' +
        '2'#39' and'
      '                 Op.PoCtrlQty>0'
      '     Left Join Batch '
      '              on Batch.ItemCode=op.ItemCode '
      '     Left Join Bom '
      '              on Bom.ItemCode=op.ItemCode '
      '     Left Join BatchLine '
      '              On BatchLine.Batchid=Batch.Batchid   '
      'Order by Op.PoLineNo')
    Left = 296
    Top = 209
    object AdoQry_Bodypono: TStringField
      FieldName = 'pono'
      Size = 16
    end
    object AdoQry_BodyPoLIneNo: TIntegerField
      FieldName = 'PoLIneNo'
      Origin = 'OP'
    end
    object AdoQry_BodyItemCode: TStringField
      FieldName = 'ItemCode'
      Origin = 'OP'
      Size = 16
    end
    object AdoQry_BodyItemName: TStringField
      FieldName = 'ItemName'
      Origin = 'Item'
      Size = 60
    end
    object AdoQry_BodyUomName: TStringField
      FieldName = 'UomName'
      Origin = 'Uom'
      Size = 10
    end
    object AdoQry_BodyPoCtrlQty: TFloatField
      FieldName = 'PoCtrlQty'
      Origin = 'Op'
    end
    object AdoQry_BodyPoRealQty: TFloatField
      FieldName = 'PoRealQty'
      Origin = 'Op'
    end
    object AdoQry_BodyPOOutQty: TFloatField
      FieldName = 'POOutQty'
      Origin = 'Op'
    end
    object AdoQry_BodyUseableStore: TFloatField
      FieldName = 'UseableStore'
    end
    object AdoQry_BodyBillLineRemArk: TStringField
      FieldName = 'BillLineRemArk'
      Size = 250
    end
    object AdoQry_BodyBomQty: TFloatField
      FieldName = 'BomQty'
    end
    object AdoQry_BodyBomScrAp_Percent: TFloatField
      FieldName = 'BomScrAp_Percent'
    end
    object AdoQry_Bodyite_ItemCode: TStringField
      FieldName = 'ite_ItemCode'
      Size = 16
    end
    object AdoQry_BodyItemListid: TAutoIncField
      FieldName = 'ItemListid'
      ReadOnly = True
    end
    object AdoQry_BodyBatchNo: TStringField
      FieldName = 'BatchNo'
      Size = 16
    end
    object AdoQry_Bodyusestyle: TIntegerField
      FieldName = 'usestyle'
    end
  end
  inherited DataSource: TDataSource
    Left = 336
    Top = 217
  end
  inherited ExtPrintReport: TExtPrintReport
    Left = 136
    Top = 249
  end
  object AdoQry_Tmp2: TAdoQuery
    Parameters = <>
    Left = 448
    Top = 233
  end
end

⌨️ 快捷键说明

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