diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs index a580ef732..ddca4fc31 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs @@ -237,10 +237,10 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers //获取校长的签名盖章 批示+时间+阅 var listTaskLog = nWFTaskIBLL.GetLogList(dispatchEntity.processId); var PrintList = nWFTaskIBLL.GetLogList(dispatchEntity.processId).OrderBy(o => o.F_CreateDate).ToList(); - var Auditlist = dispatchAuditIBLL.Readlist(keyValue); - if (listTaskLog.Count() > 0) + var Auditlist = dispatchAuditIBLL.ReadList(keyValue); + if (PrintList.Count > 0) { - for (int i = 0; i < PrintList.Count; i++) + for (int i = 1; i < PrintList.Count; i++) { if (i == 1) { @@ -255,7 +255,6 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers { for (int i = 0; i < Auditlist.Count; i++) { - dispatchEntity.Listarray += Auditlist[i].AuditUser + Auditlist[i].AuditTime + "阅" + "&"; } } @@ -284,11 +283,20 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers } else { - entityaudit.DisId = keyValue; - entityaudit.AuditTime = DateTime.Now; - entityaudit.AuditUser = userInfo.realName; - dispatchAuditIBLL.SaveEntity("", entityaudit); - return Success("阅读成功!"); + var dispatchEntity = dispatchIBLL.GetDispatchEntity(keyValue); + var PrintList = nWFTaskIBLL.GetLogList(dispatchEntity.processId).Select(x => x.F_CreateUserName); + if (PrintList.Contains(userInfo.realName)) + { + return Fail("请勿重复批阅!"); + } + else + { + entityaudit.DisId = keyValue; + entityaudit.AuditTime = DateTime.Now; + entityaudit.AuditUser = userInfo.realName; + dispatchAuditIBLL.SaveEntity("", entityaudit); + return Success("查阅完成!"); + } } } #endregion diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Index.js index 6b20025c4..14242836d 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Index.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Index.js @@ -220,8 +220,8 @@ var bootstrap = function ($, learun) { if (res.code == 200) { // 发起流程 var postData = { - schemeCode: 'Dispatch',// 填写流程对应模板编号 - //schemeCode: 'DBSW',// 填写流程对应模板编号 + //schemeCode: 'Dispatch',// 本地 + schemeCode: 'DBSW',//线上 processId: processId, level: '1', }; diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/IndexXF.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/IndexXF.js index 08f48ddfd..b3f8a563e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/IndexXF.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/IndexXF.js @@ -221,8 +221,8 @@ var bootstrap = function ($, learun) { if (res.code == 200) { // 发起流程 var postData = { - schemeCode: 'Dispatch',// 填写流程对应模板编号 - //schemeCode: 'XBSW',// 填写流程对应模板编号 + //schemeCode: 'Dispatch',// 本地 + schemeCode: 'XBSW',// 线上 processId: processId, level: '1', }; diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/DispatchAudit/DispatchAuditIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/DispatchAudit/DispatchAuditIBLL.cs index b9979bbb7..9ccf436a6 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/DispatchAudit/DispatchAuditIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/DispatchAudit/DispatchAuditIBLL.cs @@ -63,7 +63,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration /// /// /// - List Readlist(string DisId); + List ReadList(string DisId); } }