Package overit.geocallapp.wfm.planning.ux.forecastcapacity.forecast.activity.importoperationactivityfromwo
Class ImportOperationActivityFromWo
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocallapp.utilities.ux.ui.container.BaseSearchContainer<BOActivityForecastHeader>
overit.geocallapp.wfm.planning.ux.forecastcapacity.forecast.activity.importoperationactivityfromwo.ImportOperationActivityFromWo
- 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
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocallapp.utilities.ux.ui.container.BaseSearchContainer
BaseSearchContainer.Navigation, BaseSearchContainer.UINested classes/interfaces inherited from class overit.geocall.ui.Component
Component.Configurable, Component.ConfigurableAttribute, Component.ConfigurableAttributes, Component.FilterCriteria, Component.Registry -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected InputDateprotected InputLookupprotected InputMultiDecoderprotected InputLongstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class overit.geocallapp.utilities.ux.ui.container.BaseSearchContainer
currentRow, dateRangePresets, openObject, resultTable, searchFilter, searchForm, searchPanelFields inherited from class overit.geocall.basic.ui.Container
_rofields, _rules, DALINK_NO, DALINK_YES, DATE_MAX, DATE_MIN, TIME_MAX, TIME_MIN, TYPE_ACTION, TYPE_BOOLEAN, TYPE_DATE, TYPE_DOUBLE, TYPE_DTZ, TYPE_EURO, TYPE_FILE, TYPE_FILES, TYPE_INTEGER, TYPE_LONG, TYPE_LONGARRAY, TYPE_MAP, TYPE_MAXDATE, TYPE_MAXTIME, TYPE_MEASURE, TYPE_MINDATE, TYPE_MINTIME, TYPE_NEWACTION, TYPE_STRING, TYPE_STRINGARRAY, TYPE_SUBSET, TYPE_SUBSETRANGE, TYPE_SUPPORT, TYPE_TIMERANGEFields inherited from class overit.geocall.ui.Control
_blank, _cleaner, _dblink, _enabled, _ro, _title, altEventIconsList, altIcon, ariaDescription, ariaLabel, badge, badgeformat, FILTER_PREFIXES, LABEL_ATTRIBUTE, LABEL_IN_LINE_ATTRIBUTE, STATE_BLANK, STATE_NORMAL, STATE_RO, STATE_ROBLANKFields inherited from class overit.geocall.ui.Component
_basic, _childrenContainers, _currentId, _gridalign, _gridcols, _gridrows, _gridvalign, _iconElement, _id, _keylabel, _label, _layoutName, _name, _parentContainer, _registryName, _shortcut, _tabindex, _transformations, _valuesContainer, aliasField, BR, configHidden, configuredLabel, configuredLabelInLine, defaultHidden, ELEMENT_BR, ELEMENT_NULL, entityContainer, entityName, extendedField, fullHeight, important, labelInLine, layoutLabel, PIXEL_IMG, safeInlineService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreates a workload distribution filter based on the provided search filter.getFilterParams(Map<String, Object> formValues) Returns the map used for generate the filter object.protected WorkLoadDistributionGroupingTypegetGroupingType(Map<String, Object> filters) Get the grouping type from the given filters.protected LonggetShiftQuantity(Map<String, Object> filters) Get the shift quantity from the given filters.protected WorkLoadDistributionShiftUnitgetShiftUnit(Map<String, Object> filters) Get the shift unit from the given filters.booleanConfirm the selection of operation activities from work order to import in the forecastbooleanThis method calls the preview() method to update the result table, and then hides the search panel if it exists.booleanMain event for search action.booleanHandles the event when a grouping type is set.booleanHandles the event when a new expected start date is set.booleanonSetShiftUnit(UIMessage uim) Handles the event when a shift unit is set.booleanShow the popup menu with the data preset values.protected voidpreview()Performs the preview operation by searching the result table with the current search filter.protected voidsetFilterDate(Map<String, Object> map) Sets the filter date into the given map.protected voidsetFilters(Map<String, Object> formValues) Executes the search with shift.protected voidsetOperationCenter(InputMultiDecoder imdOperationCenters, Long operationCenter) Sets the operation center.protected voidDefines the initial page aspect setting the visibility field in the search form and launches the main search.Methods inherited from class overit.geocallapp.utilities.ux.ui.container.BaseSearchContainer
addRowMenuItems, addTableMenuItems, dateRangesPresets, getSelectedObject, isEditingEnabled, onApplyPreset, onClearDatePresets, onEdit, onFilterTab, onHideSearchPanel, onNew, onOpen, onRefresh, onRefreshRow, onRowClick, onRowMenu, onShowSearchPanel, onTableMenu, onView, refresh, refreshCurrentTableRow, search, showFilterPanelMethods inherited from class overit.geocall.basic.ui.Container
alert, applyRule, getBASIC, getBLANK, getHtml, getRO, getROField, onClose, onOpenChildContainer, onRestore, onRule, prepareName, rulesNewValues, setROField, setValues, setValuesMethods inherited from class overit.geocall.ui.Control
avoidNull, clean, getBadgeFormat, getBadgeValue, getCleaner, getConfigurableProperties, getDAValues, getDBLINK, getKEYLABEL, getLABEL, getState, getTITLE, getValues, getWM, isEnabled, isEnabledBasedOnFunction, isFunctionEnabled, isImportant, isRoBasedOnFunction, nameWithNoFilterPrefix, setALTEVENTICON, setALTICON, setARIADESCRIPTION, setARIALABEL, setBADGEFORMAT, setBADGEVALUE, setBLANK, setCLEANER, setConfiguredProperty, setDBLINK, setENABLED, setFUNCTION, setModelProperties, setRO, setTitle, setTITLEMethods inherited from class overit.geocall.ui.Component
adapt, ajaxQuery, appendAttribute, buildDisplayScript, buildSetupScript, calcKeyLabel, calcLabel, calcShortcut, canBeConfigured, changed, clearConfiguredProperties, componentIterator, componentSize, connect, containerIterator, createAjaxFrame, deprecate, fillSetupScript, generateFlexableFullHeightContainer, generateId, getBoolean, getBoolean, getChildrenComponents, getChildrenContainers, getDefaultLabel, getDefaultLayoutLabel, getEntityContainer, getEntityName, getFullHeight, getGridAlign, getGridCols, getGridRows, getGridVAlign, getHtmlLabel, getHtmlLabel, getIcon, getId, getIdentity, getint, getLayoutLabel, getLayoutName, getNAME, getParentComponent, getParentContainer, getPublishedChildrenList, getRegistryName, getSHORTCUT, getTabIndex, getTeacher, getValuesContainer, getWindow, initChilds, isActivable, isActive, isAliasField, isConfigHidden, isDefaultHidden, isExtendedField, isLabelInLine, onInit, setActivable, setActive, setAliasField, setBASIC, setConfigHidden, setDEFAULTHIDDEN, setEntityName, setExtendedField, setFULLHEIGHT, setGRIDALIGN, setGRIDCOLS, setGRIDROWS, setGRIDVALIGN, setICON, setIdentity, setIMPORTANT, setLabel, setLABEL, setLABELINLINE, setLAYOUTLABEL, setLAYOUTNAME, setNAME, setREGISTRYNAME, setTooltip, setup, setValuesContainer, stringForJs, tabIndexerMethods inherited from class overit.geocall.platform.ui.UINode
addChild, addChildText, getChildren, getNodeId, getParent, getRoot, getSchema, setNodeId, setParent, setSchemaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.ui.Badgeable
badgeFormat, makeBadgedIcon
-
Field Details
-
FROM
- See Also:
-
TO
- See Also:
-
SHIFT_UNIT
- See Also:
-
SHIFT_QUANTITY
- See Also:
-
NEW_EXPECTED_START_DATE
- See Also:
-
GROUPED_ACTIVITY
- See Also:
-
idNewExpectedStartDate
-
ilShiftUnit
-
iShiftQuantity
-
imdGroupedActivity
-
-
Constructor Details
-
ImportOperationActivityFromWo
public ImportOperationActivityFromWo()
-
-
Method Details
-
setupWindow
protected void setupWindow()Description copied from class:BaseSearchContainerDefines the initial page aspect setting the visibility field in the search form and launches the main search.- Specified by:
setupWindowin classBaseSearchContainer<BOActivityForecastHeader>
-
setOperationCenter
Sets the operation center.- Parameters:
imdOperationCenters- the input multi decoder for the operation centeroperationCenter- the operation center id
-
onShowDatePresets
Show the popup menu with the data preset values.- Overrides:
onShowDatePresetsin classBaseSearchContainer<BOActivityForecastHeader>- Parameters:
uim- the UIMessage- Returns:
- true, if successful
-
onConfirm
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- theWorkLoadDistributionSearchFilterto be used for creating the import filter- Throws:
DAValidateException- if there's a validation error during the filter creationDAException- if there's a data access error during the filter creation
-
onQuery
Description copied from class:BaseSearchContainerMain event for search action. It retrieves the search params from the uim and hide the search panel.- Overrides:
onQueryin classBaseSearchContainer<BOActivityForecastHeader>- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onPreview
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
Executes the search with shift.- Parameters:
formValues- the search form values map- Throws:
DAValidateException- the DA validate exception
-
getShiftUnit
Get the shift unit from the given filters.The shift unit is determined by the
WorkLoadDistributionShiftUnitproperty.- Parameters:
filters- the filters- Returns:
- the shift unit
-
getGroupingType
Get the grouping type from the given filters.The grouping type is determined by the
WorkLoadDistributionGroupingTypeproperty.- Parameters:
filters- the map containing filter parameters- Returns:
- the grouping type, or null if not specified in filters
-
getShiftQuantity
Get the shift quantity from the given filters.- Parameters:
filters- the filters- Returns:
- the shift quantity
-
getFilterParams
Description copied from class:BaseSearchContainerReturns the map used for generate the filter object.- Overrides:
getFilterParamsin classBaseSearchContainer<BOActivityForecastHeader>- Parameters:
formValues- the search form values map- Returns:
- a map used for generate the filter object
-
setFilterDate
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
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
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
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
-