|
|
@@ -1371,6 +1371,9 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
//修改学生list |
|
|
|
List<StuInfoBasicEntity> insertedorderlist = new List<StuInfoBasicEntity>(); |
|
|
|
var db = this.BaseRepository("CollegeMIS").BeginTrans(); |
|
|
|
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"); |
|
|
|
// 循环遍历导入 |
|
|
|
foreach (DataRow dr in dt.Rows) |
|
|
|
{ |
|
|
@@ -1385,9 +1388,7 @@ 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(); |
|
|
|
var oriData = stuInfoBasicEntities.FirstOrDefault(s => s.IdentityCardNo.ToUpper() == dr[0].ToString().ToUpper()); |
|
|
@@ -1399,7 +1400,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
|
|
|
|
if (!string.IsNullOrWhiteSpace(dr[2].ToString())) |
|
|
|
{ |
|
|
|
stuUpdateList.StuNo = dr[2].ToString(); |
|
|
|
stuUpdateList.ProvinceCode = dr[2].ToString(); |
|
|
|
} |
|
|
|
if (!string.IsNullOrWhiteSpace(dr[3].ToString())) |
|
|
|
{ |
|
|
@@ -1424,17 +1425,17 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
var PieceCultivateWay = dr["五年一贯制"].ToString().Trim(); |
|
|
|
var PieceCultivateWay = dr["分段培养方式"].ToString().Trim(); |
|
|
|
if (!string.IsNullOrWhiteSpace(PieceCultivateWay)) |
|
|
|
{ |
|
|
|
var PieceCultivateWaylity = detailList.FirstOrDefault(x => x.F_ItemCode == "PieceCultivateWay" && x.F_ItemName == PieceCultivateWay); |
|
|
|
if (!string.IsNullOrEmpty(PieceCultivateWay) && PieceCultivateWaylity == null) |
|
|
|
{ |
|
|
|
throw (new Exception("【五年一贯制】数据字典找不到对应的数据!")); |
|
|
|
throw (new Exception("【分段培养方式】数据字典找不到对应的数据!")); |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
stuUpdateList.FiveYear = dr["五年一贯制"].ToString(); |
|
|
|
stuUpdateList.FiveYear = PieceCultivateWaylity.F_ItemValue; |
|
|
|
} |
|
|
|
} |
|
|
|
insertedorderlist.Add(stuUpdateList); |
|
|
|