Exemplo n.º 1
0
 /// <summary>
 /// Создает прогноз по складу
 /// </summary>
 /// <param name="store">Склад, на котором выполняется прогноз</param>
 /// <param name="forecastDate">Дата прогноза по складу</param>
 public Forecast(Store store, DateTime forecastDate) : this()
 {
     _store = store;
     if (_store != null)
     {
         _forecastDataForNonLifelenght = new ForecastData(forecastDate,
                                                          new AverageUtilization(0, 0),
                                                          new Lifelength((forecastDate - DateTimeExtend.GetCASMinDateTime()).Days, null, null));
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Создает прогноз по складу
 /// </summary>
 /// <param name="operator">Склад, на котором выполняется прогноз</param>
 /// <param name="forecastDate">Дата прогноза по складу</param>
 public Forecast(Operator @operator, DateTime forecastDate)
     : this()
 {
     _operator = @operator;
     if (_operator != null)
     {
         _forecastDataForNonLifelenght = new ForecastData(forecastDate,
                                                          new AverageUtilization(0, 0),
                                                          new Lifelength((forecastDate - DateTimeExtend.GetCASMinDateTime()).Days, null, null));
     }
 }