edy 3 years ago
parent
commit
57bd2639e3
1 changed files with 21 additions and 10 deletions
  1. +21
    -10
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/DispatchController.cs

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

@@ -10,6 +10,7 @@ using Learun.Application.Base.SystemModule;
using System.Linq;
using DocumentFormat.OpenXml.EMMA;
using Learun.Application.Organization;
//using Learun.Application.TwoDevelopment.LR_Desktop;

namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
@@ -27,6 +28,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
private AnnexesFileIBLL annexesFileIBLL = new AnnexesFileBLL();
private DataItemIBLL dataItemIBLL = new DataItemBLL();
private DispatchAuditIBLL dispatchAuditIBLL = new DispatchAuditBLL();
//private MessageRindIBLL messageRindIBLL = new MessageRindBLL();

#region 视图功能

@@ -294,9 +296,6 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
public ActionResult Read(string keyValue)
{
var userInfo = LoginUserInfo.Get();
//string userIds = userInfo.userId;
//if (reader.Contains(userIds))
//{
var model = dispatchAuditIBLL.Repetition(keyValue, userInfo.realName);
if (model != null)
{
@@ -323,11 +322,6 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
return Success("查阅完成!");
}
}
//}
//else
//{
// return Fail("查阅失败!");
//}
}
#endregion

@@ -346,13 +340,30 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
model.Reader = userIds;
dispatchIBLL.SaveEntity(objectId, model);
//var userInfo = LoginUserInfo.Get();
//foreach (var item in userIds)
//{
// MessageRemindEntity entity = new MessageRemindEntity
// {
// ReceiptId = item.ToString(),
// ReceiptName = userInfo.realName,
// SenderId = userInfo.userId,
// SenderName = userInfo.realName,
// TheTitle = "查阅提醒",
// TheContent = model.DisTitle,
// //entity.InstanceId = item.F_ScheduleId;
// ConnectionUrl = "/EducationalAdministration/Dispatch/ReadIndex?keyValue=",
// SendTime = DateTime.Now,
// ReadSigns = false
// };
// messageRindIBLL.SaveEntity("", entity);
//}
return Success("设置成功!");
}
}
#endregion


#region MyRegion
#region 查阅
/// <summary>
/// 查阅
/// </summary>


Loading…
Cancel
Save