@@ -2,7 +2,7 @@ | |||||
ViewBag.Title = "申请类"; | ViewBag.Title = "申请类"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | <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"> | ||||
@@ -47,3 +47,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Edu/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Edu/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -143,9 +143,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Edu/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '2-7', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Edu/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -247,17 +255,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '2-7',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -2,7 +2,7 @@ | |||||
ViewBag.Title = "教务报账申请"; | ViewBag.Title = "教务报账申请"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | <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"> | ||||
@@ -33,14 +33,14 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -49,3 +49,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Edu_Apply/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Edu_Apply/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Edu_Apply/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '1-1', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Edu_Apply/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -224,21 +232,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
//$('#gridtable').jfGridSet('reload'); | |||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '1-1',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -2,7 +2,7 @@ | |||||
ViewBag.Title = "申请类"; | ViewBag.Title = "申请类"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | <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"> | ||||
@@ -47,3 +47,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Info/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Info/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -142,9 +142,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Info/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '2-4', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Info/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -245,19 +253,7 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '2-4',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -2,7 +2,7 @@ | |||||
ViewBag.Title = "教务报账申请"; | ViewBag.Title = "教务报账申请"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | <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"> | ||||
@@ -33,14 +33,14 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -49,3 +49,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Info_Apply/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Info_Apply/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Info_Apply/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '1-4', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Info_Apply/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -224,21 +232,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
//$('#gridtable').jfGridSet('reload'); | |||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '1-4',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -2,7 +2,7 @@ | |||||
ViewBag.Title = "申请类"; | ViewBag.Title = "申请类"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | <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"> | ||||
@@ -47,3 +47,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Logistic/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Logistic/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -142,9 +142,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Logistic/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '2-2', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Logistic/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -245,19 +253,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '2-2',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -2,7 +2,7 @@ | |||||
ViewBag.Title = "教务报账申请"; | ViewBag.Title = "教务报账申请"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | <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"> | ||||
@@ -33,14 +33,14 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -49,3 +49,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Logistic_Apply/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Logistic_Apply/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Logistic_Apply/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '1-3', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Logistic_Apply/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -224,21 +232,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
//$('#gridtable').jfGridSet('reload'); | |||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '1-3',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -2,7 +2,7 @@ | |||||
ViewBag.Title = "申请类"; | ViewBag.Title = "申请类"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | <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"> | ||||
@@ -47,3 +47,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Other/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Other/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -142,9 +142,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Other/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '2-6', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Other/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -245,19 +253,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '2-6',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -2,7 +2,7 @@ | |||||
ViewBag.Title = "教务报账申请"; | ViewBag.Title = "教务报账申请"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | <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"> | ||||
@@ -33,14 +33,14 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -49,3 +49,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Other_Apply/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Other_Apply/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Other_Apply/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '1-2', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Other_Apply/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -224,21 +232,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
//$('#gridtable').jfGridSet('reload'); | |||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '1-2',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -2,7 +2,7 @@ | |||||
ViewBag.Title = "申请类"; | ViewBag.Title = "申请类"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | <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"> | ||||
@@ -47,3 +47,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Print/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Print/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -142,9 +142,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Print/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '2-3', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Print/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -245,19 +253,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '2-3',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -2,7 +2,7 @@ | |||||
ViewBag.Title = "教务报账申请"; | ViewBag.Title = "教务报账申请"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | <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"> | ||||
@@ -33,14 +33,14 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -49,3 +49,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Print_Apply/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Print_Apply/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Print_Apply/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '1-6', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Print_Apply/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -224,21 +232,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
//$('#gridtable').jfGridSet('reload'); | |||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '1-6',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -2,7 +2,7 @@ | |||||
ViewBag.Title = "申请类"; | ViewBag.Title = "申请类"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | <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"> | ||||
@@ -47,3 +47,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Service/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Service/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -143,9 +143,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '1-14', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Edu_Apply/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -247,17 +255,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '1-14',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -2,7 +2,7 @@ | |||||
ViewBag.Title = "教务报账申请"; | ViewBag.Title = "教务报账申请"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | <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"> | ||||
@@ -33,14 +33,14 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -49,3 +49,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service_Apply/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '1-13', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Service_Apply/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -224,21 +232,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
//$('#gridtable').jfGridSet('reload'); | |||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '1-13',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -2,7 +2,7 @@ | |||||
ViewBag.Title = "申请类"; | ViewBag.Title = "申请类"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | <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"> | ||||
@@ -47,3 +47,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Student/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Student/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -142,9 +142,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Student/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '2-5', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Student/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -245,19 +253,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '2-5',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -2,7 +2,7 @@ | |||||
ViewBag.Title = "教务报账申请"; | ViewBag.Title = "教务报账申请"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | <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"> | ||||
@@ -33,14 +33,14 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -49,3 +49,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Student_Apply/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Student_Apply/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Student_Apply/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '1-8', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Student_Apply/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -224,21 +232,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
//$('#gridtable').jfGridSet('reload'); | |||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '1-8',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -47,3 +47,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -6,11 +6,13 @@ | |||||
*/ | */ | ||||
var refreshGirdData; | var refreshGirdData; | ||||
var selectedRow; | var selectedRow; | ||||
var bootstrap = function ($, learun) { | var bootstrap = function ($, learun) { | ||||
"use strict"; | "use strict"; | ||||
var logbegin = ''; | var logbegin = ''; | ||||
var logend = ''; | var logend = ''; | ||||
var processId = ''; | var processId = ''; | ||||
var page = { | var page = { | ||||
init: function () { | init: function () { | ||||
page.initGird(); | page.initGird(); | ||||
@@ -103,10 +105,10 @@ var bootstrap = function ($, learun) { | |||||
//res = top[id].validForm(); | //res = top[id].validForm(); | ||||
// 保存数据 | // 保存数据 | ||||
//if (res) { | //if (res) { | ||||
//res = top[id].save('', function () { | |||||
// page.search(); | |||||
//}); | |||||
return top[id].acceptClick(refreshGirdData); | |||||
//res = top[id].save('', function () { | |||||
// page.search(); | |||||
//}); | |||||
return top[id].acceptClick(refreshGirdData); | |||||
//} | //} | ||||
} | } | ||||
}); | }); | ||||
@@ -123,7 +125,7 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
learun.layerConfirm('是否确认删除该项!', function (res) { | learun.layerConfirm('是否确认删除该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/DeleteForm', { keyValue: keyValue}, function () { | |||||
learun.deleteForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/DeleteForm', { keyValue: keyValue }, function () { | |||||
//refreshGirdData(); | //refreshGirdData(); | ||||
page.search(); | page.search(); | ||||
}); | }); | ||||
@@ -140,15 +142,20 @@ var bootstrap = function ($, learun) { | |||||
learun.alert.warning("当前记录已提交!"); | learun.alert.warning("当前记录已提交!"); | ||||
return false; | return false; | ||||
} | } | ||||
learun.layerConfirm('是否确认提交该项!', function (res) { | |||||
if (res) { | |||||
processId = learun.newGuid(); | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
processId = learun.newGuid(); | |||||
CreateFlow(processId, '0.1', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | }); | ||||
} | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
// 查看 | // 查看 | ||||
@@ -182,11 +189,11 @@ var bootstrap = function ($, learun) { | |||||
return row.CreatorName; | return row.CreatorName; | ||||
} | } | ||||
}, | }, | ||||
{ label: "随行人员", name: "Follows", width: 100, align: "left"}, | |||||
{ label: "随行人员", name: "Follows", width: 100, align: "left" }, | |||||
{ label: "出差原因", name: "Reason", width: 100, align: "left" }, | { label: "出差原因", name: "Reason", width: 100, align: "left" }, | ||||
{ label: "开始时间", name: "Starttime", width: 100, align: "left" }, | { label: "开始时间", name: "Starttime", width: 100, align: "left" }, | ||||
{ label: "结束时间", name: "Endtime", width: 100, align: "left" }, | { label: "结束时间", name: "Endtime", width: 100, align: "left" }, | ||||
{ label: "提交时间", name: "SubmitTime", width: 130, align: "left" }, | { label: "提交时间", name: "SubmitTime", width: 130, align: "left" }, | ||||
{ | { | ||||
label: "状态", name: "Status", width: 100, align: "left", | label: "状态", name: "Status", width: 100, align: "left", | ||||
@@ -220,7 +227,6 @@ var bootstrap = function ($, learun) { | |||||
{ | { | ||||
label: "报账状态", name: "ApplyStatus", width: 100, align: "left", | label: "报账状态", name: "ApplyStatus", width: 100, align: "left", | ||||
formatter: function (cellvalue, row) { | formatter: function (cellvalue, row) { | ||||
console.log(cellvalue) | |||||
if (cellvalue == 0) { | if (cellvalue == 0) { | ||||
return '<span class=\"label label-default\" >待报账</span>'; | return '<span class=\"label label-default\" >待报账</span>'; | ||||
} else if (cellvalue == 1) { | } else if (cellvalue == 1) { | ||||
@@ -231,7 +237,7 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}, | }, | ||||
], | ], | ||||
mainId:'Id', | |||||
mainId: 'Id', | |||||
isPage: true | isPage: true | ||||
}); | }); | ||||
page.search(); | page.search(); | ||||
@@ -240,21 +246,10 @@ var bootstrap = function ($, learun) { | |||||
param = param || {}; | param = param || {}; | ||||
param.StartTime = logbegin; | param.StartTime = logbegin; | ||||
param.EndTime = logend; | param.EndTime = logend; | ||||
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) }); | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '0.1',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -0,0 +1,83 @@ | |||||
var nwflow = { | |||||
schemeObj: null, | |||||
nodeMap: {}, | |||||
currentNode: null, | |||||
history: [], | |||||
currentIds: [], | |||||
taskInfo: [], | |||||
isFinished: 0 | |||||
} | |||||
function CreateFlow(processId, schemeCode, callback) { | |||||
top.learun.httpAsync('GET', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/GetSchemeByCode', { code: schemeCode }, function (data) { | |||||
if (data) { | |||||
nwflow.schemeObj = JSON.parse(data.F_Content); | |||||
// 获取开始节点 | |||||
$.each(nwflow.schemeObj.nodes, function (_index, _item) { | |||||
if (_item.type == 'startround') { | |||||
nwflow.currentNode = _item; | |||||
return false; | |||||
} | |||||
}); | |||||
var param = { | |||||
code: schemeCode, | |||||
processId: '', | |||||
taskId: '', | |||||
nodeId: nwflow.currentNode.id, | |||||
operationCode: 'agree' | |||||
}; | |||||
top.learun.httpAsync('GET', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/GetNextAuditors', param, function (datauser) { | |||||
var chooseuser = false; | |||||
$.each(datauser, function (_id, _list) { | |||||
if (_list.length > 1) { | |||||
chooseuser = true; | |||||
return false; | |||||
} | |||||
}); | |||||
nwflow.nextUsers = datauser; | |||||
if (chooseuser) { | |||||
top.learun.layerForm({ | |||||
id: 'SelectUserForm', | |||||
title: '选择下一节点审核人员', | |||||
url: top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/SelectUserForm', | |||||
width: 400, | |||||
height: 340, | |||||
callBack: function (id) { | |||||
return top[id].acceptClick(function (auditers) { | |||||
// 创建流程 | |||||
top.learun.loading(true, '创建流程...'); | |||||
var postData = { | |||||
schemeCode: schemeCode, | |||||
processId: processId, | |||||
level: '1', | |||||
auditors: JSON.stringify(auditers) | |||||
}; | |||||
top.learun.httpAsync('Post', | |||||
top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', | |||||
postData, | |||||
function (data) { | |||||
callback && callback(); | |||||
}); | |||||
}); | |||||
} | |||||
}); | |||||
} else { | |||||
// 创建流程 | |||||
top.learun.loading(true, '创建流程...'); | |||||
var postData = { | |||||
schemeCode: schemeCode, | |||||
processId: processId, | |||||
level: '1' | |||||
}; | |||||
top.learun.httpAsync('Post', | |||||
top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', | |||||
postData, | |||||
function (data) { | |||||
callback && callback(); | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
}); | |||||
} | |||||
@@ -2,7 +2,7 @@ | |||||
ViewBag.Title = "教务报账申请"; | ViewBag.Title = "教务报账申请"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | <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"> | ||||
@@ -33,14 +33,14 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -49,3 +49,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel_Apply/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '1-5', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Travel_Apply/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -224,21 +232,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
//$('#gridtable').jfGridSet('reload'); | |||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '1-5',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -47,3 +47,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Work/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Work/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -142,9 +142,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Work/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '2-1', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Work/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -245,19 +253,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '2-1',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -2,7 +2,7 @@ | |||||
ViewBag.Title = "教务报账申请"; | ViewBag.Title = "教务报账申请"; | ||||
Layout = "~/Views/Shared/_Index.cshtml"; | Layout = "~/Views/Shared/_Index.cshtml"; | ||||
} | } | ||||
<div class="lr-layout " > | |||||
<div class="lr-layout "> | |||||
<div class="lr-layout-center"> | <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"> | ||||
@@ -33,14 +33,14 @@ | |||||
<div class=" btn-group btn-group-sm"> | <div class=" btn-group btn-group-sm"> | ||||
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | <a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i> 新增</a> | |||||
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i> 编辑</a> | |||||
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | <a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i> 删除</a> | ||||
</div> | </div> | ||||
<div class=" btn-group btn-group-sm" > | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
<div class=" btn-group btn-group-sm"> | |||||
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i> 提交</a> | |||||
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i> 查看</a> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -49,3 +49,4 @@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Work_Apply/Index.js") | @Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Work_Apply/Index.js") | ||||
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js") |
@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) { | |||||
learun.layerConfirm('是否确认提交该项!', function (res) { | learun.layerConfirm('是否确认提交该项!', function (res) { | ||||
if (res) { | if (res) { | ||||
processId = learun.newGuid(); | processId = learun.newGuid(); | ||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Work_Apply/ModifyStatus', { keyValue: keyValue, status: 1, processId: processId }, function (res) { | |||||
//selectedRow.ProcessId = processId; | |||||
refreshGirdData(res, {}); | |||||
CreateFlow(processId, '1-7', function () { | |||||
learun.postForm(top.$.rootUrl + '/LogisticsManagement/Purchase_Work_Apply/ModifyStatus', | |||||
{ | |||||
keyValue: keyValue, | |||||
status: 1, | |||||
processId: processId | |||||
}, | |||||
function (ressub) { | |||||
refreshGirdData(ressub, {}); | |||||
learun.loading(false); | |||||
}); | |||||
}); | }); | ||||
} | } | ||||
}); | }); | ||||
@@ -224,21 +232,6 @@ var bootstrap = function ($, learun) { | |||||
} | } | ||||
}; | }; | ||||
refreshGirdData = function (res, postData) { | refreshGirdData = function (res, postData) { | ||||
//$('#gridtable').jfGridSet('reload'); | |||||
if (res && res.code && res.code == 200) { | |||||
// 发起流程 | |||||
var postData = { | |||||
schemeCode: '1-7',// 填写流程对应模板编号 | |||||
processId: processId, | |||||
level: '1', | |||||
}; | |||||
learun.httpAsync('Post', top.$.rootUrl + '/LR_NewWorkFlow/NWFProcess/CreateFlow', postData, function (data) { | |||||
learun.loading(false); | |||||
}); | |||||
} | |||||
page.search(); | page.search(); | ||||
}; | }; | ||||
page.init(); | page.init(); | ||||
@@ -1452,6 +1452,7 @@ | |||||
<Content Include="Areas\LogisticsManagement\Views\Purchase_Travel\Form.js" /> | <Content Include="Areas\LogisticsManagement\Views\Purchase_Travel\Form.js" /> | ||||
<Content Include="Areas\LogisticsManagement\Views\Purchase_Travel\FormView.js" /> | <Content Include="Areas\LogisticsManagement\Views\Purchase_Travel\FormView.js" /> | ||||
<Content Include="Areas\LogisticsManagement\Views\Purchase_Travel\Index.js" /> | <Content Include="Areas\LogisticsManagement\Views\Purchase_Travel\Index.js" /> | ||||
<Content Include="Areas\LogisticsManagement\Views\Purchase_Travel\NextUserSelect.js" /> | |||||
<Content Include="Areas\LogisticsManagement\Views\Purchase_Travel_Apply\FindBack.js" /> | <Content Include="Areas\LogisticsManagement\Views\Purchase_Travel_Apply\FindBack.js" /> | ||||
<Content Include="Areas\LogisticsManagement\Views\Purchase_Travel_Apply\Form.js" /> | <Content Include="Areas\LogisticsManagement\Views\Purchase_Travel_Apply\Form.js" /> | ||||
<Content Include="Areas\LogisticsManagement\Views\Purchase_Travel_Apply\FormView.js" /> | <Content Include="Areas\LogisticsManagement\Views\Purchase_Travel_Apply\FormView.js" /> | ||||