Class MCOFOSServico

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_COF_OSServico, I_Persistent, Evaluatee

public class MCOFOSServico extends X_COF_OSServico
See Also:
  • Constructor Details

  • Method Details

    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      Called before Save for Pre-Save Operation
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - new record
      Returns:
      true if record can be saved
    • calcGrandTotal

      public void calcGrandTotal()
    • afterSave

      protected boolean afterSave(boolean newRecord, boolean success)
      Description copied from class: PO
      Called after Save for Post-Save Operation
      Overrides:
      afterSave in class PO
      Parameters:
      newRecord - new record
      success - true if save operation was success
      Returns:
      if save was a success
    • beforeDelete

      protected boolean beforeDelete()
      Description copied from class: PO
      Executed before Delete operation.
      Overrides:
      beforeDelete in class PO
      Returns:
      true if record can be deleted
    • afterDelete

      protected boolean afterDelete(boolean success)
      Description copied from class: PO
      Executed after Delete operation.
      Overrides:
      afterDelete in class PO
      Parameters:
      success - true if record deleted
      Returns:
      true if delete is a success
    • getValorTotalIncorporado

      public static BigDecimal getValorTotalIncorporado(Integer servicoID, Integer ordemServicoID, String trx)
      Returns:
      Soma de todos os valores totais da aba produto quando incorporar servico com o id passado ou 0
    • getQuantidadeTotalIncorporado

      public static BigDecimal getQuantidadeTotalIncorporado(Integer servicoID, Integer ordemServicoID, String trx)
      Returns:
      Soma de todos as quantidades de servico da aba produto quando incorporar servico com o id passado ou 0