diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssScrap/Form.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssScrap/Form.js index 714b1e5ad..d174c8384 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssScrap/Form.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssScrap/Form.js @@ -29,126 +29,28 @@ var bootstrap = function ($, learun) { $('.lr-form-wrap').lrscroll(); - $("#detailadd").on('click', function () { - $('#detailaddbutton').trigger('click'); - }); - $("#detailaddbutton").lrlayerselect({ - treeUrl: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsType/GetAllTree', - treeParentId: 'atptid', - treeValueId: 'atid', - treeTextId: 'aname', - dataUrl: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoItem/GetList', - dataTreeId: 'ATId', - dataValueId: 'aiid', - dataTextId: 'aname', - - grid: [ - { label: '资产编号', name: 'aicodenumjy', width: 150, align: 'left' }, - { label: '资产名称', name: 'aname', width: 150, align: 'left' }, - { label: "英文名称", name: "aename", width: 100, align: "left" }, - { - label: '楼宇名称', name: 'aiistorageid', width: 100, align: 'left', formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('custmerData', { - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_StorageData', - key: value, - keyId: 'sid', - callback: function (_data) { - callback(_data['sname']); - } - }); - } - }, - { - label: "房间号", name: "aiistorageposition", width: 150, align: "left", - formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('custmerData', { - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_Storage_Room', - key: value, - keyId: 'rid', - callback: function (_data) { - callback(_data['rcode']); - } - }); - } - }, - { - label: '是否在库', name: 'aiisinstorage', width: 150, align: 'left', formatter: function (val, row) { - if (val) { - return '在库'; - } else { - return '否'; - } - } - }, - { label: "资产型号", name: "amodel", width: 150, align: "left" }, - { label: "生产厂家", name: "amanufacturer", width: 150, align: "left" }, - { - label: "供应商", name: "asupplierid", width: 100, align: "left", formatterAsync: function (callback, value, row, op, $cell) { - learun.clientdata.getAsync('custmerData', { - url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'Ass_SupplierData', - key: value, - keyId: 'sid', - callback: function (_data) { - callback(_data['sname']); - } - }); - } - } - ], - select: function (values, texts) { - if (values && values.length > 0) { - //绑定 - $.lrSetForm(top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoItem/GetDatas?keyValue=' + values, function (data) { - if (data) { - - $.each(data, function (i, item) { - - var ifnewrow = true; - $.each(tempdatra, function (key, val) { - if (tempdatra[key].AAIAId === item.AAIAId) { - ifnewrow = false; - } - }); - if (ifnewrow) { - tempdatra.push(item); - } - }) - $('#Ass_ScrapItem').jfGridSet('refreshdata', tempdatra.sort(sortNumber)); - } - - }); - - + selectedRow = null; + learun.layerFormForPercent({ + id: 'formitem', + title: '新增明细', + url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfoItem/IndexTwo', + width: "90%", + height: "90%", + callBack: function (id) { + return top[id].acceptClick(refreshGirdData); } - }, - isMultiple: true - }); - $("#detailedit").on('click', function () { - //Ass_ScrapItem - var keyValue = $('#Ass_ScrapItem').jfGridValue('AAIId'); - selectedRow = $('#Ass_ScrapItem').jfGridGet('rowdata'); - if (learun.checkrow(keyValue)) { - learun.layerForm({ - id: 'formitem', - title: '编辑明细', - url: top.$.rootUrl + '/AssetManagementSystem/Ass_ScrapItem/Form?keyValue=' + keyValue, - width: 860, - height: 600, - callBack: function (id) { - return top[id].acceptClick(refreshGirdData); - } - }); - } + }); }); + $("#detaildel").on('click', function () { var keyValue = $('#Ass_ScrapItem').jfGridValue('AAIId'); if (learun.checkrow(keyValue)) { learun.layerConfirm('是否确认删除该项!', function (res, index) { if (res) { $.each(tempdatra, function (key, val) { - if (tempdatra[key].AAIId === keyValue) { - pricecount -= tempdatra[key].AAIPrice * tempdatra[key].AAIStock; + if (tempdatra[key] && tempdatra[key].AAIId == keyValue) { + //pricecount -= tempdatra[key].AAIPrice * tempdatra[key].AAIStock; tempdatra.splice(key, 1); } }); @@ -253,19 +155,54 @@ var bootstrap = function ($, learun) { refreshGirdData = function (temprow) { var ifnewrow = true; - $.each(tempdatra, function (key, val) { - if (tempdatra[key].AAIId === temprow.AAIId) { - tempdatra[key] = temprow; - ifnewrow = false; - } - }); - if (ifnewrow) { - tempdatra.push(temprow); - } + var list = []; + $.each(temprow, + function (i, item) { + var entity = { + //AAICode: item.AICode, + AAICode: item.AICodeNumJY, + AAIName: item.AIASSName, + AAITId: item.AIASSClass, + AAIPrice: item.AIAssValue, + AAIUnit: item.AIUnits, + AAIEName: '', + AAIModel: item.AISpecificationtype, + AAIManufacturer: item.AIManufacturer, + AAIStorage: item.AIIStorageId, + AAILocation: item.AIIStoragePosition, + AAIId: learun.newGuid() + } + list.push(entity); + + }); + + $.each(list, + function (j, item2) { + $.each(tempdatra, + function (key, val) { + if (tempdatra[key].AAICode === item2.AAICode) { + tempdatra[key] = item2; + ifnewrow = false; + } + }); + if (ifnewrow) { + tempdatra.push(item2); + } + }); + //var ifnewrow = true; + //$.each(tempdatra, function (key, val) { + // if (tempdatra[key].AAIId === temprow.AAIId) { + // tempdatra[key] = temprow; + // ifnewrow = false; + // } + //}); + //if (ifnewrow) { + // tempdatra.push(temprow); + //} $('#Ass_ScrapItem').jfGridSet('refreshdata', tempdatra.sort(sortNumber)); }; function sortNumber(a, b) { - return a.AAIOrder - b.AAIOrder; + return 1; //a.AAIOrder - b.AAIOrder; } // 设置表单数据 setFormData = function (processId) { 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 @@
上级*
-
  +
 
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/FormulaMain/FormChild.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/FormulaMain/FormChild.js index 709874975..0c8ebdf38 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/FormulaMain/FormChild.js +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/FormulaMain/FormChild.js @@ -17,7 +17,13 @@ var bootstrap = function ($, learun) { page.addcontent(); }, bind: function () { - $('#MainId').lrDataSourceSelect({ code: 'FormulaMain', value: 'id', text: 'name' }); + $('#MainId').lrselect({ + allowSearch: true, + url: top.$.rootUrl + '/LR_Desktop/FormulaMain/GetList', + value: "Id", + text: "Name" + }); + //$('#MainId').lrDataSourceSelect({ code: 'FormulaMain', value: 'id', text: 'name' }); $('#ProjectId').lrDataSourceSelect({ code: 'CalculateProject', value: 'id', text: 'name' }); $('#MainId').lrselectSet(keyValue); // 新增 diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs index 6f111c79a..eadb7a07e 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs @@ -514,7 +514,18 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers nWFProcessIBLL.DeleteEntity(processId); return Success("删除成功"); } - + /// + /// 流程合同监控--作废 + /// + /// 流程进程主键 + [HttpPost] + [AjaxOnly] + public ActionResult UpdateEnabledMark(string processId,string EnabledMark) + { + nWFProcessIBLL.UpdateEnabledMark(processId, EnabledMark); + return Success("操作成功"); + } + /// /// 普通教师请假归档 /// 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 f269cf037..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 @@ -2,9 +2,19 @@ ViewBag.Title = "流程监控"; Layout = "~/Views/Shared/_Index.cshtml"; } -
+
+
+
+
+
    +
  • 运行中
  • +
  • 作废
  • +
+
+
+
-
+
@@ -23,10 +33,13 @@
-
+ +
+
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_Desktop/FormulaMain/FormulaMainBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainBLL.cs index 7feea17d1..b131aab2b 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainBLL.cs @@ -43,6 +43,32 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop } } + + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// + public IEnumerable GetList(string queryJson) + { + try + { + return formulaMainService.GetList(queryJson); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } + + /// /// 获取FormulaMain表实体数据 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainIBLL.cs index 1db22744a..1a2db67b7 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainIBLL.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainIBLL.cs @@ -21,6 +21,7 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop /// 查询参数 /// IEnumerable GetPageList(Pagination pagination, string queryJson); + IEnumerable GetList(string queryJson); /// /// 获取FormulaMain表实体数据 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainService.cs index e8811eb6e..fd90aa830 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainService.cs @@ -65,6 +65,45 @@ t.[Result] } } + /// + /// 获取页面显示列表数据 + /// + /// 查询参数 + /// + public IEnumerable GetList(string queryJson) + { + try + { + var strSql = new StringBuilder(); + strSql.Append("SELECT "); + strSql.Append(@" + t.Id, + t.Name + "); + strSql.Append(" FROM FormulaMain t "); + strSql.Append(" WHERE 1=1 "); + var queryParam = queryJson.ToJObject(); + // 虚拟参数 + var dp = new DynamicParameters(new { }); + if (!queryParam["Name"].IsEmpty()) + { + dp.Add("Name", "%" + queryParam["Name"].ToString() + "%", DbType.String); + strSql.Append(" AND t.Name Like @Name "); + } + return this.BaseRepository("CollegeMIS").FindList(strSql.ToString(), dp); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } /// /// 获取FormulaMain表实体数据 /// 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); + } + } + } + /// /// 删除流程进程所有信息(流程撤销) ///