} // end unitAcres public static string MethodLookup(string currentStratum, CPbusinessLayer bslyr) { // Need to call CP business layer to get stratum list List <StratumDO> stratumList = bslyr.GetCurrentStratum(currentStratum); if (stratumList.Count > 0) { return(stratumList[0].Method); } else { return(""); } } // end MethodLookup
// AcresLookup will go away once the updated ReturnCorrectAcres is tested and complete public static double AcresLookup(long currStrCN, CPbusinessLayer bslyr, string currStratum) { // Need call to CP business layer to get all CUs for this stratum List <StratumDO> stratumList = bslyr.GetCurrentStratum(currStratum); float stratumAcres = 0; foreach (StratumDO sdo in stratumList) { sdo.CuttingUnits.Populate(); foreach (CuttingUnitDO cudo in sdo.CuttingUnits) { stratumAcres += cudo.Area; } } // end foreach loop return(stratumAcres); } // end AcresLookup