public ActionResult _GoodsReturnGridView() { var viewModel = GridViewExtension.GetViewModel(ViewBag.productId + "goodsreturngridview"); if (viewModel == null) { viewModel = GoodsReturnCustomBinding.CreateGoodsReturnGridViewModel(); } return(_GoodsReturnGridActionCore(viewModel)); }
public ActionResult _GoodsReturnGridActionCore(GridViewModel gridViewModel) { gridViewModel.ProcessCustomBinding( new GridViewCustomBindingGetDataRowCountHandler(args => { GoodsReturnCustomBinding.GoodsReturnDataRowCount(args, CurrentTenantId, CurrentWarehouseId); }), new GridViewCustomBindingGetDataHandler(args => { GoodsReturnCustomBinding.GoodsReturnData(args, CurrentTenantId, CurrentWarehouseId); }) ); return(PartialView("_GoodsReturnGridView", gridViewModel)); }