Class MProjectIssue

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_C_ProjectIssue, I_Persistent, DocAction, DocOptions, Evaluatee

public class MProjectIssue extends X_C_ProjectIssue implements DocAction, DocOptions
Project Issue Model
Version:
$Id: MProjectIssue.java,v 1.2 2006/07/30 00:51:02 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MProjectIssue

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

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

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

      public MProjectIssue(MProject project)
      New Parent Constructor
      Parameters:
      project - parent
  • Method Details

    • setMandatory

      public void setMandatory(int M_Locator_ID, int M_Product_ID, BigDecimal MovementQty)
      Set value of mandatory fields
      Parameters:
      M_Locator_ID - locator
      M_Product_ID - product
      MovementQty - qty
    • getParent

      public MProject getParent()
      Get Parent
      Returns:
      project
    • process

      @Deprecated public boolean process()
      Deprecated.
      Process Issue
      Returns:
      true if processed
    • isReversal

      public boolean isReversal()
      Returns:
      true if this is a reversal document created to reverse another document
    • setDocStatus

      public void setDocStatus(String newStatus)
      Description copied from class: X_C_ProjectIssue
      Set Document Status.
      Specified by:
      setDocStatus in interface DocAction
      Specified by:
      setDocStatus in interface I_C_ProjectIssue
      Overrides:
      setDocStatus in class X_C_ProjectIssue
      Parameters:
      newStatus - The current status of the document
    • getDocStatus

      public String getDocStatus()
      Description copied from class: X_C_ProjectIssue
      Get Document Status.
      Specified by:
      getDocStatus in interface DocAction
      Specified by:
      getDocStatus in interface I_C_ProjectIssue
      Overrides:
      getDocStatus in class X_C_ProjectIssue
      Returns:
      The current status of the document
    • processIt

      public boolean processIt(String action) throws Exception
      Description copied from interface: DocAction
      Process document
      Specified by:
      processIt in interface DocAction
      Parameters:
      action - document action
      Returns:
      true if performed
      Throws:
      Exception
    • unlockIt

      public boolean unlockIt()
      Description copied from interface: DocAction
      Unlock Document.
      Specified by:
      unlockIt in interface DocAction
      Returns:
      true if success
    • invalidateIt

      public boolean invalidateIt()
      Description copied from interface: DocAction
      Invalidate Document
      Specified by:
      invalidateIt in interface DocAction
      Returns:
      true if success
    • prepareIt

      public String prepareIt()
      Description copied from interface: DocAction
      Prepare Document
      Specified by:
      prepareIt in interface DocAction
      Returns:
      new status (In Progress or Invalid)
    • approveIt

      public boolean approveIt()
      Description copied from interface: DocAction
      Approve Document
      Specified by:
      approveIt in interface DocAction
      Returns:
      true if success
    • rejectIt

      public boolean rejectIt()
      Description copied from interface: DocAction
      Reject Approval
      Specified by:
      rejectIt in interface DocAction
      Returns:
      true if success
    • completeIt

      public String completeIt()
      Description copied from interface: DocAction
      Complete Document
      Specified by:
      completeIt in interface DocAction
      Returns:
      new status (Complete, In Progress, Invalid, Waiting ..)
    • voidIt

      public boolean voidIt()
      Description copied from interface: DocAction
      Void Document
      Specified by:
      voidIt in interface DocAction
      Returns:
      true if success
    • closeIt

      public boolean closeIt()
      Description copied from interface: DocAction
      Close Document
      Specified by:
      closeIt in interface DocAction
      Returns:
      true if success
    • reverseCorrectIt

      public boolean reverseCorrectIt()
      Description copied from interface: DocAction
      Reverse Correction
      Specified by:
      reverseCorrectIt in interface DocAction
      Returns:
      true if success
    • reverseAccrualIt

      public boolean reverseAccrualIt()
      Description copied from interface: DocAction
      Reverse Accrual
      Specified by:
      reverseAccrualIt in interface DocAction
      Returns:
      true if success
    • reActivateIt

      public boolean reActivateIt()
      Not implemented, always return false
      Specified by:
      reActivateIt in interface DocAction
      Returns:
      true if success
    • getSummary

      public String getSummary()
      Description copied from interface: DocAction
      Get Summary
      Specified by:
      getSummary in interface DocAction
      Returns:
      Summary of Document
    • getDocumentNo

      public String getDocumentNo()
      Description copied from interface: DocAction
      Get Document No
      Specified by:
      getDocumentNo in interface DocAction
      Returns:
      Document No
    • getDocumentInfo

      public String getDocumentInfo()
      Description copied from interface: DocAction
      Get Document Info
      Specified by:
      getDocumentInfo in interface DocAction
      Returns:
      Type and Document No
    • createPDF

      public File createPDF()
      Description copied from interface: DocAction
      Create PDF
      Specified by:
      createPDF in interface DocAction
      Returns:
      file
    • getProcessMsg

      public String getProcessMsg()
      Description copied from interface: DocAction
      Get Process Message
      Specified by:
      getProcessMsg in interface DocAction
      Returns:
      clear text message
    • getDoc_User_ID

      public int getDoc_User_ID()
      Description copied from interface: DocAction
      Get Document Owner
      Specified by:
      getDoc_User_ID in interface DocAction
      Returns:
      AD_User_ID
    • getC_Currency_ID

      public int getC_Currency_ID()
      Description copied from interface: DocAction
      Get Document Currency
      Specified by:
      getC_Currency_ID in interface DocAction
      Returns:
      C_Currency_ID
    • getApprovalAmt

      public BigDecimal getApprovalAmt()
      Description copied from interface: DocAction
      Get Document Approval Amount
      Specified by:
      getApprovalAmt in interface DocAction
      Returns:
      amount
    • getDocAction

      public String getDocAction()
      Description copied from class: X_C_ProjectIssue
      Get Document Action.
      Specified by:
      getDocAction in interface DocAction
      Specified by:
      getDocAction in interface I_C_ProjectIssue
      Overrides:
      getDocAction in class X_C_ProjectIssue
      Returns:
      The targeted status of the document
    • customizeValidActions

      public int customizeValidActions(String docStatus, Object processing, String orderType, String isSOTrx, int AD_Table_ID, String[] docAction, String[] options, int index)
      Description copied from interface: DocOptions
      Customize Valid Actions
      Specified by:
      customizeValidActions in interface DocOptions
      Returns:
      Number of valid options