소스 검색

Merge branch '长阳分支中职' of 123.57.209.16:bjquanjiang/DigitalScholl into 长阳分支中职

应县
liangkun 1 년 전
부모
커밋
e01edf3e8c
2개의 변경된 파일24개의 추가작업 그리고 0개의 파일을 삭제
  1. BIN
      Learun.Framework.Ultimate V7/Learun.Application.Web/Content/excel/StuInfoBasicImport.xls
  2. +24
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs

BIN
Learun.Framework.Ultimate V7/Learun.Application.Web/Content/excel/StuInfoBasicImport.xls 파일 보기


+ 24
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuInfoBasic/StuInfoBasicService.cs 파일 보기

@@ -1368,12 +1368,36 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
{
throw (new Exception("【身份证号】不存在,请核对!"));
}
var detailList = this.BaseRepository().FindList<DataItemDetailEntity>(@"SELECT t.*,t2.F_ItemCode FROM LR_Base_DataItemDetail t
INNER JOIN LR_Base_DataItem t2 ON t.F_ItemId = t2.F_ItemId
WHERE t.F_DeleteMark = 0");
//写入要导入的数据
StuInfoBasicEntity stuUpdateList = new StuInfoBasicEntity();
stuUpdateList.StuId = stuInfoBasicEntities.FirstOrDefault(s => s.IdentityCardNo.ToUpper() == dr[0].ToString().ToUpper())?.StuId.ToString();
stuUpdateList.StuCode = dr[1].ToString();
stuUpdateList.MailAddress = dr[2].ToString();
stuUpdateList.mobile = dr[3].ToString();

var PolityStatus = dr["政治面貌"].ToString().Trim();
var PolityStatuslity = detailList.FirstOrDefault(x => x.F_ItemCode == "PolityStatus" && x.F_ItemName == PolityStatus);
if (!string.IsNullOrEmpty(PolityStatus) && PolityStatuslity == null)
{
throw (new Exception("【政治面貌】数据字典找不到对应的数据"));
}
else
{
stuUpdateList.PartyFaceNo = PolityStatuslity?.F_ItemValue;
}
var PieceCultivateWay = dr["五年一贯制"].ToString().Trim();
var PieceCultivateWaylity = detailList.FirstOrDefault(x => x.F_ItemCode == "PieceCultivateWay" && x.F_ItemName == PieceCultivateWay);
if (!string.IsNullOrEmpty(PieceCultivateWay) && PieceCultivateWaylity == null)
{
throw (new Exception("【五年一贯制】数据字典找不到对应的数据!"));
}
else
{
stuUpdateList.FiveYear = dr["五年一贯制"].ToString();
}
insertedorderlist.Add(stuUpdateList);
snum++;
}


불러오는 중...
취소
저장