瀏覽代碼

代码开发表单提交流程选人弹出功能

娄底高职分支
liangkun 1 年之前
父節點
當前提交
2f85d3f288
共有 38 個檔案被更改,包括 383 行新增384 行删除
  1. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Edu/Index.cshtml
  2. +11
    -14
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Edu/Index.js
  3. +8
    -7
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Edu_Apply/Index.cshtml
  4. +11
    -18
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Edu_Apply/Index.js
  5. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Info/Index.cshtml
  6. +12
    -16
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Info/Index.js
  7. +8
    -7
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Info_Apply/Index.cshtml
  8. +11
    -18
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Info_Apply/Index.js
  9. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Logistic/Index.cshtml
  10. +11
    -16
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Logistic/Index.js
  11. +8
    -7
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Logistic_Apply/Index.cshtml
  12. +11
    -18
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Logistic_Apply/Index.js
  13. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Other/Index.cshtml
  14. +11
    -16
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Other/Index.js
  15. +8
    -7
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Other_Apply/Index.cshtml
  16. +11
    -18
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Other_Apply/Index.js
  17. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Print/Index.cshtml
  18. +11
    -16
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Print/Index.js
  19. +8
    -7
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Print_Apply/Index.cshtml
  20. +11
    -18
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Print_Apply/Index.js
  21. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Index.cshtml
  22. +11
    -14
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Index.js
  23. +8
    -7
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Index.cshtml
  24. +11
    -18
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Index.js
  25. +2
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Student/Index.cshtml
  26. +11
    -16
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Student/Index.js
  27. +8
    -7
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Student_Apply/Index.cshtml
  28. +11
    -18
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Student_Apply/Index.js
  29. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/Index.cshtml
  30. +23
    -28
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/Index.js
  31. +83
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js
  32. +8
    -7
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Index.cshtml
  33. +11
    -18
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Index.js
  34. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Work/Index.cshtml
  35. +11
    -16
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Work/Index.js
  36. +8
    -7
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Work_Apply/Index.cshtml
  37. +11
    -18
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Work_Apply/Index.js
  38. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj

+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Edu/Index.cshtml 查看文件

@@ -2,7 +2,7 @@
ViewBag.Title = "申请类";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -47,3 +47,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Edu/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 11
- 14
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Edu/Index.js 查看文件

@@ -143,9 +143,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
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.init();


+ 8
- 7
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Edu_Apply/Index.cshtml 查看文件

@@ -2,7 +2,7 @@
ViewBag.Title = "教务报账申请";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -33,14 +33,14 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<div class=" btn-group btn-group-sm">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
<div class=" btn-group btn-group-sm">
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
</div>
</div>
</div>
@@ -49,3 +49,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Edu_Apply/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 11
- 18
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Edu_Apply/Index.js 查看文件

@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
//$('#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.init();


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Info/Index.cshtml 查看文件

@@ -2,7 +2,7 @@
ViewBag.Title = "申请类";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -47,3 +47,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Info/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 12
- 16
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Info/Index.js 查看文件

@@ -142,9 +142,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
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.init();


+ 8
- 7
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Info_Apply/Index.cshtml 查看文件

@@ -2,7 +2,7 @@
ViewBag.Title = "教务报账申请";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -33,14 +33,14 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<div class=" btn-group btn-group-sm">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
<div class=" btn-group btn-group-sm">
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
</div>
</div>
</div>
@@ -49,3 +49,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Info_Apply/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 11
- 18
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Info_Apply/Index.js 查看文件

@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
//$('#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.init();


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Logistic/Index.cshtml 查看文件

@@ -2,7 +2,7 @@
ViewBag.Title = "申请类";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -47,3 +47,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Logistic/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 11
- 16
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Logistic/Index.js 查看文件

@@ -142,9 +142,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
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.init();


+ 8
- 7
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Logistic_Apply/Index.cshtml 查看文件

@@ -2,7 +2,7 @@
ViewBag.Title = "教务报账申请";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -33,14 +33,14 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<div class=" btn-group btn-group-sm">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
<div class=" btn-group btn-group-sm">
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
</div>
</div>
</div>
@@ -49,3 +49,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Logistic_Apply/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 11
- 18
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Logistic_Apply/Index.js 查看文件

@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
//$('#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.init();


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Other/Index.cshtml 查看文件

@@ -2,7 +2,7 @@
ViewBag.Title = "申请类";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -47,3 +47,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Other/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 11
- 16
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Other/Index.js 查看文件

@@ -142,9 +142,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
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.init();


+ 8
- 7
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Other_Apply/Index.cshtml 查看文件

@@ -2,7 +2,7 @@
ViewBag.Title = "教务报账申请";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -33,14 +33,14 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<div class=" btn-group btn-group-sm">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
<div class=" btn-group btn-group-sm">
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
</div>
</div>
</div>
@@ -49,3 +49,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Other_Apply/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 11
- 18
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Other_Apply/Index.js 查看文件

@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
//$('#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.init();


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Print/Index.cshtml 查看文件

@@ -2,7 +2,7 @@
ViewBag.Title = "申请类";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -47,3 +47,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Print/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 11
- 16
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Print/Index.js 查看文件

@@ -142,9 +142,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
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.init();


+ 8
- 7
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Print_Apply/Index.cshtml 查看文件

@@ -2,7 +2,7 @@
ViewBag.Title = "教务报账申请";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -33,14 +33,14 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<div class=" btn-group btn-group-sm">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
<div class=" btn-group btn-group-sm">
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
</div>
</div>
</div>
@@ -49,3 +49,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Print_Apply/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 11
- 18
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Print_Apply/Index.js 查看文件

@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
//$('#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.init();


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Index.cshtml 查看文件

@@ -2,7 +2,7 @@
ViewBag.Title = "申请类";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -47,3 +47,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Service/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 11
- 14
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service/Index.js 查看文件

@@ -143,9 +143,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
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.init();


+ 8
- 7
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Index.cshtml 查看文件

@@ -2,7 +2,7 @@
ViewBag.Title = "教务报账申请";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -33,14 +33,14 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<div class=" btn-group btn-group-sm">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
<div class=" btn-group btn-group-sm">
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
</div>
</div>
</div>
@@ -49,3 +49,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 11
- 18
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Service_Apply/Index.js 查看文件

@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
//$('#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.init();


+ 2
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Student/Index.cshtml 查看文件

@@ -2,7 +2,7 @@
ViewBag.Title = "申请类";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -47,3 +47,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Student/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 11
- 16
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Student/Index.js 查看文件

@@ -142,9 +142,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
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.init();


+ 8
- 7
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Student_Apply/Index.cshtml 查看文件

@@ -2,7 +2,7 @@
ViewBag.Title = "教务报账申请";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -33,14 +33,14 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<div class=" btn-group btn-group-sm">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
<div class=" btn-group btn-group-sm">
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
</div>
</div>
</div>
@@ -49,3 +49,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Student_Apply/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 11
- 18
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Student_Apply/Index.js 查看文件

@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
//$('#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.init();


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/Index.cshtml 查看文件

@@ -47,3 +47,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 23
- 28
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/Index.js 查看文件

@@ -6,11 +6,13 @@
*/
var refreshGirdData;
var selectedRow;

var bootstrap = function ($, learun) {
"use strict";
var logbegin = '';
var logend = '';
var processId = '';

var page = {
init: function () {
page.initGird();
@@ -103,10 +105,10 @@ var bootstrap = function ($, learun) {
//res = top[id].validForm();
// 保存数据
//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) {
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();
page.search();
});
@@ -140,15 +142,20 @@ var bootstrap = function ($, learun) {
learun.alert.warning("当前记录已提交!");
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;
}
},
{ label: "随行人员", name: "Follows", width: 100, align: "left"},
{ label: "随行人员", name: "Follows", width: 100, align: "left" },
{ label: "出差原因", name: "Reason", width: 100, align: "left" },
{ label: "开始时间", name: "Starttime", width: 100, align: "left" },
{ label: "结束时间", name: "Endtime", width: 100, align: "left" },
{ label: "提交时间", name: "SubmitTime", width: 130, align: "left" },
{
label: "状态", name: "Status", width: 100, align: "left",
@@ -220,7 +227,6 @@ var bootstrap = function ($, learun) {
{
label: "报账状态", name: "ApplyStatus", width: 100, align: "left",
formatter: function (cellvalue, row) {
console.log(cellvalue)
if (cellvalue == 0) {
return '<span class=\"label label-default\" >待报账</span>';
} else if (cellvalue == 1) {
@@ -231,7 +237,7 @@ var bootstrap = function ($, learun) {
}
},
],
mainId:'Id',
mainId: 'Id',
isPage: true
});
page.search();
@@ -240,21 +246,10 @@ var bootstrap = function ($, learun) {
param = param || {};
param.StartTime = logbegin;
param.EndTime = logend;
$('#gridtable').jfGridSet('reload',{ queryJson: JSON.stringify(param) });
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
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.init();


+ 83
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js 查看文件

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


+ 8
- 7
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Index.cshtml 查看文件

@@ -2,7 +2,7 @@
ViewBag.Title = "教务报账申请";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -33,14 +33,14 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<div class=" btn-group btn-group-sm">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
<div class=" btn-group btn-group-sm">
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
</div>
</div>
</div>
@@ -49,3 +49,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 11
- 18
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Travel_Apply/Index.js 查看文件

@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
//$('#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.init();


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Work/Index.cshtml 查看文件

@@ -47,3 +47,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Work/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 11
- 16
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Work/Index.js 查看文件

@@ -142,9 +142,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
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.init();


+ 8
- 7
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Work_Apply/Index.cshtml 查看文件

@@ -2,7 +2,7 @@
ViewBag.Title = "教务报账申请";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout ">
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
@@ -33,14 +33,14 @@
<div class=" btn-group btn-group-sm">
<a id="lr_refresh" class="btn btn-default"><i class="fa fa-refresh"></i></a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<div class=" btn-group btn-group-sm">
<a id="lr_add" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp;新增</a>
<a id="lr_edit" class="btn btn-default"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
<a id="lr_delete" class="btn btn-default"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
</div>
<div class=" btn-group btn-group-sm" >
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
<div class=" btn-group btn-group-sm">
<a id="lr-sub" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 提交</a>
<a id="lr-view" class="btn btn-default"><i class="fa fa-plus"></i>&nbsp; 查看</a>
</div>
</div>
</div>
@@ -49,3 +49,4 @@
</div>
</div>
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Work_Apply/Index.js")
@Html.AppendJsFile("/Areas/LogisticsManagement/Views/Purchase_Travel/NextUserSelect.js")

+ 11
- 18
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/LogisticsManagement/Views/Purchase_Work_Apply/Index.js 查看文件

@@ -124,9 +124,17 @@ var bootstrap = function ($, learun) {
learun.layerConfirm('是否确认提交该项!', function (res) {
if (res) {
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) {
//$('#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.init();


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj 查看文件

@@ -1452,6 +1452,7 @@
<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\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\Form.js" />
<Content Include="Areas\LogisticsManagement\Views\Purchase_Travel_Apply\FormView.js" />


Loading…
取消
儲存