Example #1
0
 public static void SaveOrUpdateMorbiditySupplyForecast(MorbiditySupplyForecast msf)
 {
     DaoFactory.GetDaoFactory().CreateMorbiditySupplyForecastDao().SaveOrUpdate(msf);
 }
Example #2
0
 public static void DeleteMorbiditySupplyForecast(MorbiditySupplyForecast msf)
 {
     DaoFactory.GetDaoFactory().CreateMorbiditySupplyForecastDao().Delete(msf);
 }
Example #3
0
 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;
 }