Bladeren bron

Merge branch '金隅分支' of 123.57.209.16:bjquanjiang/DigitalScholl into 金隅分支

金隅分支
liangkun 3 jaren geleden
bovenliggende
commit
9773bb065f
15 gewijzigde bestanden met toevoegingen van 312 en 144 verwijderingen
  1. +58
    -121
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssScrap/Form.js
  2. +13
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/FormulaMainController.cs
  3. +1
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/FormulaMain/FormChild.cshtml
  4. +7
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/FormulaMain/FormChild.js
  5. +12
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs
  6. +16
    -3
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.cshtml
  7. +86
    -14
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.js
  8. +26
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainBLL.cs
  9. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainIBLL.cs
  10. +39
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainService.cs
  11. +8
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongEntity.cs
  12. +5
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongService.cs
  13. +8
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessBLL.cs
  14. +6
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessIBLL.cs
  15. +26
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessSerivce.cs

+ 58
- 121
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Views/AssScrap/Form.js Bestand weergeven

@@ -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) {


+ 13
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Controllers/FormulaMainController.cs Bestand weergeven

@@ -73,6 +73,19 @@ namespace Learun.Application.Web.Areas.LR_Desktop.Controllers
};
return Success(jsonData);
}

/// <summary>
/// 获取
/// </summary>
/// <returns></returns>
[HttpGet]
[AjaxOnly]
public ActionResult GetList(string queryJson)
{
var list = formulaMainIBLL.GetList(queryJson);

return Success(list);
}
/// <summary>
/// 获取表单数据
/// </summary>
@@ -113,7 +126,6 @@ namespace Learun.Application.Web.Areas.LR_Desktop.Controllers

return Success(list);
}
#endregion

#region 提交数据


+ 1
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/FormulaMain/FormChild.cshtml Bestand weergeven

@@ -5,7 +5,7 @@
<div class="lr-form-wrap" id="form">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">上级<font face="宋体">*</font></div>
<div id="MainId" isvalid="yes" checkexpession="NotNull"></div><a id="lr_add" class="btn" style="position: relative;margin: -48px 0 0 -67px;"><i class="fa fa-plus"></i>&nbsp;</a>
<div id="MainId" isvalid="yes" checkexpession="NotNull" readonly="readonly"></div><a id="lr_add" class="btn" style="position: relative;margin: -48px 0 0 -67px;"><i class="fa fa-plus"></i>&nbsp;</a>
</div>
<div id="content1">


+ 7
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_Desktop/Views/FormulaMain/FormChild.js Bestand weergeven

@@ -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);
// 新增


+ 12
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Controllers/NWFProcessController.cs Bestand weergeven

@@ -514,7 +514,18 @@ namespace Learun.Application.Web.Areas.LR_NewWorkFlow.Controllers
nWFProcessIBLL.DeleteEntity(processId);
return Success("删除成功");
}

/// <summary>
/// 流程合同监控--作废
/// </summary>
/// <param name="processId">流程进程主键</param>
[HttpPost]
[AjaxOnly]
public ActionResult UpdateEnabledMark(string processId,string EnabledMark)
{
nWFProcessIBLL.UpdateEnabledMark(processId, EnabledMark);
return Success("操作成功");
}
/// <summary>
/// 普通教师请假归档
/// </summary>


+ 16
- 3
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.cshtml Bestand weergeven

@@ -2,9 +2,19 @@
ViewBag.Title = "流程监控";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout ">
<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 data-value="1" class="lrlg">运行中</li>
<li data-value="4" 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-wrap lr-layout-wrap-notitle">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
@@ -23,10 +33,13 @@
</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_del" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;<span class="lrlg">作废</span></a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>

<div class="lr-layout-body" id="gridtable">
</div>
</div>
</div>
</div>


+ 86
- 14
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LR_NewWorkFlow/Views/NWFProcess/ContractFilingMonitor.js Bestand weergeven

@@ -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 "<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 {
//4
return "<span class=\"label label-danger\">作废</span>";
}
}
else {
if (cellvalue == 4) {
return "<span class=\"label label-default\">终止</span>";
} else {
return "<span class=\"label label-warning\">结束</span>";
}
}

}
},
],
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();
}
};



+ 26
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainBLL.cs Bestand weergeven

@@ -43,6 +43,32 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
}
}


/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<FormulaMainEntity> GetList(string queryJson)
{
try
{
return formulaMainService.GetList(queryJson);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowBusinessException(ex);
}
}
}

/// <summary>
/// 获取FormulaMain表实体数据
/// </summary>


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainIBLL.cs Bestand weergeven

@@ -21,6 +21,7 @@ namespace Learun.Application.TwoDevelopment.LR_Desktop
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
IEnumerable<FormulaMainEntity> GetPageList(Pagination pagination, string queryJson);
IEnumerable<FormulaMainEntity> GetList(string queryJson);
/// <summary>
/// 获取FormulaMain表实体数据
/// </summary>


+ 39
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_Desktop/FormulaMain/FormulaMainService.cs Bestand weergeven

@@ -65,6 +65,45 @@ t.[Result]
}
}

/// <summary>
/// 获取页面显示列表数据
/// </summary>
/// <param name="queryJson">查询参数</param>
/// <returns></returns>
public IEnumerable<FormulaMainEntity> 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<FormulaMainEntity>(strSql.ToString(), dp);
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
}
}
/// <summary>
/// 获取FormulaMain表实体数据
/// </summary>


+ 8
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongEntity.cs Bestand weergeven

@@ -11,7 +11,7 @@ namespace Learun.Application.TwoDevelopment.LR_LGManager
/// 日 期:2020-05-07 14:26
/// 描 述:流程合同
/// </summary>
public class LC_hetongEntity
public class LC_hetongEntity
{
#region 实体成员
/// <summary>
@@ -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; }
}
}


+ 5
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/LR_LGManager/LC_hetong/LC_hetongService.cs Bestand weergeven

@@ -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);


+ 8
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessBLL.cs Bestand weergeven

@@ -191,6 +191,14 @@ namespace Learun.Application.WorkFlow
{
nWFProcessSerive.DeleteEntity(processId);
}
/// <summary>
/// 作废
/// </summary>
/// <param name="processId">流程进程主键</param>
public void UpdateEnabledMark(string processId, string EnabledMark)
{
nWFProcessSerive.UpdateEnabledMark(processId, EnabledMark);
}

#endregion



+ 6
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessIBLL.cs Bestand weergeven

@@ -112,6 +112,12 @@ namespace Learun.Application.WorkFlow
/// </summary>
/// <param name="processId">流程进程主键</param>
void DeleteEntity(string processId);
/// <summary>
/// 作废
/// </summary>
/// <param name="processId"></param>
/// <param name="EnabledMark"></param>
void UpdateEnabledMark(string processId, string EnabledMark);
#endregion

#region 流程API


+ 26
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.WorkFlow/Process/NWFProcessSerivce.cs Bestand weergeven

@@ -1452,6 +1452,32 @@ namespace Learun.Application.WorkFlow
}
}

/// <summary>
///
/// </summary>
/// <param name="processId"></param>
/// <param name="EnabledMark"></param>
public void UpdateEnabledMark(string processId, string EnabledMark)
{
try
{
var entity= this.BaseRepository().FindEntity<NWFProcessEntity>(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);
}
}
}

/// <summary>
/// 删除流程进程所有信息(流程撤销)
/// </summary>


Laden…
Annuleren
Opslaan