Exemplo n.º 1
0
        //public Dictionary<ID_TypeHierarch>
        //TODO доработать периоды действия ТИ

        public TForecastCalculateParams(string forecastObject_UN, int?forecastModelUserSelected, HashSet <int> avalableForecastModels,
                                        List <TVALUES_DB> archivesDbs = null)
        {
            ForecastObject_UN         = forecastObject_UN;
            ForecastModelUserSelected = forecastModelUserSelected;
            AvailableForecastModels   = avalableForecastModels;

            ArchivesByInputParam = new List <ForecastByInputParamArchives>();
            // Archives = new List<TVALUES_DB>();
            if (archivesDbs != null)
            {
                ArchivesByInputParam.Add(new ForecastByInputParamArchives("")
                {
                    MeasureQuantityType_UN = "EnergyUnit",
                });

                Energy.AddRange(archivesDbs);
            }
        }