Browse Source

添加 查阅功能 打印查阅人员

master
edy 3 years ago
parent
commit
d3795c9d32
4 changed files with 22 additions and 14 deletions
  1. +17
    -9
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Index.js
  3. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/IndexXF.js
  4. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/DispatchAudit/DispatchAuditIBLL.cs

+ 17
- 9
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs View File

@@ -237,10 +237,10 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
//获取校长的签名盖章 批示+时间+阅 //获取校长的签名盖章 批示+时间+阅
var listTaskLog = nWFTaskIBLL.GetLogList(dispatchEntity.processId); var listTaskLog = nWFTaskIBLL.GetLogList(dispatchEntity.processId);
var PrintList = nWFTaskIBLL.GetLogList(dispatchEntity.processId).OrderBy(o => o.F_CreateDate).ToList(); 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) if (i == 1)
{ {
@@ -255,7 +255,6 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{ {
for (int i = 0; i < Auditlist.Count; i++) for (int i = 0; i < Auditlist.Count; i++)
{ {
dispatchEntity.Listarray += Auditlist[i].AuditUser + Auditlist[i].AuditTime + "阅" + "&"; dispatchEntity.Listarray += Auditlist[i].AuditUser + Auditlist[i].AuditTime + "阅" + "&";
} }
} }
@@ -284,11 +283,20 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
} }
else 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 #endregion


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/Index.js View File

@@ -220,8 +220,8 @@ var bootstrap = function ($, learun) {
if (res.code == 200) { if (res.code == 200) {
// 发起流程 // 发起流程
var postData = { var postData = {
schemeCode: 'Dispatch',// 填写流程对应模板编号
//schemeCode: 'DBSW',// 填写流程对应模板编号
//schemeCode: 'Dispatch',// 本地
schemeCode: 'DBSW',//线上
processId: processId, processId: processId,
level: '1', level: '1',
}; };


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/Dispatch/IndexXF.js View File

@@ -221,8 +221,8 @@ var bootstrap = function ($, learun) {
if (res.code == 200) { if (res.code == 200) {
// 发起流程 // 发起流程
var postData = { var postData = {
schemeCode: 'Dispatch',// 填写流程对应模板编号
//schemeCode: 'XBSW',// 填写流程对应模板编号
//schemeCode: 'Dispatch',// 本地
schemeCode: 'XBSW',// 线上
processId: processId, processId: processId,
level: '1', level: '1',
}; };


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/DispatchAudit/DispatchAuditIBLL.cs View File

@@ -63,7 +63,7 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// </summary> /// </summary>
/// <param name="DisId"></param> /// <param name="DisId"></param>
/// <param name="Name"></param> /// <param name="Name"></param>
List<DispatchAuditEntity> Readlist(string DisId);
List<DispatchAuditEntity> ReadList(string DisId);


} }
} }

Loading…
Cancel
Save