Sfoglia il codice sorgente

【修改】教师信息:身份证、手机号加密优化;

娄底高职分支
dyy 1 mese fa
parent
commit
7397e83f2d
1 ha cambiato i file con 7 aggiunte e 7 eliminazioni
  1. +7
    -7
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/EmpInfoController.cs

+ 7
- 7
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/EmpInfoController.cs Vedi File

@@ -134,7 +134,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
//} //}
//政治面貌 //政治面貌
empInfo.PartyFaceNo = dataItemIBLL.GetDetailList("BCdPartyFace").FirstOrDefault(x => x.F_ItemValue == empInfo.PartyFaceNo)?.F_ItemName; empInfo.PartyFaceNo = dataItemIBLL.GetDetailList("BCdPartyFace").FirstOrDefault(x => x.F_ItemValue == empInfo.PartyFaceNo)?.F_ItemName;
//最高学历 //最高学历
var highestRecord = dataSourceIBLL.GetDataTable("BCdCultureDegree", "t.CultureDegreeNo='" + empInfo.HighestRecord + "'"); var highestRecord = dataSourceIBLL.GetDataTable("BCdCultureDegree", "t.CultureDegreeNo='" + empInfo.HighestRecord + "'");
if (highestRecord != null && highestRecord.Rows.Count > 0) if (highestRecord != null && highestRecord.Rows.Count > 0)
@@ -162,7 +162,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
//奖罚情况 //奖罚情况
empInfo.TeacherEncourgementList = teacherEncourgementIBLL.GetListByEmpId(empInfo.EmpId).OrderByDescending(x => x.EncourgeDate).ToList(); empInfo.TeacherEncourgementList = teacherEncourgementIBLL.GetListByEmpId(empInfo.EmpId).OrderByDescending(x => x.EncourgeDate).ToList();
empInfo.TeacherPunishmentList = teacherPunishmentIBLL.GetListByEmpId(empInfo.EmpId).OrderByDescending(x => x.StartTime).ToList(); empInfo.TeacherPunishmentList = teacherPunishmentIBLL.GetListByEmpId(empInfo.EmpId).OrderByDescending(x => x.StartTime).ToList();
} }


return View(empInfo); return View(empInfo);
@@ -186,13 +186,13 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{ {
foreach (var item in data) foreach (var item in data)
{ {
if (!item.IdentityCardNo.IsEmpty())
if (!item.IdentityCardNo.IsEmpty() && item.IdentityCardNo.Length >=15)
{ {
item.IdentityCardNo = $"{item.IdentityCardNo.Substring(0, 2)}************{item.IdentityCardNo.Substring(14, 4)}";
item.IdentityCardNo = $"{item.IdentityCardNo.Substring(0, 2)}************{item.IdentityCardNo.Substring(item.IdentityCardNo.Length - 4, 4)}";
} }
if (!item.mobile.IsEmpty())
if (!item.mobile.IsEmpty() && item.mobile.Length >= 7)
{ {
item.mobile = $"{item.mobile.Substring(0, 3)}****{item.mobile.Substring(7, 4)}";
item.mobile = $"{item.mobile.Substring(0, 3)}****{item.mobile.Substring(item.mobile.Length - 4, 4)}";
} }
} }
} }
@@ -416,7 +416,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
/// <returns></returns> /// <returns></returns>
[HttpPost] [HttpPost]
[AjaxOnly] [AjaxOnly]
public ActionResult UpdateQRCodeStatus(string keyValue,int QRCodeStatus)
public ActionResult UpdateQRCodeStatus(string keyValue, int QRCodeStatus)
{ {
empInfoIBLL.UpdateQRCodeStatus(keyValue, QRCodeStatus); empInfoIBLL.UpdateQRCodeStatus(keyValue, QRCodeStatus);
return Success("操作成功!"); return Success("操作成功!");


Caricamento…
Annulla
Salva