同步sms代码
This commit is contained in:
parent
c24c1e1b4e
commit
668faf0a40
@ -62,23 +62,6 @@ namespace APT.FO.WebApi.Controllers.Api.FO
|
|||||||
UpdateEntity(finishNotice);
|
UpdateEntity(finishNotice);
|
||||||
throw new Exception("你已提交,不能修改!");
|
throw new Exception("你已提交,不能修改!");
|
||||||
}
|
}
|
||||||
var files = entity.Nav_Files;
|
|
||||||
if(files != null)
|
|
||||||
{
|
|
||||||
foreach (var file in files)
|
|
||||||
{
|
|
||||||
if (file.CURRENT_CLASS_RECORD_ID == Guid.Empty)
|
|
||||||
{
|
|
||||||
file.CURRENT_CLASS_RECORD_ID = entity.ID;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
var labour = entity.Nav_LabourSupplies;
|
|
||||||
T_FM_NOTIFICATION_TASK sendNotice = null;
|
|
||||||
List<T_FM_NOTIFICATION_TASK> notifications = null;
|
|
||||||
T_FO_CURRENT_CLASS_RECORD_USER currUserRecord = null;
|
|
||||||
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
|
||||||
{
|
|
||||||
var currUser = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
var currUser = APT.Infrastructure.Api.AppContext.CurrentSession.UserID;
|
||||||
var currFMUser = GetEntity<T_FM_USER>((Guid)currUser, "Nav_Person.Nav_Post", "Nav_Department.Nav_Parent");
|
var currFMUser = GetEntity<T_FM_USER>((Guid)currUser, "Nav_Person.Nav_Post", "Nav_Department.Nav_Parent");
|
||||||
if (currFMUser != null)
|
if (currFMUser != null)
|
||||||
@ -112,6 +95,24 @@ namespace APT.FO.WebApi.Controllers.Api.FO
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
entity.EDITOR_ID = currUser;
|
entity.EDITOR_ID = currUser;
|
||||||
|
|
||||||
|
var files = entity.Nav_Files;
|
||||||
|
if(files != null)
|
||||||
|
{
|
||||||
|
foreach (var file in files)
|
||||||
|
{
|
||||||
|
if (file.CURRENT_CLASS_RECORD_ID == Guid.Empty)
|
||||||
|
{
|
||||||
|
file.CURRENT_CLASS_RECORD_ID = entity.ID;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var labour = entity.Nav_LabourSupplies;
|
||||||
|
T_FM_NOTIFICATION_TASK sendNotice = null;
|
||||||
|
List<T_FM_NOTIFICATION_TASK> notifications = null;
|
||||||
|
T_FO_CURRENT_CLASS_RECORD_USER currUserRecord = null;
|
||||||
|
if (entity.PUBLISH != null && entity.PUBLISH.Equals("SaveAndNotify"))
|
||||||
|
{
|
||||||
if (entity.TaskID != Guid.Empty)
|
if (entity.TaskID != Guid.Empty)
|
||||||
{
|
{
|
||||||
finishNotice = NotificationTaskService.FOGetTaskFinishModel(entity.TaskID, entity.ID, "FO005_SHOWPRINT");
|
finishNotice = NotificationTaskService.FOGetTaskFinishModel(entity.TaskID, entity.ID, "FO005_SHOWPRINT");
|
||||||
|
|||||||
@ -69,7 +69,7 @@ namespace APT.FO.WebApi.Controllers.Api.FO
|
|||||||
T_FM_NOTIFICATION_TASK finishTask = null;
|
T_FM_NOTIFICATION_TASK finishTask = null;
|
||||||
if (entity.TaskID != Guid.Empty && entity.OpType != null && entity.OpType == 0)
|
if (entity.TaskID != Guid.Empty && entity.OpType != null && entity.OpType == 0)
|
||||||
{
|
{
|
||||||
finishTask = NotificationTaskService.FOGetTaskFinishModel(entity.TaskID, entity.ID);
|
finishTask = NotificationTaskService.FOGetTaskFinishModel(entity.TaskID, entity.ID, "FO010_SHOWPRINT");
|
||||||
}
|
}
|
||||||
//事务控制
|
//事务控制
|
||||||
this.UnifiedCommit(() =>
|
this.UnifiedCommit(() =>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user