コード例 #1
0
        private List <ComparisonRow> GetCurrentComparisonData()
        {
            var comparisonType = _siteComparison ? ComparisonLevelLookup.GetSiteComparisonTypeFromParameters(Parameters)
                                    : ComparisonLevelLookup.GetFleetComparisonTypeFromParameters(Parameters);
            var returned = GetCurrentComparisonData(comparisonType);

            return(returned);
        }
コード例 #2
0
        private List <FleetStatusRow> GetCurrentFleetComparison(bool siteComparison)
        {
            var comparisonType = siteComparison ? ComparisonLevelLookup.GetSiteComparisonTypeFromParameters(Parameters)
                : ComparisonLevelLookup.GetFleetComparisonTypeFromParameters(Parameters);


            var groupedData = GetSingleKeyGroupedVehicle(comparisonType);

            var extractedData = ExtractVehicleColumns(groupedData);


            var returned = extractedData.ToList();

            return(returned);
        }
コード例 #3
0
        private List <FleetStatusRow> GetHistoricalComparison(bool siteComparison)
        {
            var comparisonType = siteComparison ? ComparisonLevelLookup.GetSiteComparisonTypeFromParameters(Parameters)
                : ComparisonLevelLookup.GetFleetComparisonTypeFromParameters(Parameters);

            var groupedQueryable = GetTwoKeyGroupedAvailabilityHistory(comparisonType);


            var availabilityKeyGrouping = BaseVehicleDataAccess.GetAvailabilityGroupingFromParameters(Parameters);

            var fleetDayKeyGrouping = ExtractFleetHistoryColumns(availabilityKeyGrouping, groupedQueryable);
            var fleetKeyGrouping    = GroupByKey(fleetDayKeyGrouping);


            var returned = fleetKeyGrouping.ToList();

            return(returned);
        }