Class CDashboardStruggleFailure

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 CDashboardStruggleFailure extends CDashboardBasic
See Also:
  • Field Details

    • _fCharts

      protected Form _fCharts
    • _pDetails

      protected Panel _pDetails
    • _smfDashBBoardSFCharts

      protected ServerMultiForm _smfDashBBoardSFCharts
    • _jfcSFMain

      protected JFCSerie _jfcSFMain
    • _jfcSFDetail

      protected JFCSeriePareto _jfcSFDetail
    • _jfcSFDetailNotAnalized

      protected JFCSeriePareto _jfcSFDetailNotAnalized
    • _insertManagers

      protected StruggleGroupManager[] _insertManagers
    • _insertMapNotAnalized

      protected HashMap<String,Integer> _insertMapNotAnalized
    • _dataListNotAnalized

      protected List<NotificationGroupManager> _dataListNotAnalized
    • _infoMainChart

      protected String _infoMainChart
    • _infoDetailChart

      protected String _infoDetailChart
    • _selectedAcliId

      protected Long[] _selectedAcliId
    • _lastClickedSerie

      protected int _lastClickedSerie
    • _lastClickedBar

      protected int _lastClickedBar
    • _lastDetailClickedColumn

      protected int _lastDetailClickedColumn
    • _lastDetailClickedRow

      protected int _lastDetailClickedRow
    • _isAnalizedPanel

      protected Boolean _isAnalizedPanel
  • Constructor Details

    • CDashboardStruggleFailure

      public CDashboardStruggleFailure()
  • Method Details

    • getLoadTask

      protected DATask getLoadTask()
      Get the task that retrive graph data
      Specified by:
      getLoadTask in class CDashboardBasic
      Returns:
      DATLoadMRelChartData instance
    • 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()
      Define initial window style
      Overrides:
      setupWindow in class CDashboardBasic
    • 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 graph
      Specified by:
      loadChart in class CDashboardBasic
      Parameters:
      hgFilter -
    • groupChartData

      public void groupChartData(HashGetter hgFilter)
      Group data for the first graph
      Parameters:
      hgFilter -
    • showMainChartSF

      public void showMainChartSF(HashGetter params, Boolean onlyTop)
      Plot main chart
      Parameters:
      params -
      onlyTop - print only top serie
    • getChartSerieLabel

      protected String getChartSerieLabel(int index)
      Get axis label for each serie
      Parameters:
      index -
      Returns:
    • getMainSerie

      protected HashGetter getMainSerie(HashGetter oParams)
      Gets data for plotting chart from the Notification Manager
      Parameters:
      oParams -
      Returns:
    • getMainChartItemEvent

      protected String getMainChartItemEvent()
      Get the name of the event triggered at main chart column click
    • buildInfoChartFailures

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

      public boolean onPrintChart(HashGetter oParams)
      Print charts
      Parameters:
      oParams -
      Returns:
    • onInfoChart

      public boolean onInfoChart(HashGetter oParams)
      Show chart data info
      Parameters:
      oParams -
      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
    • onShowMainGraphMenu

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

      protected Boolean checkUserClick()
      Check if the bar/point clicked by the user is a valid point for some event
      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 linked with notifications occurred in the column clicked by the user
      Parameters:
      uim -
      Returns:
    • onShowEWO

      public boolean onShowEWO(UIMessage uim)
      Opens WO window to show WO linked with notifications occurred in the column clicked by the user
      Parameters:
      uim -
      Returns:
    • showEWO

      public boolean showEWO(HashGetter filter)
      Use filter hashgetter to retrive wo and push research ewo window with them
      Parameters:
      filter -
      Returns:
    • onShowInnerPeriod

      public boolean onShowInnerPeriod(HashGetter oParams)
      Get the timeslot rappresented by the clicked bar and launch a new search with a minus level of CHART_TIME
      Parameters:
      oParams -
      Returns:
    • onShowTopFailures

      public boolean onShowTopFailures(UIMessage uim)
      Show pareto graph on new panel
      Parameters:
      uim -
      Returns:
    • getSerieTopDetail

      protected HashGetter getSerieTopDetail(NotificationGroupManager group)
      Build the pareto serie data from a group object retrived from user bar clicking
      Parameters:
      group -
      Returns:
    • showDetailChart

      public void showDetailChart(HashGetter hgResult, JFCSeriePareto chart)
      Build and show main graph detail chart with pareto line
      Parameters:
      hgResult -
      chart -
    • buildInfoChartFailuresDetail

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

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

      public void onShowDetailGraphMenu(UIMessage uim)
      Show menù of main detail chart (only when clicking on a column item)
      Parameters:
      uim -
    • onShowNotificationsFromDetails

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

      public boolean onShowWOFromDetails(UIMessage uim)
      Opens WO window to show WO linked with top notifications occurred in the column clicked by the user
      Parameters:
      uim -
      Returns:
    • onShowEWOFromDetails

      public boolean onShowEWOFromDetails(UIMessage uim)
      Opens WO window to show WO linked with top notifications occurred in the column clicked by the user
      Parameters:
      uim -
      Returns:
    • onSearchOnCurrentFacility

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

      public boolean onSwitchChart(HashGetter params)
      Switch top chart beetween analized failures and not analized failures
      Parameters:
      params -
      Returns:
    • getOffsetLabel

      protected String getOffsetLabel(Double maxValue, double[] serie)
      Description copied from class: CDashboardBasic
      Common method to generate weighted offset for labels
      Overrides:
      getOffsetLabel in class CDashboardBasic
      Parameters:
      maxValue -
      serie -
      Returns: