Package org.compiere.process
Interface DocAction
-
- All Known Implementing Classes:
DocActionDelegate
,DocActionTemplate
,DocumentEngine
,GenericPO
,MAllocationHdr
,MAssetAddition
,MAssetDisposed
,MAssetReval
,MAssetTransfer
,MBankStatement
,MCash
,MDDOrder
,MDepreciationEntry
,MInOut
,MInOutConfirm
,MInventory
,MInvoice
,MJournal
,MJournalBatch
,MMovement
,MMovementConfirm
,MOrder
,MPayment
,MProduction
,MProjectIssue
,MRequisition
,MRMA
,MTimeExpense
public interface DocAction
Document Action Interface- Version:
- $Id: DocAction.java,v 1.3 2006/07/30 00:54:44 jjanke Exp $
- Author:
- Jorg Janke
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTION_Approve
Approve = APstatic String
ACTION_Close
Close = CLstatic String
ACTION_Complete
Complete = COstatic String
ACTION_Invalidate
Invalidate = INstatic String
ACTION_None
= -- static String
ACTION_Post
Post = POstatic String
ACTION_Prepare
Prepare = PRstatic String
ACTION_ReActivate
ReActivate = REstatic String
ACTION_Reject
Reject = RJstatic String
ACTION_Reverse_Accrual
Reverse - Accrual = RAstatic String
ACTION_Reverse_Correct
Reverse - Correct = RCstatic String
ACTION_Unlock
Unlock = XLstatic String
ACTION_Void
Void = VOstatic String
ACTION_WaitComplete
Wait Complete = WCstatic int
AD_REFERENCE_ID
DocAction Ref_List valuesstatic String
DOC_COLUMNNAME_AD_User_ID
Column name AD_User_IDstatic String
DOC_COLUMNNAME_C_Currency_ID
Column name C_Currency_IDstatic String
DOC_COLUMNNAME_C_DocType_ID
Column name C_DocType_IDstatic String
DOC_COLUMNNAME_C_DocTypeTarget_ID
Column name C_DocTypeTarget_IDstatic String
DOC_COLUMNNAME_DateAcct
Column name DateAcctstatic String
DOC_COLUMNNAME_DateTrx
Column name DateTrxstatic String
DOC_COLUMNNAME_Description
Column name Descriptionstatic String
DOC_COLUMNNAME_DocAction
Column name DocActionstatic String
DOC_COLUMNNAME_DocStatus
Column name DocStatusstatic String
DOC_COLUMNNAME_DocumentNo
Column name DocumentNostatic String
DOC_COLUMNNAME_IsApproved
Column name IsApprovedstatic String
DOC_COLUMNNAME_Processed
Column name Processedstatic String
DOC_COLUMNNAME_Processing
Column name Processingstatic String
DOC_COLUMNNAME_SalesRep_ID
Column name SalesRep_IDstatic String
STATUS_Approved
Approved = APstatic String
STATUS_Closed
Closed = CLstatic String
STATUS_Completed
Completed = COstatic String
STATUS_Drafted
Drafted = DRstatic String
STATUS_InProgress
In Progress = IPstatic String
STATUS_Invalid
Invalid = INstatic String
STATUS_NotApproved
Not Approved = NAstatic String
STATUS_Reversed
Reversed = REstatic String
STATUS_Unknown
Unknown = ??static String
STATUS_Voided
Voided = VOstatic String
STATUS_WaitingConfirmation
Waiting Confirmation = WCstatic String
STATUS_WaitingPayment
Waiting Payment = WP
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
approveIt()
Approve Documentboolean
closeIt()
Close DocumentString
completeIt()
Complete DocumentFile
createPDF()
Create PDFint
get_ID()
Get ID of recordCLogger
get_Logger()
Get Loggerint
get_Table_ID()
Get AD_Table_IDString
get_TrxName()
Get Transactionint
getAD_Client_ID()
Get Document Clientint
getAD_Org_ID()
Get Document OrganizationBigDecimal
getApprovalAmt()
Get Document Approval Amountint
getC_Currency_ID()
Get Document CurrencyProperties
getCtx()
Get Contextint
getDoc_User_ID()
Get Document OwnerString
getDocAction()
Get Doc ActionString
getDocStatus()
Get Doc StatusString
getDocumentInfo()
Get Document InfoString
getDocumentNo()
Get Document NoString
getProcessMsg()
Get Process MessageString
getSummary()
Get Summaryboolean
invalidateIt()
Invalidate DocumentString
prepareIt()
Prepare Documentboolean
processIt(String action)
Process documentboolean
reActivateIt()
Re-activateboolean
rejectIt()
Reject Approvalboolean
reverseAccrualIt()
Reverse Accrualboolean
reverseCorrectIt()
Reverse Correctionboolean
save()
Save Documentvoid
saveEx()
Save throwing exceptionvoid
setDocStatus(String newStatus)
Set Doc Statusboolean
unlockIt()
Unlock Document.boolean
voidIt()
Void Document
-
-
-
Field Detail
-
ACTION_Complete
static final String ACTION_Complete
Complete = CO- See Also:
- Constant Field Values
-
ACTION_WaitComplete
static final String ACTION_WaitComplete
Wait Complete = WC- See Also:
- Constant Field Values
-
ACTION_Approve
static final String ACTION_Approve
Approve = AP- See Also:
- Constant Field Values
-
ACTION_Reject
static final String ACTION_Reject
Reject = RJ- See Also:
- Constant Field Values
-
ACTION_Post
static final String ACTION_Post
Post = PO- See Also:
- Constant Field Values
-
ACTION_Void
static final String ACTION_Void
Void = VO- See Also:
- Constant Field Values
-
ACTION_Close
static final String ACTION_Close
Close = CL- See Also:
- Constant Field Values
-
ACTION_Reverse_Correct
static final String ACTION_Reverse_Correct
Reverse - Correct = RC- See Also:
- Constant Field Values
-
ACTION_Reverse_Accrual
static final String ACTION_Reverse_Accrual
Reverse - Accrual = RA- See Also:
- Constant Field Values
-
ACTION_ReActivate
static final String ACTION_ReActivate
ReActivate = RE- See Also:
- Constant Field Values
-
ACTION_None
static final String ACTION_None
= -- - See Also:
- Constant Field Values
-
ACTION_Prepare
static final String ACTION_Prepare
Prepare = PR- See Also:
- Constant Field Values
-
ACTION_Unlock
static final String ACTION_Unlock
Unlock = XL- See Also:
- Constant Field Values
-
ACTION_Invalidate
static final String ACTION_Invalidate
Invalidate = IN- See Also:
- Constant Field Values
-
STATUS_Drafted
static final String STATUS_Drafted
Drafted = DR- See Also:
- Constant Field Values
-
STATUS_Completed
static final String STATUS_Completed
Completed = CO- See Also:
- Constant Field Values
-
STATUS_Approved
static final String STATUS_Approved
Approved = AP- See Also:
- Constant Field Values
-
STATUS_Invalid
static final String STATUS_Invalid
Invalid = IN- See Also:
- Constant Field Values
-
STATUS_NotApproved
static final String STATUS_NotApproved
Not Approved = NA- See Also:
- Constant Field Values
-
STATUS_Voided
static final String STATUS_Voided
Voided = VO- See Also:
- Constant Field Values
-
STATUS_Reversed
static final String STATUS_Reversed
Reversed = RE- See Also:
- Constant Field Values
-
STATUS_Closed
static final String STATUS_Closed
Closed = CL- See Also:
- Constant Field Values
-
STATUS_Unknown
static final String STATUS_Unknown
Unknown = ??- See Also:
- Constant Field Values
-
STATUS_InProgress
static final String STATUS_InProgress
In Progress = IP- See Also:
- Constant Field Values
-
STATUS_WaitingPayment
static final String STATUS_WaitingPayment
Waiting Payment = WP- See Also:
- Constant Field Values
-
STATUS_WaitingConfirmation
static final String STATUS_WaitingConfirmation
Waiting Confirmation = WC- See Also:
- Constant Field Values
-
AD_REFERENCE_ID
static final int AD_REFERENCE_ID
DocAction Ref_List values- See Also:
- Constant Field Values
-
DOC_COLUMNNAME_DocAction
static final String DOC_COLUMNNAME_DocAction
Column name DocAction- See Also:
- Constant Field Values
-
DOC_COLUMNNAME_DocStatus
static final String DOC_COLUMNNAME_DocStatus
Column name DocStatus- See Also:
- Constant Field Values
-
DOC_COLUMNNAME_Processing
static final String DOC_COLUMNNAME_Processing
Column name Processing- See Also:
- Constant Field Values
-
DOC_COLUMNNAME_C_DocTypeTarget_ID
static final String DOC_COLUMNNAME_C_DocTypeTarget_ID
Column name C_DocTypeTarget_ID- See Also:
- Constant Field Values
-
DOC_COLUMNNAME_C_DocType_ID
static final String DOC_COLUMNNAME_C_DocType_ID
Column name C_DocType_ID- See Also:
- Constant Field Values
-
DOC_COLUMNNAME_DateAcct
static final String DOC_COLUMNNAME_DateAcct
Column name DateAcct- See Also:
- Constant Field Values
-
DOC_COLUMNNAME_DateTrx
static final String DOC_COLUMNNAME_DateTrx
Column name DateTrx- See Also:
- Constant Field Values
-
DOC_COLUMNNAME_IsApproved
static final String DOC_COLUMNNAME_IsApproved
Column name IsApproved- See Also:
- Constant Field Values
-
DOC_COLUMNNAME_Processed
static final String DOC_COLUMNNAME_Processed
Column name Processed- See Also:
- Constant Field Values
-
DOC_COLUMNNAME_DocumentNo
static final String DOC_COLUMNNAME_DocumentNo
Column name DocumentNo- See Also:
- Constant Field Values
-
DOC_COLUMNNAME_Description
static final String DOC_COLUMNNAME_Description
Column name Description- See Also:
- Constant Field Values
-
DOC_COLUMNNAME_SalesRep_ID
static final String DOC_COLUMNNAME_SalesRep_ID
Column name SalesRep_ID- See Also:
- Constant Field Values
-
DOC_COLUMNNAME_AD_User_ID
static final String DOC_COLUMNNAME_AD_User_ID
Column name AD_User_ID- See Also:
- Constant Field Values
-
DOC_COLUMNNAME_C_Currency_ID
static final String DOC_COLUMNNAME_C_Currency_ID
Column name C_Currency_ID- See Also:
- Constant Field Values
-
-
Method Detail
-
setDocStatus
void setDocStatus(String newStatus)
Set Doc Status- Parameters:
newStatus
- new Status
-
getDocStatus
String getDocStatus()
Get Doc Status- Returns:
- Document Status
-
processIt
boolean processIt(String action) throws Exception
Process document- Parameters:
action
- document action- Returns:
- true if performed
- Throws:
Exception
-
unlockIt
boolean unlockIt()
Unlock Document.- Returns:
- true if success
-
invalidateIt
boolean invalidateIt()
Invalidate Document- Returns:
- true if success
-
prepareIt
String prepareIt()
Prepare Document- Returns:
- new status (In Progress or Invalid)
-
approveIt
boolean approveIt()
Approve Document- Returns:
- true if success
-
rejectIt
boolean rejectIt()
Reject Approval- Returns:
- true if success
-
completeIt
String completeIt()
Complete Document- Returns:
- new status (Complete, In Progress, Invalid, Waiting ..)
-
voidIt
boolean voidIt()
Void Document- Returns:
- true if success
-
closeIt
boolean closeIt()
Close Document- Returns:
- true if success
-
reverseCorrectIt
boolean reverseCorrectIt()
Reverse Correction- Returns:
- true if success
-
reverseAccrualIt
boolean reverseAccrualIt()
Reverse Accrual- Returns:
- true if success
-
reActivateIt
boolean reActivateIt()
Re-activate- Returns:
- true if success
-
getSummary
String getSummary()
Get Summary- Returns:
- Summary of Document
-
getDocumentNo
String getDocumentNo()
Get Document No- Returns:
- Document No
-
getDocumentInfo
String getDocumentInfo()
Get Document Info- Returns:
- Type and Document No
-
createPDF
File createPDF()
Create PDF- Returns:
- file
-
getProcessMsg
String getProcessMsg()
Get Process Message- Returns:
- clear text message
-
getDoc_User_ID
int getDoc_User_ID()
Get Document Owner- Returns:
- AD_User_ID
-
getC_Currency_ID
int getC_Currency_ID()
Get Document Currency- Returns:
- C_Currency_ID
-
getApprovalAmt
BigDecimal getApprovalAmt()
Get Document Approval Amount- Returns:
- amount
-
getAD_Client_ID
int getAD_Client_ID()
Get Document Client- Returns:
- AD_Client_ID
-
getAD_Org_ID
int getAD_Org_ID()
Get Document Organization- Returns:
- AD_Org_ID
-
getDocAction
String getDocAction()
Get Doc Action- Returns:
- Document Action
-
save
boolean save()
Save Document- Returns:
- true if saved
-
saveEx
void saveEx() throws AdempiereException
Save throwing exception- Throws:
AdempiereException
- See Also:
save()
-
getCtx
Properties getCtx()
Get Context- Returns:
- context
-
get_ID
int get_ID()
Get ID of record- Returns:
- ID
-
get_Table_ID
int get_Table_ID()
Get AD_Table_ID- Returns:
- AD_Table_ID
-
get_Logger
CLogger get_Logger()
Get Logger- Returns:
- logger
-
get_TrxName
String get_TrxName()
Get Transaction- Returns:
- trx name
-
-