psdi.app.tool

Class FldToolTransRotAssetnum

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldToolTransRotAssetnum
    extends FldAssetnum
    Since field is read-only unless itemnum.rotating = 'y', checks to ensure itemnum is rotating
    • Field Detail

      • doGetListCalibration

        protected boolean doGetListCalibration
        Flag to indicate if calibration criteria should be included in getList method.
      • doSetListCriteria

        protected boolean doSetListCriteria
    • Constructor Detail

      • FldToolTransRotAssetnum

        public FldToolTransRotAssetnum(MboValue mbv)
                                throws MXException,
                                       java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • getList

        public MboSetRemote getList()
                             throws MXException,
                                    java.rmi.RemoteException
        Override and setup the appropriate criteria for displaying the list of Rotating assets. If a rotating asset site is not selected, the list will show all rotating asset numbers for the corresponding itemnum in all sites that the user has access to. If the user chooses to select a Rotating Asset Site before choosing the Rotating Asset, the lookup is restricted to the selected site. The corresponding Rotating Asset lookup will then be 'pre-filtered' for the site that was chosen.
        Specified by:
        getList in interface MboValueListener
        Overrides:
        getList in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        Is necessary set ITEMSETID and ITEMNUM before the action() calling cause this field have to be set before the ROTASSETNUM seting
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class FldAssetnum
        Throws:
        MXException
        java.rmi.RemoteException
      • getListCalibration

        public MboSetRemote getListCalibration()
                                        throws MXException,
                                               java.rmi.RemoteException
        The list has to show results in PLUSCISMTE desc order (first the 'Y' one). This method makes the list not to be site specific. Since FldToolTransRotAssetnum's version of this method sets a list criteria that filter the current tool status, we had to copy the part of code that we need, and override the setListCriteria() method to keep the parent's list criteria from being set.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException
      • getStatusListCriteria

        protected java.lang.String getStatusListCriteria(MboRemote mbo)
                                                  throws MXException,
                                                         java.rmi.RemoteException
        The part of the list criteria where clause that filters based on status
        Returns:
        the statusListCriteria
        Throws:
        MXException
        java.rmi.RemoteException