Class MRfQResponse

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

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

    • MRfQResponse

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

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

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

      public MRfQResponse(MRfQ rfq, MRfQTopicSubscriber subscriber)
      Parent Constructor
      Parameters:
      rfq - rfq
      subscriber - subscriber
    • MRfQResponse

      public MRfQResponse(MRfQ rfq, MBPartner partner)
      Parent Constructor
      Parameters:
      rfq -
      partner -
    • MRfQResponse

      public MRfQResponse(MRfQ rfq, MRfQTopicSubscriber subscriber, int C_BPartner_ID, int C_BPartner_Location_ID, int AD_User_ID)
      Parent Constructor. Automatically saved if lines were created .
      Parameters:
      rfq - rfq
      subscriber - optional subscriber
      C_BPartner_ID - bpartner
      C_BPartner_Location_ID - bpartner location
      AD_User_ID - bpartner user
  • Method Details

    • getLines

      public MRfQResponseLine[] getLines(boolean requery)
      Get Response Lines
      Parameters:
      requery - true to re-query from DB
      Returns:
      array of Response Lines
    • getLines

      public MRfQResponseLine[] getLines()
      Get Response Lines (no re-query)
      Returns:
      array of Response Lines
    • getRfQ

      public MRfQ getRfQ()
      Get RfQ
      Returns:
      rfq
    • toString

      public String toString()
      String Representation
      Overrides:
      toString in class X_C_RfQResponse
      Returns:
      info
    • sendRfQ

      public boolean sendRfQ()
      Send RfQ
      Returns:
      true if RfQ is sent via email.
    • createPDF

      public File createPDF()
      Create PDF
      Returns:
      File or null
    • createPDF

      public File createPDF(File file)
      Create PDF file
      Parameters:
      file - output file
      Returns:
      File or null
    • checkComplete

      public String checkComplete()
      Check if Response is Completed
      Returns:
      null if completed, error message otherwise
    • isQuoteTotalAmtOnly

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

      protected boolean beforeSave(boolean newRecord)
      Before Save
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - new
      Returns:
      true