Пример #1
0
        private string GenerateGoogleDataTableContent(int plantId, E_EurKwh yMode,
                                                SortedKwhTable kwhTable, E_TimeMode xMode)
        {
            DatatableConverter dtConverter = new DatatableConverter();

              //include money per kwh mapping if neccessary
              if (yMode == E_EurKwh.money)
              {
            IncludeEuroPerKwhMapping(plantId, dtConverter);
              }

              //create google data table content string
              return dtConverter.BuildGoogleDataTable(kwhTable, yMode, xMode);
        }
Пример #2
0
        private void IncludeEuroPerKwhMapping(int plantId, DatatableConverter dtConverter)
        {
            var inverters = _plantRepository.GetAllInvertersByPlant(plantId);

              foreach (var inverter in inverters)
              {
            dtConverter.AddEuroPerKwH(inverter.PublicInverterId, inverter.EuroPerKwh);
              }
        }