培训需求调査 最后一个人 填写结果时 触发 培训需求调查汇总 并修改状态
This commit is contained in:
parent
77d6d8f317
commit
82d0d6a938
@ -221,9 +221,10 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
{
|
{
|
||||||
item.Nav_DEMAND = null;
|
item.Nav_DEMAND = null;
|
||||||
}
|
}
|
||||||
|
T_SE_TRAIN_SURVEY survry = null;
|
||||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||||
{
|
{
|
||||||
var survry = GetEntity<T_SE_TRAIN_SURVEY>(t => t.ID == entity.SURVEY_ID);
|
survry = GetEntity<T_SE_TRAIN_SURVEY>(t => t.ID == entity.SURVEY_ID);
|
||||||
if (survry != null)
|
if (survry != null)
|
||||||
{
|
{
|
||||||
if (DateTime.Now > survry.END_TIME)
|
if (DateTime.Now > survry.END_TIME)
|
||||||
@ -251,6 +252,7 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
{
|
{
|
||||||
var user = GetEntity<T_FM_USER>(survry.LAUNCH_USER_ID);
|
var user = GetEntity<T_FM_USER>(survry.LAUNCH_USER_ID);
|
||||||
sendNotices = NotificationTaskService.InsertUserNoticeTaskModel("培训需求调查汇总-" + survry.NAME, survry.ID, survry.ORG_ID, survry.LAUNCH_USER_ID, user.NAME, DateTime.Now, 0, "SE007_SHOWPRINT", FMTASKTYPE.Default);
|
sendNotices = NotificationTaskService.InsertUserNoticeTaskModel("培训需求调查汇总-" + survry.NAME, survry.ID, survry.ORG_ID, survry.LAUNCH_USER_ID, user.NAME, DateTime.Now, 0, "SE007_SHOWPRINT", FMTASKTYPE.Default);
|
||||||
|
survry.STATUS = SETrainSurveyStatus.汇总中;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -262,6 +264,8 @@ namespace APT.SC.WebApi.Controllers.Api.SE
|
|||||||
UpdateEntityNoCommit(finishNotice);
|
UpdateEntityNoCommit(finishNotice);
|
||||||
if (sendNotices != null)
|
if (sendNotices != null)
|
||||||
UpdateEntityNoCommit(sendNotices);
|
UpdateEntityNoCommit(sendNotices);
|
||||||
|
if (survry!=null&& survry.STATUS == SETrainSurveyStatus.汇总中)
|
||||||
|
UpdateEntityNoCommit(survry);
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user