|
|
@@ -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 |
|
|
|