@@ -640,7 +640,9 @@ namespace Learun.Application.Excel | |||||
var data = accommodationIBLL.GetAllList().ToList(); | var data = accommodationIBLL.GetAllList().ToList(); | ||||
foreach (DataRow dr in dt.Rows) | |||||
var dTList = dt.Rows; | |||||
int i = 0; | |||||
foreach (DataRow dr in dTList) | |||||
{ | { | ||||
try | try | ||||
{ | { | ||||
@@ -661,6 +663,11 @@ namespace Learun.Application.Excel | |||||
fnum++; | fnum++; | ||||
failDt.Rows.Add(dr.ItemArray); | failDt.Rows.Add(dr.ItemArray); | ||||
} | } | ||||
i++; | |||||
if (i == dTList.Count) | |||||
{ | |||||
break; | |||||
} | |||||
} | } | ||||
catch (Exception e) | catch (Exception e) | ||||
{ | { | ||||
@@ -734,6 +734,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement | |||||
} | } | ||||
bedInfo.StudentID = stuInfo.StuId; | bedInfo.StudentID = stuInfo.StuId; | ||||
bedInfo.StuName = stuInfo.StuName; | bedInfo.StuName = stuInfo.StuName; | ||||
bedInfo.Dept = stuInfo.DeptNo; | |||||
bedInfo.Major = stuInfo.MajorNo; | |||||
bedInfo.Class = stuInfo.ClassNo; | |||||
bedInfo.Sex = stuInfo.GenderNo != null && stuInfo.GenderNo.Value ? "男" : "女"; | |||||
this.BaseRepository("CollegeMIS").Update(bedInfo); | this.BaseRepository("CollegeMIS").Update(bedInfo); | ||||
return true; | return true; | ||||
} | } | ||||