Beispiel #1
0
        public PartialViewResult ErrorAccessionInventoryAttachments()
        {
            AccessionInventoryAttachmentListViewModel viewModel = new AccessionInventoryAttachmentListViewModel();
            GRINGlobalService _grinGlobalService = new GRINGlobalService(this.AuthenticatedUserSession.Environment);

            viewModel.AccessionInventoryAttachments = _grinGlobalService.GetAccessionInventoryAttachments(200, "ER");
            return(PartialView("~/Views/GRINGlobal/Inventory/AccessionInventoryAttachment/_ErrorList.cshtml", viewModel));
        }
Beispiel #2
0
        //[OutputCache(NoStore = true, Duration = 0, VaryByParam = "*")]
        public PartialViewResult AccessionInventoryAttachments(int batchSize = 0)
        {
            GRINGlobalService _grinGlobalService = new GRINGlobalService(this.AuthenticatedUserSession.Environment);

            // TO DO: SET DEFAULT BATCH SIZE FROM USER PREF. (COOKIE?) 8/14/2020
            if (batchSize == 0)
            {
                batchSize = 25;
            }

            AccessionInventoryAttachmentListViewModel viewModel = new AccessionInventoryAttachmentListViewModel();

            viewModel.AccessionInventoryAttachments = _grinGlobalService.GetAccessionInventoryAttachments(batchSize, "NV");
            return(PartialView("~/Views/GRINGlobal/Inventory/AccessionInventoryAttachment/_List.cshtml", viewModel));
        }