Class AssociateWorkOrderPermits

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 AssociateWorkOrderPermits extends Container
See Also:
  • Field Details

    • WORKORDER_NOVALID_STATES

      protected static final LongSet WORKORDER_NOVALID_STATES
    • LAST_REQUEST_DATE

      public static final String LAST_REQUEST_DATE
      See Also:
    • LAST_VALIDITY_START

      public static final String LAST_VALIDITY_START
      See Also:
    • LAST_DUE_DATE

      public static final String LAST_DUE_DATE
      See Also:
    • HAS_ATTACHMENT

      public static final String HAS_ATTACHMENT
      See Also:
    • USABLE

      public static final String USABLE
      See Also:
    • workOrder

      protected WorkOrder workOrder
    • woPermit

      protected WorkOrderPermits woPermit
    • currentPermitRequired

      protected BOPermitRequired currentPermitRequired
    • currentPermitObtained

      protected BOPermitObtained currentPermitObtained
    • formWorkOrder

      protected Form formWorkOrder
    • tvRequired

      protected TableView tvRequired
    • tvObtained

      protected TableView tvObtained
    • formRequiredPermit

      protected Form formRequiredPermit
    • panelRequiredPermit

      protected Panel panelRequiredPermit
    • formObtainedPermit

      protected Form formObtainedPermit
    • panelObtainedPermit

      protected Panel panelObtainedPermit
    • panelAttachmentObtainedPermit

      protected Panel panelAttachmentObtainedPermit
    • ioWorkOrderOperation

      protected InputOption ioWorkOrderOperation
    • ilWorkOrderOperation

      protected InputLookup ilWorkOrderOperation
    • resourceViewAttachments

      protected overit.geocallapp.wfm.ui.container.ResourceViewMultimediali resourceViewAttachments
    • permitTypeInputOption

      protected InputOption permitTypeInputOption
    • permitTypeInputLookup

      protected InputLookup permitTypeInputLookup
  • Constructor Details

    • AssociateWorkOrderPermits

      public AssociateWorkOrderPermits()
  • 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
    • init

      protected void init()
    • fillPermitTypes

      protected void fillPermitTypes(boolean active) throws DAException, DAValidateException
      Throws:
      DAException
      DAValidateException
    • loadData

      protected void loadData()
    • loadWORow

      protected void loadWORow()
    • loadPermitsRequired

      protected void loadPermitsRequired()
    • onSelectPermitRequired

      public boolean onSelectPermitRequired(UIMessage uim)
    • loadPermitsObtained

      protected void loadPermitsObtained()
    • onRowMenuRequired

      public boolean onRowMenuRequired(UIMessage uim)
    • onRowMenuObtained

      public boolean onRowMenuObtained(UIMessage uim)
    • onNewRequiredPermit

      public boolean onNewRequiredPermit(UIMessage uim)
    • onEditPermitRequired

      public boolean onEditPermitRequired(UIMessage uim)
    • setReadOnlyFieldOnEditPermitRequired

      protected void setReadOnlyFieldOnEditPermitRequired(boolean readOnly)
    • setViewWorkOrderOperation

      protected void setViewWorkOrderOperation()
    • onSaveRequiredPermit

      public boolean onSaveRequiredPermit(UIMessage uim)
    • onHideRequiredPermit

      public boolean onHideRequiredPermit(UIMessage uim)
    • launchSaveRequiredPermitEvent

      protected boolean launchSaveRequiredPermitEvent()
    • onDeletePermitRequired

      public boolean onDeletePermitRequired(UIMessage uim)
    • onDeletePermitObtained

      public boolean onDeletePermitObtained(UIMessage uim)
    • launchDeleteRequiredPermitEvent

      protected boolean launchDeleteRequiredPermitEvent()
    • onNewObtainedPermit

      public boolean onNewObtainedPermit(UIMessage uim)
    • onEditPermitObtained

      public boolean onEditPermitObtained(UIMessage uim)
    • onSaveObtainedPermit

      public boolean onSaveObtainedPermit(UIMessage uim)
    • checkControlSaveObtainedPermit

      protected boolean checkControlSaveObtainedPermit()
    • launchSaveObtainedPermitEvent

      protected boolean launchSaveObtainedPermitEvent()
    • onHideObtainedPermit

      public boolean onHideObtainedPermit(UIMessage uim)
    • onChangeType

      public boolean onChangeType(UIMessage uim)
    • manageLocalizedDescription

      public void manageLocalizedDescription(HashGetter form, HashGetter originalPermitType)
    • onEditPermitObtainedAttachments

      public boolean onEditPermitObtainedAttachments(UIMessage uim)
    • loadResourceView

      public void loadResourceView(Long idPermitObtained)
    • onNewAttachment

      public boolean onNewAttachment(UIMessage uim)
    • onDeleteAllAttachments

      public boolean onDeleteAllAttachments(HashGetter hg)
    • onDeleteAttachment

      public boolean onDeleteAttachment(HashGetter hg)
    • onHideAttachmentsObtainedPermit

      public boolean onHideAttachmentsObtainedPermit(UIMessage uim)
    • 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
    • addWOOperationData

      protected DBView addWOOperationData(DBView dbv) throws DAException, DAValidateException
      Throws:
      DAException
      DAValidateException
    • addLastDateInformation

      protected DBView addLastDateInformation(DBView dbv) throws DAException, DAValidateException
      Throws:
      DAException
      DAValidateException
    • addWOOperationType

      protected DBView addWOOperationType(DBView dbv) throws DAException, DAValidateException
      Throws:
      DAException
      DAValidateException
    • addFlagAttachment

      protected DBView addFlagAttachment(Permit permit, DBView dbv) throws DAException, DAValidateException
      Throws:
      DAException
      DAValidateException
    • loadWorkOrderTypeOperation

      protected BOWorkOrderOperationType loadWorkOrderTypeOperation(Long woOperationTypeId) throws DAException, DAValidateException
      Throws:
      DAException
      DAValidateException
    • loadWorkOrderOperation

      protected BOWorkOrderOperation loadWorkOrderOperation(Long woOperationId) throws DAException, DAValidateException
      Throws:
      DAException
      DAValidateException
    • loadIsAttachmentPermitObtained

      protected Boolean loadIsAttachmentPermitObtained(Long idPermitObtained) throws DAException, DAValidateException
      Throws:
      DAException
      DAValidateException
    • onWOPermitHistory

      public boolean onWOPermitHistory(UIMessage uim)