public ActionResult Index() { try { lstSourceLoaiDTuong = new List <AutoCompleteEntry>(); // lấy dữ liệu đổ source cho combobox Loại đối tượng List <string> lstDieuKien = new List <string>(); lstDieuKien.Add(DatabaseConstant.DanhMuc.LOAI_DTUONG_KTHAC_TNGUYEN.getValue()); DataCombobox.GenAutoComboBox(ref lstSourceLoaiDTuong, DatabaseConstant.DanhSachTruyVan.COMBOBOX_DMUC.getValue(), lstDieuKien); var model = new SysUsers { LstSourceLoaiDTuong = lstSourceLoaiDTuong }; model.LstNhNsd = qtht.layNhomNSD(ClientInformation.LoaiNguoiSuDung); return(View(model)); } catch (Exception ex) { throw new Exception(ex.Message); } }
public JsonResult DoiKhoLamViec(int idDonViGd) { UserInformation.Session_User.IdDonViGiaoDich = idDonViGd; return(Json(DataCombobox.LoadComboDiemGdByUser(), JsonRequestBehavior.AllowGet)); }