java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocallapp.wfm.schedulazione.consuntivazione.activity.CActivityOutcomeSectionBase
overit.geocallapp.wfm.core.ux.schedule.intervention.outcome.agenda.AgendaOutcome
All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Badgeable, Hideable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable, InterventionOutcomeSection

public class AgendaOutcome extends overit.geocallapp.wfm.schedulazione.consuntivazione.activity.CActivityOutcomeSectionBase
InterventionOutcomeSection to manage the agenda outcome data
Since:
9.2
See Also:
GCApi:
controller
  • Field Details

    • ERROR_WRONG_CODED_NOTE

      protected static final String ERROR_WRONG_CODED_NOTE
      See Also:
    • outcomeReasonInput

      protected InputLookup outcomeReasonInput
    • outcomeReasonOptions

      protected InputOption outcomeReasonOptions
    • codedNotesInput

      protected InputLookup codedNotesInput
    • takeInChargeInput

      protected InputDTZ takeInChargeInput
    • arrivalDateInput

      protected InputDTZ arrivalDateInput
    • outcomeStartInput

      protected InputDTZ outcomeStartInput
    • outcomeEndInput

      protected InputDTZ outcomeEndInput
    • freeNoteInput

      protected InputText freeNoteInput
  • Constructor Details

    • AgendaOutcome

      public AgendaOutcome()
  • Method Details

    • onOpen

      public void onOpen(Object obj)
      Description copied from class: Container
      Method called when is executed the WindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object) of the Window that contains the Container. It calls the onOpen(o) method of all the Container's childrens.
      If a page is opened through the process of a route, it is possible that the route was called with params to pass to the page.
      The route params could be passed specifying them like query string's param on the url, using commas or the '=' character, to separate the keys and the values. Valid syntaxs are: "&params=KEY1,VAL1,KEY2,VAL2" or "&params=KEY1=VAL1,KEY2=VAL2"
      In that case it is possible to retrieve those params via the WindowManager.getRouteParams() method that returns an HashGetter with the params passed as parameters.
      For example it's possible to retrieve and use the params in this way: HashGetter hg = getWM().getRouteParams();
      String val1 = hg.getString("key1",null);
      String val2 = hg.getString("key2",null);
      Overrides:
      onOpen in class overit.geocallapp.wfm.schedulazione.consuntivazione.activity.CActivityOutcomeSectionBase
      Parameters:
      obj - Object received from the caller
    • initForIntervention

      public void initForIntervention(Intervention intervention, InterventionOutcomeSaveInput storableData, WorkOrder workOrder)
      Description copied from interface: InterventionOutcomeSection
      Prepare the section to edit the given intervention
      Specified by:
      initForIntervention in interface InterventionOutcomeSection
      Overrides:
      initForIntervention in class overit.geocallapp.wfm.schedulazione.consuntivazione.activity.CActivityOutcomeSectionBase
      Parameters:
      intervention - the intervention to edit
      storableData - the storable data that holds the already edited data. Can be null.
      workOrder - the intervention's work order
    • onTakeInChargeChanged

      public boolean onTakeInChargeChanged(UIMessage uim)
      UI event handler intercept the take in charge date value changed. Is used to help the user in the editing of the other outcome dates.
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain
    • manageOutcomeEditability

      protected void manageOutcomeEditability(Intervention intervention)
      Define which agenda outcome fields are editable
      Parameters:
      intervention - the intervention to edit
    • getDefaultOutcomeReason

      protected Long getDefaultOutcomeReason(Intervention intervention)
      Looks at the activity configuration if a default outcome reason is defined
      Parameters:
      intervention - the intervention to edit
      Returns:
      the default outcome reason if configured, null otherwise.
    • manageInstalledEquipment

      protected void manageInstalledEquipment(Intervention intervention)
      Take care of the visibility of the installed equipment field
      Parameters:
      intervention - the intervention to edit
    • isInstalledEquipmentMandatory

      protected boolean isInstalledEquipmentMandatory(Intervention intervention)
      Define if the installed equipment field is mandatory
      Parameters:
      intervention - the intervention to edit
      Returns:
      true if the installed equipment is mandatory, false otherwise.
    • validate

      public List<DAValidateException> validate(Intervention intervention, InterventionOutcomeSaveInput storableData)
      Description copied from interface: InterventionOutcomeSection
      Validate the given values collecting the eventually generated exceptions.
      Specified by:
      validate in interface InterventionOutcomeSection
      Overrides:
      validate in class overit.geocallapp.wfm.schedulazione.consuntivazione.activity.CActivityOutcomeSectionBase
      Parameters:
      intervention - the intervention to validate
      storableData - the storable data
      Returns:
      a List of DAValidateException representing the validation errors
    • checkForSave

      public void checkForSave() throws DAValidateException
      Description copied from interface: InterventionOutcomeSection
      Method called before that the whole outcome will be saved. Is used by the section that handle data related to the whole operations set.
      Throws:
      DAValidateException - if the check fails
    • setInterventionGroup

      public void setInterventionGroup(BOInterventionGroup gruppoIntervento)
      Description copied from interface: InterventionOutcomeSection
      Set the new intervention group to use for the editing of the section.
      Parameters:
      gruppoIntervento - the intervention group to use for the editing of the section
    • reset

      public void reset()
      Description copied from interface: InterventionOutcomeSection
      Clear the section editing state
      Specified by:
      reset in interface InterventionOutcomeSection
      Overrides:
      reset in class overit.geocallapp.wfm.schedulazione.consuntivazione.activity.CActivityOutcomeSectionBase
    • highlightContainerRegistryNames

      protected String[] highlightContainerRegistryNames()
      Description copied from class: overit.geocallapp.wfm.schedulazione.consuntivazione.activity.CActivityOutcomeSectionBase
      Gets the names of the defined HighlightContainer
      Specified by:
      highlightContainerRegistryNames in class overit.geocallapp.wfm.schedulazione.consuntivazione.activity.CActivityOutcomeSectionBase
      Returns:
      the names of the defined HighlightContainer
    • prepareSaveData

      public void prepareSaveData(InterventionOutcomeSaveInput storableData)
      Description copied from interface: InterventionOutcomeSection
      Allows the section to add its information to the storable data that will be saved
      Parameters:
      storableData - the storable data to prepare in which the section can put its information
    • onOutcomeReasonChanged

      public void onOutcomeReasonChanged(Long causalId)
      Description copied from interface: InterventionOutcomeSection
      Notify the section that the outcome reason is just changed
      Specified by:
      onOutcomeReasonChanged in interface InterventionOutcomeSection
      Overrides:
      onOutcomeReasonChanged in class overit.geocallapp.wfm.schedulazione.consuntivazione.activity.CActivityOutcomeSectionBase
      Parameters:
      causalId - the new outcome reason
    • getSectionName

      public String getSectionName()
      Description copied from interface: InterventionOutcomeSection
      Gets the section name
      Returns:
      the section name
    • onInterventionWillBeClosed

      public void onInterventionWillBeClosed()
      Description copied from interface: InterventionOutcomeSection
      This method will be called after the outcome reason selection, for the work orders by orders when all the interventions have an outcome reason with conclusive type
    • onInterventionWillNotBeClosed

      public void onInterventionWillNotBeClosed()
      Description copied from interface: InterventionOutcomeSection
      This method will be called after the outcome reason selection, for the work orders by orders when there is at least one interventions with an outcome reason that is not conclusive
    • doValidation

      protected void doValidation(Intervention intervention) throws DAValidateException
      Throws:
      DAValidateException
    • isEnabledFutureDateValidation

      protected boolean isEnabledFutureDateValidation()
    • updateAvailableCodedNotes

      protected void updateAvailableCodedNotes()
      Define the available coded notes according to the current outcome reason