psdi.app.workorder

Class WpEditSetting

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, WpEditSettingRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class WpEditSetting
    extends Mbo
    implements WpEditSettingRemote
    Mbo to represent WpEditSetting object.
    This object can be used to specify which parts of a work plan can be edited for each category of work order status.

    See Workorder Package description.

    This Mbo is a site level object.

    The key attributes for this object are siteid and Status.

    The attributes in this object are as follows:

    Attribute NameDescription
    EditAssetCan the Asset be edited when the Work Order is at this status?
    EditGLAccountCan the GL Account be edited when the Work Order is at this status?
    EditLocCan the Location be edited when the Work Order is at this status?
    EditSafetyCan the Safety information be edited when the Work Order is at this status?
    EditWpLabCan the Work Plan Labor be edited when the Work Order is at this status?
    EditWpMat Can the Work Plan Materials be edited when the Work Order is at this status?
    EditWpToolCan the Work Plan Tools be edited when the Work Order is at this status?
    StatusStatus at which fields are editable.
    • Constructor Detail

      • WpEditSetting

        public WpEditSetting(MboSet ms)
                      throws MXException,
                             java.rmi.RemoteException
        Construct the WpEditSetting object.
        Parameters:
        ms - The WpEditSetting MboSet.
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Adds a new object and sets the orgid field to that of the parent Organization.

        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException
        Can the WpEditSetting object be deleted?
        Only if the owner is an Organization object and its toBeDeleted attribute is true can WpEditSetting objects be deleted.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXApplicationException -
        GROUPKEYREASON
        workorderCannotDeleteWpEditSettingif trying to delete when the parent is not an Organization object and toBeDeleted is true
        MXException
        See Also:
        psdi.app.workorder.WpEditSettingSet#canAdd.
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Description copied from class: Mbo
        Save the object and other linked objects. Subclasses can code their save() logic to include any appropriate updates to other linked objects and call super.save().
        Overrides:
        save in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException