Class CDashboardFailureDD
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocallapp.wfm.notifications.dashboard.CDashboardBasic
overit.geocallapp.wfm.notifications.dashboard.failuresdeepdive.CDashboardFailureDD
- 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
- See Also:
-
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 Long[]protected DBViewprotected Formprotected Stringprotected JFCSerieprotected JFCSerieParetoprotected intprotected intprotected List<NotificationGroupManager> protected NullComponentprotected Panelprotected ServerMultiFormFields inherited from class overit.geocallapp.wfm.notifications.dashboard.CDashboardBasic
_chartPrinter, _const, _dateRangePresets, _datLoadChart, _defaultSearch, _fSearch, _hgSearchParams, _pOptions, LOG, MAX_NAME_SIZE, SAVED_SEARCH_PAGEFields 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 TypeMethodDescriptionbooleanbuildInfoDetailFailures(HashGetter serieData) Build the string (html format) to show in the Info button over the graphprotected StringgetLabelForChart(int index) Return the label of column iprotected DATaskGet the task that retrive graph dataprotected StringGet the name of the event triggered on chart column clickprotected StringGet the name of the event triggered at click on one top element of the top failures chartprotected HashGettergetMainSerieData(HashGetter hgOther, HashGetter hgTop, Boolean onlyTop) Return the needed data to display a graph hgOther & hgTop have the same columnsprotected HashGettergetSerieForMainChart(HashGetter hg, int mapIndex, Boolean onlyTop) Given a group manager index, create data for chart plot grouping rows of top/other dbviewsprotected HashGettergetSerieForTopChart(NotificationGroupManager group, int columnNumber) Return the needed data to display top chartgroupChartData(DBView dbvChartData, HashGetter hgFilter) protected voidGet components from xml It must be overrided in subclassprotected voidLoad all the charts defined on xmlvoidloadChart(HashGetter hgFilter) Get data from loading task and build the main graphs Task dbvs are managed with specific object to split them on 2 parts, top & not topbooleanonInfoChart(HashGetter params) Show info popup of chartbooleanonPrintChart(HashGetter oParams) Call print chartvoidMethod called when is executed theWindowManager.pop(java.lang.Object)of the aboveWindow.booleanLaunch main search from detail panel options of main chartbooleanonShowFailureDetails(HashGetter params) Show panel with CHART_TIME - 1 timeslot for the range rappresented by the clicked columnvoidShow menù of main chartbooleanOpens notification window to show notifications that occurences in the column clicked by the userbooleanonShowTopFailures(HashGetter params) Show panel with the top facilityvoidShow menù of top chartbooleanOpens notification window to show notifications that occurences in the column clicked by the userbooleanonShowTopWO(UIMessage uim) Opens wo window to show wo that occurences in the column clicked by the userbooleanOpens wo window to show wo that occurences in the column clicked by the uservoidprepareData(HashGetter hgFilter) Get field from form, convert (multi)decorder fields and set task parametersprotected StringprepareTitle(String label, Long chartType) Calculate data range for title and call super methodprotected voidsetChartList(List<JFCSerie> charts, String name) Add the list of main/detail chart to the specific container managerprotected voidDefine initial window style It must be overrided in subclass and must contain: - loadSearchConfigs(searchType) - path of saved search page to link (SAVED_SEARCH_PAGE)Object[]showMainChartFailuresNum(HashGetter params, Boolean onlyTop) Build and display main chartvoidshowTopChartFailuresNum(HashGetter hgResult) Build and display top chartsprotected HashGettersumColumns(DBView dbv, String date) Given a dbv, for each numeric column, sum all rows and return an hashgetter with these valuesMethods inherited from class overit.geocallapp.wfm.notifications.dashboard.CDashboardBasic
addCustomFilters, alignDateInterval, calculateDetailInterval, castToLongSet, chartPrinter, checkDatesErrors, checkInput, clearForm, customOperationsOnSavedSearchers, getDateRangesPresets, getInterval, getLabelFromType, getOffsetLabel, getTitle, loadDefaultSearch, loadSearchConfigs, onApplyPreset, onClearDatePresets, onGoToNotificationSearchConfigs, onNotificationSearchConfigChanged, onOpen, onProcessingGraph, onShowDatePresets, onSwitchFilterPanel, prepareDataForExternalSearch, process, setUserOperationCenter, showNotifications, showWO, truncateStringMethods 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
-
_fMainChartDD
-
_smfDashBBoardDDCharts
-
_pDetail
-
_dbvLoadChart
-
_jfcDDMain
-
_jfcDDTop
-
_ncTopDDCharts
-
_charts
-
_chartsDetail
-
_lastMainChartClicked
protected int _lastMainChartClicked -
_lastClickedBar
protected int _lastClickedBar -
_acliidTopChart
-
_insertMaphelper
-
_mainDataList
-
_infoDetailFailures
-
-
Constructor Details
-
CDashboardFailureDD
public CDashboardFailureDD()
-
-
Method Details
-
initWindow
protected void initWindow()Description copied from class:CDashboardBasicGet components from xml It must be overrided in subclass- Overrides:
initWindowin classCDashboardBasic
-
setupWindow
protected void setupWindow()Description copied from class:CDashboardBasicDefine initial window style It must be overrided in subclass and must contain: - loadSearchConfigs(searchType) - path of saved search page to link (SAVED_SEARCH_PAGE)- Overrides:
setupWindowin classCDashboardBasic
-
getLoadTask
Get the task that retrive graph data- Specified by:
getLoadTaskin classCDashboardBasic- Returns:
- DATLoadMRelChartData instance
-
loadAllCharts
protected void loadAllCharts()Load all the charts defined on xml -
setChartList
Add the list of main/detail chart to the specific container manager- Parameters:
charts-name-
-
prepareData
Get field from form, convert (multi)decorder fields and set task parameters- Specified by:
prepareDatain classCDashboardBasic- Parameters:
hgFilter-
-
loadChart
Get data from loading task and build the main graphs Task dbvs are managed with specific object to split them on 2 parts, top & not top- Specified by:
loadChartin classCDashboardBasic- Parameters:
hgFilter-
-
groupChartData
-
showMainChartFailuresNum
Build and display main chart- Parameters:
params-onlyTop-- Returns:
-
getMainChartItemEvent
Get the name of the event triggered on chart column click -
getSerieForMainChart
Given a group manager index, create data for chart plot grouping rows of top/other dbviews- Parameters:
hg-mapIndex-onlyTop-- Returns:
-
sumColumns
Given a dbv, for each numeric column, sum all rows and return an hashgetter with these values- Parameters:
dbv-date-- Returns:
-
getMainSerieData
Return the needed data to display a graph hgOther & hgTop have the same columns- Parameters:
hgOther-hgTop-onlyTop-- Returns:
-
onShowMainGraphMenu
Show menù of main chart- Parameters:
uim-
-
prepareTitle
Calculate data range for title and call super method- Parameters:
label-chartType-- Returns:
-
getLabelForChart
Return the label of column i- Parameters:
index-- Returns:
-
onShowTopFailures
Show panel with the top facility- Parameters:
params-- Returns:
-
showTopChartFailuresNum
Build and display top charts- Parameters:
hgResult-
-
getMainDetailChartItemEvent
Get the name of the event triggered at click on one top element of the top failures chart -
getSerieForTopChart
Return the needed data to display top chart- Parameters:
group-columnNumber-- Returns:
-
onShowFailureDetails
Show panel with CHART_TIME - 1 timeslot for the range rappresented by the clicked column- Parameters:
params-- Returns:
-
onShowNotifications
Opens notification window to show notifications that occurences in the column clicked by the user- Parameters:
uim-- Returns:
-
onShowWO
Opens wo window to show wo that occurences in the column clicked by the user- Parameters:
uim-- Returns:
-
onShowTopGraphMenu
Show menù of top chart- Parameters:
uim-
-
onShowTopNotifications
Opens notification window to show notifications that occurences in the column clicked by the user- Parameters:
uim-- Returns:
-
onShowTopWO
Opens wo window to show wo that occurences in the column clicked by the user- Parameters:
uim-- Returns:
-
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 -
onSearchOnCurrentFacility
Launch main search from detail panel options of main chart- Parameters:
uim-- Returns:
-
onInfoChart
Show info popup of chart- Parameters:
params-- Returns:
-
buildInfoDetailFailures
Build the string (html format) to show in the Info button over the graph- Parameters:
serieData- contains data used on chart plot- Returns:
-
onPrintChart
Call print chart- Parameters:
oParams-- Returns:
-