예제 #1
0
        ///
        ///	 <summary> *
        ///	 * if a Resource is available, return it's status
        ///	 *  </summary>
        ///	 * <seealso cref= org.cip4.jdflib.auto.JDFAutoResourceInfo#getResStatus() </seealso>
        ///
        public override EnumResStatus getResStatus()
        {
            EnumResStatus s = base.getResStatus();

            if (s == null)
            {
                JDFResource r = getResource(null);
                if (r == null)
                {
                    return(null);
                }
                s = r.getResStatus(false);
            }
            return(s);
        }
예제 #2
0
 //         ---------------------------------------------------------------------
 //        Methods for Attribute Status
 //        ---------------------------------------------------------------------
 ///
 ///          <summary> * (5) set attribute Status </summary>
 ///          * <param name="enumVar">: the enumVar to set the attribute to </param>
 ///
 public virtual void setResStatus(JDFResource.EnumResStatus enumVar)
 {
     setAttribute(AttributeName.STATUS, enumVar == null ? null : enumVar.getName(), null);
 }