public ActionResult ResourceRequestsAwaitingGridViewPartial()
        {
            var viewModel = GridViewExtension.GetViewModel("ResourceRequestsAwaitingGridView");

            if (viewModel == null)
            {
                viewModel = ResourceCustomBinding.CreateUnallocatedJobsGridViewModel();
            }

            return(ResourceRequestsAwaitingGridViewsJobsGridActionCore(viewModel));
        }
        public ActionResult ResourceRequestsAwaitingGridViewsJobsGridActionCore(GridViewModel gridViewModel)
        {
            gridViewModel.ProcessCustomBinding(
                new GridViewCustomBindingGetDataRowCountHandler(args =>
            {
                ResourceCustomBinding.ResourceRequestsGetDataRowCount(args, CurrentTenantId);
            }),

                new GridViewCustomBindingGetDataHandler(args =>
            {
                ResourceCustomBinding.ResourceRequestsGetData(args, CurrentTenantId, CurrentWarehouseId);
            })
                );
            return(PartialView("_ResourceRequestsGridViewPartial", gridViewModel));
        }
Beispiel #3
0
        public ActionResult ResourceListGridActionCore(GridViewModel gridViewModel, string exportRowType)
        {
            gridViewModel.ProcessCustomBinding(
                new GridViewCustomBindingGetDataRowCountHandler(args =>
            {
                ResourceCustomBinding.ResourceListGetDataRowCount(args, CurrentTenantId, CurrentWarehouseId);
            }),

                new GridViewCustomBindingGetDataHandler(args =>
            {
                ResourceCustomBinding.ResourceListGetData(args, CurrentTenantId, CurrentWarehouseId, exportRowType);
            })
                );
            return(PartialView("_ResourceListPartial", gridViewModel));
        }
Beispiel #4
0
        public ActionResult ResourceListPartial(string exportRowType)
        {
            if (Request.Params["exportRowType"] != null)
            {
                ViewData["exportRowType"] = Request.Params["exportRowType"];
            }
            var viewModel = GridViewExtension.GetViewModel("_ResourceListPartial");

            if (viewModel == null)
            {
                viewModel = ResourceCustomBinding.CreateResourceListGridViewModel();
            }

            return(ResourceListGridActionCore(viewModel, exportRowType));
        }