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

@UI(searchPanel="rightPanel", resultTable="stvSearchStockResults", searchForm="fSearchStock") public class SearchStock extends BaseSearchContainer<WarehouseMaterialStock>
Stock search page.
Since:
13.0
See Also:
GCApi:
controller
  • Field Details

  • Constructor Details

    • SearchStock

      public SearchStock()
  • Method Details

    • setupWindow

      protected void setupWindow()
      Description copied from class: BaseSearchContainer
      Defines the initial page aspect setting the visibility field in the search form and launches the main search.
      Specified by:
      setupWindow in class BaseSearchContainer<WarehouseMaterialStock>
    • initFilters

      protected void initFilters()
    • manageOpenFromWarehouseMonitor

      protected void manageOpenFromWarehouseMonitor()
    • initColumnStyles

      protected void initColumnStyles()
    • getRowItem

      protected String getRowItem(String label, String value)
    • onQuery

      public boolean onQuery(UIMessage uim)
      Description copied from class: BaseSearchContainer
      Main event for search action. It retrieves the search params from the uim and hide the search panel.
      Overrides:
      onQuery in class BaseSearchContainer<WarehouseMaterialStock>
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • editColumnVisibility

      protected void editColumnVisibility()
    • addRowMenuItems

      protected void addRowMenuItems(Menu menu)
      Description copied from class: BaseSearchContainer
      Method used to manage the result table row menu items.
      Overrides:
      addRowMenuItems in class BaseSearchContainer<WarehouseMaterialStock>
      Parameters:
      menu - the menu displayed
    • addStockChangeMenuItem

      protected void addStockChangeMenuItem(Menu menu, String event)
    • addTableMenuItems

      protected void addTableMenuItems(Menu menu)
      Description copied from class: BaseSearchContainer
      Method for manage the result table menu items.
      Overrides:
      addTableMenuItems in class BaseSearchContainer<WarehouseMaterialStock>
      Parameters:
      menu - the menu displayed
    • onViewStockHistory

      public boolean onViewStockHistory(UIMessage uim)
      UI event handler to open the StockHistory page.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • isHistoryViewPermitted

      protected boolean isHistoryViewPermitted()
    • getSelectedStockType

      protected Long getSelectedStockType()
    • getSingleSelectedWarehouse

      protected Long getSingleSelectedWarehouse()
      Returns the id of the selected BOWarehouse only when a single warehouse was chosen.
      Returns:
      the id of the selected warehouse, null if the selection is none or more than one
    • onWarehouseOperation

      public boolean onWarehouseOperation(UIMessage uim)
      UI event handler to show the panel to do a warehouse manual operation from table menu
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onStockChange

      public boolean onStockChange(UIMessage uim)
      UI event handler to show the panel to do a stock change operation from table menu
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onRowWarehouseOperation

      public boolean onRowWarehouseOperation(UIMessage uim)
      UI event handler to show the panel to do a warehouse manual operation from a row operation
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onRowStockChange

      public boolean onRowStockChange(UIMessage uim)
      UI event handler to show the panel to do a stock change from a row operation
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • refresh

      protected void refresh()
      Description copied from class: BaseSearchContainer
      Refreshes the search table.
      Overrides:
      refresh in class BaseSearchContainer<WarehouseMaterialStock>
    • onViewStockDetail

      public boolean onViewStockDetail(UIMessage uim)
      UI event handler to open the StockDetail page.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onExportStocks

      public boolean onExportStocks(UIMessage uim)
      UI event handler to manage the stocks export.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onEvaluateExpectedMaterials

      public boolean onEvaluateExpectedMaterials(UIMessage uim)
      UI event handler to evaluate the expected materials.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onSelectOperator

      public boolean onSelectOperator(UIMessage uim)
      UI event handler to select an operator for the stock quantity.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onViewExpectedMaterialDetail

      public boolean onViewExpectedMaterialDetail(UIMessage uim)
      UI event handler to view the selected expected material detail.
      Parameters:
      uim - the UIMessage
      Returns:
      true to break the responsibility chain, false otherwise.
    • onGenerateTransaction

      public boolean onGenerateTransaction(UIMessage uim)
    • onConfirmStockChange

      public boolean onConfirmStockChange(UIMessage uim)