Package org.compiere.model
Class MRfQ
- java.lang.Object
-
- org.compiere.model.PO
-
- org.compiere.model.X_C_RfQ
-
- org.compiere.model.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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.compiere.model.X_C_RfQ
QUOTETYPE_AD_Reference_ID, QUOTETYPE_QuoteAllLines, QUOTETYPE_QuoteSelectedLines, QUOTETYPE_QuoteTotalOnly
-
Fields inherited from class org.compiere.model.PO
ACCESSLEVEL_ALL, ACCESSLEVEL_CLIENT, ACCESSLEVEL_CLIENTORG, ACCESSLEVEL_ORG, ACCESSLEVEL_SYSTEM, ACCESSLEVEL_SYSTEMCLIENT, ENTITYTYPE_Dictionary, ENTITYTYPE_UserMaintained, I_ZERO, LOCAL_TRX_PREFIX, log, p_ctx, p_info, XML_ATTRIBUTE_AD_Table_ID, XML_ATTRIBUTE_Record_ID
-
Fields inherited from interface org.compiere.model.I_C_RfQ
accessLevel, COLUMNNAME_AD_Client_ID, COLUMNNAME_AD_Org_ID, COLUMNNAME_AD_User_ID, COLUMNNAME_C_BPartner_ID, COLUMNNAME_C_BPartner_Location_ID, COLUMNNAME_C_Currency_ID, COLUMNNAME_C_Order_ID, COLUMNNAME_C_RfQ_ID, COLUMNNAME_C_RfQ_Topic_ID, COLUMNNAME_C_RfQ_UU, COLUMNNAME_CopyLines, COLUMNNAME_Created, COLUMNNAME_CreatedBy, COLUMNNAME_CreatePO, COLUMNNAME_CreateSO, COLUMNNAME_DateResponse, COLUMNNAME_DateWorkComplete, COLUMNNAME_DateWorkStart, COLUMNNAME_DeliveryDays, COLUMNNAME_Description, COLUMNNAME_DocumentNo, COLUMNNAME_Help, COLUMNNAME_IsActive, COLUMNNAME_IsInvitedVendorsOnly, COLUMNNAME_IsQuoteAllQty, COLUMNNAME_IsQuoteTotalAmt, COLUMNNAME_IsRfQResponseAccepted, COLUMNNAME_IsSelfService, COLUMNNAME_Margin, COLUMNNAME_Name, COLUMNNAME_Processed, COLUMNNAME_Processing, COLUMNNAME_PublishRfQ, COLUMNNAME_QuoteType, COLUMNNAME_RankRfQ, COLUMNNAME_SalesRep_ID, COLUMNNAME_Updated, COLUMNNAME_UpdatedBy, Model, Table_ID, Table_Name
-
-
Constructor Summary
Constructors Constructor Description MRfQ(Properties ctx, int C_RfQ_ID, String trxName)
Standard ConstructorMRfQ(Properties ctx, ResultSet rs, String trxName)
Load ConstructorMRfQ(Properties ctx, MRfQ copy)
MRfQ(Properties ctx, MRfQ copy, String trxName)
MRfQ(MRfQ copy)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
beforeSave(boolean newRecord)
Before SaveString
checkQuoteTotalAmtOnly()
Is "Quote Total Amt Only" Validstatic MRfQ
get(int C_RfQ_ID)
Get MRfQ from Cache (immutable)static MRfQ
get(int C_RfQ_ID, String trxName)
Get MRfQ from dbstatic MRfQ
get(Properties ctx, int C_RfQ_ID, String trxName)
Get MRfQ from dbMRfQLine[]
getLines()
Get active LinesMRfQResponse[]
getResponses(boolean activeOnly, boolean completedOnly)
Get RfQ Responsesboolean
isQuoteAllLines()
Is Quote All Linesboolean
isQuoteSelectedLines()
Is Quote Selected Linesboolean
isQuoteTotalAmtOnly()
Is Quote Total Amt OnlyString
toString()
String Representation-
Methods inherited from class org.compiere.model.X_C_RfQ
get_AccessLevel, getAD_User, getAD_User_ID, getC_BPartner, getC_BPartner_ID, getC_BPartner_Location, getC_BPartner_Location_ID, getC_Currency, getC_Currency_ID, getC_Order, getC_Order_ID, getC_RfQ_ID, getC_RfQ_Topic, getC_RfQ_Topic_ID, getC_RfQ_UU, getCopyLines, getCreatePO, getCreateSO, getDateResponse, getDateWorkComplete, getDateWorkStart, getDeliveryDays, getDescription, getDocumentNo, getHelp, getKeyNamePair, getMargin, getName, getPublishRfQ, getQuoteType, getRankRfQ, getSalesRep, getSalesRep_ID, initPO, isInvitedVendorsOnly, isProcessed, isProcessing, isQuoteAllQty, isQuoteTotalAmt, isRfQResponseAccepted, isSelfService, setAD_User_ID, setC_BPartner_ID, setC_BPartner_Location_ID, setC_Currency_ID, setC_Order_ID, setC_RfQ_ID, setC_RfQ_Topic_ID, setC_RfQ_UU, setCopyLines, setCreatePO, setCreateSO, setDateResponse, setDateWorkComplete, setDateWorkStart, setDeliveryDays, setDescription, setDocumentNo, setHelp, setIsInvitedVendorsOnly, setIsQuoteAllQty, setIsQuoteTotalAmt, setIsRfQResponseAccepted, setIsSelfService, setMargin, setName, setProcessed, setProcessing, setPublishRfQ, setQuoteType, setRankRfQ, setSalesRep_ID
-
Methods inherited from class org.compiere.model.PO
afterDelete, afterSave, beforeDelete, checkImmutable, clearCrossTenantSafe, clone, columnExists, columnExists, compare, copyPO, copyValues, copyValues, createAttachment, delete, delete, delete_Accounting, delete_Tree, deleteEx, deleteEx, dump, dump, equals, get_Attribute, get_Attributes, get_ColumnCount, get_ColumnDescription, get_ColumnDisplayType, get_ColumnIndex, get_ColumnLabel, get_ColumnLookup, get_ColumnName, get_DisplayValue, get_HashMap, get_ID, get_IDOld, get_KeyColumns, get_Logger, get_OptimisticLockingColumns, get_Table_ID, get_TableName, get_Translation, get_Translation, get_Translation, get_Translation, get_Translation, get_TrxName, get_Value, get_Value, get_ValueAsBoolean, get_ValueAsInt, get_ValueAsInt, get_ValueAsString, get_ValueDifference, get_ValueDifference, get_ValueE, get_ValueOfColumn, get_ValueOld, get_ValueOld, get_ValueOldAsInt, get_WhereClause, get_WhereClause, get_xmlDocument, get_xmlString, getAD_Client_ID, getAD_Org_ID, getAllIDs, getAttachment, getAttachment, getAttachmentData, getCreated, getCreatedBy, getCtx, getDoc, getFindParameter, getPdfAttachment, getUpdated, getUpdatedBy, getUUIDColumnName, getUUIDColumnName, hashCode, insert_Accounting, insert_Tree, insert_Tree, is_Changed, is_Immutable, is_new, is_UseOptimisticLocking, is_ValueChanged, is_ValueChanged, isActive, isAttachment, isColumnMandatory, isColumnUpdateable, isMandatoryOK, isPdfAttachment, isReplication, load, load, load, load, load, loadByUU, loadComplete, loadDefaults, loadSpecial, lock, makeImmutable, postDelete, retrieveIdOfParentValue, retrieveIdOfParentValue, save, save, saveEx, saveEx, saveNew_afterSetID, saveNew_getID, saveNewSpecial, saveReplica, saveUpdate, set_Attribute, set_ColumnUpdateable, set_CustomColumn, set_CustomColumnReturningBoolean, set_OptimisticLockingColumns, set_TrxName, set_TrxName, set_UseOptimisticLocking, set_Value, set_Value, set_Value, set_Value, set_ValueE, set_ValueNoCheck, set_ValueNoCheckE, set_ValueOfColumn, set_ValueOfColumn, set_ValueOfColumnReturningBoolean, set_ValueOfColumnReturningBoolean, setAD_Client_ID, setAD_Org_ID, setClientOrg, setClientOrg, setCrossTenantSafe, setDoc, setDocWorkflowMgr, setIsActive, setProcessedOn, setReplication, setStandardDefaults, setUpdateable, setUpdatedBy, unlock, update_Tree, validForeignKeys
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Methods inherited from interface org.compiere.model.I_C_RfQ
getAD_Client_ID, getAD_Org_ID, getCreated, getCreatedBy, getUpdated, getUpdatedBy, isActive, setAD_Org_ID, setIsActive
-
Methods inherited from interface org.compiere.model.I_Persistent
save
-
-
-
-
Constructor Detail
-
MRfQ
public MRfQ(Properties ctx, int C_RfQ_ID, String trxName)
Standard Constructor- Parameters:
ctx
- contextC_RfQ_ID
- idtrxName
- transaction
-
MRfQ
public MRfQ(Properties ctx, ResultSet rs, String trxName)
Load Constructor- Parameters:
ctx
- contextrs
- result settrxName
- transaction
-
MRfQ
public MRfQ(MRfQ copy)
- Parameters:
copy
-
-
MRfQ
public MRfQ(Properties ctx, MRfQ copy)
- Parameters:
ctx
-copy
-
-
MRfQ
public MRfQ(Properties ctx, MRfQ copy, String trxName)
- Parameters:
ctx
-copy
-trxName
-
-
-
Method Detail
-
get
public static MRfQ get(int C_RfQ_ID)
Get MRfQ from Cache (immutable)- 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
- idtrxName
- transaction- Returns:
- MRfQ
-
get
public static MRfQ get(Properties ctx, int C_RfQ_ID, String trxName)
Get MRfQ from db- Parameters:
ctx
- contextC_RfQ_ID
- idtrxName
- transaction- Returns:
- MRfQ
-
getLines
public MRfQLine[] getLines()
Get active Lines- Returns:
- array of lines
-
getResponses
public MRfQResponse[] getResponses(boolean activeOnly, boolean completedOnly)
Get RfQ Responses- Parameters:
activeOnly
- active responses onlycompletedOnly
- complete responses only- Returns:
- array of lines
-
toString
public String toString()
String Representation
-
isQuoteTotalAmtOnly
public boolean isQuoteTotalAmtOnly()
Is Quote Total Amt Only- Returns:
- true if total amout only
-
isQuoteSelectedLines
public boolean isQuoteSelectedLines()
Is Quote Selected Lines- Returns:
- true if quote selected lines
-
isQuoteAllLines
public boolean isQuoteAllLines()
Is Quote All Lines- Returns:
- true if quote selected lines
-
checkQuoteTotalAmtOnly
public String checkQuoteTotalAmtOnly()
Is "Quote Total Amt Only" Valid- Returns:
- null or error message
-
beforeSave
protected boolean beforeSave(boolean newRecord)
Before Save- Overrides:
beforeSave
in classPO
- Parameters:
newRecord
- new- Returns:
- true
-
-