From 45468f0eb99b895194dfae0ed62abdf4f2cce2eb Mon Sep 17 00:00:00 2001 From: ndbs Date: Mon, 21 Mar 2022 10:42:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=A4=E9=94=80=E8=BF=9D=E7=BA=AA=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../XmlConfig/ioc.config | 2 ++ .../Learun.Application.WorkFlow.csproj | 1 + .../StuCancelDisciplineManagementMethod.cs | 28 +++++++++++++++++++ 3 files changed, 31 insertions(+) create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/StuCancelDisciplineManagementMethod.cs diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/ioc.config b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/ioc.config index 71ea44ea7..935fd9c33 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/ioc.config +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/ioc.config @@ -31,6 +31,7 @@ + @@ -72,6 +73,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Learun.Application.WorkFlow.csproj b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Learun.Application.WorkFlow.csproj index 523127cb3..772f9d9b4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Learun.Application.WorkFlow.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Learun.Application.WorkFlow.csproj @@ -119,6 +119,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/StuCancelDisciplineManagementMethod.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/StuCancelDisciplineManagementMethod.cs new file mode 100644 index 000000000..dbf47c373 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/StuCancelDisciplineManagementMethod.cs @@ -0,0 +1,28 @@ +using Learun.Application.TwoDevelopment.EducationalAdministration; +using Learun.Application.TwoDevelopment.PersonnelManagement; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Learun.Application.WorkFlow +{ + public class StuCancelDisciplineManagementMethod : IWorkFlowMethod + { + StuCancelDisciplineManagementIBLL stuCancelDisciplineManagementIBLL = new StuCancelDisciplineManagementBLL(); + + + public void Execute(WfMethodParameter parameter) + { + if (parameter.code == "agree") + { + stuCancelDisciplineManagementIBLL.ChangeStatusByProcessId("2", parameter.processId, parameter.userId); + } + else + { + stuCancelDisciplineManagementIBLL.ChangeStatusByProcessId("0", parameter.processId, parameter.userId); + } + } + } +}