Class WorkloadDistributionDetail

java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocallapp.wfm.planning.ux.roughplanning.weight.detail.WorkloadDistributionDetail
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 WorkloadDistributionDetail extends Container
Container for work load distribution detail
Since:
19.0
See Also:
  • Field Details

    • rule

      protected overit.geocall.wfm.planning.bl.workloaddistribution.weight.rule.BOWorkloadDistributionRule rule
    • selectedWeightData

      protected Map<String,Object> selectedWeightData
    • ofWorkloadDistributionDetailRecap

      protected OutputForm ofWorkloadDistributionDetailRecap
    • tvFieldsConfiguration

      protected TableView tvFieldsConfiguration
    • tvWeights

      protected TableView tvWeights
    • editRuleWoCombinationPanel

      protected Panel editRuleWoCombinationPanel
    • editRuleWoCombinationForm

      protected Form editRuleWoCombinationForm
    • editWeightPanel

      protected Panel editWeightPanel
    • editWeightForm

      protected Form editWeightForm
    • saveWeightButton

      protected SubmitButton saveWeightButton
    • tmDeleteWeightRows

      protected TableMessage tmDeleteWeightRows
    • tmNewWeightRows

      protected TableMessage tmNewWeightRows
    • tmDeleteConfigurationRows

      protected TableMessage tmDeleteConfigurationRows
    • tmNewConfigurationRows

      protected TableMessage tmNewConfigurationRows
    • modeRuleWoCombination

      protected ContainerMode modeRuleWoCombination
    • modeWeight

      protected ContainerMode modeWeight
  • Constructor Details

    • WorkloadDistributionDetail

      public WorkloadDistributionDetail()
  • 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
    • initComponents

      protected void initComponents()
    • initPage

      protected void initPage() throws DAException, DAValidateException
      Throws:
      DAException
      DAValidateException
    • addWeightCheckColumn

      protected void addWeightCheckColumn(DBView dbvWorkloadRuleCombination) throws DAValidateException, DAException
      Adds a weight check column to the workload rule combination DBView.
      Parameters:
      dbvWorkloadRuleCombination - The DBView to which the weight check column will be added
      Throws:
      DAValidateException - if there's a validation error during the process
      DAException - if there's a data access error during the process
    • searchWorkloadRuleWoCombination

      protected List<overit.geocall.wfm.planning.bl.workloaddistribution.weight.wocombination.BOWorkloadRuleWOCombination> searchWorkloadRuleWoCombination() throws DAValidateException, DAException
      Searches for BOWorkloadRuleWOCombinations associated with the current rule.
      Returns:
      A List of BOWorkloadRuleWOCombination objects associated with the current rule
      Throws:
      DAValidateException - if there's a validation error during the search
      DAException - if there's a data access error during the search
    • onSingleSelectFiledConfiguration

      public boolean onSingleSelectFiledConfiguration(UIMessage uim)
      Handles the event when a single row is selected in the fields configuration table.
      Parameters:
      uim - the UIMessage containing the event information
      Returns:
      true to indicate the event was handled
    • onDeleteConfigurationRows

      public boolean onDeleteConfigurationRows(UIMessage uim)
      Handles the deletion of selected configuration rows.
      Parameters:
      uim - the UIMessage containing the event information
      Returns:
      true to indicate the event was handled
    • configurationRowsRefresh

      protected void configurationRowsRefresh() throws DAValidateException, DAException
      Refreshes the configuration rows and weight tables.
      Throws:
      DAValidateException - if there's a validation error during the refresh
      DAException - if there's a data access error during the refresh
    • onDeleteWeightRows

      public boolean onDeleteWeightRows(UIMessage uim)
      Refreshes the configuration rows and weight tables.
    • weightRowsRefresh

      protected void weightRowsRefresh() throws DAValidateException, DAException
      Refreshes the weight rows in the weights table view.
      Throws:
      DAValidateException - if there's a validation error during the refresh
      DAException - if there's a data access error during the refresh
    • addWeightToTableTitle

      protected void addWeightToTableTitle(DBView dbvWeight)
    • searchWorkloadDistributionWeight

      protected List<overit.geocall.wfm.planning.bl.workloaddistribution.weight.workloaddistributionweight.BOWorkloadDistributionWeight> searchWorkloadDistributionWeight(Long workloadRuleWOCombinationId) throws DAValidateException, DAException
      Searches for BOWorkloadDistributionWeight objects associated with a specific WorkloadRuleWOCombination.
      Parameters:
      workloadRuleWOCombinationId - The id of the BOWorkloadRuleWOCombination to search for associated weights
      Returns:
      A List of BOWorkloadDistributionWeight associated with the given WorkloadRuleWOCombination
      Throws:
      DAValidateException - if there's a validation error during the search
      DAException - if there's a data access error during the search
    • onNewConfiguration

      public boolean onNewConfiguration(UIMessage uim)
      Event for show a panel to insert a new Rule Wo Combination.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • onNewWeight

      public boolean onNewWeight(UIMessage uim)
      Event for show a panel to insert a new weight.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • onEditWeight

      public boolean onEditWeight(UIMessage uim)
      Event launched for edit a weight entity.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • onViewWeight

      public boolean onViewWeight(UIMessage uim)
      Event launched for view a weight entity.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • onSaveWorkloadDistributionRuleWOCombination

      public boolean onSaveWorkloadDistributionRuleWOCombination(UIMessage uim)
      Event launched when saving rule WO combination. After the saving action refresh the result table.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • onWeightRowMenu

      public boolean onWeightRowMenu(UIMessage uim)
      Event launched when a user clicks on a weight table row menu button.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful
    • addWeightRowMenuItems

      protected void addWeightRowMenuItems(Menu menu)
      Method for manage the result table weight row menu items.
      Parameters:
      menu - the menu displayed
    • onSaveWorkloadWeight

      public boolean onSaveWorkloadWeight(UIMessage uim)
      Event launched when saving a weight entity. After the saving action refresh the result table.
      Parameters:
      uim - the UIMessage
      Returns:
      true, if successful