Beispiel #1
0
        public List<DateTime> Get_StartEndPeriod(int dataBlockId)
        {
            List<DateTime> returnPeriod = new List<DateTime>();
            DDDClass.VuDownloadablePeriod period = new DDDClass.VuDownloadablePeriod();
            period = Get_VehicleOverview_VuDownloadablePeriod(dataBlockId);

            returnPeriod.Add(period.minDownloadableTime.getTimeRealDate());
            returnPeriod.Add(period.maxDownloadableTime.getTimeRealDate());

            return returnPeriod;
        }
Beispiel #2
0
        public DDDClass.VuDownloadablePeriod Get_VehicleOverview_VuDownloadablePeriod(int dataBlockId)
        {
            SQLDB_Records sqldbRecords = new SQLDB_Records(connectionString, sqlDB.GETMYSQLCONNECTION());
            string paramName;
            DDDClass.VuDownloadablePeriod vuDownloadablePeriod = new DDDClass.VuDownloadablePeriod();

            paramName = "vehicleOverview.vuDownloadablePeriod.minDownloadableTime";
            string minDownloadableTime = sqldbRecords.Get_ParamValue(dataBlockId, paramName);

            paramName = "vehicleOverview.vuDownloadablePeriod.maxDownloadableTime";
            string maxDownloadableTime = sqldbRecords.Get_ParamValue(dataBlockId, paramName);

            vuDownloadablePeriod.minDownloadableTime = new DDDClass.TimeReal(Convert.ToUInt32(minDownloadableTime));
            vuDownloadablePeriod.maxDownloadableTime = new DDDClass.TimeReal(Convert.ToUInt32(maxDownloadableTime));

            return vuDownloadablePeriod;
        }