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

@UI(searchPanel="rightPanel", resultTable="stvImportOperationActivityFromWo", searchForm="fSearchOperationActivityFromWo") public class ImportOperationActivityFromWo extends BaseSearchContainer<BOActivityForecastHeader>
Activity Forecast Header search page.
Since:
15.0
See Also:
GCApi:
controller
  • Field Details

  • Constructor Details

    • ImportOperationActivityFromWo

      public ImportOperationActivityFromWo()
  • Method Details

    • setupWindow

      protected void setupWindow()
      Description copied from class: BaseSearchContainer
      Defines the initial page aspect setting the visibility field in the search form and launches the main search.
      Specified by:
      setupWindow in class BaseSearchContainer<BOActivityForecastHeader>
    • setOperationCenter

      protected void setOperationCenter(InputMultiDecoder imdOperationCenters, Long operationCenter)
      Sets the operation center.
      Parameters:
      imdOperationCenters - the input multi decoder for the operation center
      operationCenter - the operation center id
    • onShowDatePresets

      public boolean onShowDatePresets(UIMessage uim)
      Show the popup menu with the data preset values.
      Overrides:
      onShowDatePresets in class BaseSearchContainer<BOActivityForecastHeader>
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • onConfirm

      public boolean onConfirm(UIMessage uim)
      Confirm the selection of operation activities from work order to import in the forecast
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • createWorkLoadDistributionFilter

      protected void createWorkLoadDistributionFilter(WorkLoadDistributionSearchFilter searchFilter) throws DAValidateException, DAException
      Creates a workload distribution filter based on the provided search filter.
      Parameters:
      searchFilter - the WorkLoadDistributionSearchFilter to be used for creating the import filter
      Throws:
      DAValidateException - if there's a validation error during the filter creation
      DAException - if there's a data access error during the filter creation
    • onQuery

      public boolean onQuery(UIMessage uim)
      Description copied from class: BaseSearchContainer
      Main event for search action. It retrieves the search params from the uim and hide the search panel.
      Overrides:
      onQuery in class BaseSearchContainer<BOActivityForecastHeader>
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onPreview

      public boolean onPreview(UIMessage uim)
      This method calls the preview() method to update the result table, and then hides the search panel if it exists.
      Parameters:
      uim - the UIMessage for the preview event
      Returns:
      true to indicate the event was handled
    • preview

      protected void preview()
      Performs the preview operation by searching the result table with the current search filter.

      This method is called to update the displayed results based on the current search criteria.

    • setFilters

      protected void setFilters(Map<String,Object> formValues) throws DAValidateException
      Executes the search with shift.
      Parameters:
      formValues - the search form values map
      Throws:
      DAValidateException - the DA validate exception
    • getShiftUnit

      protected WorkLoadDistributionShiftUnit getShiftUnit(Map<String,Object> filters)
      Get the shift unit from the given filters.

      The shift unit is determined by the WorkLoadDistributionShiftUnit property.

      Parameters:
      filters - the filters
      Returns:
      the shift unit
    • getGroupingType

      protected WorkLoadDistributionGroupingType getGroupingType(Map<String,Object> filters)
      Get the grouping type from the given filters.

      The grouping type is determined by the WorkLoadDistributionGroupingType property.

      Parameters:
      filters - the map containing filter parameters
      Returns:
      the grouping type, or null if not specified in filters
    • getShiftQuantity

      protected Long getShiftQuantity(Map<String,Object> filters)
      Get the shift quantity from the given filters.
      Parameters:
      filters - the filters
      Returns:
      the shift quantity
    • getFilterParams

      protected Map<String,Object> getFilterParams(Map<String,Object> formValues)
      Description copied from class: BaseSearchContainer
      Returns the map used for generate the filter object.
      Overrides:
      getFilterParams in class BaseSearchContainer<BOActivityForecastHeader>
      Parameters:
      formValues - the search form values map
      Returns:
      a map used for generate the filter object
    • setFilterDate

      protected void setFilterDate(Map<String,Object> map)
      Sets the filter date into the given map.

      The filter date is determined by the getFilterParams(Map) method.

      The following parameters are set:

      Parameters:
      map - the map used for generate the filter object
    • onSetNewExpectedStartDate

      public boolean onSetNewExpectedStartDate(UIMessage uim)
      Handles the event when a new expected start date is set.

      This method updates the UI based on whether a new expected start date is set:

      • If a new date is set, it disables the shift unit and quantity fields
      • If no date is set, it enables the shift unit and quantity fields
      Parameters:
      uim - the UIMessage containing the event information
      Returns:
      true to indicate the event was handled
    • onSetShiftUnit

      public boolean onSetShiftUnit(UIMessage uim)
      Handles the event when a shift unit is set.

      This method updates the UI based on whether a shift unit is selected:

      • If a shift unit is selected, it disables the new expected start date field and makes the shift quantity required
      • If no shift unit is selected, it enables the new expected start date field and makes the shift quantity optional
      Parameters:
      uim - the UIMessage containing the event information
      Returns:
      true to indicate the event was handled
    • onSetGroupingType

      public boolean onSetGroupingType(UIMessage uim)
      Handles the event when a grouping type is set.

      This method updates the UI based on whether a grouping type is selected:

      • If a grouping type is selected, it enables the grouped activity field and makes it required
      • If no grouping type is selected, it disables the grouped activity field and makes it optional
      Parameters:
      uim - the UIMessage containing the event information
      Returns:
      true to indicate the event was handled