From 1c2348ce84e1b7c83a4e824372b27895f1f9e1c8 Mon Sep 17 00:00:00 2001 From: zhichao lei <442149704@qq.com> Date: Wed, 9 Sep 2020 18:30:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=8D=A1=E7=94=B3=E8=AF=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/ADR_AddApplyController.cs | 13 ++ .../Views/ADR_AddApply/Form.js | 63 ++++----- .../Views/ADR_AddApply/Index.cshtml | 1 + .../Views/ADR_AddApply/Index.js | 129 ++++++++++++------ .../XmlConfig/ioc.config | 2 + .../ADR_AddApply/ADR_AddApplyBLL.cs | 43 ++++++ .../ADR_AddApply/ADR_AddApplyEntity.cs | 3 +- .../ADR_AddApply/ADR_AddApplyIBLL.cs | 8 +- .../ADR_AddApply/ADR_AddApplyService.cs | 80 ++++++++++- .../Learun.Application.WorkFlow.csproj | 1 + .../NodeMethod/ADR_AddApplyMethod.cs | 28 ++++ 11 files changed, 292 insertions(+), 79 deletions(-) create mode 100644 Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/ADR_AddApplyMethod.cs diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ADR_AddApplyController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ADR_AddApplyController.cs index a3d716c4e..9028f9db2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ADR_AddApplyController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Controllers/ADR_AddApplyController.cs @@ -4,6 +4,7 @@ using Learun.Application.TwoDevelopment.PersonnelManagement; using System.Web.Mvc; using Learun.Application.TwoDevelopment.LR_CodeDemo; using System.Collections.Generic; +using Learun.Application.Base.SystemModule; namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers { @@ -111,6 +112,18 @@ namespace Learun.Application.Web.Areas.PersonnelManagement.Controllers return Success("删除成功!"); } /// + /// 修改审批状态 + /// + /// 主键 + /// + [HttpPost] + [AjaxOnly] + public ActionResult ChangeStatusById(string keyValue,string processId) + { + aDR_AddApplyIBLL.ChangeStatusById(keyValue,processId); + return Success("提交成功!"); + } + /// /// 保存实体数据(新增、修改) /// /// 主键 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_AddApply/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_AddApply/Form.js index f630a5e6e..01b4e63f8 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_AddApply/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_AddApply/Form.js @@ -11,6 +11,7 @@ var setAuthorize; // 设置表单数据 var setFormData; // 验证数据是否填写完整 +var isUpdate; var validForm; // 保存数据 var save; @@ -18,24 +19,23 @@ var bootstrap = function ($, learun) { "use strict"; // 设置权限 setAuthorize = function (data) { - if(!!data) - { - for (var field in data) { - if (data[field].isLook != 1) {// 如果没有查看权限就直接移除 - $('#' + data[field].fieldId).parent().remove(); - } - else { - if (data[field].isEdit != 1) { - $('#' + data[field].fieldId).attr('disabled', 'disabled'); - if ($('#' + data[field].fieldId).hasClass('lrUploader-wrap')) { - $('#' + data[field].fieldId).css({ 'padding-right': '58px' }); - $('#' + data[field].fieldId).find('.btn-success').remove(); - } - } - } - } - } - }; + if (!!data) { + for (var field in data) { + if (data[field].isLook != 1) {// 如果没有查看权限就直接移除 + $('#' + data[field].fieldId).parent().remove(); + } + else { + if (data[field].isEdit != 1) { + $('#' + data[field].fieldId).attr('disabled', 'disabled'); + if ($('#' + data[field].fieldId).hasClass('lrUploader-wrap')) { + $('#' + data[field].fieldId).css({ 'padding-right': '58px' }); + $('#' + data[field].fieldId).find('.btn-success').remove(); + } + } + } + } + } + }; var page = { init: function () { $('.lr-form-wrap').lrscroll(); @@ -56,7 +56,7 @@ var bootstrap = function ($, learun) { $.lrSetForm(top.$.rootUrl + '/PersonnelManagement/ADR_AddApply/GetFormData?keyValue=' + keyValue, function (data) { for (var id in data) { if (!!data[id].length && data[id].length > 0) { - $('#' + id ).jfGridSet('refreshdata', data[id]); + $('#' + id).jfGridSet('refreshdata', data[id]); } else { $('[data-table="' + id + '"]').lrSetFormData(data[id]); @@ -67,23 +67,24 @@ var bootstrap = function ($, learun) { } }; // 设置表单数据 - setFormData = function (processId,param,callback) { + setFormData = function (processId, param, callback) { if (!!processId) { $.lrSetForm(top.$.rootUrl + '/PersonnelManagement/ADR_AddApply/GetFormDataByProcessId?processId=' + processId, function (data) { for (var id in data) { if (!!data[id] && data[id].length > 0) { - $('#' + id ).jfGridSet('refreshdata', data[id]); - } - else { - if(id == 'ADR_AddApply' && data[id] ){ + $('#' + id).jfGridSet('refreshdata', data[id]); + } + else { + if (id == 'ADR_AddApply' && data[id]) { keyValue = data[id].ID; } - $('[data-table="' + id + '"]').lrSetFormData(data[id]); - } + $('[data-table="' + id + '"]').lrSetFormData(data[id]); } - }); - } - callback && callback(); } + } + }); + } + callback && callback(); + } // 验证数据是否填写完整 validForm = function () { if (!$('body').lrValidform()) { @@ -94,8 +95,8 @@ var bootstrap = function ($, learun) { // 保存数据 save = function (processId, callBack, i) { var formData = $('body').lrGetFormData(); - if(!!processId){ - formData.ProcessId =processId; + if (!!processId) { + formData.ProcessId = processId; } var postData = { strEntity: JSON.stringify(formData) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_AddApply/Index.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_AddApply/Index.cshtml index 7f8ad5f22..b95e4eba1 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_AddApply/Index.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_AddApply/Index.cshtml @@ -33,6 +33,7 @@  新增  编辑  删除 +  提交 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_AddApply/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_AddApply/Index.js index 71f4a9211..9f71c9ce4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_AddApply/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/PersonnelManagement/Views/ADR_AddApply/Index.js @@ -66,8 +66,12 @@ var bootstrap = function ($, learun) { res = top[id].validForm(); // 保存数据 if (res) { - processId = learun.newGuid(); - res = top[id].save(processId, refreshGirdData); + + //processId = learun.newGuid(); + //res = top[id].save(processId, refreshGirdData); + res = top[id].save('', function () { + page.search(); + }); } return res; } @@ -76,6 +80,11 @@ var bootstrap = function ($, learun) { // 编辑 $('#lr_edit').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); + var PStatus = $('#gridtable').jfGridValue('PStatus'); + if (PStatus != 0) { + learun.alert.warning("申请已经提交,不能修改"); + return; + } if (learun.checkrow(keyValue)) { learun.layerForm({ id: 'form', @@ -101,45 +110,85 @@ var bootstrap = function ($, learun) { // 删除 $('#lr_delete').on('click', function () { var keyValue = $('#gridtable').jfGridValue('ID'); + var PStatus = $('#gridtable').jfGridValue('PStatus'); + if (PStatus != 0) { + learun.alert.warning("申请已经提交,不能修改"); + return; + } if (learun.checkrow(keyValue)) { learun.layerConfirm('是否确认删除该项!', function (res) { if (res) { - learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/ADR_AddApply/DeleteForm', { keyValue: keyValue}, function () { + learun.deleteForm(top.$.rootUrl + '/PersonnelManagement/ADR_AddApply/DeleteForm', { keyValue: keyValue }, function () { refreshGirdData(); }); } }); } }); + + // 提交审核 + $('#lr_submit').on('click', function () { + var keyValue = $('#gridtable').jfGridValue('ID'); + var PStatus = $('#gridtable').jfGridValue('PStatus'); + if (PStatus != 0) { + learun.alert.warning("申请已经提交"); + return; + } + if (learun.checkrow(keyValue)) { + learun.layerConfirm('是否确认提交!', function (res) { + if (res) { + processId = learun.newGuid(); + learun.postForm(top.$.rootUrl + '/PersonnelManagement/ADR_AddApply/ChangeStatusById', { keyValue: keyValue, processId: processId }, function (res2) { + refreshGirdData(res2, {}); + }); + } + }); + } + }); }, // 初始化列表 initGird: function () { $('#gridtable').lrAuthorizeJfGrid({ url: top.$.rootUrl + '/PersonnelManagement/ADR_AddApply/GetPageList', headData: [ - { label: "申请人", name: "UserNo", width: 100, align: "left", - formatterAsync: function (callback, value, row, op,$cell) { - learun.clientdata.getAsync('user', { - key: value, - callback: function (_data) { - callback(_data.name); - } - }); - }}, - { label: "考勤类型", name: "ADType", width: 100, align: "left", - formatterAsync: function (callback, value, row, op,$cell) { - learun.clientdata.getAsync('dataItem', { - key: value, - code: 'ADType', - callback: function (_data) { - callback(_data.text); - } - }); - }}, - { label: "补卡时间", name: "AddTime", width: 100, align: "left"}, - { label: "原因", name: "Remark", width: 100, align: "left"}, + { + label: "申请人", name: "UserNo", width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('user', { + key: value, + callback: function (_data) { + callback(_data.name); + } + }); + } + }, + { + label: "考勤类型", name: "ADType", width: 100, align: "left", + formatterAsync: function (callback, value, row, op, $cell) { + learun.clientdata.getAsync('dataItem', { + key: value, + code: 'ADType', + callback: function (_data) { + callback(_data.text); + } + }); + } + }, + { label: "补卡时间", name: "AddTime", width: 100, align: "left" }, + { + label: "状态", name: "PStatus", width: 100, align: "left", formatter: function (cellvalue) { + if (cellvalue === 1) { + return '审批中'; + } else if (cellvalue === 2) { + return '审批通过'; + } else { + return '草稿'; + } + } + }, + { label: "原因", name: "Remark", width: 100, align: "left" }, ], - mainId:'ID', + mainId: 'ID', isPage: true }); }, @@ -147,26 +196,24 @@ var bootstrap = function ($, learun) { param = param || {}; param.StartTime = startTime; param.EndTime = endTime; - $('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); + $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); } }; refreshGirdData = function (res, postData) { - if (!!res) - { - if (res.code == 200) - { - // 发起流程 - var postData = { - schemeCode:'',// 填写流程对应模板编号 - processId:processId, - level:'1', - }; - learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function(data) { - learun.loading(false); - }); + if (!!res) { + if (res.code == 200) { + // 发起流程 + var postData = { + schemeCode: 'ADR_AddApply',// 填写流程对应模板编号 + processId: processId, + level: '1', + }; + learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { + learun.loading(false); + }); + } + page.search(); } - page.search(); - } }; page.init(); } 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 ccd14aa9e..de0d99e24 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/ioc.config +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/XmlConfig/ioc.config @@ -24,6 +24,7 @@ + @@ -57,6 +58,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_AddApply/ADR_AddApplyBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_AddApply/ADR_AddApplyBLL.cs index 5687dd917..42e59affa 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_AddApply/ADR_AddApplyBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_AddApply/ADR_AddApplyBLL.cs @@ -142,6 +142,49 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement } } + /// + /// 流程审批处理 + /// + /// 主键 + /// 实体 + public void ChangeStatusByProcessId(string processId, int status) + { + try + { + aDR_AddApplyService.ChangeStatusByProcessId(processId, status); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + public void ChangeStatusById(string keyValue, string processId) + { + try + { + aDR_AddApplyService.ChangeStatusById(keyValue, processId); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + #endregion } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_AddApply/ADR_AddApplyEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_AddApply/ADR_AddApplyEntity.cs index fe1ac9675..a4c79ad1c 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_AddApply/ADR_AddApplyEntity.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_AddApply/ADR_AddApplyEntity.cs @@ -11,7 +11,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement /// 日 期:2020-09-09 16:23 /// 描 述:补卡申请 /// - public class ADR_AddApplyEntity + public class ADR_AddApplyEntity { #region 实体成员 /// @@ -58,6 +58,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement public void Create() { this.ID = Guid.NewGuid().ToString(); + this.PStatus = 0; } /// /// 编辑调用 diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_AddApply/ADR_AddApplyIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_AddApply/ADR_AddApplyIBLL.cs index 7e8d6da19..9d53a13af 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_AddApply/ADR_AddApplyIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_AddApply/ADR_AddApplyIBLL.cs @@ -49,7 +49,13 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement /// 主键 /// 实体 void SaveEntity(string keyValue, ADR_AddApplyEntity entity); + void ChangeStatusByProcessId(string processId, int status); #endregion - + /// + /// 修改审批状态 + /// + /// + /// + void ChangeStatusById(string keyValue, string processId); } } diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_AddApply/ADR_AddApplyService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_AddApply/ADR_AddApplyService.cs index 6f32ec74e..6bda1ad8e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_AddApply/ADR_AddApplyService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/PersonnelManagement/ADR_AddApply/ADR_AddApplyService.cs @@ -5,6 +5,7 @@ using System; using System.Collections.Generic; using System.Data; using System.Text; +using Learun.Application.TwoDevelopment.LogisticsManagement; namespace Learun.Application.TwoDevelopment.PersonnelManagement { @@ -36,6 +37,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement t.UserNo, t.ADType, t.AddTime, + t.PStatus, t.Remark "); strSql.Append(" FROM ADR_AddApply t "); @@ -51,15 +53,15 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement } if (!queryParam["UserNo"].IsEmpty()) { - dp.Add("UserNo",queryParam["UserNo"].ToString(), DbType.String); + dp.Add("UserNo", queryParam["UserNo"].ToString(), DbType.String); strSql.Append(" AND t.UserNo = @UserNo "); } if (!queryParam["ADType"].IsEmpty()) { - dp.Add("ADType",queryParam["ADType"].ToString(), DbType.String); + dp.Add("ADType", queryParam["ADType"].ToString(), DbType.String); strSql.Append(" AND t.ADType = @ADType "); } - return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(),dp, pagination); + return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp, pagination); } catch (Exception ex) { @@ -107,7 +109,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement { try { - return this.BaseRepository("CollegeMIS").FindEntity(t=>t.ProcessId == processId); + return this.BaseRepository("CollegeMIS").FindEntity(t => t.ProcessId == processId); } catch (Exception ex) { @@ -134,7 +136,7 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement { try { - this.BaseRepository("CollegeMIS").Delete(t=>t.ID == keyValue); + this.BaseRepository("CollegeMIS").Delete(t => t.ID == keyValue); } catch (Exception ex) { @@ -182,8 +184,76 @@ namespace Learun.Application.TwoDevelopment.PersonnelManagement } } } + /// + /// 流程审批处理 + /// + /// 流程id + /// 处理状态 2 通过 0 未通过 + /// + public void ChangeStatusByProcessId(string processId, int status) + { + var db = this.BaseRepository("CollegeMIS").BeginTrans(); + try + { + var addEntity = db.FindEntity(a => a.ProcessId == processId); + if (null != addEntity) + { + var AddTime = addEntity.AddTime.ToDate(); + var recordEntity = new ADR_RecordEntity() + { + ADYear = AddTime.Year.ToString(), + ADMonth = AddTime.Month.ToString(), + ADDay = AddTime.Day.ToString(), + ClockTime = AddTime, + ADTime = AddTime, + ADType = addEntity.ADType, + UserNo = addEntity.UserNo, + ClockStatus = "1", + }; + recordEntity.Create(); + addEntity.PStatus = status; + db.Insert(recordEntity); + db.Update(addEntity); + db.Commit(); + + } + } + catch (Exception ex) + { + db.Rollback(); + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } #endregion + public void ChangeStatusById(string keyValue, string processId) + { + try + { + var addEntity = this.BaseRepository("CollegeMIS").FindEntity(a => a.ID == keyValue); + addEntity.ProcessId = processId; + addEntity.PStatus = 1; + this.BaseRepository("CollegeMIS").Update(addEntity); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } } } 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 799c1cb6e..7c4b2d075 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 @@ -94,6 +94,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/ADR_AddApplyMethod.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/ADR_AddApplyMethod.cs new file mode 100644 index 000000000..1c784afd1 --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/NodeMethod/ADR_AddApplyMethod.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Learun.Application.TwoDevelopment.AssetManagementSystem; +using Learun.Application.TwoDevelopment.PersonnelManagement; + +namespace Learun.Application.WorkFlow +{ + public class ADR_AddApplyMethod : IWorkFlowMethod + { + ADR_AddApplyIBLL asset = new ADR_AddApplyBLL(); + + + public void Execute(WfMethodParameter parameter) + { + if (parameter.code == "agree") + { + asset.ChangeStatusByProcessId(parameter.processId, 2); + } + else + { + asset.ChangeStatusByProcessId(parameter.processId, 0); + } + } + } +}