|
|
@@ -6,6 +6,7 @@ using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Web; |
|
|
|
using Learun.Application.Base.SystemModule; |
|
|
|
using Learun.Application.Base.AuthorizeModule; |
|
|
|
|
|
|
|
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
{ |
|
|
@@ -20,6 +21,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
{ |
|
|
|
private Sys_ReceiveFileIBLL sys_ReceiveFileIBLL = new Sys_ReceiveFileBLL(); |
|
|
|
private AnnexesFileIBLL annexesFileIbll = new AnnexesFileBLL(); |
|
|
|
private UserRelationIBLL userRelationIBLL = new UserRelationBLL(); |
|
|
|
|
|
|
|
#region 视图功能 |
|
|
|
|
|
|
@@ -184,6 +186,30 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers |
|
|
|
} |
|
|
|
return Json(false, JsonRequestBehavior.AllowGet); |
|
|
|
} |
|
|
|
|
|
|
|
/// <summary> |
|
|
|
/// 根据角色批示 |
|
|
|
/// </summary> |
|
|
|
/// <returns></returns> |
|
|
|
[HttpPost] |
|
|
|
[AjaxOnly] |
|
|
|
public ActionResult RoleReceive(string strEntity) |
|
|
|
{ |
|
|
|
Sys_IssueEntity entity = strEntity.ToObject<Sys_IssueEntity>(); |
|
|
|
var data = userRelationIBLL.GetUserIdList(entity.SpecifyReceiver); |
|
|
|
string userIds = ""; |
|
|
|
foreach (var item in data) |
|
|
|
{ |
|
|
|
if (userIds != "") |
|
|
|
{ |
|
|
|
userIds += ","; |
|
|
|
} |
|
|
|
userIds += item.F_UserId; |
|
|
|
} |
|
|
|
entity.SpecifyReceiver = userIds; |
|
|
|
sys_ReceiveFileIBLL.ReceiveDocumentIssue(entity); |
|
|
|
return Success("发送成功"); |
|
|
|
} |
|
|
|
#endregion |
|
|
|
|
|
|
|
#region 提交数据 |
|
|
|