java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocallapp.wfm.clienti.dettaglio.CEditUtenza
overit.geocallapp.wfm.core.ux.workorderobject.customer.edit.EditCustomer
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 EditCustomer extends overit.geocallapp.wfm.clienti.dettaglio.CEditUtenza
Customer edit page
Since:
9.2
See Also:
GCApi:
controller
  • Field Details

    • editingMeter

      protected BOMeter editingMeter
      Meter to edit. Passed to the editing panel that will fill it with the edited data before to leave the control to this container
    • sectionsByTabName

      protected Map<String,TechnicalObjectSection> sectionsByTabName
    • focusedTabName

      protected String focusedTabName
  • Constructor Details

    • EditCustomer

      public EditCustomer()
  • 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 overit.geocallapp.wfm.clienti.dettaglio.CEditUtenza
      Parameters:
      o - Object received from the caller
    • 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
    • onSwitch

      public boolean onSwitch(UIMessage uim)
      UI event handler to manage the tab switch. Used to notify the new focused tab.
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain
    • onAddMeter

      public boolean onAddMeter(UIMessage uim)
      UI event handler to open the editing meter panel, for a new meter.
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain
      See Also:
      • CEditUtenza.onConfirmManualCoordinates(HashGetter)
    • onCustomerMeterClick

      public boolean onCustomerMeterClick(UIMessage uim)
      UI event handler to manage the click on a meter table row. This click is intercepted to open the meter editing panel.
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain
      See Also:
      • CEditUtenza.onConfirmManualCoordinates(HashGetter)
    • onConfirmMeterEditing

      public boolean onConfirmMeterEditing(UIMessage uim)
      UI event handler to manage the meter editing. Since the edited data will be injected to the editingMeter, this method will only add the meter to the already associated if not already on the list, and refresh the TableView content
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain, false otherwise.
    • onAbortMeterEditing

      public boolean onAbortMeterEditing(UIMessage uim)
      UI event handler to abort the meter editing.
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain, false otherwise.
      See Also:
    • onSave

      public boolean onSave(UIMessage uim)
      UI event handler to start the save process. If the given address is not normalized, the system will ask to the user if continue with the operation
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain, false otherwise.
      See Also:
    • onSaveNotNormalized

      public boolean onSaveNotNormalized(UIMessage uim)
      UI event handler to confirm the save action also if the given address is not normalized.
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain, false otherwise.
      See Also:
    • save

      protected void save()
      Call the doSave() method handling eventually the thrown exception. If the save process go well, close the page passing the saved customer as parameter for the restored page.
    • doSave

      protected void doSave() throws DAValidateException, DAException
      Transfer the form values to the customer to save, and delegate to doInsert() and doUpdate() the actual event launch.
      Throws:
      DAValidateException
      DAException
      See Also:
    • doUpdate

      protected void doUpdate() throws DAValidateException, DAException
      Prepare and launch the CustomerUpdateEvent
      Throws:
      DAValidateException - if there is a problem in the validation
      DAException - if there is a problem during the update
    • doInsert

      protected void doInsert() throws DAValidateException, DAException
      Prepare and launch the CustomerInsertEvent
      Throws:
      DAValidateException - if there is a problem in the validation
      DAException - if there is a problem during the insert
    • onSearchPreviousCustomer

      public boolean onSearchPreviousCustomer(UIMessage uim)
      UI event handler to forward the user to the customer selection page.
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain, false otherwise.
      See Also:
    • onRestoreFromPreviousCustomer

      public void onRestoreFromPreviousCustomer(HashGetter customerData)
      Restore event called when the user select a customer to mark as previous customer for the one in editing
      Parameters:
      customerData - the selected customer data
      See Also:
    • notifyTabSwitch

      protected void notifyTabSwitch()
      Notify to the focused TechnicalObjectSection that now is on focus
    • getCustomer

      protected TechnicalObject getCustomer()
      Gets the TechnicalObject to intend as customer currently in editing
      Returns:
      the TechnicalObject to intend as customer currently in editing
    • getMeters

      protected List<BOMeter> getMeters()
      Gets the list of BOMeter associated to the editing customer
      Returns:
      the list of BOMeter associated to the editing customer
    • getContacts

      protected List<BOContact> getContacts()
      Gets the list of BOContact associated to the editing customer
      Returns:
      the list of BOContact associated to the editing customer
    • onShowMeasures

      public boolean onShowMeasures(UIMessage uim)
      UI event handler to open the measures meter panel AI.
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain
    • onRowMenu

      public boolean onRowMenu(UIMessage uim)