Class EditCustomer
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
-
Nested Class Summary
Nested classes/interfaces inherited from class overit.geocall.ui.Component
Component.Configurable, Component.ConfigurableAttribute, Component.ConfigurableAttributes, Component.FilterCriteria, Component.Registry -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BOMeterMeter to edit.protected Stringprotected Map<String, TechnicalObjectSection> Fields inherited from class overit.geocallapp.wfm.clienti.dettaglio.CEditUtenza
contacts, customer, form, ilTechnicalObjectType, ioTechnicalObjectType, managedContacts, meters, mode, OPEN_PARAM_MODE_FIELDFields inherited from class overit.geocall.basic.ui.Container
_rofields, _rules, DALINK_NO, DALINK_YES, DATE_MAX, DATE_MIN, TIME_MAX, TIME_MIN, TYPE_ACTION, TYPE_BOOLEAN, TYPE_DATE, TYPE_DOUBLE, TYPE_DTZ, TYPE_EURO, TYPE_FILE, TYPE_FILES, TYPE_INTEGER, TYPE_LONG, TYPE_LONGARRAY, TYPE_MAP, TYPE_MAXDATE, TYPE_MAXTIME, TYPE_MEASURE, TYPE_MINDATE, TYPE_MINTIME, TYPE_NEWACTION, TYPE_STRING, TYPE_STRINGARRAY, TYPE_SUBSET, TYPE_SUBSETRANGE, TYPE_SUPPORT, TYPE_TIMERANGEFields inherited from class overit.geocall.ui.Control
_blank, _cleaner, _dblink, _enabled, _ro, _title, altEventIconsList, altIcon, ariaDescription, ariaLabel, badge, badgeformat, FILTER_PREFIXES, LABEL_ATTRIBUTE, LABEL_IN_LINE_ATTRIBUTE, STATE_BLANK, STATE_NORMAL, STATE_RO, STATE_ROBLANKFields inherited from class overit.geocall.ui.Component
_basic, _childrenContainers, _currentId, _gridalign, _gridcols, _gridrows, _gridvalign, _iconElement, _id, _keylabel, _label, _layoutName, _name, _parentContainer, _registryName, _shortcut, _tabindex, _transformations, _valuesContainer, aliasField, BR, configHidden, configuredLabel, configuredLabelInLine, defaultHidden, ELEMENT_BR, ELEMENT_NULL, entityContainer, entityName, extendedField, fullHeight, important, labelInLine, layoutLabel, PIXEL_IMG, safeInlineService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoInsert()Prepare and launch theCustomerInsertEventprotected voiddoSave()Transfer the form values to the customer to save, and delegate todoInsert()anddoUpdate()the actual event launch.protected voiddoUpdate()Prepare and launch theCustomerUpdateEventGets the list ofBOContactassociated to the editing customerprotected TechnicalObjectGets theTechnicalObjectto intend as customer currently in editingGets the list ofBOMeterassociated to the editing customerprotected voidNotify to the focusedTechnicalObjectSectionthat now is on focusbooleanUI event handler to abort the meter editing.booleanonAddMeter(UIMessage uim) UI event handler to open the editing meter panel, for a new meter.booleanUI event handler to manage the meter editing.booleanUI event handler to manage the click on a meter table row.voidMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat contains the Container.voidMethod called when is executed theWindowManager.pop(java.lang.Object)of the aboveWindow.voidonRestoreFromPreviousCustomer(HashGetter customerData) Restore event called when the user select a customer to mark as previous customer for the one in editingbooleanbooleanUI event handler to start the save process.booleanUI event handler to confirm the save action also if the given address is not normalized.booleanUI event handler to forward the user to the customer selection page.booleanonShowMeasures(UIMessage uim) UI event handler to open the measures meter panel AI.booleanUI event handler to manage the tab switch.protected voidsave()Call thedoSave()method handling eventually the thrown exception.Methods inherited from class overit.geocallapp.wfm.clienti.dettaglio.CEditUtenza
applyDistrictRule, fillForm, fillPreviousCustomerData, filterUserVisibleTechnicalObjectTypes, initWindow, isAddressNormalized, onConfirmManualCoordinates, onShowHistory, onShowMultimediaAttachments, setupWindowMethods inherited from class overit.geocall.basic.ui.Container
alert, applyRule, getBASIC, getBLANK, getHtml, getRO, getROField, onClose, onOpenChildContainer, onRule, prepareName, rulesNewValues, setROField, setValues, setValuesMethods inherited from class overit.geocall.ui.Control
avoidNull, clean, getBadgeFormat, getBadgeValue, getCleaner, getConfigurableProperties, getDAValues, getDBLINK, getKEYLABEL, getLABEL, getState, getTITLE, getValues, getWM, isEnabled, isEnabledBasedOnFunction, isFunctionEnabled, isImportant, isRoBasedOnFunction, nameWithNoFilterPrefix, setALTEVENTICON, setALTICON, setARIADESCRIPTION, setARIALABEL, setBADGEFORMAT, setBADGEVALUE, setBLANK, setCLEANER, setConfiguredProperty, setDBLINK, setENABLED, setFUNCTION, setModelProperties, setRO, setTitle, setTITLEMethods inherited from class overit.geocall.ui.Component
adapt, ajaxQuery, appendAttribute, buildDisplayScript, buildSetupScript, calcKeyLabel, calcLabel, calcShortcut, canBeConfigured, changed, clearConfiguredProperties, componentIterator, componentSize, connect, containerIterator, createAjaxFrame, deprecate, fillSetupScript, generateFlexableFullHeightContainer, generateId, getBoolean, getBoolean, getChildrenComponents, getChildrenContainers, getDefaultLabel, getDefaultLayoutLabel, getEntityContainer, getEntityName, getFullHeight, getGridAlign, getGridCols, getGridRows, getGridVAlign, getHtmlLabel, getHtmlLabel, getIcon, getId, getIdentity, getint, getLayoutLabel, getLayoutName, getNAME, getParentComponent, getParentContainer, getPublishedChildrenList, getRegistryName, getSHORTCUT, getTabIndex, getTeacher, getValuesContainer, getWindow, initChilds, isActivable, isActive, isAliasField, isConfigHidden, isDefaultHidden, isExtendedField, isLabelInLine, onInit, setActivable, setActive, setAliasField, setBASIC, setConfigHidden, setDEFAULTHIDDEN, setEntityName, setExtendedField, setFULLHEIGHT, setGRIDALIGN, setGRIDCOLS, setGRIDROWS, setGRIDVALIGN, setICON, setIdentity, setIMPORTANT, setLabel, setLABEL, setLABELINLINE, setLAYOUTLABEL, setLAYOUTNAME, setNAME, setREGISTRYNAME, setTooltip, setup, setValuesContainer, stringForJs, tabIndexerMethods inherited from class overit.geocall.platform.ui.UINode
addChild, addChildText, getChildren, getNodeId, getParent, getRoot, getSchema, setNodeId, setParent, setSchemaMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface overit.geocall.ui.Badgeable
badgeFormat, makeBadgedIcon
-
Field Details
-
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
-
focusedTabName
-
-
Constructor Details
-
EditCustomer
public EditCustomer()
-
-
Method Details
-
onOpen
Description copied from class:ContainerMethod called when is executed theWindowManager.push(overit.geocall.basic.ui.Window, java.lang.Object)of theWindowthat 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: "¶ms=KEY1,VAL1,KEY2,VAL2" or "¶ms=KEY1=VAL1,KEY2=VAL2"
In that case it is possible to retrieve those params via theWindowManager.getRouteParams()method that returns anHashGetterwith 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:
onOpenin classoverit.geocallapp.wfm.clienti.dettaglio.CEditUtenza- Parameters:
o- Object received from the caller
-
onRestore
Description copied from class:ContainerMethod called when is executed theWindowManager.pop(java.lang.Object)of the aboveWindow. It calls the onRestore(o) method of all the Container's childrens -
onSwitch
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
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:
-
onCustomerMeterClick
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:
-
onConfirmMeterEditing
UI event handler to manage the meter editing. Since the edited data will be injected to theeditingMeter, this method will only add the meter to the already associated if not already on the list, and refresh theTableViewcontent- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
- true to break the responsibility chain, false otherwise.
-
onAbortMeterEditing
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
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
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 thedoSave()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
Transfer the form values to the customer to save, and delegate todoInsert()anddoUpdate()the actual event launch.- Throws:
DAValidateExceptionDAException- See Also:
-
doUpdate
Prepare and launch theCustomerUpdateEvent- Throws:
DAValidateException- if there is a problem in the validationDAException- if there is a problem during the update
-
doInsert
Prepare and launch theCustomerInsertEvent- Throws:
DAValidateException- if there is a problem in the validationDAException- if there is a problem during the insert
-
onSearchPreviousCustomer
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
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 focusedTechnicalObjectSectionthat now is on focus -
getCustomer
Gets theTechnicalObjectto intend as customer currently in editing- Returns:
- the
TechnicalObjectto intend as customer currently in editing
-
getMeters
Gets the list ofBOMeterassociated to the editing customer- Returns:
- the list of
BOMeterassociated to the editing customer
-
getContacts
Gets the list ofBOContactassociated to the editing customer- Returns:
- the list of
BOContactassociated to the editing customer
-
onShowMeasures
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
-