@@ -4,6 +4,7 @@ using Learun.Application.TwoDevelopment.EducationalAdministration; | |||||
using System.Web.Mvc; | using System.Web.Mvc; | ||||
using System.Collections.Generic; | using System.Collections.Generic; | ||||
using System.Linq; | using System.Linq; | ||||
using Learun.Application.Organization; | |||||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | ||||
{ | { | ||||
@@ -18,6 +19,7 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
private SYS_ReceiveDocumentIBLL sYS_ReceiveDocumentIBLL = new SYS_ReceiveDocumentBLL(); | private SYS_ReceiveDocumentIBLL sYS_ReceiveDocumentIBLL = new SYS_ReceiveDocumentBLL(); | ||||
private Sys_ReceiveFileIBLL receiveFileIbll=new Sys_ReceiveFileBLL(); | private Sys_ReceiveFileIBLL receiveFileIbll=new Sys_ReceiveFileBLL(); | ||||
private RoleIBLL roleIBLL = new RoleBLL(); | |||||
#region 视图功能 | #region 视图功能 | ||||
@@ -88,6 +90,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | |||||
/// 阅读详情 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult RoleForm() | |||||
{ | |||||
return View(); | |||||
} | |||||
#endregion | #endregion | ||||
#region 获取数据 | #region 获取数据 | ||||
@@ -154,7 +167,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
return Success(jsonData); | return Success(jsonData); | ||||
} | } | ||||
/// <summary> | |||||
/// 获取表单数据 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
[AjaxOnly] | |||||
public ActionResult GetRoleData() | |||||
{ | |||||
var data = roleIBLL.GetListForSelect(); | |||||
return Success(data); | |||||
} | |||||
public ActionResult PrintInfo(string keyValue) | public ActionResult PrintInfo(string keyValue) | ||||
{ | { | ||||
@@ -6,6 +6,7 @@ using System.Collections.Generic; | |||||
using System.Linq; | using System.Linq; | ||||
using System.Web; | using System.Web; | ||||
using Learun.Application.Base.SystemModule; | using Learun.Application.Base.SystemModule; | ||||
using Learun.Application.Base.AuthorizeModule; | |||||
namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | 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 Sys_ReceiveFileIBLL sys_ReceiveFileIBLL = new Sys_ReceiveFileBLL(); | ||||
private AnnexesFileIBLL annexesFileIbll = new AnnexesFileBLL(); | private AnnexesFileIBLL annexesFileIbll = new AnnexesFileBLL(); | ||||
private UserRelationIBLL userRelationIBLL = new UserRelationBLL(); | |||||
#region 视图功能 | #region 视图功能 | ||||
@@ -184,6 +186,30 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
} | } | ||||
return Json(false, JsonRequestBehavior.AllowGet); | 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 | #endregion | ||||
#region 提交数据 | #region 提交数据 | ||||