Class 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

public class SearchDataCollectionSheet extends Container
Data collection sheet search page.
Since:
12.0
See Also:
GCApi:
controller
  • Field Details

  • Constructor Details

    • SearchDataCollectionSheet

      public SearchDataCollectionSheet()
  • Method Details

    • onOpen

      public void onOpen(Object o)
      Description copied from class: Container
      Method called when is executed the WindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object) of the Window that 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: "&params=KEY1,VAL1,KEY2,VAL2" or "&params=KEY1=VAL1,KEY2=VAL2"
      In that case it is possible to retrieve those params via the WindowManager.getRouteParams() method that returns an HashGetter with 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);
      Overrides:
      onOpen in class Container
      Parameters:
      o - Object received from the caller
    • initComponent

      protected void initComponent()
    • searchDataCollectionSheet

      public void searchDataCollectionSheet()
      Searches the data collection sheet.
    • refreshSavedSearches

      protected void refreshSavedSearches()
    • onTableMenu

      public boolean onTableMenu(UIMessage uim)
      UI event handler to show the table menu.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onRowMenu

      public boolean onRowMenu(UIMessage uim)
      UI event handler to show the row menu.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • addWorkOrderMenuItems

      protected void addWorkOrderMenuItems(Menu menu)
      Builds the work order menu.
      Parameters:
      menu - the menu
    • addSchedulingResourceMenuItems

      protected void addSchedulingResourceMenuItems(Menu menu)
      Builds the scheduling resource menu.
      Parameters:
      menu - the menu
    • addStatusMenuItems

      protected void addStatusMenuItems(Menu menu)
      Builds the status menu.
      Parameters:
      menu - the menu
    • addLockMenuItems

      protected void addLockMenuItems(Menu menu)
      Builds the lock menu.
      Parameters:
      menu - the menu
    • addAssetMenuItems

      protected void addAssetMenuItems(Menu menu)
      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

      public boolean onAssociateAsset(UIMessage uim)
      UI event handler to associate the asset.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • getTechnicalObjectPushParams

      protected HashGetter getTechnicalObjectPushParams()
      Build the push parameters for the technical object selection.
      Returns:
      the push parameters
    • onAfterAssetSelection

      public void onAfterAssetSelection(Object o)
      UI event handler to manage the asset selection.
      Parameters:
      o - the selected asset
    • onAssociateAccount

      public boolean onAssociateAccount(UIMessage uim)
      UI event handler to associate the account.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onAfterAccountSelection

      public void onAfterAccountSelection(Object o)
      UI event handler to manage the account selection.
      Parameters:
      o - the selected account
    • onDissociateAsset

      public boolean onDissociateAsset(UIMessage uim)
      UI event handler to dissociate the asset.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onDissociateAccount

      public boolean onDissociateAccount(UIMessage uim)
      UI event handler to dissociate the account.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onRowClick

      public boolean onRowClick(UIMessage uim)
      UI event handler to manage the row click.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onFilterTab

      public boolean onFilterTab(UIMessage uim)
      UI event handler to show filter tab.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onReportTab

      public boolean onReportTab(UIMessage uim)
      UI event handler to show the report tab.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onNew

      public boolean onNew(UIMessage uim)
      UI event handler to show the new data collection sheet panel.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onSave

      public boolean onSave(UIMessage uim)
      UI event handler to save the data collection sheet.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onQuery

      public boolean onQuery(UIMessage uim)
      UI event handler to search the BODataCollectionSheets that correspond to a certain set of filters.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onViewSheetDetail

      public boolean onViewSheetDetail(UIMessage uim)
      UI event handler to view the sheet detail.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • loadDataSheetCollectionInstance

      protected DataCollectionSheetInstance loadDataSheetCollectionInstance(Long sheetId) throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • onViewTemplate

      public boolean onViewTemplate(UIMessage uim)
      UI event handler to view the template.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • loadDataCollectionTemplate

      protected DataCollectionTemplate loadDataCollectionTemplate(Long templateStructure) throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • onViewWOCreationRule

      public boolean onViewWOCreationRule(UIMessage uim)
      UI event handler to view the WO creation rule.
      Parameters:
      uim - the UIMessage
      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:
      DAValidateException
      DAException
    • 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

      public boolean onCancelSheet(UIMessage uim)
      UI event handler to cancel a sheet.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onAssociateSchedulingUser

      public boolean onAssociateSchedulingUser(UIMessage uim)
      UI event handler to associate the scheduling user.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onDissociateSchedulingUser

      public boolean onDissociateSchedulingUser(UIMessage uim)
      UI event handler to dissociate the scheduling user.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onFixSheet

      public boolean onFixSheet(UIMessage uim)
      UI event handler to fix the sheet.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onCloseSheet

      public boolean onCloseSheet(UIMessage uim)
      UI event handler to close the sheet.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onCloseSheetAssociatedToWoo

      public boolean onCloseSheetAssociatedToWoo(UIMessage uim)
      UI event handler to close the sheet associated to the work order operation.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onConfirmSelection

      public boolean onConfirmSelection(UIMessage uim)
      UI event handler to confirm the selection.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onViewWorkOrder

      public boolean onViewWorkOrder(UIMessage uim)
      UI event handler to view the work order.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onMultiExportXlsx

      public boolean onMultiExportXlsx(UIMessage uim)
      UI event handler to export multi xlsx.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onExportXlsx

      public boolean onExportXlsx(UIMessage uim)
      UI event handler to export the xlsx.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onOkNameExport

      public void onOkNameExport(UIMessage uim)
      UI event handler to confirm the export name.
      Parameters:
      uim - the UIMessage
    • executeExportXlsx

      protected void executeExportXlsx(Map<String,Object> filters, String fileName)
    • onExportPdf

      public boolean onExportPdf(UIMessage uim)
      UI event handler to export the pdf.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • showFilterPanel

      protected void showFilterPanel()
    • hideFilterPanel

      protected void hideFilterPanel()
    • 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
    • onRefresh

      public boolean onRefresh(UIMessage uim)
      UI event handler to refresh the page.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onChangeSavedSearch

      public boolean onChangeSavedSearch(UIMessage uim)
      UI event handler to change the saved search.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • changeSavedSearch

      protected void changeSavedSearch(HashGetter values)
    • getRangeFieldsMapping

      protected Map<String,overit.geocallapp.wfm.schedulazione.anagrafiche.ricerchesalvate.UtilsRicercheSalvate.RangeFieldsMapping> getRangeFieldsMapping()
    • onSavedSearchConfiguration

      public boolean onSavedSearchConfiguration(UIMessage uim)
      UI event handler to saved the search configuration.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onUnlockSheet

      public boolean onUnlockSheet(UIMessage uim)
      UI event handler to unlock a sheet.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onRequestUnlockSheet

      public boolean onRequestUnlockSheet(UIMessage uim)
      UI event handler to request unlock for a sheet.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • loadDefaultSearch

      protected void loadDefaultSearch()