public ActionResult Emissions_GET_JSON()
        {
            var model = new ROLWeb.ViewModels.Overview.OverviewViewModel()
            {
                ConsumptionTotals = new List <FuelConsumptionAndEmission>()
                {
                    new FuelConsumptionAndEmission()
                    {
                        custaccount          = "K120029",
                        fueltype             = "Diesel",
                        unit                 = "lt",
                        machineWithTrackUnit = 13,
                        machinerunningHourM1 = 160.31M,
                        machineconsumption   = 1151.7580M,
                        machineFuelCost      = 1589.426040M,
                        machineEmission      = 3075.193860M
                    },
                    new FuelConsumptionAndEmission()
                    {
                        custaccount          = "K120030",
                        fueltype             = "Electric",
                        unit                 = "kWh",
                        machineWithTrackUnit = 19,
                        machinerunningHourM1 = 120.1M,
                        machineconsumption   = 1251.7180M,
                        machineFuelCost      = 1529.427840M,
                        machineEmission      = 2575.19060M
                    },
                    new FuelConsumptionAndEmission()
                    {
                        custaccount          = "K120031",
                        fueltype             = "HVO",
                        unit                 = "lt",
                        machineWithTrackUnit = 10,
                        machinerunningHourM1 = 980.31M,
                        machineconsumption   = 1143.6780M,
                        machineFuelCost      = 6789.445640M,
                        machineEmission      = 3075.193860M
                    },
                }
            };

            return(Json(new { Data = model }, JsonRequestBehavior.AllowGet));
        }
        public ActionResult Overview(DateTime?startDate, DateTime?endDate, string venueCode, string machineType, bool signout = false)
        {
            if (signout)
            {
                var authenticationManager = HttpContext.GetOwinContext().Authentication;
                authenticationManager.SignOut(DefaultAuthenticationTypes.ExternalCookie);
            }

            if (!Request.IsAuthenticated)
            {
                LoginTestUser();
                return(Redirect("/boudig/index"));
            }

            var model = new ROLWeb.ViewModels.Overview.OverviewViewModel()
            {
                accountManager = new Models.Overview.AccountManager()
                {
                    AccMgrName         = "test account manager",
                    CellularPhone      = "01234567890",
                    DataAreaId         = "1",
                    Email              = "*****@*****.**",
                    EmplId             = "1",
                    LanguageId         = "1",
                    OnRentEmailAddress = "*****@*****.**"
                },
                customerSelected      = "1",
                StartDate             = DateTime.Now.AddMonths(-1),
                EndDate               = DateTime.Now.AddMonths(1),
                MachinesNotInUse      = 32,
                MachinesNotInUseHours = 16,
                orderStatus           = new List <OrderStatusCount>()
                {
                    new OrderStatusCount()
                    {
                        numOrders = 1, OrderStatusId = "1"
                    },
                    new OrderStatusCount()
                    {
                        numOrders = 2, OrderStatusId = "2"
                    },
                    new OrderStatusCount()
                    {
                        numOrders = 3, OrderStatusId = "3"
                    },
                    new OrderStatusCount()
                    {
                        numOrders = 4, OrderStatusId = "4"
                    },
                },
                rentalCosts = new List <RentalCosts>()
                {
                    new RentalCosts()
                    {
                        Amount = 100, CostType = "Rental"
                    },
                    new RentalCosts()
                    {
                        Amount = 20054, CostType = "Insurance"
                    },
                    new RentalCosts()
                    {
                        Amount = 2088, CostType = "Transport"
                    },
                    new RentalCosts()
                    {
                        Amount = 202, CostType = "Others"
                    }
                },
                userCustomers = new SelectList(new List <SelectListItem>()),

                ConsumptionTotals = new List <FuelConsumptionAndEmission>()
                {
                    new FuelConsumptionAndEmission()
                    {
                        custaccount          = "K120029",
                        fueltype             = "Diesel",
                        unit                 = "lt",
                        machineWithTrackUnit = 13,
                        machinerunningHourM1 = 160.31M,
                        machineconsumption   = 1151.7580M,
                        machineFuelCost      = 1589.426040M,
                        machineEmission      = 3075.193860M
                    },
                    new FuelConsumptionAndEmission()
                    {
                        custaccount          = "K120030",
                        fueltype             = "Electric",
                        unit                 = "kWh",
                        machineWithTrackUnit = 19,
                        machinerunningHourM1 = 120.1M,
                        machineconsumption   = 1251.7180M,
                        machineFuelCost      = 1529.427840M,
                        machineEmission      = 2575.19060M
                    },
                    new FuelConsumptionAndEmission()
                    {
                        custaccount          = "K120031",
                        fueltype             = "HVO",
                        unit                 = "lt",
                        machineWithTrackUnit = 10,
                        machinerunningHourM1 = 980.31M,
                        machineconsumption   = 1143.6780M,
                        machineFuelCost      = 6789.445640M,
                        machineEmission      = 3075.193860M
                    },
                },
                Venues = new List <Venue>
                {
                    new Venue()
                    {
                        DeliveryCity = "Sweet Alabama", DeliveryName = "Sweet Alabama", RorVenueCode = "Sweet Alabama"
                    },
                    new Venue()
                    {
                        DeliveryCity = "London", DeliveryName = "London", RorVenueCode = "London"
                    },
                    new Venue()
                    {
                        DeliveryCity = "Manchester", DeliveryName = "Manchester", RorVenueCode = "Manchester"
                    }
                },
                SelectMachines = new List <SelectMachine>
                {
                    new SelectMachine()
                    {
                        Code = "1", Name = "Telegraphic"
                    },
                    new SelectMachine()
                    {
                        Code = "2", Name = "Subterranian"
                    },
                    new SelectMachine()
                    {
                        Code = "3", Name = "Aquatic"
                    }
                },
                ResponseTimeKPI = new CustTRWKPIs()
                {
                    avgResolutionTime      = 1,
                    avgResponseTime        = 3,
                    companyid              = "100",
                    customerid             = "1",
                    firstDayBreakdownCount = 12,
                    machineCount           = 90,
                    onTimeDeliveryCount    = 8,
                    solvedByPhoneCount     = 18,
                    upTimePerc             = 90
                },
                CustTRWKPI_pickUpTime = new CustTRWKPI_pickUpTime()
                {
                    avgPickupTime  = 5,
                    companyId      = "1",
                    customerId     = "100",
                    totalPickUpQTY = 23,
                    venueCode      = "DFG"
                },
                FuelConsumptionPerMachine = new List <FuelConsumption>()
                {
                    new FuelConsumption()
                    {
                        custaccount          = "C010060",
                        fleetNumber          = "10078770",
                        fueltype             = "ELECTRIC",
                        unit                 = "KWH",
                        machineconsumption   = 152.9496M,
                        machineEmission      = 82.592784M,
                        machineFuelCost      = 35.178408M,
                        machinerunningHourM1 = 28.52M,
                        machineType          = "JLG-1930ES",
                        rorvenuecode         = "Venue1",
                        serialNumber         = "B200023837"
                    },
                    new FuelConsumption()
                    {
                        custaccount          = "C010060",
                        fleetNumber          = "10098397",
                        fueltype             = "ELECTRIC",
                        unit                 = "KWH",
                        machineconsumption   = 152.9496M,
                        machineEmission      = 82.592784M,
                        machineFuelCost      = 35.178408M,
                        machinerunningHourM1 = 50.60M,
                        machineType          = "JLG-2646ES",
                        rorvenuecode         = "Venue1",
                        serialNumber         = "B200030405"
                    },
                    new FuelConsumption()
                    {
                        custaccount          = "C010060",
                        fleetNumber          = "10078770",
                        fueltype             = "ELECTRIC",
                        unit                 = "KWH",
                        machineconsumption   = 152.9496M,
                        machineEmission      = 82.592784M,
                        machineFuelCost      = 35.178408M,
                        machinerunningHourM1 = 30.52M,
                        machineType          = "JLG-1930ES",
                        rorvenuecode         = "Venue1",
                        serialNumber         = "B200023837"
                    },
                    new FuelConsumption()
                    {
                        custaccount          = "C010060",
                        fleetNumber          = "10078770",
                        fueltype             = "ELECTRIC",
                        unit                 = "KWH",
                        machineconsumption   = 152.9496M,
                        machineEmission      = 82.592784M,
                        machineFuelCost      = 35.178408M,
                        machinerunningHourM1 = 5.52M,
                        machineType          = "JLG-1930ES",
                        rorvenuecode         = "Venue1",
                        serialNumber         = "B200023837"
                    },
                    new FuelConsumption()
                    {
                        custaccount          = "C010060",
                        fleetNumber          = "10078770",
                        fueltype             = "ELECTRIC",
                        unit                 = "KWH",
                        machineconsumption   = 152.9496M,
                        machineEmission      = 82.592784M,
                        machineFuelCost      = 35.178408M,
                        machinerunningHourM1 = 10.52M,
                        machineType          = "JLG-1930ES",
                        rorvenuecode         = "Venue1",
                        serialNumber         = "B200023837"
                    },
                    new FuelConsumption()
                    {
                        custaccount          = "C010060",
                        fleetNumber          = "10078770",
                        fueltype             = "ELECTRIC",
                        unit                 = "KWH",
                        machineconsumption   = 152.9496M,
                        machineEmission      = 82.592784M,
                        machineFuelCost      = 35.178408M,
                        machinerunningHourM1 = 90.52M,
                        machineType          = "JLG-1930ES",
                        rorvenuecode         = "Venue1",
                        serialNumber         = "B200023837"
                    },
                    new FuelConsumption()
                    {
                        custaccount          = "C010060",
                        fleetNumber          = "10078770",
                        fueltype             = "ELECTRIC",
                        unit                 = "KWH",
                        machineconsumption   = 152.9496M,
                        machineEmission      = 82.592784M,
                        machineFuelCost      = 35.178408M,
                        machinerunningHourM1 = 90.52M,
                        machineType          = "JLG-1930ES",
                        rorvenuecode         = "Venue1",
                        serialNumber         = "B200023837"
                    },
                    new FuelConsumption()
                    {
                        custaccount          = "C010060",
                        fleetNumber          = "10078770",
                        fueltype             = "ELECTRIC",
                        unit                 = "KWH",
                        machineconsumption   = 152.9496M,
                        machineEmission      = 82.592784M,
                        machineFuelCost      = 35.178408M,
                        machinerunningHourM1 = 90.52M,
                        machineType          = "JLG-1930ES",
                        rorvenuecode         = "Venue1",
                        serialNumber         = "B200023837"
                    },
                    new FuelConsumption()
                    {
                        custaccount          = "C010060",
                        fleetNumber          = "10078770",
                        fueltype             = "ELECTRIC",
                        unit                 = "KWH",
                        machineconsumption   = 152.9496M,
                        machineEmission      = 82.592784M,
                        machineFuelCost      = 35.178408M,
                        machinerunningHourM1 = 90.52M,
                        machineType          = "JLG-1930ES",
                        rorvenuecode         = "Venue1",
                        serialNumber         = "B200023837"
                    },
                    new FuelConsumption()
                    {
                        custaccount          = "C010060",
                        fleetNumber          = "10078770",
                        fueltype             = "ELECTRIC",
                        unit                 = "KWH",
                        machineconsumption   = 152.9496M,
                        machineEmission      = 82.592784M,
                        machineFuelCost      = 35.178408M,
                        machinerunningHourM1 = 90.52M,
                        machineType          = "JLG-1930ES",
                        rorvenuecode         = "Venue1",
                        serialNumber         = "B200023837"
                    },
                    //new CustomizationOptions()
                    //{
                    //    ShowMachinesNotInUse = true,
                    //    ShowCO2Emissions = true,
                    //    ShowEnergyConsumption = true,
                    //    ShowMotor = true,
                    //    ShowResponseTime = true
                    //},
                },
                custCosts = new CustCosts()
                {
                    insuranceEuro  = 1000,
                    insuranceLocal = 1000,
                    otherEuro      = 2000,
                    otherLocal     = 2000,
                    rentalEuro     = 3000,
                    rentalLocal    = 3000,
                    totalEuro      = 11000,
                    totalLocal     = 11000,
                    transportEuro  = 5000,
                    transportLocal = 5000
                }
            };

            return(View("/Views/Overview/Index.cshtml", model));
        }