/// /// <summary> * getLastPhase - get the most recent PhaseTime audit in this pool /// * </summary> /// * <param name="vPartMap"> the list of matching partMaps </param> /// * <returns> JDFAudit - the last PhaseTime audit </returns> /// public virtual JDFPhaseTime getLastPhase(VJDFAttributeMap vPartMap, string moduleID) { if (KElement.isWildCard(moduleID)) { return((JDFPhaseTime)getAudit(-1, EnumAuditType.PhaseTime, null, vPartMap)); } VElement e = getAudits(EnumAuditType.PhaseTime, null, vPartMap); if (e != null) { int size = e.Count - 1; for (int i = size; i >= 0; i--) { JDFPhaseTime pt = (JDFPhaseTime)e[i]; if (pt.getChildWithAttribute(ElementName.MODULEPHASE, AttributeName.MODULEID, null, moduleID, 0, true) != null) { return(pt); } } } return(null); }