Class BundleDetail
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocallapp.wfm.core.ux.bundler.search.detail.BundleDetail
- 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
Bundle detail page.
- Since:
- 10.1
- See Also:
- GCApi:
- controller
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.ui.Component
Component.Configurable, Component.ConfigurableAttribute, Component.ConfigurableAttributes, Component.FilterCriteria, Component.Registry -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BundleEntitiesAggregateprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected Formprotected Formprotected Formprotected Formprotected Formprotected Inputprotected BundleMapContainerprotected PlainButtonprotected PlainButtonprotected Panelprotected PlainButtonprotected static final Stringprotected static final Stringprotected ServerTableViewWithCountprotected ServerTableViewprotected ServerTableViewWithCountprotected ServerTableViewWithCountprotected ServerTableViewprotected TableButtonprotected TableMessageprotected TableMessageprotected ViewportPartFields 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 voidcompleteBundleOperationsData(DBView bundleOperationsDBView, boolean excludeCancelledOperations) protected voidcompleteSkillData(DBView skillDBView) protected String[]protected BOAddressgetAddress(BOBundleOperation bundleOperation) protected Stringprotected TechnicalObjectgetTechnicalObject(BOBundleCriterion criteria) protected StringgetWorkOrderOperationCode(Long bundleOperationId) Gets the work order operation code string for a given bundle operation ID.protected booleanChecks if any bundle operations have valid coordinate data.protected voidprotected voidInitializes the embedded map container with the current aggregate data.protected voidprotected BOBundlingRuleHeaderloadBundlingRuleHeader(Long rule) Loads theBOBundlingRuleHeaderfor the given id.protected PageResponse<BOSkillDivisionSkill> loadSkillDivisionSkills(Long skillDivisionId) protected voidmanageCoordinates(Boolean value) Manages the visibility of the coordinates input fields based on the needs.booleanUI event handler to show the bundle operation row menu.booleanUI event handler to show the bundle operation table menu.booleanUI event handler to ask the current user whether to cancel the selected bundle operation.booleanUI event handler to remove the selected operations from a bundle.booleanUI event handler to close the current page.booleanUI event handler to confirm the bundle operation cancellation.booleanUI event handler to confirm the cancel of the selected active operations from a bundle.booleanUI event handler to confirm the bundle locking.voidUI event handler to confirm the bundle operation reordering.booleanUI event handler to confirm the unbundle.booleanUI event handler to confirm the bundle unlocking.booleanUI event handler that refreshes the page after the bundle name has been updated.booleanonHideBundleMap(UIMessage uim) UI event handler to hide the embedded map.booleanUI event handler that allows to hide the cancelled operations in the bundle operation table.booleanonLockBundle(UIMessage uim) UI event handler to ask the current user whether to lock the bundle.booleanUI event handler to manage the confirmation of the bundle operation ordering.voidMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat contains the Container.booleanUI event handler to refresh the page.booleanUI event handler to reorder the bundle operations.booleanonShowBundleMap(UIMessage uim) UI event handler to show the embedded map.booleanUI event handler that allows to show the cancelled operations in the bundle operation table.booleanUI event handler to show the skill division composition panel.booleanUI event handler to show the skill division row menu.booleanonUnbundle(UIMessage uim) UI event handler to ask the current user whether to unbundle the selected bundle.booleanonUnlockBundle(UIMessage uim) UI event handler to ask the current user whether to unlock the bundle.booleanUI event handler to update the bundle name.booleanUI event handler to view the work order detail.protected voidreorderBundle(Long ordering) Reorders the bundle operations.protected voidsaveStartingPointData(Long ordering) Saves the starting point coordinates.protected voidprotected voidprotected voidprotected voidsetBundlingRuleData(BOBundleCriterion criteria) protected voidprotected voidprotected voidprotected voidsetFieldsVisibility(boolean isOnUpdate) protected voidsetMapButtonVisibility(boolean isOnUpdate) Sets the visibility of the map button based on whether bundle operations have valid coordinates.protected voidprotected voidsetOperationsData(boolean excludeCancelledOperations) protected voidsetOperationTypeData(BOBundleCriterion criteria) protected voidsetParentBundleName(BOBundleHeader header) Set the parent bundle name in the bundle scheduling data tab.protected voidsetProximityThreshold(Long rule) Sets the proximity threshold based on the selected bundling rule.protected voidsetRequestTypeData(BOBundleCriterion criteria) protected voidsetServiceTypeData(BOBundleCriterion criteria) protected voidSets the starting point coordinates.protected voidsetTeamCardinalityData(BOBundleCriterion criteria) protected voidsetTechnicalObjectTypeData(BOBundleCriterion criteria) protected voidMethods 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
-
FAKE_CARDINALITY
- See Also:
-
PROXIMITY_THRESHOLD
- See Also:
-
STARTING_POINT_STRATEGY
- See Also:
-
BUN_MANDATORYRESOURCES
- See Also:
-
BUN_PREFERREDRESOURCES
- See Also:
-
BUN_EXCLUDEDRESOURCES
- See Also:
-
fBundleHeader
-
fBundleSchedulingData
-
fBundleResourcesData
-
fBundleCriterionData
-
fBundleOrderings
-
tmHideCancelledOperations
-
tmShowCancelledOperations
-
pbUnbundle
-
pbLockBundle
-
pbUnlockBundle
-
stvBundleOperations
-
stvSkill
-
stvSkillDivision
-
stvSkillDivisionComposition
-
stvBundleOperationsOrdering
-
pBundleOrderings
-
idProximityThreshold
-
vpBundleMapEmbedded
-
mcBundleMap
-
tbShowMap
-
aggregate
-
-
Constructor Details
-
BundleDetail
public BundleDetail()
-
-
Method Details
-
onOpen
Description copied from class:ContainerMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat 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: "¶ms=KEY1,VAL1,KEY2,VAL2" or "¶ms=KEY1=VAL1,KEY2=VAL2"
In that case it is possible to retrieve those params via theWindowManager.getRouteParams()method that returns anHashGetterwith 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); -
initWindow
protected void initWindow() -
setFieldsVisibility
protected void setFieldsVisibility(boolean isOnUpdate) -
setOperationBarButtonsVisibility
-
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
-
setAggregateData
- Throws:
DAExceptionDAValidateException
-
setBundleCriterionData
protected void setBundleCriterionData() -
setRequestTypeData
protected void setRequestTypeData(BOBundleCriterion criteria) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
setServiceTypeData
protected void setServiceTypeData(BOBundleCriterion criteria) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
setTechnicalObjectTypeData
protected void setTechnicalObjectTypeData(BOBundleCriterion criteria) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
setOperationTypeData
protected void setOperationTypeData(BOBundleCriterion criteria) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getTechnicalObject
protected TechnicalObject getTechnicalObject(BOBundleCriterion criteria) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
setBundlingRuleData
protected void setBundlingRuleData(BOBundleCriterion criteria) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
setTeamCardinalityData
protected void setTeamCardinalityData(BOBundleCriterion criteria) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
setBundleHeaderData
- Throws:
DAExceptionDAValidateException
-
setParentBundleName
Set the parent bundle name in the bundle scheduling data tab.- Parameters:
header- the bundle header- Throws:
DAExceptionDAValidateException
-
setOperationsData
protected void setOperationsData(boolean excludeCancelledOperations) -
completeBundleOperationsData
protected void completeBundleOperationsData(DBView bundleOperationsDBView, boolean excludeCancelledOperations) -
getAdditionalOperationColumns
-
initializeBundleOperationTableButtons
protected void initializeBundleOperationTableButtons() -
onBundleOperationRowMenu
UI event handler to show the bundle operation row menu.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onBundleOperationTableMenu
UI event handler to show the bundle operation table menu.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onViewWorkOrderDetail
UI event handler to view the work order detail.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onCancelBundleOperation
UI event handler to ask the current user whether to cancel the selected bundle operation.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onConfirmCancelBundleOperation
UI event handler to confirm the bundle operation cancellation.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onRefresh
UI event handler to refresh the page.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
updateAggregate
- Throws:
DAValidateExceptionDAException
-
onUnbundle
UI event handler to ask the current user whether to unbundle the selected bundle.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onConfirmUnbundle
UI event handler to confirm the unbundle.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onClose
UI event handler to close the current page.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
setDBViewSkill
protected void setDBViewSkill() -
completeSkillData
-
setDBViewSkillDivision
protected void setDBViewSkillDivision() -
onSkillDivisionRowMenu
UI event handler to show the skill division row menu.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onSkillDivisionComposition
UI event handler to show the skill division composition panel.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
setDBViewSkillDivisionComposition
-
loadSkillDivisionSkills
protected PageResponse<BOSkillDivisionSkill> loadSkillDivisionSkills(Long skillDivisionId) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
getTeamCardinalityDescription
-
onHideCancelledOperations
UI event handler that allows to hide the cancelled operations in the bundle operation table.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onShowCancelledOperations
UI event handler that allows to show the cancelled operations in the bundle operation table.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onUnlockBundle
UI event handler to ask the current user whether to unlock the bundle.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onConfirmUnlockBundle
UI event handler to confirm the bundle unlocking.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onLockBundle
UI event handler to ask the current user whether to lock the bundle.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onConfirmLockBundle
UI event handler to confirm the bundle locking.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onReorderBundleOperations
UI event handler to reorder the bundle operations.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
setStartingPointCoordinates
Sets the starting point coordinates.- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
onConfirmReorderBundleOperations
UI event handler to confirm the bundle operation reordering.- Parameters:
uim- theUIMessage
-
onCancelSelectedBundleOperations
UI event handler to remove the selected operations from a bundle.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onConfirmCancelSelectedBundleOperations
UI event handler to confirm the cancel of the selected active operations from a bundle.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onShowBundleMap
UI event handler to show the embedded map.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onHideBundleMap
UI event handler to hide the embedded map.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
saveStartingPointData
Saves the starting point coordinates.- Parameters:
ordering- the ordering to apply- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
reorderBundle
Reorders the bundle operations.- Parameters:
ordering- the ordering to apply- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-
onManageConfirmOrdering
UI event handler to manage the confirmation of the bundle operation ordering.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
manageCoordinates
Manages the visibility of the coordinates input fields based on the needs.- Parameters:
value- true if the coordinates should be hidden, false otherwise
-
onUpdateBundleName
UI event handler to update the bundle name.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onConfirmUpdateBundle
UI event handler that refreshes the page after the bundle name has been updated. SeePanelUpdateBundle.onConfirmUpdateBundle(UIMessage)- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
getWorkOrderOperationCode
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 theBOBundlingRuleHeaderfor the given id.- Parameters:
rule- theBOBundlingRuleHeaderid- Returns:
- the loaded
BOBundlingRuleHeader - Throws:
DAValidateException- if a validation error occursDAException- if a database error occurs
-
setProximityThreshold
Sets the proximity threshold based on the selected bundling rule.- Parameters:
rule- theBOBundlingRuleHeaderid- Throws:
DAValidateException- if a validation error occursDAException- if a database error occurs
-