Class SearchDataCollectionSheet
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.datacollection.sheet.SearchDataCollectionSheet
- 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
Data collection sheet search page.
- Since:
- 12.0
- 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 static final Stringprotected Formprotected static final Stringprotected NullComponentprotected NullComponentprotected PanelCheckResultHelperprotected Panelprotected Panelprotected PanelSelectNotDummySchedulingUsersSheetprotected PlainButtonprotected PlainButtonprotected Panelprotected intprotected ServerTableViewDataCollectionSheetFields 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 voidaddAssetMenuItems(Menu menu) Builds the asset/account menu.protected voidaddLockMenuItems(Menu menu) Builds the lock menu.protected voidBuilds the scheduling resource menu.protected voidaddStatusMenuItems(Menu menu) Builds the status menu.protected voidaddWorkOrderMenuItems(Menu menu) Builds the work order menu.protected booleancanConfigureAssetAOrAccount(int row) Checks if it's possible to associate/disassociate asset/account for the sheet at the specified row.protected voidchangeSavedSearch(HashGetter values) protected voidexecuteExportXlsx(Map<String, Object> filters, String fileName) protected Map<String, overit.geocallapp.wfm.schedulazione.anagrafiche.ricerchesalvate.UtilsRicercheSalvate.RangeFieldsMapping> protected HashGetterBuild the push parameters for the technical object selection.protected voidprotected voidprotected booleanisAlreadyAssociateToAccount(int row) Checks if the sheet at the specified row is already associated to an account.protected booleanisAlreadyAssociateToAsset(int row) Checks if the sheet at the specified row is already associated to an asset.protected booleanisAlreadyAssociateToSchedulingUser(int row) protected booleanisPossibleToRequestUnlock(int row) Checks if it's possible to request an unlock for the sheet at the specified row.protected booleanisSheetAssociatedToWOOperation(int row) protected booleanisSheetCancelledOrClosed(int row) protected booleanisSheetCreatedWithWOCreationRule(int row) protected booleanisSheetFixed(int row) protected booleanisSheetOpen(int row) protected booleanisSheetUnlockedRequested(int row) Checks if an unlock has been requested for the sheet at the specified row.protected booleanisWoOperationClosed(int row) protected booleanisWoOperationScope(int row) protected DataCollectionTemplateloadDataCollectionTemplate(Long templateStructure) protected DataCollectionSheetInstanceloadDataSheetCollectionInstance(Long sheetId) protected voidprotected BOWorkOrderOperationloadWorkOrderOperation(Long woOperationId) voidUI event handler to manage the account selection.voidUI event handler to manage the asset selection.booleanUI event handler to associate the account.booleanUI event handler to associate the asset.booleanUI event handler to associate the scheduling user.booleanonCancelSheet(UIMessage uim) UI event handler to cancel a sheet.booleanUI event handler to change the saved search.booleanonCloseSheet(UIMessage uim) UI event handler to close the sheet.booleanUI event handler to close the sheet associated to the work order operation.booleanUI event handler to confirm the selection.booleanUI event handler to dissociate the account.booleanUI event handler to dissociate the asset.booleanUI event handler to dissociate the scheduling user.booleanonExportPdf(UIMessage uim) UI event handler to export the pdf.booleanonExportXlsx(UIMessage uim) UI event handler to export the xlsx.booleanonFilterTab(UIMessage uim) UI event handler to show filter tab.booleanonFixSheet(UIMessage uim) UI event handler to fix the sheet.booleanUI event handler to export multi xlsx.booleanUI event handler to show the new data collection sheet panel.voidonOkNameExport(UIMessage uim) UI event handler to confirm the export name.voidMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat contains the Container.booleanUI event handler to search theBODataCollectionSheets that correspond to a certain set of filters.booleanUI event handler to refresh the page.booleanonReportTab(UIMessage uim) UI event handler to show the report tab.booleanUI event handler to request unlock for a sheet.voidMethod called when is executed theWindowManager.pop(java.lang.Object)of the aboveWindow.booleanonRowClick(UIMessage uim) UI event handler to manage the row click.booleanUI event handler to show the row menu.booleanUI event handler to save the data collection sheet.booleanUI event handler to saved the search configuration.booleanonTableMenu(UIMessage uim) UI event handler to show the table menu.booleanonUnlockSheet(UIMessage uim) UI event handler to unlock a sheet.booleanUI event handler to view the sheet detail.booleanonViewTemplate(UIMessage uim) UI event handler to view the template.booleanUI event handler to view the WO creation rule.booleanonViewWorkOrder(UIMessage uim) UI event handler to view the work order.protected voidvoidSearches the data collection sheet.protected voidMethods inherited from class overit.geocall.basic.ui.Container
alert, applyRule, getBASIC, getBLANK, getHtml, getRO, getROField, onClose, onOpenChildContainer, 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
-
MSG_ARE_U_SURE
- See Also:
-
FILENAME
- See Also:
-
serverTableView
-
panelNew
-
rightPanel
-
panelExport
-
panelCheckResultHelper
-
panelSchedulingUser
-
form
-
panelViewDataCollectionTemplateWOCreationRule
protected PanelViewDataCollectionTemplateWOCreationRule panelViewDataCollectionTemplateWOCreationRule -
pbFilterTab
-
pbReportTab
-
ncFilter
-
ncReport
-
exportFilters
-
selectedRow
protected int selectedRow
-
-
Constructor Details
-
SearchDataCollectionSheet
public SearchDataCollectionSheet()
-
-
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); -
initComponent
protected void initComponent() -
searchDataCollectionSheet
public void searchDataCollectionSheet()Searches the data collection sheet. -
refreshSavedSearches
protected void refreshSavedSearches() -
onTableMenu
UI event handler to show the table menu.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onRowMenu
UI event handler to show the row menu.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
addWorkOrderMenuItems
Builds the work order menu.- Parameters:
menu- the menu
-
addSchedulingResourceMenuItems
Builds the scheduling resource menu.- Parameters:
menu- the menu
-
addStatusMenuItems
Builds the status menu.- Parameters:
menu- the menu
-
addLockMenuItems
Builds the lock menu.- Parameters:
menu- the menu
-
addAssetMenuItems
Builds the asset/account menu.- Parameters:
menu- the menu
-
canConfigureAssetAOrAccount
protected boolean canConfigureAssetAOrAccount(int row) Checks if it's possible to associate/disassociate asset/account for the sheet at the specified row.- Parameters:
row- the row index in the table view- Returns:
- true if it's possible to associate/disassociate asset/account, false otherwise
-
onAssociateAsset
UI event handler to associate the asset.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
getTechnicalObjectPushParams
Build the push parameters for the technical object selection.- Returns:
- the push parameters
-
onAfterAssetSelection
UI event handler to manage the asset selection.- Parameters:
o- the selected asset
-
onAssociateAccount
UI event handler to associate the account.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onAfterAccountSelection
UI event handler to manage the account selection.- Parameters:
o- the selected account
-
onDissociateAsset
UI event handler to dissociate the asset.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onDissociateAccount
UI event handler to dissociate the account.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onRowClick
UI event handler to manage the row click.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onFilterTab
UI event handler to show filter tab.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onReportTab
UI event handler to show the report tab.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onNew
UI event handler to show the new data collection sheet panel.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onSave
UI event handler to save the data collection sheet.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onQuery
UI event handler to search theBODataCollectionSheets that correspond to a certain set of filters.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onViewSheetDetail
UI event handler to view the sheet detail.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
loadDataSheetCollectionInstance
protected DataCollectionSheetInstance loadDataSheetCollectionInstance(Long sheetId) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
onViewTemplate
UI event handler to view the template.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
loadDataCollectionTemplate
protected DataCollectionTemplate loadDataCollectionTemplate(Long templateStructure) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
onViewWOCreationRule
UI event handler to view the WO creation rule.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
isSheetOpen
protected boolean isSheetOpen(int row) -
isSheetFixed
protected boolean isSheetFixed(int row) -
isSheetUnlockedRequested
protected boolean isSheetUnlockedRequested(int row) Checks if an unlock has been requested for the sheet at the specified row.- Parameters:
row- the row index in the table view- Returns:
- true if unlock has been requested, false otherwise
-
isPossibleToRequestUnlock
protected boolean isPossibleToRequestUnlock(int row) Checks if it's possible to request an unlock for the sheet at the specified row. Returns false if unlock is already requested or if validation fails.- Parameters:
row- the row index in the table view- Returns:
- true if unlock request is possible, false otherwise
-
isSheetCancelledOrClosed
protected boolean isSheetCancelledOrClosed(int row) -
isSheetAssociatedToWOOperation
protected boolean isSheetAssociatedToWOOperation(int row) -
isSheetCreatedWithWOCreationRule
protected boolean isSheetCreatedWithWOCreationRule(int row) -
isWoOperationClosed
protected boolean isWoOperationClosed(int row) -
loadWorkOrderOperation
protected BOWorkOrderOperation loadWorkOrderOperation(Long woOperationId) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
isAlreadyAssociateToSchedulingUser
protected boolean isAlreadyAssociateToSchedulingUser(int row) -
isWoOperationScope
protected boolean isWoOperationScope(int row) -
isAlreadyAssociateToAsset
protected boolean isAlreadyAssociateToAsset(int row) Checks if the sheet at the specified row is already associated to an asset.- Parameters:
row- the row index in the table view- Returns:
- true if the sheet is already associated to an asset, false otherwise
-
isAlreadyAssociateToAccount
protected boolean isAlreadyAssociateToAccount(int row) Checks if the sheet at the specified row is already associated to an account.- Parameters:
row- the row index in the table view- Returns:
- true if the sheet is already associated to an account, false otherwise
-
onCancelSheet
UI event handler to cancel a sheet.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onAssociateSchedulingUser
UI event handler to associate the scheduling user.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onDissociateSchedulingUser
UI event handler to dissociate the scheduling user.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onFixSheet
UI event handler to fix the sheet.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onCloseSheet
UI event handler to close the sheet.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onCloseSheetAssociatedToWoo
UI event handler to close the sheet associated to the work order operation.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onConfirmSelection
UI event handler to confirm the selection.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onViewWorkOrder
UI event handler to view the work order.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onMultiExportXlsx
UI event handler to export multi xlsx.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onExportXlsx
UI event handler to export the xlsx.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onOkNameExport
UI event handler to confirm the export name.- Parameters:
uim- theUIMessage
-
executeExportXlsx
-
onExportPdf
UI event handler to export the pdf.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
showFilterPanel
protected void showFilterPanel() -
hideFilterPanel
protected void hideFilterPanel() -
onRestore
Description copied from class:ContainerMethod called when is executed theWindowManager.pop(java.lang.Object)of the aboveWindow. It calls the onRestore(o) method of all the Container's childrens -
onRefresh
UI event handler to refresh the page.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onChangeSavedSearch
UI event handler to change the saved search.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
changeSavedSearch
-
getRangeFieldsMapping
-
onSavedSearchConfiguration
UI event handler to saved the search configuration.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onUnlockSheet
UI event handler to unlock a sheet.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
onRequestUnlockSheet
UI event handler to request unlock for a sheet.- Parameters:
uim- theUIMessage- Returns:
- true to break the responsibility chain, false otherwise.
-
loadDefaultSearch
protected void loadDefaultSearch()
-