Browse Source

新增流程监控统计页面

新疆影视学院高职
zhangli 2 years ago
parent
commit
11e11b9726
4 changed files with 308 additions and 0 deletions
  1. +10
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs
  2. +54
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndexStatistics.cshtml
  3. +242
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndexStatistics.js
  4. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj

+ 10
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs View File

@@ -161,6 +161,16 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers
{
return View();
}

/// <summary>
/// 流程监控统计
/// </summary>
/// <returns></returns>
[HttpGet]
public ActionResult MonitorIndexStatistics()
{
return View();
}
/// <summary>
/// 合同归档
/// </summary>


+ 54
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndexStatistics.cshtml View File

@@ -0,0 +1,54 @@
@{
ViewBag.Title = "流程监控";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div id="lr_layout" class="lr-layout lr-layout-left-center">
<div class="lr-layout-left">
<div class="lr-layout-wrap lr-layout-wrap-notitle" style="padding-top:10px;">
<div class="lr-layout-body">
<ul class="lr-left-list" id="lr_left_list">
<li class="active lrlg" data-value="1">未完成</li>
<li data-value="2" class="lrlg">已完成</li>
</ul>
</div>
</div>
</div>
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="datesearch"></div>
</div>
<div class="lr-layout-tool-item">
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" />
</div>
<div class="lr-layout-tool-item">
<div id="F_EnabledMark" style="width: 100px;"></div>
</div>
<div class="lr-layout-tool-item">
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i>&nbsp;<span class="lrlg">查询</span></a>
</div>
</div>
<div class="lr-layout-tool-right">
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" learun-authorize="yes">
<a id="lr_eye" class="btn btn-default"><i class="fa fa-eye"></i>&nbsp;<span class="lrlg">查看</span></a>
<a id="lr_statistics" class="btn btn-default"><i class="fa fa-magic"></i>&nbsp;<span class="lrlg">统计</span></a>
</div>
</div>
</div>

<div class="lr-layout-body" id="gridtable">
</div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndexStatistics.js")






+ 242
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorIndexStatistics.js View File

@@ -0,0 +1,242 @@
/*
* 版 本 Learun-ADMS V7.0.3 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2018 上海力软信息技术有限公司
* 创建人:力软-前端开发组
* 日 期:2018.12.19
* 描 述:流程监控
*/
var bootstrap = function ($, learun) {
"use strict";
var categoryId = '1';
var logbegin = '';
var logend = '';

var page = {
init: function () {
$('#lr_verify').hide();
page.initleft();
page.initGrid();
page.bind();
},
bind: function () {
$('#datesearch').lrdate({
dfdata: [
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } },
],
// 月
mShow: false,
premShow: false,
// 季度
jShow: false,
prejShow: false,
// 年
ysShow: false,
yxShow: false,
preyShow: false,
yShow: false,
selectfn: function (begin, end) {
logbegin = begin;
logend = end;
page.search();
}
});
$('#F_EnabledMark').lrselect({
placeholder: '请选择状态',
data: [{ id: '1', text: '运行中' }, { id: '2', text: '作废' }, { id: '3', text: '结束' }],
value: "id",
text: "text"
});

// 查询
$('#btn_Search').on('click', function () {
var keyword = $('#txt_Keyword').val();
page.search({ keyword: keyword, F_EnabledMark: $('#F_EnabledMark').lrselectGet() });
});
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 查看
$('#lr_eye').on('click', function () {
page.eye();
});
// 指定审核人
$('#lr_appoint').on('click', function () {
var processId = $('#gridtable').jfGridValue('F_Id');
if (learun.checkrow(processId)) {
learun.layerForm({
id: 'AppointForm',
title: '指派审核人',
url: top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/AppointForm?processId=' + processId,
height: 500,
width: 600,
callBack: function (id) {
return top[id].acceptClick();
}
});
}
});
// 作废
$('#lr_cancel').on('click', function () {
var processId = $('#gridtable').jfGridValue('F_Id') || '';
if (learun.checkrow(processId)) {
learun.layerConfirm('是否确认作废此流程进程?', function (res, _index) {
if (res) {
learun.loading(true, '作废流程中...');
var postData = {
processId: processId,
};
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/DeleteFlow', postData, function (data) {
learun.loading(false);
page.search();
});
top.layer.close(_index);
}
});
}
});
// 添加审核节点
$('#lr_add').on('click', function () {
var processId = $('#gridtable').jfGridValue('F_Id') || '';
if (learun.checkrow(processId)) {
learun.layerForm({
id: 'AppointForm',
title: '添加审核节点',
url: top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/AddTaskForm?processId=' + processId,
height: 500,
width: 800,
callBack: function (id) {
return top[id].acceptClick(function () {
$('#gridtable').jfGridSet('reload');
});
}
});
}
});
},
initleft: function () {
$('#lr_left_list li').on('click', function () {
var $this = $(this);
var $parent = $this.parent();
$parent.find('.active').removeClass('active');
$this.addClass('active');
categoryId = $this.attr('data-value');
$('#F_EnabledMark').lrselectSet('');
page.search();
});
},
initGrid: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/GetPorcessList',
headData: [
{
label: "标题", name: "F_Title", width: 300, align: "left", formatter: function (cellvalue, row) {
if (row.F_SchemeName != row.F_Title && row.F_Title) {
return row.F_SchemeName + "(" + row.F_Title + ")";
}
else {
return row.F_SchemeName;
}
}
},
//{
// label: "等级", name: "F_Level", width: 60, align: "center",
// formatter: function (cellvalue) {
// switch (cellvalue) {
// case 0:
// return '普通';
// break;
// case 1:
// return '重要';
// break;
// case 2:
// return '紧急';
// break;
// default:
// return '普通';
// break;
// }
// }
//},
{
label: "状态", name: "F_EnabledMark", width: 70, align: "center",
formatter: function (cellvalue, row) {
if (row.F_IsFinished == 0) {
if (cellvalue == 1) {
if (row.F_IsUrge == "1" && categoryId == '2') {
return "<span class=\"label label-danger\">催办加急</span>";
}
return "<span class=\"label label-success\">运行中</span>";
} else if (cellvalue == 2) {
return "<span class=\"label label-primary\">草稿</span>";
} else {
return "<span class=\"label label-danger\">作废</span>";
}
}
else {
return "<span class=\"label label-warning\">结束</span>";
}

}
},
{
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",
formatter: function (cellvalue) {
return learun.formatDate(cellvalue, 'yyyy-MM-dd hh:mm:ss');
}
}
],
mainId: 'F_Id',
isPage: true,
sidx: 'F_CreateDate DESC',
dblclick: function () {
page.eye();
}
});
page.search();
},
search: function (param) {
param = param || {};
param.StartTime = logbegin;
param.EndTime = logend;
param.categoryId = categoryId;
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
},
eye: function () {
var processId = $('#gridtable').jfGridValue('F_Id') || '';
var title = $('#gridtable').jfGridValue('F_Title');
var schemeName = $('#gridtable').jfGridValue('F_SchemeName');

if (schemeName != title && title) {
title = schemeName + "(" + title + ")";
}
else {
title = schemeName;
}

if (learun.checkrow(processId)) {
learun.frameTab.open({ F_ModuleId: 'monitor' + processId, F_FullName: '查看-' + title, F_UrlAddress: '/LR_NewWorkFlow/NWFProcess/MonitorDetailsIndex?processId=' + processId });
}
}
};

page.init();
}



+ 2
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj View File

@@ -1503,6 +1503,7 @@
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\AddTaskForm.js" />
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\htPrint.css" />
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\ContractFiling.js" />
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\MonitorIndexStatistics.js" />
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\MonitorIndexOfdwhsq.js" />
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\MonitorIndexOfmeeting.js" />
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\MonitorIndexOfyyspd.js" />
@@ -7993,6 +7994,7 @@
<Content Include="Areas\EducationalAdministration\Views\MealCardRunTab\Form.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\MealCardRunTab\Index.cshtml" />
<Content Include="Areas\EducationalAdministration\Views\StuSubsidize\FormView.cshtml" />
<Content Include="Areas\LR_NewWorkFlow\Views\NWFProcess\MonitorIndexStatistics.cshtml" />
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" />
<None Include="Properties\PublishProfiles\FolderProfile.pubxml" />
<Content Include="Views\Login\Default-beifen.cshtml" />


Loading…
Cancel
Save