三级安全教育 工号在 记录人 填写工号的时候怕阶段 首页方针 同步子公司 除了字段 orgidue进入判断 字段同步时都是是
This commit is contained in:
parent
b59d4a2a46
commit
ef9915f0ad
@ -41,7 +41,7 @@ namespace APT.PF.WebApiControllers.Api.PF
|
||||
|
||||
try
|
||||
{
|
||||
if (entity.ISTOCHILE)
|
||||
if (entity.ISTOCHILE&& entity.ORG_ID.HasValue&&entity.ORG_ID.ToString().StartsWith("0300000"))
|
||||
{
|
||||
#region 总部
|
||||
|
||||
|
||||
@ -62,6 +62,17 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
||||
}
|
||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||
{
|
||||
var listCodeCheck = Nav_NewUserDetail.Where(e => !e.IS_DELETED && e.CODE != null && e.CODE.Length > 0).Select(e => e.CODE);
|
||||
if (listCodeCheck != null && listCodeCheck.Count() > 0)
|
||||
{
|
||||
var listUserID = Nav_NewUserDetail.Where(e => !e.IS_DELETED && e.USER_ID.HasValue && e.CODE != null && e.CODE.Length > 0).Select(e => e.USER_ID.Value);
|
||||
var listUCodeCheck = GetEntities<T_FM_USER>(e => !e.IS_DELETED && listCodeCheck.Contains(e.CODE) && !listUserID.Contains(e.ID), null, null).Select(e => e.CODE);
|
||||
if (listUCodeCheck != null && listUCodeCheck.Count() > 0)
|
||||
{
|
||||
throw new Exception("工号不能重复【" + String.Join(",", listUCodeCheck) + "】");
|
||||
}
|
||||
}
|
||||
|
||||
var endTime = DateTime.Now.AddDays(10);
|
||||
var newEndTime = new DateTime(endTime.Year, endTime.Month, endTime.Day, 23, 59, 59);
|
||||
if (entity.TRAINNING_TIME == "0" || string.IsNullOrEmpty(entity.TRAINNING_TIME))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user