|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.process.DocumentEngine
public class DocumentEngine
Document Action Engine
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
DocumentEngine(DocAction po)
Doc Engine (Drafted) |
|
DocumentEngine(DocAction po,
String docStatus)
Doc Engine |
|
| Method Summary | |
|---|---|
boolean |
approveIt()
Approve Document. |
boolean |
closeIt()
Close Document. |
String |
completeIt()
Complete Document. |
File |
createPDF()
CreatePDF |
int |
get_ID()
Get ID of record |
CLogger |
get_Logger()
Get Logger |
int |
get_Table_ID()
Get AD_Table_ID |
String |
get_TrxName()
Get Transaction |
String[] |
getActionOptions()
Get Action Options based on current Status |
int |
getAD_Client_ID()
Get Document Client |
int |
getAD_Org_ID()
Get Document Organization |
BigDecimal |
getApprovalAmt()
Get Document Approval Amount |
int |
getC_Currency_ID()
Get Document Currency |
Ctx |
getCtx()
Get Context |
int |
getDoc_User_ID()
Get Document Owner |
String |
getDocAction()
Get Doc Action |
String |
getDocStatus()
Get Doc Status |
String |
getDocumentInfo()
Get Document Info |
String |
getDocumentNo()
Get Document No |
String |
getProcessMsg()
Get Process Message |
String |
getSummary()
Get Summary |
boolean |
invalidateIt()
Invalidate Document. |
boolean |
isApproved()
Document is Approved |
boolean |
isClosed()
Document is Closed |
boolean |
isCompleted()
Document is Completed |
boolean |
isDrafted()
Document is Drafted |
boolean |
isInProgress()
Document is In Progress |
boolean |
isInvalid()
Document is Invalid |
boolean |
isNotApproved()
Document is Not Approved |
boolean |
isReversed()
Document is Reversed |
boolean |
isUnknown()
Document Status is Unknown |
boolean |
isValidAction(String action)
Is The Action Valid based on current state |
boolean |
isVoided()
Document is Voided |
boolean |
isWaiting()
Document is Waiting Payment or Confirmation |
boolean |
postIt()
Post Document Does not change status |
String |
prepareIt()
Process Document. |
boolean |
processIt(String action)
Process actual document - do not call directly. |
boolean |
processIt(String processAction,
String docAction)
Process actual document. |
boolean |
reActivateIt()
Re-activate Document. |
boolean |
rejectIt()
Reject Approval. |
boolean |
reverseAccrualIt()
Reverse Accrual Document. |
boolean |
reverseCorrectIt()
Reverse Correct Document. |
boolean |
save()
Save Document |
void |
setDocStatus(String ignored)
Set Doc Status - Ignored |
void |
setProcessMsg(String msg)
Get Process Message |
boolean |
unlockIt()
Unlock Document. |
boolean |
voidIt()
Void Document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DocumentEngine(DocAction po)
po - document
public DocumentEngine(DocAction po,
String docStatus)
po - documentdocStatus - initial document status| Method Detail |
|---|
public String getDocStatus()
getDocStatus in interface DocActionpublic void setDocStatus(String ignored)
setDocStatus in interface DocActionignored - Status is not set directlyDocAction.setDocStatus(String)public boolean isDrafted()
public boolean isInvalid()
public boolean isInProgress()
public boolean isApproved()
public boolean isNotApproved()
public boolean isWaiting()
public boolean isCompleted()
public boolean isReversed()
public boolean isClosed()
public boolean isVoided()
public boolean isUnknown()
public boolean processIt(String processAction,
String docAction)
processAction - document action based on workflowdocAction - document action based on document
public boolean processIt(String action)
processIt in interface DocActionaction - document action
public boolean unlockIt()
unlockIt in interface DocActionDocAction.unlockIt()public boolean invalidateIt()
invalidateIt in interface DocActionDocAction.invalidateIt()public String prepareIt()
prepareIt in interface DocActionDocAction.prepareIt()public boolean approveIt()
approveIt in interface DocActionDocAction.approveIt()public boolean rejectIt()
rejectIt in interface DocActionDocAction.rejectIt()public String completeIt()
completeIt in interface DocActionDocAction.completeIt()public boolean postIt()
public boolean voidIt()
voidIt in interface DocActionDocAction.voidIt()public boolean closeIt()
closeIt in interface DocActionDocAction.closeIt()public boolean reverseCorrectIt()
reverseCorrectIt in interface DocActionDocAction.reverseCorrectIt()public boolean reverseAccrualIt()
reverseAccrualIt in interface DocActionDocAction.reverseAccrualIt()public boolean reActivateIt()
reActivateIt in interface DocActionDocAction.reActivateIt()public String[] getActionOptions()
public boolean isValidAction(String action)
action - action
public String getProcessMsg()
getProcessMsg in interface DocActionpublic void setProcessMsg(String msg)
msg - clear text error messagepublic String getSummary()
getSummary in interface DocActionpublic String getDocumentNo()
getDocumentNo in interface DocActionpublic String getDocumentInfo()
getDocumentInfo in interface DocActionpublic int getDoc_User_ID()
getDoc_User_ID in interface DocActionpublic int getC_Currency_ID()
getC_Currency_ID in interface DocActionpublic BigDecimal getApprovalAmt()
getApprovalAmt in interface DocActionpublic int getAD_Client_ID()
getAD_Client_ID in interface DocActionpublic int getAD_Org_ID()
getAD_Org_ID in interface DocActionpublic String getDocAction()
getDocAction in interface DocActionpublic boolean save()
save in interface DocActionpublic Ctx getCtx()
getCtx in interface DocActionpublic int get_ID()
get_ID in interface DocActionpublic int get_Table_ID()
get_Table_ID in interface DocActionpublic CLogger get_Logger()
get_Logger in interface DocActionpublic String get_TrxName()
get_TrxName in interface DocActionpublic File createPDF()
createPDF in interface DocAction
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||