psdi.app.item

Class ItemCondition

  • All Implemented Interfaces:
    java.rmi.Remote, ItemConditionRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class ItemCondition
    extends Mbo
    implements ItemConditionRemote
    Mbo object to represent ItemCondition. See Item Package description for details.

    This is a ItemSet level object.

    The key attributes in this object are as follows: ConditionCode, ItemNum, ItemSetID.

    The attributes in this object are as follows:

    Attribute NameDescription
    ConditionCodeItem Condition Code.
    CondRateCondition Rate Percentage.
    DescriptionDescription for the condition.
    Description_longdescriptionnon-persistent column to hold longdescription
    itemnumItem for the condition code. Item Number can be null.
    ItemSetIdThe Item Set.
    LdkeyLong description key
    • Constructor Detail

      • ItemCondition

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

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        set default values and field flags
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Checks to see if this item condition object can be deleted if it is associated with an item and is referenced by invcost records, then it can not be deleted if it is a basic condition code and is associated with items, then it can not be deleted.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException - - will throw this exception if it can't be deleted
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        checks if the itemcondition set has duplicated condition codes for condition code setup
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        the saveTransaction logic of checking one and only one 100% condition rate is now in the save(). Was in appValidate() but logic executed everytime the a new row is clicked(changing mbo position)
        Overrides:
        save in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws java.rmi.RemoteException,
                                        MXException
        When executing the copy method for the Mbo, do not copy values for the following attribute(s):
        • itemnum
        • itemsetid
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        The - MboValueInfo object of the MboValue to be evaluated
        Returns:
        True if the field does not need to be copied. In all other cases return false.
        Throws:
        java.rmi.RemoteException
        MXException
        See Also:
        Mbo.copy(MboSetRemote)