psdi.app.item

Class ToolItem

  • All Implemented Interfaces:
    java.rmi.Remote, ItemRemote, ToolItemRemote, MboConstants, MboRemote, StatefulMboRemote, MaxRemoteProxy


    public class ToolItem
    extends Item
    implements ToolItemRemote
    The MBO to represent a tool as an item (view of the item where itemtype='TOOL'). See Item Package description for details.

    This is a itemset level object.

    The key attributes for this object are as follows: Itemnum and ItemSetID

    The attributes in this object are as follows:

    Attribute NameDescription
    CapitalizedSpecifies whether or not this tool object is to be financially accounted for as a capitalized or non-capitalized cost. If capitalized is true, this tool will always be issued and returned at zero cost regardless of the cost carried in inventory. If capitalized is false, this tool will be issued and returned at the standard, last or average cost. The default is false.
    ClassstructureidClass structure identifier. Class structures are the hierarchies of classifications (for example, centrifugal or rotarty pumps) around which assets can be organized.
    DescriptionShort description for this object. A long description may be associated with this object via the Ldkey attribute.
    GroupNameMeter group for the tool. This attribute pertains to rotating tools only, and is used to set the GroupName attribute of the new asset created from this tool during the application of an tool assembly structure.
    InspectionrequiredIndicates whether inspection of tool is required upon receipt. If true, receipts of this tool will not be added to inventory until inspection is completed.
    ItemnumUnique identifier for this piece of tool.
    ItemSetIDIdentifier of the itemset identifier for this object.
    InstanceNon-persistant attribute.Used to copy tool assembly structure.
    LdkeyLong description key.
    LottypeSpecifies whether or not this tool object is tracked by lot. A lotted tool typically has an expiration date that is assigned via a lotnum on receipt. Lot information is contained in the Invlot object. Valid untranslated values are LOT, indicating that an tool is lotted, and NOLOT, indicating that an tool is not lotted.
    MeterNameMeter associated with the tool. This is the meter for which a meter reading is to be recorded if this tool is issued to an asset that is associated with the same meter via an AssetMeter object. Only non-rotating tools can be associated with a meter.
    OutsideTrue if this tool object belongs to a contractor or vendor and is stored onsite, and the company will be charged for its use.
    OrgIdIdentifier of the organizations for this tool.
    RotatingIs this tool object a rotating tool? That is, must each tool in stock, on reserve or issued to a work order also be associated with a particular asset object via the itemnum attribute on an Asset object? Rotating tools, since they also possess asset attributes as rotating asset, can also be moved to locations and added as subassemblies to parent asset objects. The default value for the rotating attribute is false.
    Stocktypetool category, for example, BEARINGS, FILTERS and VALVES. The values come from the STKTYPE value list.
    Tax1code - Tax5codetax 1 code to tax 5 code.
    In19 - In27cross-over fields to Prline.Rlin1 - Rlin9
    • Field Detail

      • PLUSC_TL_ITEM_ALT

        protected static final java.lang.String PLUSC_TL_ITEM_ALT
        See Also:
        Constant Field Values
    • Constructor Detail

      • ToolItem

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

      • initFieldFlagsOnMbo

        public void initFieldFlagsOnMbo(java.lang.String attrName)
                                 throws MXException
        The logic of setting the readonly field flags to the mbo for rotating and iskit attributes.
        Overrides:
        initFieldFlagsOnMbo in class Item
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new Item object.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Item
        Throws:
        MXException
        java.rmi.RemoteException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Description copied from class: Item
        Item.canDelete()- Checks to see if this object can be deleted if it is on an asset, throw exception if it is on a masterpm, throw exception if this is on a sparepart, throw exception if this is on an itemstruct, throw exception if this is part of an inventory - and the inventory can't be deleted - throw exception.
        Overrides:
        canDelete in class Item
        Throws:
        MXException - - will throw this exception if it can't be deleted
        java.rmi.RemoteException
      • modifyCommodityGroup

        protected void modifyCommodityGroup()
                                     throws MXException,
                                            java.rmi.RemoteException
        performs tasks related to changing of this object's commoditygroup attribute. It update glaccount and control account for itemorginfo.
        Overrides:
        modifyCommodityGroup in class Item
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        FldItemCommodityGrp
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        Description copied from class: Item
        In saving an item, if the classstructureid has been changed and item is rotating, will need to update asset.classstructureid and location.classstructureid and need to update the description based upon classstructure and itemspec. If item is being converted from standard to condition enabled, update existing invcost and invbalances
        Overrides:
        save in class Item
        Throws:
        MXException
        java.rmi.RemoteException
      • isCalibrationInstalled

        public boolean isCalibrationInstalled()
                                       throws MXException,
                                              java.rmi.RemoteException
        Return true if License Key CALIBRATION is installed.
        Returns:
        Throws:
        MXException
        java.rmi.RemoteException