Pārlūkot izejas kodu

宿舍导入失败

临城职教中职
ndbs pirms 2 gadiem
vecāks
revīzija
af64b7b8fe
2 mainītis faili ar 12 papildinājumiem un 1 dzēšanām
  1. +8
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Excel/Import/ExcelImportBLL.cs
  2. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationService.cs

+ 8
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.Excel/Import/ExcelImportBLL.cs Parādīt failu

@@ -640,7 +640,9 @@ namespace Learun.Application.Excel


var data = accommodationIBLL.GetAllList().ToList();
foreach (DataRow dr in dt.Rows)
var dTList = dt.Rows;
int i = 0;
foreach (DataRow dr in dTList)
{
try
{
@@ -661,6 +663,11 @@ namespace Learun.Application.Excel
fnum++;
failDt.Rows.Add(dr.ItemArray);
}
i++;
if (i == dTList.Count)
{
break;
}
}
catch (Exception e)
{


+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationService.cs Parādīt failu

@@ -734,6 +734,10 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement
}
bedInfo.StudentID = stuInfo.StuId;
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);
return true;
}


Notiek ielāde…
Atcelt
Saglabāt