Sfoglia il codice sorgente

晚归规则添加 保卫处信息

新疆影视学院高职
ndbs 2 anni fa
parent
commit
494295bc4c
2 ha cambiato i file con 11 aggiunte e 0 eliminazioni
  1. +5
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Acc_DormitoryRule/Acc_DormitoryRuleEntity.cs
  2. +6
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Acc_DormitoryRule/Acc_DormitoryRuleService.cs

+ 5
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Acc_DormitoryRule/Acc_DormitoryRuleEntity.cs Vedi File

@@ -74,6 +74,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement
/// </summary>
[Column("DEFEND")]
public int? Defend { get; set; }
/// <summary>
///
/// </summary>
[Column("DEFENDID")]
public string DefendId { get; set; }

#endregion



+ 6
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LogisticsManagement/Acc_DormitoryRule/Acc_DormitoryRuleService.cs Vedi File

@@ -1,4 +1,5 @@
using Dapper;
using Learun.Application.Organization;
using Learun.DataBase.Repository;
using Learun.Util;
using System;
@@ -151,6 +152,11 @@ namespace Learun.Application.TwoDevelopment.LogisticsManagement
entity.Create();
entity.CreateTime = DateTime.Now;
entity.CreateUserId = loInfo.account;
var NewID = this.BaseRepository().FindEntity<DepartmentEntity>(x => x.F_FullName == "保卫处").F_DepartmentId;
if (NewID != null && entity.Defend == 1)
{
entity.DefendId = NewID;
}
this.BaseRepository("CollegeMIS").Insert(entity);
}
}


Caricamento…
Annulla
Salva