psdi.app.jobplan

Class FldJobLaborCraftRate

  • All Implemented Interfaces:
    MboConstants, MboValueListener


    public class FldJobLaborCraftRate
    extends MAXTableDomain
    Behaviour associated with the CraftRate fields (Craft,CraftSkill,Vendor,Contract) on the Job Labor object
    • Constructor Detail

      • FldJobLaborCraftRate

        public FldJobLaborCraftRate(MboValue mbv)
        Construct and attach this object to the specified MboValue
        Parameters:
        mbv -
    • Method Detail

      • validate

        public void validate()
                      throws MXException,
                             java.rmi.RemoteException
        Resets this objects current relationship and then validates that at least one row exists in the sourceTable based on the values already entered in the targetFields. An MXException will be thrown if no rows can be found.
        Specified by:
        validate in interface MboValueListener
        Overrides:
        validate in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • action

        public void action()
                    throws MXException,
                           java.rmi.RemoteException
        Fill in the all the targetFields if exactly 1 row can be found in the sourceTable that matches the values already entered in the targetFields. Set the rate and linecost values. Set field editability. When all craftrate fields have no value - laborcode and craftrate fields will be editable. When any craftrate field has a value - laborcode will be READONLY and the craftrate fields will be editable.
        Specified by:
        action in interface MboValueListener
        Overrides:
        action in class MAXTableDomain
        Throws:
        MXException
        java.rmi.RemoteException
      • getSqlForEnteredFields

        protected SqlFormat getSqlForEnteredFields()
                                            throws java.rmi.RemoteException,
                                                   MXException
        Throws:
        java.rmi.RemoteException
        MXException