Class MRfQ

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_C_RfQ, I_Persistent, Evaluatee

public class MRfQ extends X_C_RfQ
RfQ Model
Version:
$Id: MRfQ.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MRfQ

      public MRfQ(Properties ctx, String C_RfQ_UU, String trxName)
      UUID based Constructor
      Parameters:
      ctx - Context
      C_RfQ_UU - UUID key
      trxName - Transaction
    • MRfQ

      public MRfQ(Properties ctx, int C_RfQ_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      C_RfQ_ID - id
      trxName - transaction
    • MRfQ

      public MRfQ(Properties ctx, ResultSet rs, String trxName)
      Load Constructor
      Parameters:
      ctx - context
      rs - result set
      trxName - transaction
    • MRfQ

      public MRfQ(MRfQ copy)
      Copy constructor
      Parameters:
      copy -
    • MRfQ

      public MRfQ(Properties ctx, MRfQ copy)
      Copy constructor
      Parameters:
      ctx -
      copy -
    • MRfQ

      public MRfQ(Properties ctx, MRfQ copy, String trxName)
      Copy constructor
      Parameters:
      ctx -
      copy -
      trxName -
  • Method Details

    • get

      public static MRfQ get(int C_RfQ_ID)
      Get MRfQ from DB
      Parameters:
      C_RfQ_ID - id
      Returns:
      MRfQ
    • get

      public static MRfQ get(int C_RfQ_ID, String trxName)
      Get MRfQ from DB
      Parameters:
      C_RfQ_ID - id
      trxName - transaction
      Returns:
      MRfQ
    • get

      public static MRfQ get(Properties ctx, int C_RfQ_ID, String trxName)
      Get MRfQ from DB
      Parameters:
      ctx - context
      C_RfQ_ID - id
      trxName - transaction
      Returns:
      MRfQ
    • getLines

      public MRfQLine[] getLines()
      Get active RFQ Lines
      Returns:
      array of RFQ lines
    • getResponses

      public MRfQResponse[] getResponses(boolean activeOnly, boolean completedOnly)
      Get RfQ Responses
      Parameters:
      activeOnly - active responses only
      completedOnly - completed responses only
      Returns:
      array of RFQ response
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_C_RfQ
      Returns:
      info
    • isQuoteTotalAmtOnly

      public boolean isQuoteTotalAmtOnly()
      Is Quote Total Amt Only
      Returns:
      true if quote total amount only (QUOTETYPE_QuoteTotalOnly)
    • isQuoteSelectedLines

      public boolean isQuoteSelectedLines()
      Is Quote Selected Lines
      Returns:
      true if quote selected lines (QUOTETYPE_QuoteSelectedLines)
    • isQuoteAllLines

      public boolean isQuoteAllLines()
      Is Quote All Lines
      Returns:
      true if quote all lines (QUOTETYPE_QuoteAllLines)
    • checkQuoteTotalAmtOnly

      public String checkQuoteTotalAmtOnly()
      Is "Quote Total Amt Only" Valid
      Returns:
      null or error message
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      Called before Save for Pre-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - true if it is a new record
      Returns:
      true if record can be saved