+
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 1d482a905..c331bb20e 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
@@ -10,11 +10,12 @@ var bootstrap = function ($, learun) {
//var categoryId = '0';
var logbegin = '';
var logend = '';
+ var F_EnabledMark1 = '';
var page = {
init: function () {
$('#lr_verify').hide();
- //page.initleft();
+ page.initleft();
page.initGrid();
page.bind();
},
@@ -56,27 +57,64 @@ 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 () {
+ var $this = $(this);
+ var $parent = $this.parent();
+ $parent.find('.active').removeClass('active');
+ $this.addClass('active');
+ F_EnabledMark1 = $this.attr('data-value');
+ page.search();
+ });
},
- //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');
- // page.search();
- // });
- //},
initGrid: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/GetContractList',
headData: [
+ { 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_CreateUserName', 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',
@@ -102,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,
@@ -118,6 +182,11 @@ var bootstrap = function ($, learun) {
param.StartTime = logbegin;
param.EndTime = logend;
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 () {
@@ -127,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.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongEntity.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongEntity.cs
index f3449c94b..62c0be5d0 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongEntity.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongEntity.cs
@@ -11,7 +11,7 @@ namespace Learun.Application.TwoDevelopment.LR_LGManager
/// 日 期:2020-05-07 14:26
/// 描 述:流程合同
///
- public class LC_hetongEntity
+ public class LC_hetongEntity
{
#region 实体成员
///
@@ -231,6 +231,13 @@ namespace Learun.Application.TwoDevelopment.LR_LGManager
this.F_ModifyUserName = userInfo.realName;
}
#endregion
+
+ [NotMapped]
+ public string ProcessId { get; set; }
+ [NotMapped]
+ public string F_EnabledMark1 { get; set; }
+ [NotMapped]
+ public string F_IsFinished { get; set; }
}
}
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongService.cs
index 7b6696f72..874281ba0 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongService.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongService.cs
@@ -109,7 +109,7 @@ namespace Learun.Application.TwoDevelopment.LR_LGManager
try
{
var strSql = new StringBuilder();
- strSql.Append("SELECT t.* ");
+ strSql.Append("SELECT b.F_Id as ProcessId, b.F_EnabledMark as F_EnabledMark1,b.F_IsFinished,t.* ");
strSql.Append(" FROM LC_hetong t left join adms7ultimate2.dbo.LR_NWF_Process b on t.lc_id=b.f_id where b.F_EnabledMark!=2 and F_IsChild=0 ");
var queryParam = queryJson.ToJObject();
// 虚拟参数
@@ -119,6 +119,10 @@ namespace Learun.Application.TwoDevelopment.LR_LGManager
dp.Add("F_IsFinished", queryParam["F_IsFinished"].ToString(), DbType.String);
strSql.Append(" and b.F_IsFinished=@F_IsFinished ");
}
+ if (!queryParam["SqlParameter"].IsEmpty())
+ {
+ strSql.Append(queryParam["SqlParameter"].ToString());
+ }
if (!queryParam["StartTime"].IsEmpty() && !queryParam["EndTime"].IsEmpty())
{
dp.Add("startTime", queryParam["StartTime"].ToDate(), DbType.DateTime);
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessBLL.cs
index bd0438667..db7e380a1 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessBLL.cs
@@ -191,6 +191,14 @@ namespace Learun.Application.WorkFlow
{
nWFProcessSerive.DeleteEntity(processId);
}
+ ///
+ /// 作废
+ ///
+ /// 流程进程主键
+ public void UpdateEnabledMark(string processId, string EnabledMark)
+ {
+ nWFProcessSerive.UpdateEnabledMark(processId, EnabledMark);
+ }
#endregion
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessIBLL.cs
index b418c6504..94ec17b43 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessIBLL.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessIBLL.cs
@@ -112,6 +112,12 @@ namespace Learun.Application.WorkFlow
///
///
流程进程主键
void DeleteEntity(string processId);
+ ///
+ /// 作废
+ ///
+ ///
+ ///
+ void UpdateEnabledMark(string processId, string EnabledMark);
#endregion
#region 流程API
diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessSerivce.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessSerivce.cs
index d82a6d35a..efcb5f39b 100644
--- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessSerivce.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessSerivce.cs
@@ -1452,6 +1452,32 @@ namespace Learun.Application.WorkFlow
}
}
+ ///
+ ///
+ ///
+ ///
+ ///
+ public void UpdateEnabledMark(string processId, string EnabledMark)
+ {
+ try
+ {
+ var entity= this.BaseRepository().FindEntity
(t => t.F_Id == processId);
+ entity.F_EnabledMark =Convert.ToInt32(EnabledMark) ;
+ this.BaseRepository().Update(entity);
+ }
+ catch (Exception ex)
+ {
+ if (ex is ExceptionEx)
+ {
+ throw;
+ }
+ else
+ {
+ throw ExceptionEx.ThrowServiceException(ex);
+ }
+ }
+ }
+
///
/// 删除流程进程所有信息(流程撤销)
///
From 106b25925a70722cb1cc536b5c5d3e2a14888e02 Mon Sep 17 00:00:00 2001
From: zhangli <1109134334@qq.com>
Date: Mon, 12 Jul 2021 16:20:43 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E5=85=AC=E5=BC=8F?=
=?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=85=AC=E5=BC=8F=E4=B8=8B=E6=8B=89=E6=A1=86?=
=?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=BA=E5=8A=A8=E6=80=81=E5=8F=96=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Controllers/FormulaMainController.cs | 14 ++++++-
.../Views/FormulaMain/FormChild.cshtml | 2 +-
.../LR_Desktop/Views/FormulaMain/FormChild.js | 8 +++-
.../LR_Desktop/FormulaMain/FormulaMainBLL.cs | 26 +++++++++++++
.../LR_Desktop/FormulaMain/FormulaMainIBLL.cs | 1 +
.../FormulaMain/FormulaMainService.cs | 39 +++++++++++++++++++
6 files changed, 87 insertions(+), 3 deletions(-)
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/FormulaMainController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/FormulaMainController.cs
index 3d6c89fa6..0fa6e0701 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/FormulaMainController.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/FormulaMainController.cs
@@ -73,6 +73,19 @@ namespace Learun.Application.Web.Areas.LR_Desktop.Controllers
};
return Success(jsonData);
}
+
+ ///
+ /// 获取
+ ///
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetList(string queryJson)
+ {
+ var list = formulaMainIBLL.GetList(queryJson);
+
+ return Success(list);
+ }
///
/// 获取表单数据
///
@@ -113,7 +126,6 @@ namespace Learun.Application.Web.Areas.LR_Desktop.Controllers
return Success(list);
}
-
#endregion
#region 提交数据
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/FormulaMain/FormChild.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/FormulaMain/FormChild.cshtml
index cdc0336f5..54c3d5763 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/FormulaMain/FormChild.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/FormulaMain/FormChild.cshtml
@@ -5,7 +5,7 @@