检查通知本人默认已办
This commit is contained in:
parent
86bfd029f8
commit
d7ab4ddba0
@ -11424,6 +11424,21 @@ namespace APT.BaseData.Services.DomainServices
|
||||
t.ISCHECK = true;
|
||||
t.CHECKTIME = DateTime.Now;
|
||||
});
|
||||
//存入一条已办
|
||||
T_FM_NOTIFICATION_TASK notice = new T_FM_NOTIFICATION_TASK();
|
||||
notice.CODE = DateTime.Now.ToString("yyyyMMddHHmmss");
|
||||
notice.NOTICE_TITLE = entity.DEPARTMENT_TYPE.GetDescription() + "安全检查通知" + DateTime.Now.Year + DateTime.Now.Month.PadLeft(2, '0') + DateTime.Now.Day.PadLeft(2, '0') + entity.Nav_CheckType?.NAME + "-确认";
|
||||
notice.SOURCE_DATA_ID = entity.ID;
|
||||
notice.ORG_ID = entity.ORG_ID;
|
||||
notice.ID = Guid.NewGuid();
|
||||
notice.TASK_STARTDT = DateTime.Now;
|
||||
notice.TASK_ENDDT = DateTime.Now.AddHours(24);
|
||||
notice.NOTICE_TYPE = (int)FMNoticeTypeEnum.消息;
|
||||
notice.NOTICE_STATUS = (int)FMNoticeStatusEnum.正常已办;
|
||||
notice.USER_ID = (Guid)entity.APPLY_USER_ID;
|
||||
notice.USER_NAME = entity.Nav_ApplyUser?.NAME;
|
||||
notice.SOURCE_FORMCODE = "SK006_SHOWPRINT";
|
||||
sendNotices.Add(notice);
|
||||
}
|
||||
userIds = userIds.Distinct().ToList();
|
||||
if (userIds != null && userIds.Any())
|
||||
@ -11438,8 +11453,8 @@ namespace APT.BaseData.Services.DomainServices
|
||||
}
|
||||
var date = DateTime.Now.Year + DateTime.Now.Month.PadLeft(2, '0') + DateTime.Now.Day.PadLeft(2, '0');
|
||||
//发消息
|
||||
sendNotices = NotificationTaskService.InsertUserNoticeTaskModels(entity.DEPARTMENT_TYPE.GetDescription() + "安全检查通知" + date + entity.Nav_CheckType?.NAME + "-确认", entity.ID, entity.ORG_ID, userIds, UserNames, DateTime.Now,
|
||||
DateTime.Now.AddHours(24), (int)FMNoticeTypeEnum.消息, "SK006_SHOWPRINT");
|
||||
sendNotices.AddRange(NotificationTaskService.InsertUserNoticeTaskModels(entity.DEPARTMENT_TYPE.GetDescription() + "安全检查通知" + date + entity.Nav_CheckType?.NAME + "-确认", entity.ID, entity.ORG_ID, userIds, UserNames, DateTime.Now,
|
||||
DateTime.Now.AddHours(24), (int)FMNoticeTypeEnum.消息, "SK006_SHOWPRINT"));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user