Ejemplo n.º 1
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);
        }