Class PWorkOrderNote

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, AjaxableComponent, Badgeable, Hideable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

public class PWorkOrderNote extends Panel
Panel component for managing work order notes.
Since:
22.0
See Also:
  • Field Details

  • Constructor Details

    • PWorkOrderNote

      public PWorkOrderNote()
  • Method Details

    • show

      public void show(Long workOrderId)
      Shows the work order notes panel with the specified parameters.
      Overrides:
      show in class Panel
      Parameters:
      workOrderId - workOrderId the work order ID and other display parameters; must contain a non-null value for AWORID key
      Throws:
      IllegalArgumentException - if the parameters hash is null or doesn't contain a valid work order ID
      ApplicationException - if an error occurs while loading operations or notes
    • checkNewWorkOrder

      protected void checkNewWorkOrder()
      Checks if the work order is new and hides the "New Note" button if so.
    • loadWorkOrder

      protected void loadWorkOrder() throws DAException, DAValidateException
      Loads the work order associated with the notes.
      Throws:
      DAException
      DAValidateException
    • loadOperations

      protected void loadOperations() throws DAException, DAValidateException
      Loads work order operations for note association.
      Throws:
      ApplicationException - if a database error occurs during operation loading
      DAException
      DAValidateException
    • loadNotes

      protected void loadNotes()
      Loads and displays existing work order notes.
      Throws:
      ApplicationException - if a database error occurs during note loading
    • composeLabel

      protected void composeLabel()
      Composes and sets the panel title based on the work order code.
    • onNewNote

      public boolean onNewNote(UIMessage uim)
      UI event handler for creating a new work order note.
      Parameters:
      uim - the UI message containing event data from the user interface; follows standard UI event handler pattern for consistency
      Returns:
      true always, indicating that the event has been processed
    • saveNewNote

      protected boolean saveNewNote(BOWorkOrderNote note)
      Callback method for saving a new work order note.
      Parameters:
      note - the work order note to be saved; if null, no save operation is performed
      Returns:
      true always, indicating successful completion of the save workflow
      Throws:
      ApplicationException - if a database error occurs during note insertion