public JsonResult LayDSTrangThai() { var isLimit = false;// GlobalData.User.UserType == (int)UserTypeEnum.Teamlead; List <TrangThaiHoSoModel> rs = new TrangThaiHoSoBLL().LayDSTrangThai(isLimit); if (rs == null) { rs = new List <TrangThaiHoSoModel>(); } //rs.RemoveAll(x => x.ID == (int)TrangThaiHoSo.Nhap); //if (GlobalData.User.UserType != (int)UserTypeEnum.Teamlead) // rs.RemoveAll(x => x.ID == (int)TrangThaiHoSo.NhapLieu); return(ToJsonResponse(true, null, rs)); }
public JsonResult LayDSTrangThai() { //var isTeamlead = GlobalData.User.UserType == (int)UserTypeEnum.Teamlead ? true : false; //var isAdmin = GlobalData.User.UserType == (int)UserTypeEnum.Admin ? true : false; //if (!isTeamlead && !isAdmin) // return Json(new { DSTrangThai = new List<TrangThaiHoSoModel>() }); List <TrangThaiHoSoModel> rs = new TrangThaiHoSoBLL().LayDSTrangThai(); if (rs == null) { rs = new List <TrangThaiHoSoModel>(); } //rs.RemoveAll(x => x.ID == (int)TrangThaiHoSo.Nhap); //rs.RemoveAll(x => x.ID == (int)TrangThaiHoSo.NhapLieu); //if (isAdmin) //{ // rs.RemoveAll(x => x.ID == (int)TrangThaiHoSo.DaDoiChieu); //} return(ToJsonResponse(true, null, rs)); }