@@ -4,6 +4,7 @@ using Learun.Application.TwoDevelopment.AssetManagementSystem; | |||
using System.Web.Mvc; | |||
using System.Collections.Generic; | |||
using System; | |||
using System.Text; | |||
namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers | |||
{ | |||
@@ -156,6 +157,15 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers | |||
entity.PStatus = 0; | |||
entity.PACreateTime = DateTime.Now; | |||
List<Ass_PurchaseItemApplyEntity> ass_PurchaseItemApplyList = strass_PurchaseItemApplyList.ToObject<List<Ass_PurchaseItemApplyEntity>>(); | |||
StringBuilder nameOfCollection=new StringBuilder(); | |||
//将所有名字的名字集中到一个字段中, 方便查询 | |||
foreach (var item in ass_PurchaseItemApplyList) | |||
{ | |||
nameOfCollection.Append(item.PAIName); | |||
} | |||
entity.NameOfCollection = nameOfCollection.ToString(); | |||
ass_PurchaseApplyIBLL.SaveEntity(keyValue, entity, ass_PurchaseItemApplyList); | |||
return Success("保存成功!"); | |||
} | |||
@@ -24,7 +24,7 @@ | |||
<div id="PAssType" isvalid="yes" checkexpession="NotNull" ></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_PurchaseApply"> | |||
<div class="lr-form-item-title">总金额</div> | |||
<div class="lr-form-item-title">总预算</div> | |||
<input id="PAPrice" type="text" class="form-control" readonly="readonly" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_PurchaseApply"> | |||
@@ -96,14 +96,14 @@ var bootstrap = function ($, learun) { | |||
$('#Ass_PurchaseItemApply').jfGrid({ | |||
headData: [ | |||
{ | |||
label: '资产名称', name: 'PAIName', width:100, align: 'left' | |||
}, | |||
{ | |||
label: '英文名称', name: 'PAIEName', width:100, align: 'left' | |||
}, | |||
{ | |||
label: '资产型号', name: 'PAIModel', width:100, align: 'left' | |||
label: '资产名称', name: 'PAIName', width: 100, align: 'left' | |||
}, | |||
//{ | |||
// label: '英文名称', name: 'PAIEName', width:100, align: 'left' | |||
//}, | |||
//{ | |||
// label: '资产型号', name: 'PAIModel', width:100, align: 'left' | |||
//}, | |||
{ | |||
label: '资产类别', name: 'PAITId', width: 100, align: 'left', | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
@@ -117,31 +117,44 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}, | |||
//{ | |||
// label: '供应商', name: 'PAISId', 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']); | |||
// } | |||
// }); | |||
// } | |||
//}, | |||
{ | |||
label: '供应商', name: 'PAISId', 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']); | |||
} | |||
}); | |||
} | |||
label: '预算单价', name: 'PAIPrice', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '单价', name: 'PAIPrice', width: 100, align: 'left' | |||
label: '数量', name: 'PAIAmount', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '数量', name: 'PAIAmount', width: 100, align: 'left' | |||
label: '总价', name: 'PAIAmount', width: 100, align: 'left', formatter: function (val, row) { | |||
console.log(val); | |||
console.log(row); | |||
} | |||
}, | |||
{ | |||
label: '要求', name: 'PAIRequest', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '生产厂家', name: 'PAIManufacturer', width:100, align: 'left' | |||
label: '用途', name: 'PAIUse', width: 150, align: 'left' | |||
}, | |||
//{ | |||
// label: '生产厂家', name: 'PAIManufacturer', width:100, align: 'left' | |||
//}, | |||
], | |||
height: 270, | |||
mainId:'PAIId' | |||
mainId: 'PAIId' | |||
}); | |||
}, | |||
initData: function () { | |||
@@ -190,18 +203,18 @@ var bootstrap = function ($, learun) { | |||
$.lrSetForm(top.$.rootUrl + '/AssetManagementSystem/Ass_PurchaseApply/GetFormDataByProcessId?processId=' + processId, function (data) { | |||
for (var id in data) { | |||
if (!!data[id] && data[id].length > 0) { | |||
$('#' + id ).jfGridSet('refreshdata', data[id]); | |||
} | |||
else { | |||
if(id == 'Ass_PurchaseApply'){ | |||
$('#' + id).jfGridSet('refreshdata', data[id]); | |||
} | |||
else { | |||
if (id == 'Ass_PurchaseApply') { | |||
keyValue = data[id].PAId; | |||
} | |||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||
} | |||
$('[data-table="' + id + '"]').lrSetFormData(data[id]); | |||
} | |||
}); | |||
} | |||
} | |||
}); | |||
} | |||
} | |||
// 验证数据是否填写完整 | |||
validForm = function () { | |||
if (!$('.lr-form-wrap').lrValidform()) { | |||
@@ -218,8 +231,8 @@ var bootstrap = function ($, learun) { | |||
save = function (processId, callBack, i) { | |||
var postData = {}; | |||
var formData = $('[data-table="Ass_PurchaseApply"]').lrGetFormData(); | |||
if(!!processId){ | |||
formData.PAProcessId =processId; | |||
if (!!processId) { | |||
formData.PAProcessId = processId; | |||
} | |||
postData.strEntity = JSON.stringify(formData); | |||
postData.strass_PurchaseItemApplyList = JSON.stringify($('#Ass_PurchaseItemApply').jfGridGet('rowdatas')); | |||
@@ -24,7 +24,7 @@ | |||
<div id="PAssType" isvalid="yes" checkexpession="NotNull" readonly="readonly"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_PurchaseApply"> | |||
<div class="lr-form-item-title">总金额</div> | |||
<div class="lr-form-item-title">总预算</div> | |||
<input id="PAPrice" type="text" class="form-control" readonly="readonly" /> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_PurchaseApply"> | |||
@@ -93,12 +93,12 @@ var bootstrap = function ($, learun) { | |||
{ | |||
label: '资产名称', name: 'PAIName', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '英文名称', name: 'PAIEName', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '资产型号', name: 'PAIModel', width: 100, align: 'left' | |||
}, | |||
//{ | |||
// label: '英文名称', name: 'PAIEName', width:100, align: 'left' | |||
//}, | |||
//{ | |||
// label: '资产型号', name: 'PAIModel', width:100, align: 'left' | |||
//}, | |||
{ | |||
label: '资产类别', name: 'PAITId', width: 100, align: 'left', | |||
formatterAsync: function (callback, value, row, op, $cell) { | |||
@@ -112,24 +112,41 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}, | |||
//{ | |||
// label: '供应商', name: 'PAISId', 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']); | |||
// } | |||
// }); | |||
// } | |||
//}, | |||
{ | |||
label: '单价', name: 'PAIPrice', width: 100, align: 'left' | |||
label: '预算', name: 'PAIPrice', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '数量', name: 'PAIAmount', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '生产厂家', name: 'PAIManufacturer', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '资产要求', name: 'PAIRequest', width: 100, align: 'left' | |||
label: '总价', name: 'PAIAmount', width: 100, align: 'left', formatter: function (val, row) { | |||
return row.PAIPrice * row.PAIAmount; | |||
} | |||
}, | |||
{ | |||
label: '用途', name: 'PAIUse', width: 100, align: 'left' | |||
label: '要求', name: 'PAIRequest', width: 100, align: 'left' | |||
}, | |||
{ | |||
label: '资产描述', name: 'PAIContent', width: 100, align: 'left' | |||
label: '用途', name: 'PAIUse', width: 150, align: 'left' | |||
}, | |||
//{ | |||
// label: '生产厂家', name: 'PAIManufacturer', width:100, align: 'left' | |||
//}, | |||
], | |||
height: 270, | |||
mainId: 'PAIId' | |||
@@ -25,6 +25,10 @@ | |||
<div class="lr-form-item-title">申请单号</div> | |||
<input type="text" class="form-control" id="PACode" /> | |||
</div> | |||
<div class="col-xs-12 lr-form-item"> | |||
<div class="lr-form-item-title">申请物品</div> | |||
<input type="text" class="form-control" id="NameOfCollection" /> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
@@ -41,6 +45,7 @@ | |||
<div class=" btn-group btn-group-sm" learun-authorize="yes"> | |||
<a id="lr_submit" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||
<a id="lr_view" class="btn btn-default"><i class="fa fa-search"></i> 查看</a> | |||
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i> 查看流程</a> | |||
</div> | |||
</div> | |||
</div> | |||
@@ -151,7 +151,7 @@ var bootstrap = function ($, learun) { | |||
learun.layerConfirm('是否确认提交该项!', function (res) { | |||
if (res) { | |||
processId = learun.newGuid(); | |||
learun.postForm(top.$.rootUrl + '/AssetManagementSystem/Ass_PurchaseApply/ModifyPAStatus', { keyValue: keyValue, pastatus: 1 ,processId:processId}, function (res) { | |||
learun.postForm(top.$.rootUrl + '/AssetManagementSystem/Ass_PurchaseApply/ModifyPAStatus', { keyValue: keyValue, pastatus: 1, processId: processId }, function (res) { | |||
selectedRow.PAProcessId = processId; | |||
refreshGirdData(res, selectedRow); | |||
}); | |||
@@ -178,6 +178,19 @@ var bootstrap = function ($, learun) { | |||
}); | |||
} | |||
}); | |||
$('#lr_print').on('click', | |||
function () { | |||
var processId = $('#gridtable').jfGridValue('PAProcessId'); | |||
learun.httpSync( | |||
'get', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/GetFirstTaskByProcessId', | |||
{ processId: processId }, function (data) { | |||
var taskId = data.taskId; | |||
learun.frameTab.open({ F_ModuleId: processId + taskId, F_Icon: 'fa magic', F_FullName: '查看流程进度', F_UrlAddress: '/LR_NewWorkFlow/NWFProcess/NWFContainerForm?tabIframeId=' + processId + taskId + '&type=look' + "&processId=" + processId + "&taskId=" + taskId }); | |||
}) | |||
}); | |||
}, | |||
// 初始化列表 | |||
initGird: function () { | |||
@@ -221,7 +234,7 @@ var bootstrap = function ($, learun) { | |||
} | |||
}); | |||
} | |||
}, | |||
}, | |||
{ label: "所需总金额", name: "PAPrice", width: 100, align: "left" }, | |||
{ label: "期望采购时间", name: "PAName", width: 130, align: "left" }, | |||
{ label: "申请时间", name: "PACreateTime", width: 130, align: "left" }, | |||
@@ -232,7 +245,7 @@ var bootstrap = function ($, learun) { | |||
return '<span class=\"label label-warning\">审批中</span>'; | |||
} else if (cellvalue == 2) { | |||
return '<span class=\"label label-success\" >审批通过</span>'; | |||
} else { | |||
} else { | |||
return '<span class=\"label label-default\" >草稿</span>'; | |||
} | |||
} | |||
@@ -255,7 +268,7 @@ var bootstrap = function ($, learun) { | |||
mainId: 'PAId', | |||
isPage: true, | |||
sidx: 'PACreateTime', | |||
sord:'DESC' | |||
sord: 'DESC' | |||
}); | |||
}, | |||
search: function (param) { | |||
@@ -3,6 +3,11 @@ | |||
Layout = "~/Views/Shared/_Form.cshtml"; | |||
} | |||
<div class="lr-form-wrap" id="form"> | |||
<div class="col-xs-12 lr-form-item" data-table="Ass_PurchaseItemApply"> | |||
<div class="lr-form-item-title">选择已登记资产<font face="宋体">*</font></div> | |||
<div id="AAOldCode"></div> | |||
</div> | |||
<div class="col-xs-6 lr-form-item" data-table="Ass_PurchaseItemApply"> | |||
<div class="lr-form-item-title">资产名称<font face="宋体">*</font></div> | |||
<input id="PAIName" type="text" class="form-control" isvalid="yes" checkexpession="NotNull" /> | |||
@@ -27,6 +27,65 @@ var bootstrap = function ($, learun) { | |||
// 访问数据接口地址 | |||
url: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsType/GetAllTree' | |||
}); | |||
$("#AAOldCode").lrlayerselect({ | |||
treeUrl: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsType/GetAllTree', | |||
treeParentId: 'atptid', | |||
treeValueId: 'atid', | |||
treeTextId: 'aname', | |||
dataUrl: top.$.rootUrl + '/AssetManagementSystem/Ass_AssetsInfo/GetList', | |||
dataTreeId: 'ATId', | |||
dataValueId: 'AId', | |||
dataTextId: 'AName', | |||
grid: [ | |||
{ label: '资产编号', name: 'ACode', width: 200, align: 'left' }, | |||
{ label: '资产名称', name: 'AName', width: 200, align: 'left' }, | |||
{ label: "英文名称", name: "AEName", width: 200, align: "left" }, | |||
{ label: "资产型号", name: "AModel", width: 200, align: "left" }, | |||
{ label: "生产厂家", name: "AManufacturer", width: 200, 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_AssetsInfo/GetFormData?keyValue=' + values[0], function (data) { | |||
data = data.Ass_AssetsInfo; | |||
console.log(data); | |||
//$('#AAITId').lrselectSet(data.ATId); | |||
//$('#AAICode').val(data.ACode); | |||
$('#PAIName').val(data.AName);//资产名称 | |||
//$('#AAIUnit').lrselectSet(data.AUnit); | |||
$('#PAIEName').val(data.AEName);//英文名称 | |||
$('#PAIModel').val(data.AModel);//资产型号 | |||
$('#PAITId').val(data.AAssType);//资产类别 | |||
$('#PAIManufacturer').val(data.AManufacturer);//生产厂家 | |||
//$('#AAISpecification').val(data.ASpecification);//说明 | |||
}); | |||
} | |||
}, | |||
unknowselect: function () { | |||
$('#PAIName').val(""); | |||
$('#PAIEName').val(""); | |||
$('#PAITId').lrselectSet(""); | |||
$('#PAIModel').val(""); | |||
$('#PAIManufacturer').val(""); | |||
}, | |||
isMultiple: false | |||
}); | |||
$('#PAIPhoto').lrUploader(); | |||
$('#PAISId').lrDataSourceSelect({ code: 'Ass_SupplierData', value: 'sid', text: 'sname' }); | |||
}, | |||
@@ -290,6 +290,13 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers | |||
}; | |||
return Success(jsonData); | |||
} | |||
public ActionResult GetFirstTaskByProcessId(string processId) | |||
{ | |||
var taskId= nWFProcessIBLL.GetFirstTaskByProcessId(processId); | |||
return Success(new {taskId}); | |||
} | |||
/// <summary> | |||
/// 获取我的流程信息列表 | |||
/// </summary> | |||
@@ -421,12 +421,14 @@ var bootstrap = function ($, learun) { | |||
} | |||
}, | |||
eye: function () { | |||
var processId = $('#gridtable').jfGridValue('F_Id') || ''; | |||
var taskId = $('#gridtable').jfGridValue('F_TaskId') || ''; | |||
var title = $('#gridtable').jfGridValue('F_Title'); | |||
var schemeName = $('#gridtable').jfGridValue('F_SchemeName'); | |||
var taskType = $('#gridtable').jfGridValue('F_TaskType'); | |||
console.log(taskId); | |||
if (schemeName != title && title) { | |||
title = schemeName + "(" + title + ")"; | |||
} | |||
@@ -1223,6 +1223,7 @@ var bootstrap = function ($, learun) { | |||
// 加载表单 | |||
loadForm: function (formList, isLoadData, isLook) { | |||
console.log() | |||
var $ul = $('#form_list_tabs'); | |||
var $iframes = $('#form_list_iframes'); | |||
if (formList.length > 1) { | |||
@@ -9,16 +9,16 @@ | |||
<add name="CollegeMIS" connectionString="Server=192.168.2.126;Initial Catalog=CollegeMIS;User ID=sa;Password=bjqj@2015!" providerName="System.Data.SqlClient" /> | |||
<add name="hangfireString" connectionString="Server=192.168.2.126;Initial Catalog=Hangfire;User ID=sa;Password=bjqj@2015!" providerName="System.Data.SqlClient" />--> | |||
<!--西昌--> | |||
<!--<add name="BaseDb" connectionString="Server=112.45.152.8;Initial Catalog=adms7ultimate2;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" /> | |||
<add name="BaseDb" connectionString="Server=112.45.152.8;Initial Catalog=adms7ultimate2;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" /> | |||
<add name="CollegeMIS" connectionString="Server=112.45.152.8;Initial Catalog=NewCollegeMIS;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" /> | |||
<add name="hangfireString" connectionString="Server=112.45.152.8;Initial Catalog=HangFire;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" />--> | |||
<add name="hangfireString" connectionString="Server=112.45.152.8;Initial Catalog=HangFire;User ID=sa;Password=qj@2018" providerName="System.Data.SqlClient" /> | |||
<!--demo.quanjiang.com--> | |||
<!--<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />--> | |||
<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<!--<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS_西昌;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<add name="hangfireString" connectionString="Server=123.57.209.16;Initial Catalog=Hangfire;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" />--> | |||
<!--<add name="BaseDb" connectionString="Server=123.57.209.16;Initial Catalog=adms7ultimate2_20200403test;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
<add name="CollegeMIS" connectionString="Server=123.57.209.16;Initial Catalog=CollegeMIS_20200403test;User ID=sa;Password=bjqjkj@2014~2015!" providerName="System.Data.SqlClient" /> | |||
@@ -84,6 +84,11 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem | |||
/// </summary> | |||
[Column("POPINION")] | |||
public string POpinion { get; set; } | |||
/// <summary> | |||
/// 资产名字集合 | |||
/// </summary> | |||
[Column("NAMEOFCOLLECTION")] | |||
public string NameOfCollection { get; set; } | |||
/// <summary> | |||
/// 是否入库 | |||
@@ -57,6 +57,11 @@ namespace Learun.Application.TwoDevelopment.AssetManagementSystem | |||
dp.Add("PACode", "%" + queryParam["PACode"] + "%", DbType.String); | |||
strSql.Append(" AND t.PACode like @PACode"); | |||
} | |||
if (!queryParam["NameOfCollection"].IsEmpty()) | |||
{ | |||
dp.Add("NameOfCollection", "%" + queryParam["NameOfCollection"] + "%", DbType.String); | |||
strSql.Append(" AND t.NameOfCollection like @NameOfCollection"); | |||
} | |||
return this.BaseRepository().FindList<Ass_PurchaseApplyEntity>(strSql.ToString(), dp, pagination); | |||
} | |||
catch (Exception ex) | |||
@@ -65,6 +65,10 @@ namespace Learun.Application.WorkFlow | |||
{ | |||
return nWFProcessSerive.GetPageList(pagination, queryJson); | |||
} | |||
public string GetFirstTaskByProcessId(string processId) | |||
{ | |||
return nWFProcessSerive.GetFirstTaskByProcessId(processId); | |||
} | |||
/// <summary> | |||
/// 获取流程信息列表 | |||
/// </summary> | |||
@@ -28,6 +28,7 @@ namespace Learun.Application.WorkFlow | |||
/// <param name="queryJson">查询条件</param> | |||
/// <returns></returns> | |||
IEnumerable<NWFProcessEntity> GetPageList(Pagination pagination, string queryJson); | |||
string GetFirstTaskByProcessId(string processId); | |||
IEnumerable<NWFProcessEntity> GetAllList(); | |||
LC_hetongEntity GetHTInfo(string keyValue); | |||
/// <summary> | |||
@@ -159,6 +159,30 @@ namespace Learun.Application.WorkFlow | |||
} | |||
} | |||
/// <summary> | |||
/// 根据processid 获取taskid | |||
/// </summary> | |||
/// <param name="processId">流程id</param> | |||
/// <returns></returns> | |||
public string GetFirstTaskByProcessId(string processId) | |||
{ | |||
try | |||
{ | |||
return this.BaseRepository().FindList<NWFTaskEntity>(a => a.F_ProcessId == processId).OrderBy(a => a.F_ModifyDate).FirstOrDefault()?.F_Id; | |||
} | |||
catch (Exception ex) | |||
{ | |||
if (ex is ExceptionEx) | |||
{ | |||
throw; | |||
} | |||
else | |||
{ | |||
throw ExceptionEx.ThrowServiceException(ex); | |||
} | |||
} | |||
} | |||
/// <summary> | |||
/// 获取流程信息列表 | |||
/// </summary> | |||
/// <param name="pagination">分页参数</param> | |||