+
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFiling.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFiling.js
index 0fb5e7356..69b68691c 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFiling.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFiling.js
@@ -111,10 +111,36 @@ var bootstrap = function ($, learun) {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/GetContractList',
headData: [
- { label: '合同编号', name: 'LC_htbh', width: 150, align: "left" },
+ { label: '申报日期', name: 'F_ModifyDate', width: 200, align: "left" },
+ //{ label: '合同编号', name: 'LC_htbh', width: 150, align: "left" },
{ label: '合同名称', name: 'LC_htmc', width: 200, align: "left" },
{ label: '合同额(万元)', name: 'LC_htzje', width: 200, align: "left" },
- { label: '申报人', name: 'F_ModifyUserName', width: 100, align: "left" },
+ {
+ label: '申报人', name: 'F_CreateUserName', width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
+ key: value,
+ keyId: 'f_userid',
+ callback: function (_data) {
+ callback(_data['f_realname']);
+ }
+ });
+ }
+ },
+ {
+ label: '授权委托人', name: 'LC_sqwtr', width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
+ key: value,
+ keyId: 'f_userid',
+ callback: function (_data) {
+ callback(_data['f_realname']);
+ }
+ });
+ }
+ },
{ label: '对方单位名称', name: 'LC_dfdw', width: 200, align: "left" },
{ label: '联系人', name: 'LC_dflxr', width: 100, align: "left" },
{ label: '联系方式', name: 'LC_dfdh', width: 120, align: "left" },
@@ -129,7 +155,6 @@ var bootstrap = function ($, learun) {
}
},
{ label: '文本盖章份数', name: 'LC_gzfs', width: 80, align: "left" },
- { label: '申报日期', name: 'F_ModifyDate', width: 200, align: "left" }
],
mainId: 'F_Id',
isPage: true,
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.cshtml
index 62ebf7269..04bec8efc 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.cshtml
@@ -7,14 +7,14 @@
+
@Html.AppendJsFile("/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.js")
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.js
index f5075048a..a1370627d 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.js
@@ -7,9 +7,10 @@
*/
var bootstrap = function ($, learun) {
"use strict";
- var categoryId = '0';
+ //var categoryId = '0';
var logbegin = '';
var logend = '';
+ var F_EnabledMark1 = '';
var page = {
init: function () {
@@ -56,7 +57,30 @@ var bootstrap = function ($, learun) {
$('#lr_eye').on('click', function () {
page.eye();
});
-
+ // 作废
+ $('#lr_del').on('click', function () {
+ var keyValue = $('#gridtable').jfGridValue('ProcessId');
+ var F_EnabledMark1 = $('#gridtable').jfGridValue('F_EnabledMark1');
+ var F_IsFinished = $('#gridtable').jfGridValue('F_IsFinished');
+ if (learun.checkrow(keyValue)) {
+ if (F_IsFinished == 1) {
+ return learun.alert.warning("选中项已结束!");
+ } else if (F_IsFinished == 0 && (F_EnabledMark1 == 4 || F_EnabledMark1 == 3)) {
+ return learun.alert.warning("选中项已作废!");
+ }
+ learun.layerConfirm('是否确认作废该项!', function (res) {
+ if (res) {
+ learun.deleteForm(top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/UpdateEnabledMark', { processId: keyValue, F_EnabledMark: 4 }, function (res) {
+ if (res.code == 200) {
+ page.refreshGirdData();
+ }
+ });
+ }
+ });
+ }
+ });
+
+
},
initleft: function () {
$('#lr_left_list li').on('click', function () {
@@ -64,7 +88,7 @@ var bootstrap = function ($, learun) {
var $parent = $this.parent();
$parent.find('.active').removeClass('active');
$this.addClass('active');
- categoryId = $this.attr('data-value');
+ F_EnabledMark1 = $this.attr('data-value');
page.search();
});
},
@@ -72,10 +96,36 @@ var bootstrap = function ($, learun) {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/GetContractList',
headData: [
- { label: '合同编号', name: 'LC_htbh', width: 150, align: "left" },
+ { label: '申报日期', name: 'F_ModifyDate', width: 200, align: "left" },
+ //{ label: '合同编号', name: 'LC_htbh', width: 150, align: "left" },
{ label: '合同名称', name: 'LC_htmc', width: 200, align: "left" },
{ label: '合同额(万元)', name: 'LC_htzje', width: 200, align: "left" },
- { label: '申报人', name: 'F_ModifyUserName', width: 100, align: "left" },
+ {
+ label: '申报人', name: 'F_CreateUserName', width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
+ key: value,
+ keyId: 'f_userid',
+ callback: function (_data) {
+ callback(_data['f_realname']);
+ }
+ });
+ }
+ },
+ {
+ label: '授权委托人', name: 'LC_sqwtr', width: 100, align: "left",
+ formatterAsync: function (callback, value, row, op, $cell) {
+ learun.clientdata.getAsync('custmerData', {
+ url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'BaseUser',
+ key: value,
+ keyId: 'f_userid',
+ callback: function (_data) {
+ callback(_data['f_realname']);
+ }
+ });
+ }
+ },
{ label: '对方单位名称', name: 'LC_dfdw', width: 200, align: "left" },
{ label: '联系人', name: 'LC_dflxr', width: 100, align: "left" },
{ label: '联系方式', name: 'LC_dfdh', width: 120, align: "left" },
@@ -90,7 +140,33 @@ var bootstrap = function ($, learun) {
}
},
{ label: '文本盖章份数', name: 'LC_gzfs', width: 80, align: "left" },
- { label: '申报日期', name: 'F_ModifyDate', width: 200, align: "left" }
+ {
+ label: '状态', name: 'F_EnabledMark1', width: 100, align: "left",
+ formatter: function (cellvalue, row) {
+ if (row.F_IsFinished == 0) {
+ if (cellvalue == 1) {
+ //if (row.F_IsUrge == "1" && categoryId == '2') {
+ // return "
催办加急";
+ //}
+ return "
运行中";
+ } else if (cellvalue == 2) {
+ return "
草稿";
+ }
+ else {
+ //4
+ return "
作废";
+ }
+ }
+ else {
+ if (cellvalue == 4) {
+ return "
终止";
+ } else {
+ return "
结束";
+ }
+ }
+
+ }
+ },
],
mainId: 'F_Id',
isPage: true,
@@ -105,7 +181,12 @@ var bootstrap = function ($, learun) {
param = param || {};
param.StartTime = logbegin;
param.EndTime = logend;
- param.F_IsFinished = categoryId;
+ param.F_IsFinished = 0;
+ if (F_EnabledMark1 == 1) {
+ param.SqlParameter = " and b.F_EnabledMark=1";
+ } else if (F_EnabledMark1 == 4) {
+ param.SqlParameter = " and (b.F_EnabledMark<>1 and b.F_EnabledMark<>2)";
+ }
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
},
eye: function () {
@@ -115,6 +196,9 @@ var bootstrap = function ($, learun) {
if (learun.checkrow(processId)) {
learun.frameTab.open({ F_ModuleId: 'monitor' + processId, F_FullName: '查看-' + title, F_UrlAddress: '/LR_NewWorkFlow/NWFProcess/MonitorDetailsIndex?processId=' + processId });
}
+ },
+ refreshGirdData: function () {
+ page.search();
}
};
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorDetailsIndex.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorDetailsIndex.cshtml
index a755cca1a..178caea77 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorDetailsIndex.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/MonitorDetailsIndex.cshtml
@@ -15,9 +15,9 @@
流程信息