psdi.app.po

Class FldPOLineLocation

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldPOLineLocation
    extends FldCommonCrossSiteLocation
    This is field class validation for the location field of POLine. This is the location where the item or service will be used. If there is a workorder this location is the workorder's location.
    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        Description copied from class: MAXTableDomain
        Validate that the MboSet returned used using either the relationship, or the where clause is not empty. If it is empty, throw an MXAPPLICATIONEXception. If there are attributes as part of the foreign key that don't allow null when this attribute is set, exception will be thrown if the value is empty.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        Post-validation is derived from FldCommonLocation and any additional post-validation is done in this class. If assetnum = null and if there is only one asset that has this location then set assetnum = the asset. Set gldebitacct,storeloc to null and readonly,issue to Y.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class FldCommonCrossSiteLocation
        Throws:
        MXApplicationException(po, - AssetNonRotating) is thrown when the chargestore flag is true but the asset is not a valid rotating asset
        MXException
        java.rmi.RemoteException