瀏覽代碼

新闻通知公告 添加撤销和根据条件执行

临城职教中职
ndbs 2 年之前
父節點
當前提交
b644b20506
共有 1 個文件被更改,包括 10 次插入2 次删除
  1. +10
    -2
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/OA_NewsMethod.cs

+ 10
- 2
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/OA_NewsMethod.cs 查看文件

@@ -30,7 +30,8 @@ namespace Learun.Application.WorkFlow
private MessageRindIBLL messageRindIBLL = new MessageRindBLL();
public void Execute(WfMethodParameter parameter)
{
if (parameter.code == "agree")
//撤销code=1 发起直接通过是 create
if (parameter.code == "agree" || parameter.code == "create")
{
newsIBLL.ChangeStatusByProcessId(parameter.processId, 2);
var entity = noticeIBLL.GetEntityByProcessId(parameter.processId);
@@ -57,7 +58,14 @@ namespace Learun.Application.WorkFlow
}
else
{
newsIBLL.ChangeStatusByProcessId(parameter.processId, 0);
if (parameter.code == "disagree")
{
newsIBLL.ChangeStatusByProcessId(parameter.processId, 0);
}
if (parameter.code == "1")
{
newsIBLL.ChangeStatusByProcessId(parameter.processId, 0);
}
}
}



Loading…
取消
儲存