Class WOOperation
java.lang.Object
overit.geocall.platform.ui.UINode
overit.geocall.ui.Component
overit.geocall.ui.Control
overit.geocall.basic.ui.Container
overit.geocallapp.wfm.schedulazione.odl.CRigheOdlMT
overit.geocallapp.wfm.core.ux.workorder.operation.edit.WOOperation
- 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 WOOperation
extends overit.geocallapp.wfm.schedulazione.odl.CRigheOdlMT
Work order operation 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 TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringprotected PanelCheckResultHelperprotected overit.geocallapp.wfm.schedulazione.consuntivazione.ricerca.skilloverride.PanelSkillOverrideprotected PanelNewMultistageGroupprotected PanelSelectMultistageGroupstatic final Stringprotected List<WOOperationSection> static final StringFields inherited from class overit.geocallapp.wfm.schedulazione.odl.CRigheOdlMT
action, ACTION_CANCEL, ACTION_CLOSE, ACTION_REFUSE, ACTION_VALIDATE, ACTION_VENDOR_APPROVAL, ACTION_VENDOR_APPROVAL_REQUEST, ASSOCIATE_MATERIALS, automaticNumbering, currentOperationAccountingType, currentOperationRow, datOLC, datOLCTO, dbvWorkCycleStructure, dcsRow, EDIT_MATERIALS_LIST, EDIT_WO_OPERATION, fCycleReplacing, fEditOperation, INSERT_WO_OPERATION, isInsert, isReadOnlyMode, NO_ACTION, operationToDo, pdSelectedRow, pdService, pdWindowManager, pEditOperation, pLeakTest, pSubstitutionReport, RN_MEASURES_TAB, RN_MEASURING_ELEMENTS_TAB, RN_OBJECT_LIST_TAB, SEARCH_TECHNICAL_OBJECT, TOOL_ASSOCIATION, tvEstimate, tvLeakTest, tvPurchaseDocuments, tvSubstitutionReport, tvWOOperation, UNPLANNED_OUTCOME, VIEW_SINGLE_OPERATION, VIEW_WO_OPERATION, woGroupChecker, woHeaderActionType, workCycleData, workOrderFields 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 voidaddBundlerManagement(Menu menu) protected voidaddDependeciesData(DBView operations) protected voidaddModuleItemToRowMenu(Menu menu) protected voidaddMultistageRowMenu(Menu menu) booleanaddOperationMultistage(Long headerId) protected voidaddOverrideSkillsRowMenu(Menu menu) protected voidaddRowMenuItems(Menu menu) protected voidaddSchedulingAddressFromBOAddress(HashGetter values, BOAddress address) Populates a HashGetter with scheduling address data from a BOAddress object.protected voidcancelWOOperation(boolean usePrompt) booleancheckAndDeleteMultistage(Set<Long> operationIds, Long headerId) protected voidClears the scheduling address association by removing scheduling-specific fields from the form values.protected BOAddressCreates a BOAddress object from scheduling address data stored in a HashGetter.protected voidfillOperationDBView(DBView operations) protected BundlegetAdditionalBundleData(Long woId) protected PanelCheckResultHelperprotected voidprotected booleanisOperationClosed(Long operationState) Checks if the operation is in a closed state (CLOSED or CANCELLED).protected booleanprotected voidprotected voidloadActivityAddressData(DBView operationsDBView) protected voidloadBundleOperationData(DBView operationsDBView) protected voidprotected voidprotected BOMultistageGroupHeaderloadMultistageHeader(Long groupId) protected voidloadMultistageOperationData(DBView operations) protected List<BOMultistageGroupOperation> loadMultistageOperations(Set<Long> woOperationIds) booleanonAddMultistage(UIMessage uim) booleanonBundleDetail(UIMessage uim) booleanIt cancels the operation only if it is not a new one.booleanbooleanbooleanPanel event: it cancels the Address object's data in the edit operation panel.booleanPanel event: it cancels the technical object's (not-yet-saved) data in the edit operation panel.voidonClose()Closes the Container and calls the onClose() method of all the Container's childrensbooleanIt confirms the cancellation of an already planned operation.booleanbooleanbooleanIt deletes the operation from the work order (if the status permits it).booleanUI event handler to open the editing scheduling address panel, for a new address.booleanIt allows to edit the operation by showing the edit operation panel.booleanUI event handler to create a new unplanned intervention outcome.booleanIt allows to add a new operation by showing the new operation panel.booleanonOkWOOperation(UIMessage uim) Panel event: it allows to set all the new/edited informations to the current operation.voidIt it the event launched when the mask has been opened and it manages all initializationsbooleanIt allows to add elements/actions to the operation row menu.booleanvoidUI event handler to manage the page restore from a technical olbject research.voidUI event handler to manage the page restore from a technical olbject research.voidUI event handler to manage the page restore from a technical olbject research.booleanbooleanonSaveSkillOverrideConfiguration(HashGetter eventData) booleanbooleanPanel event: allows to search a technical object for current work order operation.booleanPanel event: it calculates the operation type by four parameters: work center type operation type resource type technical object typebooleanPanel event: it calculates the operation type by four parameters: work center type operation type resource type technical object typebooleanPanel event: it calculates the operation type by four parameters: work center type operation type resource type technical object typebooleanIt allows to select an operation from the operations table and display its data.booleanPanel event: it calculates the operation type by four parameters: work center type operation type resource type technical object typebooleanIt allows to unlock an operation.booleanbooleanIt allows to view the operation by showing the edit operation panel in readonly mode.protected voidIt allows to prepare the operation data to be shown in the edit operation panel.protected voidPrepares and loads scheduling address data for the current operation.protected voidprotected voidprotected voidsetupWindow(int operation) protected booleanChecks if the edit operation menu item should be shown.protected booleanprotected voidprotected voidprotected voidupdateSkillOverrideConfiguration(Long operationId, Long skillOverrideConfigurationId) Methods inherited from class overit.geocallapp.wfm.schedulazione.odl.CRigheOdlMT
addOperationFromWorkCycleOperation, checkBeforeProcess, checkExternalSystemSendStatus, checkMaterialSupplierAgreementAssociation, checkOperationStatus, checkSavedOperation, checkStartEndDates, checkUniqueInterventionGroup, checkUniqueOrder, checkWoGroupsAndDoAction, checkWOStatus, clearTechnicalObjectAssociation, closePage, confirmWOOperationData, continueWoGroupsChecks, doOperation, existsAlreadySentMaterialAccounting, existsAlreadySentUserAccounting, existsAlreadySentVehicleAccounting, getCancelPurchaseDocumentAdditionalData, getOperationAccountingType, getPDWOGroups, getWarningMessage, getWOOperationInsertValues, getWorkOrderActivity, initForEnterpriseManagment, initResourceView, isCustomerWOConsumer, isLeakTestNotPermitted, isOperationAddressDifferent, isOrderUnique, isSubstitutionReportNotPermitted, loadCalculatedOperationData, loadCensus, loadData, loadEstimates, loadLeakTests, loadMaterialsAccounting, loadMeasures, loadMeasuringElements, loadMultimediaFiles, loadObjectList, loadOLConfigurationsFromWorkCycle, loadOperationOutcome, loadOutcomes, loadPerformancesAccounting, loadReadings, loadReadingsAI, loadSES, loadSubstitutionReports, loadTools, loadUsersAccounting, loadVehiclesAccounting, loadWorkCycleByWorkOrderType, onAssociateMaterials, onAssociateTools, onCancel, onCancelPurchaseDocument, onClosePurchaseDocument, onConfirmCancelPurchaseDocument, onConfirmClosePurchaseDocument, onCreateCopy, onCreatePurchaseOrderFromRequest, onCustomerNotes, onEditDistributions, onEditEstimates, onEditLeakTest, onEditMaterials, onEditPurchaseDocument, onEditSubcontracts, onEditSubstitutionReport, onEditUsers, onEditVehicles, onMaterialAccounting, onNewLeakTest, onNewSubstitutionReport, onOperationsRecap, onPurchaseDocumentsRowMenu, onRefuseDocumentConfirm, onRefusePurchaseDocument, onReplaceCycleRows, onRestore, onSaveLeakTest, onSaveResource, onSaveSubstitutionReport, onSaveToolAssociation, onSaveUsersAccounting, onSelectWorkCycle, onSetReliableForContractor, onShowSES, onSkipExpQntAndContinue, onSkipForeignOperation, onUsersAccounting, onValidatePurchaseDocument, onVCAppointment, onVehiclesAccounting, onVendorApproval, onVendorApprovalRequest, onViewPD, onViewPurchaseDocument, prepareOperationTableView, prepareTechnicalObjectFilter, processOperation, refreshTools, restoreFromEditMaterialList, restoreFromUnplannedOutcome, selectWorkCycle, selectWorkOrderOperation, setAgreementVisibilityByRFC, setDefaultOperationRow, setFixedWorkFields, setupObjectListTab, setupOperationAddress, setupOperationFields, setupPurchasingTab, setWOOperationType, setWorkCycleCalculationCustomValues, setWorkOrderByOrder, showAssociateMaterials, showAssociateTools, showSetReliableForContractor, updatedOperationsMethods inherited from class overit.geocall.basic.ui.Container
alert, applyRule, getBASIC, getBLANK, getHtml, getRO, getROField, 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
-
ACTION_PARAMETER
- See Also:
-
WORK_ORDER_PARAMETER
- See Also:
-
WO_HEADER_ACTION_PARAMETER
- See Also:
-
MULTISTAGE_DEPENDENCIES_COLUMN
- See Also:
-
BUNDLE_COLUMN
- See Also:
-
woOperationSections
-
selectMultistagePanel
-
panelCheckResultHelper
-
pNewMultistageGroup
-
panelSkillOverride
protected overit.geocallapp.wfm.schedulazione.consuntivazione.ricerca.skilloverride.PanelSkillOverride panelSkillOverride
-
-
Constructor Details
-
WOOperation
public WOOperation()
-
-
Method Details
-
onOpen
It it the event launched when the mask has been opened and it manages all initializations- Overrides:
onOpenin classContainer- Parameters:
o- is anHashGetterwhich must contain these three values:-
ACTION_PARAMETER: indicates whether the action on the operation is an insert/view/edit -
WORK_ORDER_PARAMETER: contains theWorkOrderof the operation -
WO_HEADER_ACTION_PARAMETER: indicates whether the action on the work order was an insert/view/edit
-
-
setAIVisibility
protected void setAIVisibility() -
setupWindow
protected void setupWindow(int operation) - Overrides:
setupWindowin classoverit.geocallapp.wfm.schedulazione.odl.CRigheOdlMT
-
initialize
protected void initialize()- Overrides:
initializein classoverit.geocallapp.wfm.schedulazione.odl.CRigheOdlMT
-
getPanelCheckResultHelper
-
onSelectWOOperation
It allows to select an operation from the operations table and display its data.- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise
-
onNewWOOperation
It allows to add a new operation by showing the new operation panel.- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise
-
onOperationRowMenu
It allows to add elements/actions to the operation row menu.- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise
-
addRowMenuItems
-
addMultistageRowMenu
-
showUnplannedOutcome
protected boolean showUnplannedOutcome() -
showEditWOOperation
protected boolean showEditWOOperation()Checks if the edit operation menu item should be shown. Operations in CLOSED or CANCELLED status should not be editable.- Returns:
trueif the operation can be edited,falseotherwise
-
isOperationClosed
Checks if the operation is in a closed state (CLOSED or CANCELLED).- Parameters:
operationState- the operation state to check- Returns:
trueif the operation is closed,falseotherwise
-
addModuleItemToRowMenu
-
onNewUnplannedInterventionOutcome
UI event handler to create a new unplanned intervention outcome.- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise
-
onRestoreFromUnplannedOutcome
UI event handler to manage the page restore from a technical olbject research.- Parameters:
obj- the parameters from technical object page
-
onUnlockWOOperation
It allows to unlock an operation.- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise
-
unlockWOOperation
protected void unlockWOOperation() -
onCancelWOOperation
It cancels the operation only if it is not a new one. If the operation has already been planned, it asks for confirmation.- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise
-
onConfirmCancelWOOperation
It confirms the cancellation of an already planned operation.- Parameters:
obj- default parameter- Returns:
trueto break the responsibility chain,falseotherwise
-
cancelWOOperation
protected void cancelWOOperation(boolean usePrompt) -
prepareOperationData
It allows to prepare the operation data to be shown in the edit operation panel.- Parameters:
uim- the UI event data such as the form content and control keys
-
onEditWOOperation
It allows to edit the operation by showing the edit operation panel.- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise
-
onViewWOOperation
It allows to view the operation by showing the edit operation panel in readonly mode. If the operation is in CLOSED or CANCELLED status, the panel is shown in VIEW mode with this method.- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise
-
onDeleteWOOperation
It deletes the operation from the work order (if the status permits it).- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise
-
onViewMultistageOperation
-
onDeleteMultistage
-
checkAndDeleteMultistage
-
launchRemoveOperationsEvent
protected void launchRemoveOperationsEvent(MultistageGroupRemoveOperationsEvent event) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
onAddMultistage
-
addOperationMultistage
-
launchAddWOOperationsEvent
protected boolean launchAddWOOperationsEvent(MultistageGroupAddWOOperationsEvent event) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
onCheckResultUserConfirmAddMultistage
-
onCheckResultUserConfirmDeleteMultistage
-
onSelectOperationType
Panel event: it calculates the operation type by four parameters:- work center type
- operation type
- resource type
- technical object type
- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise.
-
onSelectResourceType
Panel event: it calculates the operation type by four parameters:- work center type
- operation type
- resource type
- technical object type
- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise.
-
onSelectWorkCenterType
Panel event: it calculates the operation type by four parameters:- work center type
- operation type
- resource type
- technical object type
- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise.
-
onSelectTechnicalObjectType
Panel event: it calculates the operation type by four parameters:- work center type
- operation type
- resource type
- technical object type
- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise.
-
onSearchTechnicalObject
Panel event: allows to search a technical object for current work order operation.- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise
-
pushTechnicalObjectResearch
protected void pushTechnicalObjectResearch() -
onRestoreFromTechnicalObjectResearch
UI event handler to manage the page restore from a technical olbject research.- Parameters:
obj- the parameters from technical object page
-
onClearTechnicalObject
Panel event: it cancels the technical object's (not-yet-saved) data in the edit operation panel.- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise
-
onOkWOOperation
Panel event: it allows to set all the new/edited informations to the current operation.- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise
-
onClose
public void onClose()Description copied from class:ContainerCloses the Container and calls the onClose() method of all the Container's childrens -
onCreateAndAssociateMultistage
-
onSaveMultistageGroup
-
loadMultistageOperationData
-
loadMultistageHeader
-
loadMultistageOperations
-
getOperationTableColumns
- Overrides:
getOperationTableColumnsin classoverit.geocallapp.wfm.schedulazione.odl.CRigheOdlMT
-
fillOperationDBView
- Overrides:
fillOperationDBViewin classoverit.geocallapp.wfm.schedulazione.odl.CRigheOdlMT- Throws:
DAExceptionDAValidateException
-
loadActivityAddressData
-
loadMultistage
protected void loadMultistage() -
loadDetails
protected void loadDetails()- Overrides:
loadDetailsin classoverit.geocallapp.wfm.schedulazione.odl.CRigheOdlMT
-
updateSections
protected void updateSections() -
addDependeciesData
- Throws:
DAValidateExceptionDAException
-
addBundlerManagement
-
onBundleDetail
-
loadBundleOperationData
-
getAdditionalBundleData
-
addOverrideSkillsRowMenu
-
onOverrideSkills
-
onEditSchedulingAddress
UI event handler to open the editing scheduling address panel, for a new address. (Panel Event)- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
- true to break the responsibility chain
-
onClearSchedulingAddress
Panel event: it cancels the Address object's data in the edit operation panel.- Parameters:
uim- the UI event data such as the form content and control keys- Returns:
trueto break the responsibility chain,falseotherwise
-
onRestoreFromEditSchedulingAddress
UI event handler to manage the page restore from a technical olbject research.- Parameters:
obj- the parameters from Address page
-
prepareSchedulingAddress
protected void prepareSchedulingAddress()Prepares and loads scheduling address data for the current operation. This method checks if a scheduling address ID exists in the form values, loads the corresponding BOAddress from the database, and populates the form with the address data using scheduling-specific field names (prefixed with "SCHED_").- Throws:
ApplicationException- if a DAException occurs during address loading
-
createBOAddressFromSchedulingAddress
protected BOAddress createBOAddressFromSchedulingAddress(Long id) throws DAException, DAValidateException Creates a BOAddress object from scheduling address data stored in a HashGetter. This method extracts scheduling address fields (prefixed with "SCHED_") from the values and maps them to the corresponding BOAddress properties.- Parameters:
id- the HashGetter containing scheduling address data with "SCHED_" prefixed fields- Returns:
- a new BOAddress instance populated with the scheduling address data
- Throws:
DAExceptionDAValidateException
-
addSchedulingAddressFromBOAddress
Populates a HashGetter with scheduling address data from a BOAddress object. This method takes address properties from the BOAddress and stores them in the values with "SCHED_" prefixed field names for scheduling purposes.- Parameters:
values- the HashGetter to populate with scheduling address dataaddress- the BOAddress containing the source address data
-
clearSchedulingAddressAssociation
protected void clearSchedulingAddressAssociation()Clears the scheduling address association by removing scheduling-specific fields from the form values. -
onSaveSkillOverrideConfiguration
-
onSaveSkillOverrideConfigurationAndUnlockOperation
-
updateSkillOverrideConfiguration
-