Преглед на файлове

流程任务和流程监控模块,增加了当前节点办理人列。

西昌缴费二期
liangkun преди 2 години
родител
ревизия
9c090666aa
променени са 3 файла, в които са добавени 60 реда и са изтрити 4 реда
  1. +34
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs
  2. +13
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/Index.js
  3. +13
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndex.js

+ 34
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs Целия файл

@@ -294,8 +294,8 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers

public ActionResult GetFirstTaskByProcessId(string processId)
{
var taskId= nWFProcessIBLL.GetFirstTaskByProcessId(processId);
return Success(new {taskId});
var taskId = nWFProcessIBLL.GetFirstTaskByProcessId(processId);
return Success(new { taskId });
}
/// <summary>
/// 获取我的流程信息列表
@@ -860,5 +860,37 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers
return Success("添加成功");
}
#endregion

[HttpGet]
public ActionResult GetNextUser(string F_TaskId)
{
List<string> usernamelist = new List<string>();
List<string> nextlist = nWFTaskIBLL.GetTaskUserList(F_TaskId).Select(m => m.F_UserId).ToList();
foreach (var uid in nextlist)
{
usernamelist.Add(userIbll.GetEntityByUserId(uid)?.F_RealName);
}
return SuccessString(string.Join(",", usernamelist));
}

[HttpGet]
public ActionResult GetNextUserMonitor(string F_ProcessId)
{
var tasklist=nWFTaskIBLL.GetUnFinishTaskList(F_ProcessId).FirstOrDefault();
if (tasklist!=null&&!string.IsNullOrEmpty(tasklist.F_Id))
{
List<string> usernamelist = new List<string>();
List<string> nextlist = nWFTaskIBLL.GetTaskUserList(tasklist.F_Id).Select(m => m.F_UserId).ToList();
foreach (var uid in nextlist)
{
usernamelist.Add(userIbll.GetEntityByUserId(uid)?.F_RealName);
}
return SuccessString(string.Join(",", usernamelist));
}
else
{
return SuccessString("");
}
}
}
}

+ 13
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/Index.js Целия файл

@@ -116,7 +116,7 @@ var bootstrap = function ($, learun) {
});
},
initGrid: function () {
$('#gridtable').lrAuthorizeJfGrid({
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/GetTaskPageList',
headData: [
{
@@ -290,6 +290,18 @@ var bootstrap = function ($, learun) {
}
}
},
{
label: "当前节点办理人", name: "F_Id", width: 300, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
if (row.F_TaskId) {
learun.httpAsyncGet(top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/GetNextUser?F_TaskId=' + row.F_TaskId, function (res) {
if (res.code == learun.httpCode.success) {
callback(res.data);
}
});
} else
callback("");
}
},
//{
// label: "等级", name: "F_Level", width: 60, align: "center",
// formatter: function (cellvalue) {


+ 13
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndex.js Целия файл

@@ -121,7 +121,7 @@ var bootstrap = function ($, learun) {
});
},
initGrid: function () {
$('#gridtable').lrAuthorizeJfGrid({
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/GetPorcessList',
headData: [
{
@@ -174,6 +174,18 @@ var bootstrap = function ($, learun) {

}
},
{
label: "当前节点办理人", name: "F_Id", width: 300, align: "left", formatterAsync: function (callback, value, row, op, $cell) {
if (row.F_Id) {
learun.httpAsyncGet(top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/GetNextUserMonitor?F_ProcessId=' + row.F_Id, function (res) {
if (res.code == learun.httpCode.success) {
callback(res.data);
}
});
} else
callback("");
}
},
{ label: "发起者", name: "F_CreateUserName", width: 80, align: "center" },
{
label: "时间", name: "F_CreateDate", width: 150, align: "left",


Зареждане…
Отказ
Запис