From 57bd2639e323b027637200607823fd17df7fa6de Mon Sep 17 00:00:00 2001 From: edy Date: Wed, 21 Jul 2021 09:47:12 +0800 Subject: [PATCH] --- .../Controllers/DispatchController.cs | 31 +++++++++++++------ 1 file changed, 21 insertions(+), 10 deletions(-) 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 944957e09..93bfdfde4 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 @@ -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 查阅 /// /// 查阅 ///