@@ -108,11 +108,14 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
var data = dispatchIBLL.GetPageList(paginationobj, queryJson); | var data = dispatchIBLL.GetPageList(paginationobj, queryJson); | ||||
foreach (var item in data) | foreach (var item in data) | ||||
{ | { | ||||
var NewList = nWFTaskIBLL.GetLogList(item.processId).OrderBy(o => o.F_CreateDate).ToList(); | |||||
if (NewList.Count > 0) | |||||
if (item.FlowNo != "0") | |||||
{ | { | ||||
item.CreateTime = NewList.First().F_CreateDate; | |||||
item.CreateUser = NewList.First().F_CreateUserName; | |||||
var NewList = nWFTaskIBLL.GetLogList(item.processId).OrderBy(o => o.F_CreateDate).ToList(); | |||||
if (NewList.Count > 0) | |||||
{ | |||||
item.CreateTime = NewList.First().F_CreateDate; | |||||
item.CreateUser = NewList.First().F_CreateUserName; | |||||
} | |||||
} | } | ||||
} | } | ||||
var jsonData = new | var jsonData = new | ||||
@@ -8,18 +8,13 @@ | |||||
<div class="lr-layout-tool"> | <div class="lr-layout-tool"> | ||||
<div class="lr-layout-tool-left"> | <div class="lr-layout-tool-left"> | ||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<div id="multiple_condition_query"> | |||||
<div class="lr-query-formcontent"> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">标题</div> | |||||
<input id="DisTitle" type="text" class="form-control" /> | |||||
</div> | |||||
@*<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">收文单位</div> | |||||
<input id="DisOffice" type="text" class="form-control" /> | |||||
</div>*@ | |||||
</div> | |||||
</div> | |||||
<div id="datesearch"></div> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | |||||
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" /> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | |||||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> <span class="lrlg">查询</span></a> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="lr-layout-tool-right"> | <div class="lr-layout-tool-right"> | ||||
@@ -8,6 +8,8 @@ var refreshGirdData; | |||||
var bootstrap = function ($, learun) { | var bootstrap = function ($, learun) { | ||||
"use strict"; | "use strict"; | ||||
var processId = ''; | var processId = ''; | ||||
var logbegin = ''; | |||||
var logend = ''; | |||||
var page = { | var page = { | ||||
init: function () { | init: function () { | ||||
page.initGird(); | page.initGird(); | ||||
@@ -17,6 +19,37 @@ var bootstrap = function ($, learun) { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | ||||
page.search(queryJson); | page.search(queryJson); | ||||
}, 220, 400); | }, 220, 400); | ||||
$('#datesearch').lrdate({ | |||||
dfdata: [ | |||||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||||
], | |||||
// 月 | |||||
mShow: false, | |||||
premShow: false, | |||||
// 季度 | |||||
jShow: false, | |||||
prejShow: false, | |||||
// 年 | |||||
ysShow: false, | |||||
yxShow: false, | |||||
preyShow: false, | |||||
yShow: false, | |||||
// 默认 | |||||
selectfn: function (begin, end) { | |||||
logbegin = begin; | |||||
logend = end; | |||||
page.search(); | |||||
} | |||||
}); | |||||
// 查询 | |||||
$('#btn_Search').on('click', function () { | |||||
var keyword = $('#txt_Keyword').val(); | |||||
page.search({ keyword: keyword }); | |||||
}); | |||||
// 刷新 | // 刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
@@ -86,6 +119,7 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认删除该项!', function (res) { | learun.layerConfirm('是否确认删除该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/Dispatch/DeleteForm', { keyValue: keyValue }, function () { | learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/Dispatch/DeleteForm', { keyValue: keyValue }, function () { | ||||
page.search(); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -239,6 +273,8 @@ var bootstrap = function ($, learun) { | |||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
param.WorkName = 1; | param.WorkName = 1; | ||||
param.StartTime = logbegin; | |||||
param.EndTime = logend; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | ||||
}, | }, | ||||
}; | }; | ||||
@@ -8,18 +8,13 @@ | |||||
<div class="lr-layout-tool"> | <div class="lr-layout-tool"> | ||||
<div class="lr-layout-tool-left"> | <div class="lr-layout-tool-left"> | ||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<div id="multiple_condition_query"> | |||||
<div class="lr-query-formcontent"> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">标题</div> | |||||
<input id="DisTitle" type="text" class="form-control" /> | |||||
</div> | |||||
@*<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">收文</div> | |||||
<input id="DisOffice" type="text" class="form-control" /> | |||||
</div>*@ | |||||
</div> | |||||
</div> | |||||
<div id="datesearch"></div> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | |||||
<input id="txt_Keyword" type="text" class="form-control" placeholder="请输入要查询关键字" /> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | |||||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> <span class="lrlg">查询</span></a> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="lr-layout-tool-right"> | <div class="lr-layout-tool-right"> | ||||
@@ -8,6 +8,8 @@ var refreshGirdData; | |||||
var bootstrap = function ($, learun) { | var bootstrap = function ($, learun) { | ||||
"use strict"; | "use strict"; | ||||
var processId = ''; | var processId = ''; | ||||
var logbegin = ''; | |||||
var logend = ''; | |||||
var page = { | var page = { | ||||
init: function () { | init: function () { | ||||
page.initGird(); | page.initGird(); | ||||
@@ -17,6 +19,37 @@ var bootstrap = function ($, learun) { | |||||
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | $('#multiple_condition_query').lrMultipleQuery(function (queryJson) { | ||||
page.search(queryJson); | page.search(queryJson); | ||||
}, 220, 400); | }, 220, 400); | ||||
$('#datesearch').lrdate({ | |||||
dfdata: [ | |||||
{ name: '今天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00') }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||||
{ name: '近7天', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'd', -6) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||||
{ name: '近1个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -1) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||||
{ name: '近3个月', begin: function () { return learun.getDate('yyyy-MM-dd 00:00:00', 'm', -3) }, end: function () { return learun.getDate('yyyy-MM-dd 23:59:59') } }, | |||||
], | |||||
// 月 | |||||
mShow: false, | |||||
premShow: false, | |||||
// 季度 | |||||
jShow: false, | |||||
prejShow: false, | |||||
// 年 | |||||
ysShow: false, | |||||
yxShow: false, | |||||
preyShow: false, | |||||
yShow: false, | |||||
// 默认 | |||||
selectfn: function (begin, end) { | |||||
logbegin = begin; | |||||
logend = end; | |||||
page.search(); | |||||
} | |||||
}); | |||||
// 查询 | |||||
$('#btn_Search').on('click', function () { | |||||
var keyword = $('#txt_Keyword').val(); | |||||
page.search({ keyword: keyword }); | |||||
}); | |||||
// 刷新 | // 刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
location.reload(); | location.reload(); | ||||
@@ -87,6 +120,7 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认删除该项!', function (res) { | learun.layerConfirm('是否确认删除该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/Dispatch/DeleteForm', { keyValue: keyValue }, function () { | learun.deleteForm(top.$.rootUrl + '/EducationalAdministration/Dispatch/DeleteForm', { keyValue: keyValue }, function () { | ||||
page.search(); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -234,6 +268,8 @@ var bootstrap = function ($, learun) { | |||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
param.WorkName = 2; | param.WorkName = 2; | ||||
param.StartTime = logbegin; | |||||
param.EndTime = logend; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | $('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | ||||
}, | }, | ||||
downLoad: function (fileId) { | downLoad: function (fileId) { | ||||
@@ -189,7 +189,10 @@ namespace Learun.Application.Web.Areas.LR_Desktop.Controllers | |||||
dtListEntity.F_Sql = dtListEntity.F_Sql.Replace("MMM", strSql.ToString()); | dtListEntity.F_Sql = dtListEntity.F_Sql.Replace("MMM", strSql.ToString()); | ||||
} | } | ||||
if (dtListEntity.F_Name.Contains("下发公文查阅")) | |||||
{ | |||||
dtListEntity.F_Sql = dtListEntity.F_Sql.Replace("@@@userId", "'" + loginUserInfo.userId + "'"); | |||||
} | |||||
var reqDataTable = databaseLinkIbll.FindTable(dtListEntity.F_DataSourceId.Trim(), dtListEntity.F_Sql); | var reqDataTable = databaseLinkIbll.FindTable(dtListEntity.F_DataSourceId.Trim(), dtListEntity.F_Sql); | ||||
if (dtListEntity.F_Id == "88f94781-acb8-47ca-864b-f96e3d9b5587") | if (dtListEntity.F_Id == "88f94781-acb8-47ca-864b-f96e3d9b5587") | ||||
{ | { | ||||
@@ -282,7 +282,8 @@ var bootstrap = function ($, learun) { | |||||
{ | { | ||||
label: "标题", name: "F_Title", width: 300, align: "left", formatter: function (cellvalue, row) { | label: "标题", name: "F_Title", width: 300, align: "left", formatter: function (cellvalue, row) { | ||||
if (row.F_SchemeName != row.F_Title && row.F_Title) { | if (row.F_SchemeName != row.F_Title && row.F_Title) { | ||||
return row.F_SchemeName + "(" + row.F_Title + ")"; | |||||
//return row.F_SchemeName + "(" + row.F_Title + ")"; | |||||
return row.F_SchemeName + row.F_Title; | |||||
} | } | ||||
else { | else { | ||||
return row.F_SchemeName; | return row.F_SchemeName; | ||||
@@ -421,14 +422,12 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}, | }, | ||||
eye: function () { | eye: function () { | ||||
var processId = $('#gridtable').jfGridValue('F_Id') || ''; | var processId = $('#gridtable').jfGridValue('F_Id') || ''; | ||||
var taskId = $('#gridtable').jfGridValue('F_TaskId') || ''; | var taskId = $('#gridtable').jfGridValue('F_TaskId') || ''; | ||||
var title = $('#gridtable').jfGridValue('F_Title'); | var title = $('#gridtable').jfGridValue('F_Title'); | ||||
var schemeName = $('#gridtable').jfGridValue('F_SchemeName'); | var schemeName = $('#gridtable').jfGridValue('F_SchemeName'); | ||||
var taskType = $('#gridtable').jfGridValue('F_TaskType'); | var taskType = $('#gridtable').jfGridValue('F_TaskType'); | ||||
console.log(taskId); | |||||
if (schemeName != title && title) { | if (schemeName != title && title) { | ||||
title = schemeName + "(" + title + ")"; | title = schemeName + "(" + title + ")"; | ||||
} | } | ||||
@@ -39,7 +39,6 @@ var bootstrap = function ($, learun) { | |||||
if (btn.next == '2') { | if (btn.next == '2') { | ||||
isNext = '1'; | isNext = '1'; | ||||
} | } | ||||
if (isNext == '1') {// 获取下一节点数据 | if (isNext == '1') {// 获取下一节点数据 | ||||
var param = { | var param = { | ||||
code: shcemeCode, | code: shcemeCode, | ||||
@@ -309,6 +308,11 @@ var bootstrap = function ($, learun) { | |||||
//$('#savedraft').show(); | //$('#savedraft').show(); | ||||
$('#savedraft').showBtn(); | $('#savedraft').showBtn(); | ||||
$('#savedraft').on('click', function () { | $('#savedraft').on('click', function () { | ||||
// 验证表单数据完整性 | |||||
if (!custmerForm.validForm('create'))// create创建流程 | |||||
{ | |||||
return false; | |||||
} | |||||
tabProcessId = nwflow.processId; | tabProcessId = nwflow.processId; | ||||
// 保存表单数据 | // 保存表单数据 | ||||
custmerForm.save(nwflow.processId, nwflow.currentNode.wfForms, function () { | custmerForm.save(nwflow.processId, nwflow.currentNode.wfForms, function () { | ||||
@@ -490,6 +494,11 @@ var bootstrap = function ($, learun) { | |||||
//$('#savedraft').show(); | //$('#savedraft').show(); | ||||
$('#savedraft').showBtn(); | $('#savedraft').showBtn(); | ||||
$('#savedraft').on('click', function () { | $('#savedraft').on('click', function () { | ||||
// 验证表单数据完整性 | |||||
if (!custmerForm.validForm('create'))// create创建流程 | |||||
{ | |||||
return false; | |||||
} | |||||
tabProcessId = nwflow.processId; | tabProcessId = nwflow.processId; | ||||
// 保存表单数据 | // 保存表单数据 | ||||
custmerForm.save(nwflow.processId, nwflow.currentNode.wfForms, function () { | custmerForm.save(nwflow.processId, nwflow.currentNode.wfForms, function () { | ||||
@@ -689,6 +698,7 @@ var bootstrap = function ($, learun) { | |||||
return top[id].acceptClick(function (auditers) { | return top[id].acceptClick(function (auditers) { | ||||
// 保存表单数据 | // 保存表单数据 | ||||
custmerForm.save(nwflow.processId, nwflow.currentNode.wfForms, function () { | custmerForm.save(nwflow.processId, nwflow.currentNode.wfForms, function () { | ||||
// 审批流程 | // 审批流程 | ||||
learun.loading(true, '审批流程...'); | learun.loading(true, '审批流程...'); | ||||
var postData = { | var postData = { | ||||
@@ -701,13 +711,13 @@ var bootstrap = function ($, learun) { | |||||
signUrl: signUrl, | signUrl: signUrl, | ||||
stamp: stamp | stamp: stamp | ||||
}; | }; | ||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/AuditFlow', postData, function (_data) { | |||||
learun.loading(false); | |||||
if (_data) { | |||||
learun.frameTab.parentIframe().refreshGirdData && learun.frameTab.parentIframe().refreshGirdData(); | |||||
learun.frameTab.close(tabIframeId); | |||||
} | |||||
}); | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/AuditFlow', postData, function (_data) { | |||||
learun.loading(false); | |||||
if (_data) { | |||||
learun.frameTab.parentIframe().refreshGirdData && learun.frameTab.parentIframe().refreshGirdData(); | |||||
learun.frameTab.close(tabIframeId); | |||||
} | |||||
}); | |||||
}); | }); | ||||
}); | }); | ||||
} | } | ||||
@@ -785,7 +795,7 @@ var bootstrap = function ($, learun) { | |||||
processId: nwflow.processId, | processId: nwflow.processId, | ||||
taskId: nwflow.taskId | taskId: nwflow.taskId | ||||
}; | }; | ||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/SignFlowTwo', postData, function (data) { | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/SignFlow', postData, function (data) { | |||||
learun.loading(false); | learun.loading(false); | ||||
if (data) { | if (data) { | ||||
//learun.frameTab.parentIframe().refreshGirdData(); | //learun.frameTab.parentIframe().refreshGirdData(); | ||||
@@ -936,7 +946,7 @@ var bootstrap = function ($, learun) { | |||||
processId: nwflow.processId, | processId: nwflow.processId, | ||||
taskId: nwflow.taskId | taskId: nwflow.taskId | ||||
}; | }; | ||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/SignFlowTwo', postData, function (data) { | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/SignFlow', postData, function (data) { | |||||
learun.loading(false); | learun.loading(false); | ||||
if (data) { | if (data) { | ||||
//learun.frameTab.parentIframe().refreshGirdData(); | //learun.frameTab.parentIframe().refreshGirdData(); | ||||
@@ -1223,7 +1233,6 @@ var bootstrap = function ($, learun) { | |||||
// 加载表单 | // 加载表单 | ||||
loadForm: function (formList, isLoadData, isLook) { | loadForm: function (formList, isLoadData, isLook) { | ||||
console.log() | |||||
var $ul = $('#form_list_tabs'); | var $ul = $('#form_list_tabs'); | ||||
var $iframes = $('#form_list_iframes'); | var $iframes = $('#form_list_iframes'); | ||||
if (formList.length > 1) { | if (formList.length > 1) { | ||||
@@ -1429,13 +1438,14 @@ var bootstrap = function ($, learun) { | |||||
content: content, | content: content, | ||||
time: item.F_CreateDate | time: item.F_CreateDate | ||||
}; | }; | ||||
//liangkun 2021-1-11 去掉第一个条件判断 | |||||
//if (!anodeinfo[item.F_NodeId + item.F_CreateUserId] && item.F_TaskType != '0' && item.F_TaskType != '4' && item.F_TaskType != '5' && item.F_TaskType != '6') { | |||||
if (item.F_TaskType != '0' && item.F_TaskType != '4' && item.F_TaskType != '5' && item.F_TaskType != '6') { | |||||
if (!anodeinfo[item.F_NodeId + item.F_CreateUserId] && item.F_TaskType != '0' && item.F_TaskType != '4' && item.F_TaskType != '5' && item.F_TaskType != '6') { | |||||
var apoint = {}; | var apoint = {}; | ||||
apoint.type = 'anodeinfo'; | apoint.type = 'anodeinfo'; | ||||
apoint.title = point.title; | apoint.title = point.title; | ||||
anodeinfo[item.F_NodeId + item.F_CreateUserId] = '1'; | anodeinfo[item.F_NodeId + item.F_CreateUserId] = '1'; | ||||
anodeinfo_flag = true; | anodeinfo_flag = true; | ||||
var html = '<div class="auditinfo">\ | var html = '<div class="auditinfo">\ | ||||
@@ -1828,13 +1838,24 @@ var bootstrap = function ($, learun) { | |||||
html = $('.tab-flow-audit').html(); | html = $('.tab-flow-audit').html(); | ||||
} | } | ||||
var isContract = false; | |||||
var $iframes = $('#form_list_iframes'); | var $iframes = $('#form_list_iframes'); | ||||
var iframeId = $iframes.find('.form-list-iframe.active').attr('id'); | var iframeId = $iframes.find('.form-list-iframe.active').attr('id'); | ||||
if (iframeId) { | if (iframeId) { | ||||
var $iframe = learun.iframe(iframeId, frames); | var $iframe = learun.iframe(iframeId, frames); | ||||
//$iframe.$('.lr-form-wrap:visible').jqprint(); | //$iframe.$('.lr-form-wrap:visible').jqprint(); | ||||
var res = $iframe.$('body').lrGetFormShow(); | var res = $iframe.$('body').lrGetFormShow(); | ||||
if (res[0].text.indexOf('合同审批流程单') > -1) { | |||||
isContract = true; | |||||
} | |||||
for (var len = ainfo.length, i = ainfo.length - 1; i >= 0; i--) { | for (var len = ainfo.length, i = ainfo.length - 1; i >= 0; i--) { | ||||
if (isContract) { | |||||
if (ainfo[i].user.indexOf('关亮') > -1) { | |||||
continue; | |||||
} | |||||
} | |||||
res.push(ainfo[i]); | res.push(ainfo[i]); | ||||
} | } | ||||
$.jqprintForm(res); | $.jqprintForm(res); | ||||
@@ -1844,8 +1865,18 @@ var bootstrap = function ($, learun) { | |||||
//$iframes.find(".lr-scroll-box")[0].style.top = 0; | //$iframes.find(".lr-scroll-box")[0].style.top = 0; | ||||
//$iframes.find(".lr-formselect i").removeClass(); | //$iframes.find(".lr-formselect i").removeClass(); | ||||
//$iframes.find('.form-list-container.active').find('.lr-form-wrap:visible').jqprint(null,html); | //$iframes.find('.form-list-container.active').find('.lr-form-wrap:visible').jqprint(null,html); | ||||
var res1 = $iframes.lrGetFormShow(); | var res1 = $iframes.lrGetFormShow(); | ||||
if (res1[0].text.indexOf('合同审批流程单') > -1) { | |||||
isContract = true; | |||||
} | |||||
for (var len1 = ainfo.length, i1 = ainfo.length - 1; i1 >= 0; i1--) { | for (var len1 = ainfo.length, i1 = ainfo.length - 1; i1 >= 0; i1--) { | ||||
if (isContract) { | |||||
if (ainfo[i1].user.indexOf('关亮') > -1) { | |||||
continue; | |||||
} | |||||
} | |||||
res1.push(ainfo[i1]); | res1.push(ainfo[i1]); | ||||
} | } | ||||
$.jqprintForm(res1); | $.jqprintForm(res1); | ||||
@@ -27,7 +27,7 @@ var bootstrap = function ($, learun) { | |||||
data: _list, | data: _list, | ||||
value: 'Id', | value: 'Id', | ||||
text: 'Name', | text: 'Name', | ||||
allowSearch:true | |||||
allowSearch: true | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -45,9 +45,13 @@ var bootstrap = function ($, learun) { | |||||
auditers[id] = formData[id]; | auditers[id] = formData[id]; | ||||
} | } | ||||
}); | }); | ||||
callBack(auditers); | |||||
return true; | |||||
}; | |||||
if (Object.keys(auditers).length > 0) { | |||||
callBack(auditers); | |||||
return true; | |||||
} else { | |||||
learun.alert.warning("请选择相关人员!"); | |||||
return false; | |||||
} | |||||
} | |||||
page.init(); | page.init(); | ||||
} | } |
@@ -319,6 +319,7 @@ | |||||
<Compile Include="Areas\EducationalAdministration\Controllers\ArrangeLessonTermAttemperController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\ArrangeLessonTermAttemperController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\CertificateManageController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\CertificateManageController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\CertificateResultController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\CertificateResultController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\DispatchController.cs" /> | |||||
<Compile Include="Areas\EducationalAdministration\Controllers\EvaCodeOfContuctController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\EvaCodeOfContuctController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\EvaDormitoryInteriorController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\EvaDormitoryInteriorController.cs" /> | ||||
<Compile Include="Areas\EducationalAdministration\Controllers\EvaHygieveController.cs" /> | <Compile Include="Areas\EducationalAdministration\Controllers\EvaHygieveController.cs" /> | ||||
@@ -7520,11 +7521,11 @@ | |||||
<VisualStudio> | <VisualStudio> | ||||
<FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> | <FlavorProperties GUID="{349c5851-65df-11da-9384-00065b846f21}"> | ||||
<WebProjectProperties> | <WebProjectProperties> | ||||
<UseIIS>False</UseIIS> | |||||
<UseIIS>True</UseIIS> | |||||
<AutoAssignPort>True</AutoAssignPort> | <AutoAssignPort>True</AutoAssignPort> | ||||
<DevelopmentServerPort>20472</DevelopmentServerPort> | <DevelopmentServerPort>20472</DevelopmentServerPort> | ||||
<DevelopmentServerVPath>/</DevelopmentServerVPath> | <DevelopmentServerVPath>/</DevelopmentServerVPath> | ||||
<IISUrl>http://localhost:20873/</IISUrl> | |||||
<IISUrl>http://localhost:12345/</IISUrl> | |||||
<NTLMAuthentication>False</NTLMAuthentication> | <NTLMAuthentication>False</NTLMAuthentication> | ||||
<UseCustomServer>False</UseCustomServer> | <UseCustomServer>False</UseCustomServer> | ||||
<CustomServerUrl> | <CustomServerUrl> | ||||
@@ -112,7 +112,16 @@ | |||||
//F_UrlAddress: '/LR_WorkFlowModule/WfMyTask/CustmerWorkFlowForm?tabIframeId=' + p.f_id + '&type=' + p.f_tasktype + '' + "&processId=" + p.f_processid + "&taskId=" + p.f_id | //F_UrlAddress: '/LR_WorkFlowModule/WfMyTask/CustmerWorkFlowForm?tabIframeId=' + p.f_id + '&type=' + p.f_tasktype + '' + "&processId=" + p.f_processid + "&taskId=" + p.f_id | ||||
}); | }); | ||||
} | } | ||||
} else { | |||||
} | |||||
else if (d[o].F_Id == "574a4149-6556-4e4a-8f40-b022c5b90b14") { | |||||
top.learun.frameTab.open({ | |||||
F_ModuleId: p.f_id + "_homeopen", | |||||
F_Icon: 'fa magic', | |||||
F_FullName: '公文查阅', | |||||
F_UrlAddress: '/EducationalAdministration/Sys_ReceiveFile/Index' | |||||
}); | |||||
} | |||||
else { | |||||
top["dtlist" + p.f_id] = p; | top["dtlist" + p.f_id] = p; | ||||
top.learun.frameTab.open({ | top.learun.frameTab.open({ | ||||
F_ModuleId: "dtlist" + p.f_id, | F_ModuleId: "dtlist" + p.f_id, | ||||
@@ -665,6 +665,26 @@ | |||||
_obj.push($obj); | _obj.push($obj); | ||||
}); | }); | ||||
}; | }; | ||||
//获取角色 | |||||
$.fn.lrRoleSelect = function (op) { | |||||
// op:parentId 父级id,maxHeight 200, | |||||
var dfop = { | |||||
type: 'tree', | |||||
// 是否允许搜索 | |||||
allowSearch: true, | |||||
// 访问数据接口地址 | |||||
url: top.$.rootUrl + '/LR_OrganizationModule/Role/GetTree', | |||||
// 访问数据接口参数 | |||||
param: { parentId: '0' } | |||||
}; | |||||
op = op || {}; | |||||
dfop.param.companyId = op.companyId; | |||||
dfop.param.parentId = op.parentId; | |||||
if (!!op.type) { | |||||
dfop.type = op.type; | |||||
} | |||||
return $(this).lrselect(dfop); | |||||
}; | |||||
// 数据库选择 | // 数据库选择 | ||||
$.fn.lrDbSelect = function (op) { | $.fn.lrDbSelect = function (op) { | ||||
// op:maxHeight 200, | // op:maxHeight 200, | ||||
@@ -77,6 +77,8 @@ | |||||
<Compile Include="EducationalAdministration\Book_loseMap.cs" /> | <Compile Include="EducationalAdministration\Book_loseMap.cs" /> | ||||
<Compile Include="EducationalAdministration\CertificateManageMap.cs" /> | <Compile Include="EducationalAdministration\CertificateManageMap.cs" /> | ||||
<Compile Include="EducationalAdministration\CertificateResultMap.cs" /> | <Compile Include="EducationalAdministration\CertificateResultMap.cs" /> | ||||
<Compile Include="EducationalAdministration\DispatchAuditMap.cs" /> | |||||
<Compile Include="EducationalAdministration\DispatchMap.cs" /> | |||||
<Compile Include="EducationalAdministration\EADateArrangeMap.cs" /> | <Compile Include="EducationalAdministration\EADateArrangeMap.cs" /> | ||||
<Compile Include="EducationalAdministration\LeaveSchoolMap.cs" /> | <Compile Include="EducationalAdministration\LeaveSchoolMap.cs" /> | ||||
<Compile Include="EducationalAdministration\PracticeBaseMap.cs" /> | <Compile Include="EducationalAdministration\PracticeBaseMap.cs" /> | ||||
@@ -37,21 +37,27 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
var queryParam = queryJson.ToJObject(); | var queryParam = queryJson.ToJObject(); | ||||
// 虚拟参数 | // 虚拟参数 | ||||
var dp = new DynamicParameters(new { }); | var dp = new DynamicParameters(new { }); | ||||
if (!queryParam["WorkName"].IsEmpty()) | |||||
{ | |||||
dp.Add("WorkName", queryParam["WorkName"].ToString(), DbType.String); | |||||
strSql.Append(" AND t.WorkName = @WorkName "); | |||||
} | |||||
if (!queryParam["DisTitle"].IsEmpty()) | |||||
if (!queryParam["keyword"].IsEmpty()) | |||||
{ | { | ||||
dp.Add("DisTitle", "%" + queryParam["DisTitle"].ToString() + "%", DbType.String); | |||||
strSql.Append(" AND t.DisTitle Like @DisTitle "); | |||||
dp.Add("keyword", "%" + queryParam["keyword"].ToString() + "%", DbType.String); | |||||
strSql.Append(" AND t.DisFrom like @keyword "); | |||||
} | } | ||||
if (!queryParam["DisFrom"].IsEmpty()) | |||||
string beginDate = queryParam["StartTime"].ToString(); | |||||
string endDate = queryParam["EndTime"].ToString(); | |||||
if (!string.IsNullOrEmpty(beginDate) && !string.IsNullOrEmpty(endDate)) | |||||
{ | { | ||||
dp.Add("DisFrom", "%" + queryParam["DisFrom"].ToString() + "%", DbType.String); | |||||
strSql.Append(" AND t.DisTitle Like @DisFrom "); | |||||
#region 获取日期(年 月 日) | |||||
string bYaer = beginDate.Substring(0, 4); | |||||
string bMonth = beginDate.Substring(5, 2); | |||||
string bdate = beginDate.Substring(8, 2); | |||||
string eYaer = endDate.Substring(0, 4); | |||||
string eMonth = endDate.Substring(5, 2); | |||||
#endregion | |||||
string edate = endDate.Substring(8, 2); | |||||
strSql.Append(@" and (t.DisYear BETWEEN '" + bYaer + "' and '" + eYaer + "') " + | |||||
"and (t.DisMonth BETWEEN '" + bMonth + "' and '" + eMonth + "') " + | |||||
" and (t.DisDay BETWEEN '" + bdate + "' and '" + edate + "') "); | |||||
} | } | ||||
if (!queryParam["userId"].IsEmpty()) | if (!queryParam["userId"].IsEmpty()) | ||||
{ | { | ||||
@@ -132,6 +132,14 @@ | |||||
<Compile Include="EducationalAdministration\CertificateResult\CertificateResultEntity.cs" /> | <Compile Include="EducationalAdministration\CertificateResult\CertificateResultEntity.cs" /> | ||||
<Compile Include="EducationalAdministration\CertificateResult\CertificateResultIBLL.cs" /> | <Compile Include="EducationalAdministration\CertificateResult\CertificateResultIBLL.cs" /> | ||||
<Compile Include="EducationalAdministration\CertificateResult\CertificateResultService.cs" /> | <Compile Include="EducationalAdministration\CertificateResult\CertificateResultService.cs" /> | ||||
<Compile Include="EducationalAdministration\DispatchAudit\DispatchAuditBLL.cs" /> | |||||
<Compile Include="EducationalAdministration\DispatchAudit\DispatchAuditEntity.cs" /> | |||||
<Compile Include="EducationalAdministration\DispatchAudit\DispatchAuditIBLL.cs" /> | |||||
<Compile Include="EducationalAdministration\DispatchAudit\DispatchAuditService.cs" /> | |||||
<Compile Include="EducationalAdministration\Dispatch\DispatchBLL.cs" /> | |||||
<Compile Include="EducationalAdministration\Dispatch\DispatchEntity.cs" /> | |||||
<Compile Include="EducationalAdministration\Dispatch\DispatchIBLL.cs" /> | |||||
<Compile Include="EducationalAdministration\Dispatch\DispatchService.cs" /> | |||||
<Compile Include="EducationalAdministration\EADateArrange\EADateArrangeBLL.cs" /> | <Compile Include="EducationalAdministration\EADateArrange\EADateArrangeBLL.cs" /> | ||||
<Compile Include="EducationalAdministration\EADateArrange\EADateArrangeEntity.cs" /> | <Compile Include="EducationalAdministration\EADateArrange\EADateArrangeEntity.cs" /> | ||||
<Compile Include="EducationalAdministration\EADateArrange\EADateArrangeIBLL.cs" /> | <Compile Include="EducationalAdministration\EADateArrange\EADateArrangeIBLL.cs" /> | ||||
@@ -298,16 +298,7 @@ namespace Learun.Workflow.Engine | |||||
List<NWFLineInfo> lineList1 = new List<NWFLineInfo>(); | List<NWFLineInfo> lineList1 = new List<NWFLineInfo>(); | ||||
if (overFW) | if (overFW) | ||||
{ | { | ||||
var lastLine = wfScheme.lines.FirstOrDefault(a => !String.IsNullOrEmpty(a.iocName)); | |||||
if (lastLine == null) | |||||
{ | |||||
lineList1.Add(wfScheme.lines.Last()); | lineList1.Add(wfScheme.lines.Last()); | ||||
} | |||||
else | |||||
{ | |||||
lineList1.Add(lastLine); | |||||
} | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
@@ -318,7 +309,7 @@ namespace Learun.Workflow.Engine | |||||
// 找到与当前节点相连的线条 | // 找到与当前节点相连的线条 | ||||
foreach (var line in lineList1) | foreach (var line in lineList1) | ||||
{ | { | ||||
if (line.from == nodeId || overFW) | |||||
if (line.from == nodeId) | |||||
{ | { | ||||
bool isOk = false; | bool isOk = false; | ||||
if (string.IsNullOrEmpty(line.strategy) || line.strategy == "1") | if (string.IsNullOrEmpty(line.strategy) || line.strategy == "1") | ||||