psdi.app.safety

Class FldAssetnumOrLocationOnly

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldAssetnumOrLocationOnly
    extends MAXTableDomain
    Many of the Mbos in the Safety package contain an attribute for assetnum and and attribute for location, but allow only one of these to be non-null. Thus we have this generic field validation routine that will allow one to be entered, and set readonly for the other one. This class also validates the main attribute as asset/assetnum or locations/location. If this is a location field, it must be an operating location.

    1 = Assetnum/Location is not null and mbo name is not SPRELATEDASSET
    2 = Assetnum/Location is not null and mbo name is LOCKOUT or WOLOCKOUT

    See Also:
    FldAssetnumOrLocationOnly.action()