Пример #1
0
        public ActionResult FreeStock()
        {
            MasterReportBound report = GetFreeStock(new FreeStockFilterViewModel());
            UserProfile       user   = _userProfileService.GetUser(User.Identity.Name);
            var codes          = ConstantsService.GetAllCodes();
            var commodityTypes = _commodityTypeService.GetAllCommodityTypeForReprot();
            var programs       = _programService.GetAllProgramsForReport();
            var commodities    = _commodityService.GetAllCommodityForReprot();
            var areas          = _adminUnitService.GetAllAreasForReport();

            FreeStockFilterViewModel ViewModel = new FreeStockFilterViewModel(codes, commodityTypes, programs, commodities, areas);

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