Class PackingListNote

java.lang.Object
org.compiere.process.SvrProcess
org.brerp.tms.ui.apps.form.PackingListNote
All Implemented Interfaces:
ProcessCall

public class PackingListNote extends SvrProcess
PackingListNote
Version:
$Id: PackingListNote.java, 13/05/2015 17:24:35 lucasb
Author:
Lucas Buglio (lucas.buglio@devcoffee.com.br, http://www.devcoffee.com.br)
  • Field Details

    • log

      public static CLogger log
      Logger
    • m_WindowNo

      public int m_WindowNo
      Window No
    • packingStatus

      public String packingStatus
      Packing Type - Closed
  • Constructor Details

    • PackingListNote

      public PackingListNote()
  • Method Details

    • preparePackingTable

      public void preparePackingTable(IMiniTable miniTable)
      Prepare Table
      Parameters:
      miniTable -
    • preparePackingLineTable

      public void preparePackingLineTable(IMiniTable miniTable)
      Prepare Table
      Parameters:
      miniTable -
    • loadPackingLineTable

      public void loadPackingLineTable(IMiniTable miniTable, int AD_Org_ID, int COF_PackingList_ID)
      Query and create TableInfo
      Parameters:
      miniTable -
      AD_Org_ID -
      M_InOut_ID -
      packingType -
      M_Shipper_ID -
    • loadPackingTable

      public void loadPackingTable(IMiniTable miniTable, int AD_Org_ID, String packingType, int COF_Driver_ID, int COF_Equipments_ID, int COF_PackingList_ID)
    • onConfirm

      public String onConfirm(String tipoApontamento, IMiniTable pllMiniTable, IMiniTable plMiniTable, Timestamp shipDate, int COF_DeliveryOccurrence_ID, int userSearchId, int kmEquipment, int apontPeso)
      Update Packing-List
      Parameters:
      packingType -
      Returns:
    • onConfirmHeader

      public String onConfirmHeader(String tipoApontamento, IMiniTable pllMiniTable, IMiniTable plMiniTable, Timestamp shipDate, int COF_DeliveryOccurrence_ID, int userSearchId, int kmEquipment, int apontPeso)
      Update Packing-List
      Parameters:
      packingType -
      Returns:
    • updatePacking

      public void updatePacking(String tipoApontamento, IMiniTable plMiniTable, int userSearchId, int kmEquipment, int apontPeso, String trxName)
      Update Packing-List
      Parameters:
      packingType -
    • updatePackingLine

      public void updatePackingLine(IMiniTable pllMiniTable, IMiniTable plMiniTable, Timestamp shipDate, int COF_DeliveryOccurrence_ID, String trxName)
      Update Packing-List Line
      Parameters:
      packingType -
    • endPacking

      public void endPacking(int COF_PackingList_ID, Timestamp shipDate, String trxName)
      Ends Packing-List if Delivery Occurrence is Ends Packing
      Parameters:
      COF_PackingList_ID -
    • prepare

      protected void prepare()
      Description copied from class: SvrProcess
      Prepare - e.g., get Parameters.
      
      		ProcessInfoParameter[] para = getParameter();
      		for (int i = 0; i < para.length; i++)
      		{
      			String name = para[i].getParameterName();
      			if (para[i].getParameter() == null)
      				;
      			else if (name.equals("A_Asset_Group_ID"))
      				p_A_Asset_Group_ID = para[i].getParameterAsInt();
      			else if (name.equals("GuaranteeDate"))
      				p_GuaranteeDate = (Timestamp)para[i].getParameter();
      			else if (name.equals("AttachAsset"))
      				p_AttachAsset = "Y".equals(para[i].getParameter());
      			else
      				log.log(Level.SEVERE, "Unknown Parameter: " + name);
      		}
        
      Specified by:
      prepare in class SvrProcess
    • doIt

      protected String doIt() throws Exception
      Description copied from class: SvrProcess
      Perform process.
      Specified by:
      doIt in class SvrProcess
      Returns:
      Message (variables are parsed)
      Throws:
      Exception - if not successful e.g. throw new AdempiereUserError ("@FillMandatory@ @C_BankAccount_ID@");
    • getCOF_PackingList_Table_ID

      public int getCOF_PackingList_Table_ID()