예제 #1
0
        private Dictionary<VGPSInstallationInfo, IList<EGPSHistoryInfo>> GetDictionary(Guid vehicleCode, DateTime beginTime, DateTime endTime,int size)
        {
            IReportService reportService = new ReportService();

            var dic = new Dictionary<VGPSInstallationInfo, IList<EGPSHistoryInfo>>();
            IList<VGPSInstallationInfo> gpsCodeList = reportService.GetGpsRelationListForLocus(vehicleCode, beginTime, endTime);
            return GetDictionary(vehicleCode, gpsCodeList,size);
        }
예제 #2
0
 public IList<EGPSHistoryInfo> Get(Guid vehicleCode, DateTime beginTime, DateTime endTime)
 {
     var tableConfig = GetVehicleStoreTableConfig(vehicleCode);
     List<EGPSHistoryInfo> totalHistoryInfo = new List<EGPSHistoryInfo>();
     IReportService reportService = new ReportService();
     IList<VGPSInstallationInfo> installationList = reportService.GetGpsRelationListForLocus(vehicleCode, beginTime, endTime);
     foreach (VGPSInstallationInfo installation in installationList)
     {
         List<EGPSHistoryInfo> currentHistoryInfo = GetGPSHistoryInfoList(vehicleCode, installation, tableConfig);
         if (currentHistoryInfo != null && currentHistoryInfo.Count > 0)
         {
             totalHistoryInfo.AddRange(currentHistoryInfo);
         }
     }
     return totalHistoryInfo;
 }