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

public class CDashboardFailureDD extends CDashboardBasic
See Also:
  • Field Details

    • _fMainChartDD

      protected Form _fMainChartDD
    • _smfDashBBoardDDCharts

      protected ServerMultiForm _smfDashBBoardDDCharts
    • _pDetail

      protected Panel _pDetail
    • _dbvLoadChart

      protected DBView _dbvLoadChart
    • _jfcDDMain

      protected JFCSerie _jfcDDMain
    • _jfcDDTop

      protected JFCSeriePareto _jfcDDTop
    • _ncTopDDCharts

      protected NullComponent _ncTopDDCharts
    • _charts

      protected List<JFCSerie> _charts
    • _chartsDetail

      protected List<JFCSerie> _chartsDetail
    • _lastMainChartClicked

      protected int _lastMainChartClicked
    • _lastClickedBar

      protected int _lastClickedBar
    • _acliidTopChart

      protected Long[] _acliidTopChart
    • _insertMaphelper

      protected HashMap<String,Integer> _insertMaphelper
    • _mainDataList

      protected List<NotificationGroupManager> _mainDataList
    • _infoDetailFailures

      protected String _infoDetailFailures
  • Constructor Details

    • CDashboardFailureDD

      public CDashboardFailureDD()
  • Method Details

    • initWindow

      protected void initWindow()
      Description copied from class: CDashboardBasic
      Get components from xml It must be overrided in subclass
      Overrides:
      initWindow in class CDashboardBasic
    • setupWindow

      protected void setupWindow()
      Description copied from class: CDashboardBasic
      Define 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:
      setupWindow in class CDashboardBasic
    • getLoadTask

      protected DATask getLoadTask()
      Get the task that retrive graph data
      Specified by:
      getLoadTask in class CDashboardBasic
      Returns:
      DATLoadMRelChartData instance
    • loadAllCharts

      protected void loadAllCharts()
      Load all the charts defined on xml
    • setChartList

      protected void setChartList(List<JFCSerie> charts, String name)
      Add the list of main/detail chart to the specific container manager
      Parameters:
      charts -
      name -
    • prepareData

      public void prepareData(HashGetter hgFilter)
      Get field from form, convert (multi)decorder fields and set task parameters
      Specified by:
      prepareData in class CDashboardBasic
      Parameters:
      hgFilter -
    • loadChart

      public void loadChart(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 top
      Specified by:
      loadChart in class CDashboardBasic
      Parameters:
      hgFilter -
    • groupChartData

      public Boolean groupChartData(DBView dbvChartData, HashGetter hgFilter)
    • showMainChartFailuresNum

      public Object[] showMainChartFailuresNum(HashGetter params, Boolean onlyTop)
      Build and display main chart
      Parameters:
      params -
      onlyTop -
      Returns:
    • getMainChartItemEvent

      protected String getMainChartItemEvent()
      Get the name of the event triggered on chart column click
    • getSerieForMainChart

      protected HashGetter getSerieForMainChart(HashGetter hg, int mapIndex, Boolean onlyTop)
      Given a group manager index, create data for chart plot grouping rows of top/other dbviews
      Parameters:
      hg -
      mapIndex -
      onlyTop -
      Returns:
    • sumColumns

      protected HashGetter sumColumns(DBView dbv, String date)
      Given a dbv, for each numeric column, sum all rows and return an hashgetter with these values
      Parameters:
      dbv -
      date -
      Returns:
    • getMainSerieData

      protected HashGetter getMainSerieData(HashGetter hgOther, HashGetter hgTop, Boolean onlyTop)
      Return the needed data to display a graph hgOther & hgTop have the same columns
      Parameters:
      hgOther -
      hgTop -
      onlyTop -
      Returns:
    • onShowMainGraphMenu

      public void onShowMainGraphMenu(UIMessage uim)
      Show menù of main chart
      Parameters:
      uim -
    • prepareTitle

      protected String prepareTitle(String label, Long chartType)
      Calculate data range for title and call super method
      Parameters:
      label -
      chartType -
      Returns:
    • getLabelForChart

      protected String getLabelForChart(int index)
      Return the label of column i
      Parameters:
      index -
      Returns:
    • onShowTopFailures

      public boolean onShowTopFailures(HashGetter params)
      Show panel with the top facility
      Parameters:
      params -
      Returns:
    • showTopChartFailuresNum

      public void showTopChartFailuresNum(HashGetter hgResult)
      Build and display top charts
      Parameters:
      hgResult -
    • getMainDetailChartItemEvent

      protected String getMainDetailChartItemEvent()
      Get the name of the event triggered at click on one top element of the top failures chart
    • getSerieForTopChart

      protected HashGetter getSerieForTopChart(NotificationGroupManager group, int columnNumber)
      Return the needed data to display top chart
      Parameters:
      group -
      columnNumber -
      Returns:
    • onShowFailureDetails

      public boolean onShowFailureDetails(HashGetter params)
      Show panel with CHART_TIME - 1 timeslot for the range rappresented by the clicked column
      Parameters:
      params -
      Returns:
    • onShowNotifications

      public boolean onShowNotifications(UIMessage uim)
      Opens notification window to show notifications that occurences in the column clicked by the user
      Parameters:
      uim -
      Returns:
    • onShowWO

      public boolean onShowWO(UIMessage uim)
      Opens wo window to show wo that occurences in the column clicked by the user
      Parameters:
      uim -
      Returns:
    • onShowTopGraphMenu

      public void onShowTopGraphMenu(UIMessage uim)
      Show menù of top chart
      Parameters:
      uim -
    • onShowTopNotifications

      public boolean onShowTopNotifications(UIMessage uim)
      Opens notification window to show notifications that occurences in the column clicked by the user
      Parameters:
      uim -
      Returns:
    • onShowTopWO

      public boolean onShowTopWO(UIMessage uim)
      Opens wo window to show wo that occurences in the column clicked by the user
      Parameters:
      uim -
      Returns:
    • onRestore

      public void onRestore(Object o)
      Description copied from class: Container
      Method called when is executed the WindowManager.pop(java.lang.Object) of the above Window. It calls the onRestore(o) method of all the Container's childrens
      Overrides:
      onRestore in class Container
      Parameters:
      o - Object received from the caller
    • onSearchOnCurrentFacility

      public boolean onSearchOnCurrentFacility(UIMessage uim)
      Launch main search from detail panel options of main chart
      Parameters:
      uim -
      Returns:
    • onInfoChart

      public boolean onInfoChart(HashGetter params)
      Show info popup of chart
      Parameters:
      params -
      Returns:
    • buildInfoDetailFailures

      public boolean buildInfoDetailFailures(HashGetter serieData)
      Build the string (html format) to show in the Info button over the graph
      Parameters:
      serieData - contains data used on chart plot
      Returns:
    • onPrintChart

      public boolean onPrintChart(HashGetter oParams)
      Call print chart
      Parameters:
      oParams -
      Returns: