Browse Source

教师个人信息查看政治面貌与修改相匹配

新疆体育高职分支
liangkun 1 year ago
parent
commit
f3a8ec7d88
2 changed files with 6 additions and 12 deletions
  1. +3
    -7
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/EmpInfoController.cs
  2. +3
    -5
      Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/Index.cshtml

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

@@ -133,14 +133,10 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
// empInfo.NationalityNo = nationality.Rows[0][1].ToString();
//}
//政治面貌
empInfo.PartyFaceNo = dataItemIBLL.GetDetailList("BCdPartyFace").FirstOrDefault(x => x.F_ItemValue == empInfo.PartyFaceNo)?.F_ItemName;
empInfo.PartyFaceNo = dataItemIBLL.GetDetailList("PolityStatus").FirstOrDefault(x => x.F_ItemValue == empInfo.PartyFaceNo)?.F_ItemName;
//最高学历
var highestRecord = dataSourceIBLL.GetDataTable("BCdCultureDegree", "t.CultureDegreeNo='" + empInfo.HighestRecord + "'");
if (highestRecord != null && highestRecord.Rows.Count > 0)
{
empInfo.HighestRecord = highestRecord.Rows[0][1].ToString();
}
empInfo.HighestRecord = dataItemIBLL.GetDetailList("RecordInSchool").FirstOrDefault(x => x.F_ItemValue == empInfo.HighestRecord)?.F_ItemName;
//头像
empInfo.Photo = annexesFileIBLL.GetEntityByFolderId(empInfo.Photo)?.F_FilePath;
if (!string.IsNullOrEmpty(empInfo.Photo))


+ 3
- 5
Learun.Framework.Ultimate V7/Learun.Application.Web/Views/UserCenter/Index.cshtml View File

@@ -493,13 +493,11 @@
},
nationalityNo: function (value) {
var result;
top.learun.clientdata.getAsync('custmerData', {
sync: true,
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BCdNationality',
top.learun.clientdata.getAsync('dataItem', {
key: value,
keyId: 'nationalityno',
code: 'National',
callback: function (_data) {
result = _data['nationality'];
result = _data.text;
}
});
return result;


Loading…
Cancel
Save