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

public class BundleDetail extends Container
Bundle detail page.
Since:
10.1
See Also:
GCApi:
controller
  • Field Details

  • Constructor Details

    • BundleDetail

      public BundleDetail()
  • Method Details

    • onOpen

      public void onOpen(Object o)
      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 Container
      Parameters:
      o - Object received from the caller
    • initWindow

      protected void initWindow()
    • setFieldsVisibility

      protected void setFieldsVisibility(boolean isOnUpdate)
    • setOperationBarButtonsVisibility

      protected void setOperationBarButtonsVisibility(BOBundleHeader header)
    • setMapButtonVisibility

      protected void setMapButtonVisibility(boolean isOnUpdate)
      Sets the visibility of the map button based on whether bundle operations have valid coordinates.
      Parameters:
      isOnUpdate - true if the method is called during an update, false otherwise
    • initializeEmbeddedMap

      protected void initializeEmbeddedMap()
      Initializes the embedded map container with the current aggregate data. The map is initially hidden and will be shown when the user clicks the Show Map button.
    • hasOperationsWithCoordinates

      protected boolean hasOperationsWithCoordinates()
      Checks if any bundle operations have valid coordinate data.
      Returns:
      true if at least one operation has valid coordinates, false otherwise
    • getAddress

      protected BOAddress getAddress(BOBundleOperation bundleOperation)
    • setAggregateData

      protected void setAggregateData() throws DAException, DAValidateException
      Throws:
      DAException
      DAValidateException
    • setBundleCriterionData

      protected void setBundleCriterionData()
    • setRequestTypeData

      protected void setRequestTypeData(BOBundleCriterion criteria) throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • setServiceTypeData

      protected void setServiceTypeData(BOBundleCriterion criteria) throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • setTechnicalObjectTypeData

      protected void setTechnicalObjectTypeData(BOBundleCriterion criteria) throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • setOperationTypeData

      protected void setOperationTypeData(BOBundleCriterion criteria) throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • getTechnicalObject

      protected TechnicalObject getTechnicalObject(BOBundleCriterion criteria) throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • setBundlingRuleData

      protected void setBundlingRuleData(BOBundleCriterion criteria) throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • setTeamCardinalityData

      protected void setTeamCardinalityData(BOBundleCriterion criteria) throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • setBundleHeaderData

      protected void setBundleHeaderData() throws DAException, DAValidateException
      Throws:
      DAException
      DAValidateException
    • setParentBundleName

      protected void setParentBundleName(BOBundleHeader header) throws DAException, DAValidateException
      Set the parent bundle name in the bundle scheduling data tab.
      Parameters:
      header - the bundle header
      Throws:
      DAException
      DAValidateException
    • setOperationsData

      protected void setOperationsData(boolean excludeCancelledOperations)
    • completeBundleOperationsData

      protected void completeBundleOperationsData(DBView bundleOperationsDBView, boolean excludeCancelledOperations)
    • getAdditionalOperationColumns

      protected String[] getAdditionalOperationColumns()
    • initializeBundleOperationTableButtons

      protected void initializeBundleOperationTableButtons()
    • onBundleOperationRowMenu

      public boolean onBundleOperationRowMenu(UIMessage uim)
      UI event handler to show the bundle operation row menu.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onBundleOperationTableMenu

      public boolean onBundleOperationTableMenu(UIMessage uim)
      UI event handler to show the bundle operation table menu.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onViewWorkOrderDetail

      public boolean onViewWorkOrderDetail(UIMessage uim)
      UI event handler to view the work order detail.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onCancelBundleOperation

      public boolean onCancelBundleOperation(UIMessage uim)
      UI event handler to ask the current user whether to cancel the selected bundle operation.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onConfirmCancelBundleOperation

      public boolean onConfirmCancelBundleOperation(UIMessage uim)
      UI event handler to confirm the bundle operation cancellation.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onRefresh

      public boolean onRefresh(UIMessage uim)
      UI event handler to refresh the page.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • updateAggregate

      protected void updateAggregate() throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • onUnbundle

      public boolean onUnbundle(UIMessage uim)
      UI event handler to ask the current user whether to unbundle the selected bundle.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onConfirmUnbundle

      public boolean onConfirmUnbundle(UIMessage uim)
      UI event handler to confirm the unbundle.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onClose

      public boolean onClose(UIMessage uim)
      UI event handler to close the current page.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • setDBViewSkill

      protected void setDBViewSkill()
    • completeSkillData

      protected void completeSkillData(DBView skillDBView)
    • setDBViewSkillDivision

      protected void setDBViewSkillDivision()
    • onSkillDivisionRowMenu

      public boolean onSkillDivisionRowMenu(UIMessage uim)
      UI event handler to show the skill division row menu.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onSkillDivisionComposition

      public boolean onSkillDivisionComposition(UIMessage uim)
      UI event handler to show the skill division composition panel.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • setDBViewSkillDivisionComposition

      protected void setDBViewSkillDivisionComposition(List<BOSkillDivisionSkill> relations)
    • loadSkillDivisionSkills

      protected PageResponse<BOSkillDivisionSkill> loadSkillDivisionSkills(Long skillDivisionId) throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • getTeamCardinalityDescription

      protected String getTeamCardinalityDescription()
    • onHideCancelledOperations

      public boolean onHideCancelledOperations(UIMessage uim)
      UI event handler that allows to hide the cancelled operations in the bundle operation table.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onShowCancelledOperations

      public boolean onShowCancelledOperations(UIMessage uim)
      UI event handler that allows to show the cancelled operations in the bundle operation table.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onUnlockBundle

      public boolean onUnlockBundle(UIMessage uim)
      UI event handler to ask the current user whether to unlock the bundle.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onConfirmUnlockBundle

      public boolean onConfirmUnlockBundle(UIMessage uim)
      UI event handler to confirm the bundle unlocking.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onLockBundle

      public boolean onLockBundle(UIMessage uim)
      UI event handler to ask the current user whether to lock the bundle.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onConfirmLockBundle

      public boolean onConfirmLockBundle(UIMessage uim)
      UI event handler to confirm the bundle locking.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onReorderBundleOperations

      public boolean onReorderBundleOperations(UIMessage uim)
      UI event handler to reorder the bundle operations.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • setStartingPointCoordinates

      protected void setStartingPointCoordinates() throws DAValidateException, DAException
      Sets the starting point coordinates.
      Throws:
      DAValidateException - the DA validate exception
      DAException - the DA exception
    • onConfirmReorderBundleOperations

      public void onConfirmReorderBundleOperations(UIMessage uim)
      UI event handler to confirm the bundle operation reordering.
      Parameters:
      uim - the UIMessage
    • onCancelSelectedBundleOperations

      public boolean onCancelSelectedBundleOperations(UIMessage uim)
      UI event handler to remove the selected operations from a bundle.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onConfirmCancelSelectedBundleOperations

      public boolean onConfirmCancelSelectedBundleOperations(UIMessage uim)
      UI event handler to confirm the cancel of the selected active operations from a bundle.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onShowBundleMap

      public boolean onShowBundleMap(UIMessage uim)
      UI event handler to show the embedded map.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onHideBundleMap

      public boolean onHideBundleMap(UIMessage uim)
      UI event handler to hide the embedded map.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • saveStartingPointData

      protected void saveStartingPointData(Long ordering) throws DAValidateException, DAException
      Saves the starting point coordinates.
      Parameters:
      ordering - the ordering to apply
      Throws:
      DAValidateException - the DA validate exception
      DAException - the DA exception
    • reorderBundle

      protected void reorderBundle(Long ordering) throws DAValidateException, DAException
      Reorders the bundle operations.
      Parameters:
      ordering - the ordering to apply
      Throws:
      DAValidateException - the DA validate exception
      DAException - the DA exception
    • onManageConfirmOrdering

      public boolean onManageConfirmOrdering(UIMessage uim)
      UI event handler to manage the confirmation of the bundle operation ordering.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • manageCoordinates

      protected void manageCoordinates(Boolean value)
      Manages the visibility of the coordinates input fields based on the needs.
      Parameters:
      value - true if the coordinates should be hidden, false otherwise
    • onUpdateBundleName

      public boolean onUpdateBundleName(UIMessage uim)
      UI event handler to update the bundle name.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onConfirmUpdateBundle

      public boolean onConfirmUpdateBundle(UIMessage uim)
      UI event handler that refreshes the page after the bundle name has been updated. See PanelUpdateBundle.onConfirmUpdateBundle(UIMessage)
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • getWorkOrderOperationCode

      protected String getWorkOrderOperationCode(Long bundleOperationId)
      Gets the work order operation code string for a given bundle operation ID.
      Parameters:
      bundleOperationId - the bundle operation ID
      Returns:
      the formatted string "workOrderCode - executionOrder"
    • loadBundlingRuleHeader

      protected BOBundlingRuleHeader loadBundlingRuleHeader(Long rule) throws DAValidateException, DAException
      Loads the BOBundlingRuleHeader for the given id.
      Parameters:
      rule - the BOBundlingRuleHeader id
      Returns:
      the loaded BOBundlingRuleHeader
      Throws:
      DAValidateException - if a validation error occurs
      DAException - if a database error occurs
    • setProximityThreshold

      protected void setProximityThreshold(Long rule) throws DAValidateException, DAException
      Sets the proximity threshold based on the selected bundling rule.
      Parameters:
      rule - the BOBundlingRuleHeader id
      Throws:
      DAValidateException - if a validation error occurs
      DAException - if a database error occurs