Exemplo n.º 1
0
        public ActionResult EmployeesShiftsGridActionCore(GridViewModel gridViewModel, DateTime?searchdate, int teanantId, int warehouseId)
        {
            gridViewModel.ProcessCustomBinding(
                new GridViewCustomBindingGetDataRowCountHandler(args =>
            {
                EmployeeShiftsCustomBinding.EmployeeShiftsGetDataRowCount(args, searchdate, teanantId, warehouseId);
            }),

                new GridViewCustomBindingGetDataHandler(args =>
            {
                EmployeeShiftsCustomBinding.EmployeeShiftsGetData(args, searchdate, teanantId, warehouseId);
            })
                );
            return(PartialView("_EmployeesShiftsGridview", gridViewModel));
        }
Exemplo n.º 2
0
        public ActionResult EmployeesShiftsGridview(string searchDate)

        {
            DateTime?searchDates = null;
            DateTime paramDate;

            if (DateTime.TryParse(searchDate, out paramDate))
            {
                searchDates = paramDate;
            }

            var viewModel = GridViewExtension.GetViewModel("EmployeeShiftsGridview");

            if (viewModel == null)
            {
                viewModel = EmployeeShiftsCustomBinding.CreateEmployeeShiftsGridViewModel();
            }

            return(EmployeesShiftsGridActionCore(viewModel, searchDates, CurrentTenantId, CurrentWarehouseId));
        }