Exemple #1
0
        /// <summary>
        /// Show the ETA, MT Expected, MT + % that has arrived, MT + % still to arrive
        /// </summary>
        /// <returns></returns>
        public ActionResult ArrivalsVsReceipts()
        {
            var user = _userProfileService.GetUser(User.Identity.Name);
            var commoditySourceViewModels = _commoditySourceService.GetAllCommoditySourceForReport();
            var portViewModels            = _receiveService.GetALlPorts();
            var codesViewModels           = ConstantsService.GetAllCodes();
            var commodityTypeViewModels   = _commodityTypeService.GetAllCommodityTypeForReprot();
            var programViewModels         = _programService.GetAllProgramsForReport();
            var viewModel = new ArrivalsVsReceiptsViewModel(commoditySourceViewModels, portViewModels, codesViewModels,
                                                            commodityTypeViewModels, programViewModels, user);

            return(View(viewModel));
        }
Exemple #2
0
        public ActionResult Receive()
        {
            MasterReportBound report = GetReceiveReportByBudgetYear(new ReceiptsViewModel());
            UserProfile       user   = _userProfileService.GetUser(User.Identity.Name);

            var commoditySources = _commoditySourceService.GetAllCommoditySourceForReport();
            var ports            = _receiveService.GetALlPorts();
            var codes            = ConstantsService.GetAllCodes();
            var commodityTypes   = _commodityTypeService.GetAllCommodityTypeForReprot();
            var programs         = _programService.GetAllProgramsForReport();
            var stores           = _hubService.GetAllStoreByUser(user);
            var viewModel        = new ReceiptsViewModel(codes, commodityTypes, programs, stores, commoditySources, ports);

            ViewBag.Filters = viewModel;
            return(View(report));
        }