psdi.app.workorder

Class FldWpMatDirectReq

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldWpMatDirectReq
    extends MboValueAdapter
    DirectReq attribute of WpMaterial. If this field is set to false, will clear the Vendor,RequestBy and RequireDate and make them read-only. If it is set to true, will set Vendor,RequestBy and RequireDate and make them editable. Change in cost is updated in the WorkOrder.EstMatCost.
    • Constructor Detail

      • FldWpMatDirectReq

        public FldWpMatDirectReq(MboValue mbv)
        construct and attach to the MboValue.
        Parameters:
        mbv - the MboValue DirectReq attribute of WpMaterial attach to.
    • Method Detail

      • init

        public void init()
                  throws MXException,
                         java.rmi.RemoteException
        The Direct Request flag is read/only for material lines. The Direct Request flag is read/only when the work order does not accept charges.
        Specified by:
        init in interface MboValueListener
        Overrides:
        init in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException
      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        If this field is set to false, will clear the Vendor, RequestBy and RequireDate fields and make them read-only. If it set to true, will set Vendor to the primary vendor, RequestBy to UserName and RequireDate to schedstart date if the schedstart is not null,if it is null set to TargStartDate if the TargStartDate is not null, otherwise set to current date and make them editable. Change in cost is updated in the WorkOrder.EstMatCost.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MboValueAdapter
        Throws:
        MXException
        java.rmi.RemoteException