Преглед изворни кода

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

临城职教中职
liangkun пре 2 година
родитељ
комит
d49ef7e335
1 измењених фајлова са 17 додато и 0 уклоњено
  1. +17
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationService.cs

+ 17
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Accommodation/AccommodationService.cs Прегледај датотеку

@@ -1998,6 +1998,22 @@ where ID='{ParentID}'
failDt.Rows.Add(dr.ItemArray);
continue;
}
var parent = dormitoryBuildList.Where(x => x.Name == "数字化智慧校园").FirstOrDefault();
if (parent == null)
{
parent = new Acc_DormitoryBuildEntity();
parent.Create();
parent.DNo = "";
parent.Name = "数字化智慧校园";
//parent.BuildType = "1";
parent.CreateBy = user.realName;
parent.CreateTime = DateTime.Now;
parent.Campus = user.companyId;
db.Insert(parent);

dormitoryBuildList.Add(parent);
}

//宿舍楼
var apartmentName = dr["宿舍楼"].ToString().Trim();
@@ -2009,6 +2025,7 @@ where ID='{ParentID}'
//添加宿舍楼
apartment = new Acc_DormitoryBuildEntity();
apartment.Create();
apartment.ParentID = parent.ID;
apartment.DNo = apartmentCode;
apartment.Name = apartmentName;
apartment.BuildType = "1";


Loading…
Откажи
Сачувај