public static void SaveOrUpdateMorbiditySupplyForecast(MorbiditySupplyForecast msf) { DaoFactory.GetDaoFactory().CreateMorbiditySupplyForecastDao().SaveOrUpdate(msf); }
public static void DeleteMorbiditySupplyForecast(MorbiditySupplyForecast msf) { DaoFactory.GetDaoFactory().CreateMorbiditySupplyForecastDao().Delete(msf); }
public IList<MorbiditySupplyForecast> QuantifyedReagents() { IList<MorbiditySupplyForecast> result = new List<MorbiditySupplyForecast>(); foreach (QuantifyedReagent sp in _lstPrimaryQuanReagents.GetSuppliesForecasted().Values) { MorbiditySupplyForecast mf = new MorbiditySupplyForecast(); mf.MForecastId = Forecast.Id; mf.SiteId = ArtSite.Site.Id; mf.Platform = sp.Platform; mf.ProductId = sp.ProductId; mf.QuantityNeeded = sp.QuantityNeeded; mf.FinalQuantity = Math.Ceiling(sp.FinalValue); mf.UnitCost = sp.UnitCost; mf.PackSize = sp.PackSize; mf.Unit = sp.Unit; result.Add(mf); } return result; }