psdi.app.workorder

Class FldWOAssetnum

    • Constructor Detail

      • FldWOAssetnum

        public FldWOAssetnum(MboValue mbv)
                      throws MXException
        Construct and attach to the specified MboValue.
        Parameters:
        mbv - the MboValue AssetNum field in the work order object attach to.
        Throws:
        MXException
    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        Charge to store work orders can't have thier asset changed if they have any actuals.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class FldAssetnum
        Throws:
        MXApplicationException - thrown with "workorder","ASSETCSActuals" parameter(wonum) if this is a charge-to-store work order with actuals.
        MXException
        java.rmi.RemoteException
      • setCIForAsset

        public void setCIForAsset()
                           throws MXException,
                                  java.rmi.RemoteException
        Called by the assetnum attribute to set the WO's CINum to the CI's Asset If the asset has a Valid CI for the WO, that CI will be put on the WO, if the CI field is blank. If the WO's cinum is not blank, a warning will be given (MXApplicationException, workorder, AssetChangeLoc, parameter of the asset's CI).
        Throws:
        MXException
        java.rmi.RemoteException
      • determineLocationAction

        public void determineLocationAction()
                                     throws MXException,
                                            java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • determineSafetyPlanAction

        public void determineSafetyPlanAction()
                                       throws MXException,
                                              java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • addConditionalListWhere

        public void addConditionalListWhere(java.lang.String attribute,
                                            java.lang.String condition,
                                            java.lang.String where)
        Description copied from class: MAXTableDomain
        Add conditional list where. The list where will only be part of the list where clause when the condition met for the attribute.
        Overrides:
        addConditionalListWhere in class MAXTableDomain
        Parameters:
        attribute - The attribute name of the current mbo which is evaluated to the condition.
        condition - ISNULL or ISNOTNULL,
        where - The where clause which is part of the list where if the condition met.
      • copyPhyLocValueFromLocation

        public void copyPhyLocValueFromLocation()
                                         throws MXException,
                                                java.rmi.RemoteException
        Gets the value of PLUSCPHYLOC from the asset and copies it to WORKORDER.PLUSCPHYLOC.
        Throws:
        MXException
        java.rmi.RemoteException