瀏覽代碼

公文收发按角色处理

临城职教中职
ndbs 2 年之前
父節點
當前提交
9173014bec
共有 2 個檔案被更改,包括 50 行新增1 行删除
  1. +24
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Sys_ReceiveDocumentController.cs
  2. +26
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Sys_ReceiveFileController.cs

+ 24
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Sys_ReceiveDocumentController.cs 查看文件

@@ -4,6 +4,7 @@ using Learun.Application.TwoDevelopment.EducationalAdministration;
using System.Web.Mvc;
using System.Collections.Generic;
using System.Linq;
using Learun.Application.Organization;

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_ReceiveFileIBLL receiveFileIbll=new Sys_ReceiveFileBLL();
private RoleIBLL roleIBLL = new RoleBLL();

#region 视图功能

@@ -88,6 +90,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
return View();
}
/// <summary>
/// 阅读详情
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult RoleForm()
{
return View();
}

#endregion

#region 获取数据
@@ -154,7 +167,17 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
return Success(jsonData);
}


/// <summary>
/// 获取表单数据
/// <summary>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetRoleData()
{
var data = roleIBLL.GetListForSelect();
return Success(data);
}

public ActionResult PrintInfo(string keyValue)
{


+ 26
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/Sys_ReceiveFileController.cs 查看文件

@@ -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 提交数据


Loading…
取消
儲存