コード例 #1
0
        public ActionResult List()
        {
            if (this.CheckNoAccessIntoNhaXe(_workContext, _permissionService, StandardPermissionProvider.CVHoatDongBanVe))
            {
                return(AccessDeniedView());
            }
            var model = new QLThuChiModel();

            return(View(model));
        }
コード例 #2
0
        public ActionResult _DanhSachThuChi(QLThuChiModel model)
        {
            bool?isChi = null;

            if (model.isChi >= 0)
            {
                isChi = model.isChi == 1?true : false;
            }
            model.TonDauKy = _ketoanService.GetTonDauKy(_workContext.NhaXeId, model.TuNgay);
            var danhsachs = _ketoanService.GetAllThuChi(_workContext.NhaXeId, model.LoaiThuChiId, isChi, model.TuNgay, model.DenNgay, model.KeySearch);

            model.thuchis = danhsachs.Select(c =>
            {
                var m = new ThuChiModel();
                ThuChiToThuChiModel(c, m);
                return(m);
            }).ToList();
            return(PartialView(model));
        }