Esempio n. 1
0
        public ActionResult Index()
        {
            AssignUserInfo();
            qlLaiXeBusiness = Get <QL_LAIXEBusiness>();
            LaiXeBenhVienIndexViewModel viewModel = new LaiXeBenhVienIndexViewModel();
            LaiXeSearchBO searchModel             = new LaiXeSearchBO();

            searchModel.CCTC_THANHPHAN_ID = currentUser.DeptParentID.GetValueOrDefault();
            viewModel.listLaiXeBenhViens  = qlLaiXeBusiness.GetDataByPage(searchModel);
            SessionManager.SetValue("SearchLaiXeBenhVien", searchModel);
            return(View(viewModel));
        }
Esempio n. 2
0
        public JsonResult GetData(int pageIndex, string sortQuery, int pageSize)
        {
            AssignUserInfo();
            qlLaiXeBusiness = Get <QL_LAIXEBusiness>();
            LaiXeSearchBO searchModel = (LaiXeSearchBO)SessionManager.GetValue("SearchLaiXeBenhVien");

            if (searchModel == null)
            {
                searchModel = new LaiXeSearchBO();
            }
            searchModel.sortQuery         = sortQuery;
            searchModel.CCTC_THANHPHAN_ID = currentUser.DeptParentID.GetValueOrDefault();
            PageListResultBO <LaiXeBO> data = qlLaiXeBusiness.GetDataByPage(searchModel);

            return(Json(data));
        }
Esempio n. 3
0
        public JsonResult SearchData(FormCollection fc)
        {
            AssignUserInfo();
            qlLaiXeBusiness = Get <QL_LAIXEBusiness>();
            var searchModel = (LaiXeSearchBO)SessionManager.GetValue("SearchLaiXeBenhVien");

            searchModel.HOTEN             = fc["HOTEN"];
            searchModel.CMND              = fc["CMND"];
            searchModel.SODIENTHOAI       = fc["SODIENTHOAI"];
            searchModel.EMAIL             = fc["EMAIL"];
            searchModel.GIOITINH          = string.IsNullOrEmpty(fc["GIOITINH"]) ? null : (bool?)bool.Parse(fc["GIOITINH"]);
            searchModel.CCTC_THANHPHAN_ID = currentUser.DeptParentID.GetValueOrDefault();
            SessionManager.SetValue("SearchLaiXeBenhVien", searchModel);
            var result = qlLaiXeBusiness.GetDataByPage(searchModel);

            return(Json(result));
        }