Просмотр исходного кода

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

master
edy 3 лет назад
Родитель
Сommit
d3795c9d32
4 измененных файлов: 22 добавлений и 14 удалений
  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 Просмотреть файл

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


+ 2
- 2
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',
};


+ 2
- 2
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',
};


+ 1
- 1
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
/// </summary>
/// <param name="DisId"></param>
/// <param name="Name"></param>
List<DispatchAuditEntity> Readlist(string DisId);
List<DispatchAuditEntity> ReadList(string DisId);

}
}

Загрузка…
Отмена
Сохранить