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
  • Field Details

  • Constructor Details

    • WOOperation

      public WOOperation()
  • Method Details

    • onOpen

      public void onOpen(Object o)
      It it the event launched when the mask has been opened and it manages all initializations
      Overrides:
      onOpen in class Container
      Parameters:
      o - is an HashGetter which must contain these three values:
    • setAIVisibility

      protected void setAIVisibility()
    • setupWindow

      protected void setupWindow(int operation)
      Overrides:
      setupWindow in class overit.geocallapp.wfm.schedulazione.odl.CRigheOdlMT
    • initialize

      protected void initialize()
      Overrides:
      initialize in class overit.geocallapp.wfm.schedulazione.odl.CRigheOdlMT
    • getPanelCheckResultHelper

      protected PanelCheckResultHelper getPanelCheckResultHelper()
    • onSelectWOOperation

      public boolean onSelectWOOperation(UIMessage uim)
      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:
      true to break the responsibility chain, false otherwise
    • onNewWOOperation

      public boolean onNewWOOperation(UIMessage uim)
      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:
      true to break the responsibility chain, false otherwise
    • onOperationRowMenu

      public boolean onOperationRowMenu(UIMessage uim)
      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:
      true to break the responsibility chain, false otherwise
    • addRowMenuItems

      protected void addRowMenuItems(Menu menu)
    • addMultistageRowMenu

      protected void addMultistageRowMenu(Menu menu)
    • 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:
      true if the operation can be edited, false otherwise
    • isOperationClosed

      protected boolean isOperationClosed(Long operationState)
      Checks if the operation is in a closed state (CLOSED or CANCELLED).
      Parameters:
      operationState - the operation state to check
      Returns:
      true if the operation is closed, false otherwise
    • addModuleItemToRowMenu

      protected void addModuleItemToRowMenu(Menu menu)
    • onNewUnplannedInterventionOutcome

      public boolean onNewUnplannedInterventionOutcome(UIMessage uim)
      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:
      true to break the responsibility chain, false otherwise
    • onRestoreFromUnplannedOutcome

      public void onRestoreFromUnplannedOutcome(Object obj)
      UI event handler to manage the page restore from a technical olbject research.
      Parameters:
      obj - the parameters from technical object page
    • onUnlockWOOperation

      public boolean onUnlockWOOperation(UIMessage uim)
      It allows to unlock an operation.
      Parameters:
      uim - the UI event data such as the form content and control keys
      Returns:
      true to break the responsibility chain, false otherwise
    • unlockWOOperation

      protected void unlockWOOperation()
    • onCancelWOOperation

      public boolean onCancelWOOperation(UIMessage uim)
      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:
      true to break the responsibility chain, false otherwise
    • onConfirmCancelWOOperation

      public boolean onConfirmCancelWOOperation(Object obj)
      It confirms the cancellation of an already planned operation.
      Parameters:
      obj - default parameter
      Returns:
      true to break the responsibility chain, false otherwise
    • cancelWOOperation

      protected void cancelWOOperation(boolean usePrompt)
    • prepareOperationData

      protected void prepareOperationData(UIMessage uim)
      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

      public boolean onEditWOOperation(UIMessage uim)
      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:
      true to break the responsibility chain, false otherwise
    • onViewWOOperation

      public boolean onViewWOOperation(UIMessage uim)
      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:
      true to break the responsibility chain, false otherwise
    • onDeleteWOOperation

      public boolean onDeleteWOOperation(UIMessage uim)
      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:
      true to break the responsibility chain, false otherwise
    • onViewMultistageOperation

      public boolean onViewMultistageOperation(UIMessage uim)
    • onDeleteMultistage

      public boolean onDeleteMultistage(UIMessage uim)
    • checkAndDeleteMultistage

      public boolean checkAndDeleteMultistage(Set<Long> operationIds, Long headerId)
    • launchRemoveOperationsEvent

      protected void launchRemoveOperationsEvent(MultistageGroupRemoveOperationsEvent event) throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • onAddMultistage

      public boolean onAddMultistage(UIMessage uim)
    • addOperationMultistage

      public boolean addOperationMultistage(Long headerId)
    • launchAddWOOperationsEvent

      protected boolean launchAddWOOperationsEvent(MultistageGroupAddWOOperationsEvent event) throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • onCheckResultUserConfirmAddMultistage

      public boolean onCheckResultUserConfirmAddMultistage(UIMessage uim)
    • onCheckResultUserConfirmDeleteMultistage

      public boolean onCheckResultUserConfirmDeleteMultistage(UIMessage uim)
    • onSelectOperationType

      public boolean onSelectOperationType(UIMessage uim)
      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:
      true to break the responsibility chain, false otherwise.
    • onSelectResourceType

      public boolean onSelectResourceType(UIMessage uim)
      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:
      true to break the responsibility chain, false otherwise.
    • onSelectWorkCenterType

      public boolean onSelectWorkCenterType(UIMessage uim)
      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:
      true to break the responsibility chain, false otherwise.
    • onSelectTechnicalObjectType

      public boolean onSelectTechnicalObjectType(UIMessage uim)
      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:
      true to break the responsibility chain, false otherwise.
    • onSearchTechnicalObject

      public boolean onSearchTechnicalObject(UIMessage uim)
      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:
      true to break the responsibility chain, false otherwise
    • pushTechnicalObjectResearch

      protected void pushTechnicalObjectResearch()
    • onRestoreFromTechnicalObjectResearch

      public void onRestoreFromTechnicalObjectResearch(Object obj)
      UI event handler to manage the page restore from a technical olbject research.
      Parameters:
      obj - the parameters from technical object page
    • onClearTechnicalObject

      public boolean onClearTechnicalObject(UIMessage uim)
      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:
      true to break the responsibility chain, false otherwise
    • onOkWOOperation

      public boolean onOkWOOperation(UIMessage uim)
      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:
      true to break the responsibility chain, false otherwise
    • onClose

      public void onClose()
      Description copied from class: Container
      Closes the Container and calls the onClose() method of all the Container's childrens
      Overrides:
      onClose in class Container
    • onCreateAndAssociateMultistage

      public boolean onCreateAndAssociateMultistage(UIMessage uim)
    • onSaveMultistageGroup

      public boolean onSaveMultistageGroup(UIMessage uim)
    • loadMultistageOperationData

      protected void loadMultistageOperationData(DBView operations)
    • loadMultistageHeader

      protected BOMultistageGroupHeader loadMultistageHeader(Long groupId)
    • loadMultistageOperations

      protected List<BOMultistageGroupOperation> loadMultistageOperations(Set<Long> woOperationIds)
    • getOperationTableColumns

      protected List<String> getOperationTableColumns()
      Overrides:
      getOperationTableColumns in class overit.geocallapp.wfm.schedulazione.odl.CRigheOdlMT
    • fillOperationDBView

      protected void fillOperationDBView(DBView operations) throws DAException, DAValidateException
      Overrides:
      fillOperationDBView in class overit.geocallapp.wfm.schedulazione.odl.CRigheOdlMT
      Throws:
      DAException
      DAValidateException
    • loadActivityAddressData

      protected void loadActivityAddressData(DBView operationsDBView)
    • loadMultistage

      protected void loadMultistage()
    • loadDetails

      protected void loadDetails()
      Overrides:
      loadDetails in class overit.geocallapp.wfm.schedulazione.odl.CRigheOdlMT
    • updateSections

      protected void updateSections()
    • addDependeciesData

      protected void addDependeciesData(DBView operations) throws DAValidateException, DAException
      Throws:
      DAValidateException
      DAException
    • addBundlerManagement

      protected void addBundlerManagement(Menu menu)
    • onBundleDetail

      public boolean onBundleDetail(UIMessage uim)
    • loadBundleOperationData

      protected void loadBundleOperationData(DBView operationsDBView)
    • getAdditionalBundleData

      protected Bundle getAdditionalBundleData(Long woId)
    • addOverrideSkillsRowMenu

      protected void addOverrideSkillsRowMenu(Menu menu)
    • onOverrideSkills

      public boolean onOverrideSkills(UIMessage uim)
    • onEditSchedulingAddress

      public boolean onEditSchedulingAddress(UIMessage uim)
      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

      public boolean onClearSchedulingAddress(UIMessage uim)
      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:
      true to break the responsibility chain, false otherwise
    • onRestoreFromEditSchedulingAddress

      public void onRestoreFromEditSchedulingAddress(Object obj)
      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:
      DAException
      DAValidateException
    • addSchedulingAddressFromBOAddress

      protected void addSchedulingAddressFromBOAddress(HashGetter values, BOAddress address)
      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 data
      address - 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

      public boolean onSaveSkillOverrideConfiguration(HashGetter eventData)
    • onSaveSkillOverrideConfigurationAndUnlockOperation

      public boolean onSaveSkillOverrideConfigurationAndUnlockOperation(HashGetter eventData)
    • updateSkillOverrideConfiguration

      protected void updateSkillOverrideConfiguration(Long operationId, Long skillOverrideConfigurationId)