Bladeren bron

预算统计、报销统计

master
zhangli 3 jaren geleden
bovenliggende
commit
8296691553
8 gewijzigde bestanden met toevoegingen van 274 en 5 verwijderingen
  1. +10
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/ExpendedManageMainController.cs
  2. +9
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/FundsManageMainController.cs
  3. +34
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/ExpendedManageMain/IndexStatistics.cshtml
  4. +89
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/ExpendedManageMain/IndexStatistics.js
  5. +8
    -4
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/FundsManageMain/IndexCheck.js
  6. +34
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/FundsManageMain/IndexStatistics.cshtml
  7. +86
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/FundsManageMain/IndexStatistics.js
  8. +4
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj

+ 10
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/ExpendedManageMainController.cs Bestand weergeven

@@ -47,7 +47,16 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers
{
return View();
}

/// <summary>
/// 统计
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult IndexStatistics()
{
return View();
}
#endregion

#region 获取数据


+ 9
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/FundsManageMainController.cs Bestand weergeven

@@ -47,6 +47,15 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers
{
return View();
}
/// <summary>
/// 统计
/// <summary>
/// <returns></returns>
[HttpGet]
public ActionResult IndexStatistics()
{
return View();
}
#endregion



+ 34
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/ExpendedManageMain/IndexStatistics.cshtml Bestand weergeven

@@ -0,0 +1,34 @@
@{
ViewBag.Title = "经费报销管理";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">项目编号 </div>
<div id="SRProjectBasicId"></div>
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right">
<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" learun-authorize="yes">
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/CustomFunction/Views/ExpendedManageMain/IndexStatistics.js")

+ 89
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/ExpendedManageMain/IndexStatistics.js Bestand weergeven

@@ -0,0 +1,89 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-09-29 10:37
* 描 述:经费报销管理
*/
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.initGird();
page.bind();
},
bind: function () {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
$('#SRProjectBasicId').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/CustomFunction/SRProjectBasic/GetList',
value: "ID",
text: "EnCode"
});
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 打印
$('#lr_print').on('click', function () {
$('#gridtable').jqprintTable();
});
},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/CustomFunction/ExpendedManageMain/GetPageList',
headData: [
{
label: "项目编号 ", name: "SRProjectBasicCode", width: 100, align: "left"
},
{ label: "预算总金额", name: "FundsSum", width: 100, align: "left", statistics: true },
{ label: "报销总金额", name: "ExpendedSum", width: 100, align: "left", statistics: true },
{
label: "申请人", name: "CreateUserId", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('user', {
key: value,
callback: function (_data) {
callback(_data.name);
}
});
}
},
{
label: "申请时间", name: "CreateTime", width: 150, align: "left"
},
{ label: "备注", name: "Remark", width: 100, align: "left" },
{
label: "状态", name: "Status", width: 100, align: "left",
formatter: function (cellvalue, row) {
if (cellvalue == 0) {
return "<span class=\"label label-default\">草稿</span>";
} else if (cellvalue == 1) {
return "<span class=\"label label-warning\">已提交</span>";
} else if (cellvalue == 2) {
return "<span class=\"label label-success\">审核通过</span>";
} else if (cellvalue == 3) {
return "<span class=\"label label-danger\">审核未通过</span>";
}
}
},
],
mainId: 'ID',
isPage: true
});
page.search();
},
search: function (param) {
param = param || {};
param.SqlParameter = " and Status=2 ";
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 8
- 4
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/FundsManageMain/IndexCheck.js Bestand weergeven

@@ -31,7 +31,7 @@ var bootstrap = function ($, learun) {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
var Status = $('#gridtable').jfGridValue('Status');
if (Status != 1) {
if (Status == 0) {
return learun.alert.warning('请先提交选中记录!');
}
learun.layerConfirm('是否确认审核通过该项!', function (res) {
@@ -47,6 +47,10 @@ var bootstrap = function ($, learun) {
$('#lr_fail').on('click', function () {
var keyValue = $('#gridtable').jfGridValue('ID');
if (learun.checkrow(keyValue)) {
var Status = $('#gridtable').jfGridValue('Status');
if (Status == 0) {
return learun.alert.warning('请先提交选中记录!');
}
learun.layerConfirm('是否确认未通过该项!', function (res) {
if (res) {
learun.postForm(top.$.rootUrl + '/CustomFunction/FundsManageMain/UpdateStatus', { keyValue: keyValue, Status: 3 }, function () {
@@ -84,11 +88,11 @@ var bootstrap = function ($, learun) {
},
{ label: "备注", name: "Remark", width: 100, align: "left" },
{
label: "状态", name: "Status", width: 100, align: "left" ,
formatter: function(cellvalue, row) {
label: "状态", name: "Status", width: 100, align: "left",
formatter: function (cellvalue, row) {
if (cellvalue == 0) {
return "<span class=\"label label-default\">草稿</span>";
} else if (cellvalue == 1){
} else if (cellvalue == 1) {
return "<span class=\"label label-warning\">已提交</span>";
} else if (cellvalue == 2) {
return "<span class=\"label label-success\">审核通过</span>";


+ 34
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/FundsManageMain/IndexStatistics.cshtml Bestand weergeven

@@ -0,0 +1,34 @@
@{
ViewBag.Title = "经费预算管理";
Layout = "~/Views/Shared/_Index.cshtml";
}
<div class="lr-layout " >
<div class="lr-layout-center">
<div class="lr-layout-wrap lr-layout-wrap-notitle ">
<div class="lr-layout-tool">
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<div id="multiple_condition_query">
<div class="lr-query-formcontent">
<div class="col-xs-12 lr-form-item">
<div class="lr-form-item-title">项目编号</div>
<div id="SRProjectBasicId"></div>
</div>
</div>
</div>
</div>
</div>
<div class="lr-layout-tool-right">
<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" learun-authorize="yes">
<a id="lr_print" class="btn btn-default"><i class="fa fa-print"></i>&nbsp;打印</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/CustomFunction/Views/FundsManageMain/IndexStatistics.js")

+ 86
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/FundsManageMain/IndexStatistics.js Bestand weergeven

@@ -0,0 +1,86 @@
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn)
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司
* 创建人:超级管理员
* 日 期:2021-09-27 11:38
* 描 述:经费预算管理
*/
var refreshGirdData;
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
page.initGird();
page.bind();
},
bind: function () {
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) {
page.search(queryJson);
}, 220, 400);
$('#SRProjectBasicId').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/CustomFunction/SRProjectBasic/GetList',
value: "ID",
text: "EnCode"
});
// 刷新
$('#lr_refresh').on('click', function () {
location.reload();
});
// 打印
$('#lr_print').on('click', function () {
$('#gridtable').jqprintTable();
});
},
// 初始化列表
initGird: function () {
$('#gridtable').jfGrid({
url: top.$.rootUrl + '/CustomFunction/FundsManageMain/GetPageList',
headData: [
{
label: "项目编号", name: "SRProjectBasicCode", width: 100, align: "left"
},
{ label: "总预算", name: "FundsSum", width: 100, align: "left", statistics: true },
{ label: "申请时间", name: "CreateTime", width: 100, align: "left" },
{
label: "申请人", name: "CreateUserId", width: 100, align: "left",
formatterAsync: function (callback, value, row, op, $cell) {
learun.clientdata.getAsync('user', {
key: value,
callback: function (_data) {
callback(_data.name);
}
});
}
},
{ label: "备注", name: "Remark", width: 100, align: "left" },
{
label: "状态", name: "Status", width: 100, align: "left",
formatter: function (cellvalue, row) {
if (cellvalue == 0) {
return "<span class=\"label label-default\">草稿</span>";
} else if (cellvalue == 1) {
return "<span class=\"label label-warning\">已提交</span>";
} else if (cellvalue == 2) {
return "<span class=\"label label-success\">审核通过</span>";
} else if (cellvalue == 3) {
return "<span class=\"label label-danger\">审核未通过</span>";
}
}
},
],
mainId: 'ID',
isPage: true
});
page.search();
},
search: function (param) {
param = param || {};
param.SqlParameter = " and Status=2 ";
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
refreshGirdData = function () {
$('#gridtable').jfGridSet('reload');
};
page.init();
}

+ 4
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj Bestand weergeven

@@ -944,7 +944,9 @@
<Content Include="Areas\AssetManagementSystem\Views\Ass_UserChangeInfo\Index.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_Warning\Form.js" />
<Content Include="Areas\AssetManagementSystem\Views\Ass_Warning\Index.js" />
<Content Include="Areas\CustomFunction\Views\ExpendedManageMain\IndexStatistics.js" />
<Content Include="Areas\CustomFunction\Views\ExpendedManageMain\IndexCheck.js" />
<Content Include="Areas\CustomFunction\Views\FundsManageMain\IndexStatistics.js" />
<Content Include="Areas\CustomFunction\Views\FundsManageMain\IndexCheck.js" />
<Content Include="Areas\CustomFunction\Views\PaperManage\IndexReport.js" />
<Content Include="Areas\CustomFunction\Views\SRProjectAchievement\IndexYJ.js" />
@@ -7390,6 +7392,8 @@
<Content Include="Areas\CustomFunction\Views\PaperManage\IndexReport.cshtml" />
<Content Include="Areas\CustomFunction\Views\FundsManageMain\IndexCheck.cshtml" />
<Content Include="Areas\CustomFunction\Views\ExpendedManageMain\IndexCheck.cshtml" />
<Content Include="Areas\CustomFunction\Views\FundsManageMain\IndexStatistics.cshtml" />
<Content Include="Areas\CustomFunction\Views\ExpendedManageMain\IndexStatistics.cshtml" />
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" />
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyJoin.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\MeetingSignInRecord\IndexAttendance.cshtml" />


Laden…
Annuleren
Opslaan