public ActionResult OffloadingReport() { MasterReportBound report = GetOffloading(new DispatchesViewModel()); UserProfile user = _userProfileService.GetUser(User.Identity.Name); var codes = ConstantsService.GetAllCodes(); var commodityTypes = _commodityTypeService.GetAllCommodityTypeForReprot();; var programs = _programService.GetAllProgramsForReport(); var stores = _hubService.GetAllStoreByUser(user); var areas = _adminUnitService.GetAllAreasForReport(); var bidRefs = _dispatchAllocationService.GetAllBidRefsForReport(); DispatchesViewModel ViewModel = new DispatchesViewModel(codes, commodityTypes, programs, stores, areas, bidRefs); ViewBag.Filters = ViewModel; return(View(report)); }
/// <summary> /// /// </summary> /// <returns></returns> public ActionResult Dispatches() { var user = _userProfileService.GetUser(User.Identity.Name); var codesViewModels = ConstantsService.GetAllCodes(); var commodityTypeViewModels = _commodityTypeService.GetAllCommodityTypeForReprot(); var programViewModels = _programService.GetAllProgramsForReport(); var storeViewModels = _hubService.GetAllStoreByUser(user); var areaViewModels = _adminUnitService.GetAllAreasForReport(); var bidRefViewModels = _dispatchAllocationService.GetAllBidRefsForReport(); var viewModel = new DispatchesViewModel(codesViewModels, commodityTypeViewModels, programViewModels, storeViewModels, areaViewModels, bidRefViewModels); return(View(viewModel)); }