Esempio n. 1
0
        // GET: CashVoucher
        public ActionResult Index()
        {
            CashVoucherSearch search = new CashVoucherSearch();

            search.SchoolId = CurrentUser.Teacher.Yoh_SchoolId;
            return(View(search));
        }
Esempio n. 2
0
        public ActionResult GetCashVoucheres(CashVoucherSearch search)
        {
            CashVoucherBll cashVoucherBll = new CashVoucherBll();
            var            viewModels     = cashVoucherBll.GetPagingCashVoucherForSchool(search.Pagination, search.Id, search.Name, search.Status, search.SchoolId);
            var            table          = AbhsTableFactory.Create(viewModels, search.Pagination.TotalCount);

            return(Json(table, JsonRequestBehavior.AllowGet));
        }