public SapRfcOptions ByMeterListInDateRange(IList<Meter> meterList, DateTime initDate, DateTime endDate)
        {
            IList<String> idMeterList = new List<String>();
            foreach (var meter in meterList)
            {

                    idMeterList.Add(meter.IdMeter);
            }

            DateTime initd = initDate.Date;

            DateTime endd = endDate.Date.AddDays(1);

            SapRfcOptions result = new SapRfcOptions();
            result.AddIn(IDFACILITY_FIELD_NAME, idMeterList);
            result.AddSpecialDateGreaterEquals(PRODUCTIONDATE_FIELD_NAME, initd);
            result.AddSpecialDateLesser(PRODUCTIONDATE_FIELD_NAME, endd);
            return result;
        }
Ejemplo n.º 2
0
 private IList<SigmaMeasure> getList(SapRfcOptions options, ILogger logger)
 {
     IList<SapReadResult> sapResultList = _reader.GetList(SAP_TABLE_NAME, options);
     return processSapResultList(sapResultList, logger);
 }