@@ -46,6 +46,15 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers | |||||
{ | { | ||||
return View(); | return View(); | ||||
} | } | ||||
/// <summary> | |||||
/// 根据人员统计 | |||||
/// <summary> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
public ActionResult IndexStatisticsForPeople() | |||||
{ | |||||
return View(); | |||||
} | |||||
#endregion | #endregion | ||||
@@ -94,6 +103,27 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers | |||||
return Success(jsonData); | return Success(jsonData); | ||||
} | } | ||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
[HttpGet] | |||||
[AjaxOnly] | |||||
public ActionResult GetStatisticsListForPeople(string pagination, string queryJson) | |||||
{ | |||||
Pagination paginationobj = pagination.ToObject<Pagination>(); | |||||
var data = sRAchievementsIBLL.GetStatisticsListForPeople(paginationobj, queryJson); | |||||
var jsonData = new | |||||
{ | |||||
rows = data, | |||||
total = paginationobj.total, | |||||
page = paginationobj.page, | |||||
records = paginationobj.records | |||||
}; | |||||
return Success(jsonData); | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 获取表单数据 | /// 获取表单数据 | ||||
/// </summary> | /// </summary> | ||||
@@ -9,7 +9,7 @@ | |||||
<div class="lr-layout-tool-left"> | <div class="lr-layout-tool-left"> | ||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<div id="multiple_condition_query"> | <div id="multiple_condition_query"> | ||||
<div class="lr-query-formcontent"> | |||||
@*<div class="lr-query-formcontent"> | |||||
<div class="col-xs-12 lr-form-item"> | <div class="col-xs-12 lr-form-item"> | ||||
<div class="lr-form-item-title">成果名称</div> | <div class="lr-form-item-title">成果名称</div> | ||||
<input id="Name" type="text" class="form-control" /> | <input id="Name" type="text" class="form-control" /> | ||||
@@ -22,7 +22,7 @@ | |||||
<div class="lr-form-item-title">成果级别</div> | <div class="lr-form-item-title">成果级别</div> | ||||
<div id="Level"></div> | <div id="Level"></div> | ||||
</div> | </div> | ||||
</div> | |||||
</div>*@ | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -0,0 +1,42 @@ | |||||
@{ | |||||
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> | |||||
<input id="Name" type="text" class="form-control" /> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">成果分类</div> | |||||
<div id="Type"></div> | |||||
</div> | |||||
<div class="col-xs-12 lr-form-item"> | |||||
<div class="lr-form-item-title">成果级别</div> | |||||
<div id="Level"></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> 打印</a> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
<div class="lr-layout-body" id="gridtable"></div> | |||||
</div> | |||||
</div> | |||||
</div> | |||||
@Html.AppendJsFile("/Areas/CustomFunction/Views/SRAchievements/IndexStatisticsForPeople.js") |
@@ -0,0 +1,63 @@ | |||||
/* * 版 本 Learun-ADMS V7.0.6 力软敏捷开发框架(http://www.learun.cn) | |||||
* Copyright (c) 2013-2020 力软信息技术(苏州)有限公司 | |||||
* 创建人:超级管理员 | |||||
* 日 期:2021-10-11 12:01 | |||||
* 描 述:科研成果管理 | |||||
*/ | |||||
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); | |||||
// 刷新 | |||||
$('#lr_refresh').on('click', function () { | |||||
location.reload(); | |||||
}); | |||||
// 打印 | |||||
$('#lr_print').on('click', function () { | |||||
$('#gridtable').jqprintTable(); | |||||
}); | |||||
}, | |||||
// 初始化列表 | |||||
initGird: function () { | |||||
$('#gridtable').jfGrid({ | |||||
url: top.$.rootUrl + '/CustomFunction/SRAchievements/GetStatisticsListForPeople', | |||||
headData: [ | |||||
{ | |||||
label: "负责人", name: "ManageName", width: 100, align: "left", | |||||
formatterAsync: function (callback, value, row, op, $cell) { | |||||
learun.clientdata.getAsync('custmerData', { | |||||
url: '/LR_SystemModule/DataSource/GetDataTable?code=' + 'teacheruserdata', | |||||
key: value, | |||||
keyId: 'f_userid', | |||||
callback: function (_data) { | |||||
callback(_data['f_realname']); | |||||
} | |||||
}); | |||||
} | |||||
}, | |||||
{ label: "成果个数", name: "num", width: 100, align: "left", statistics: true } | |||||
], | |||||
mainId: 'ID', | |||||
isPage: true | |||||
}); | |||||
page.search(); | |||||
}, | |||||
search: function (param) { | |||||
param = param || {}; | |||||
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) }); | |||||
} | |||||
}; | |||||
refreshGirdData = function () { | |||||
$('#gridtable').jfGridSet('reload'); | |||||
}; | |||||
page.init(); | |||||
} |
@@ -950,6 +950,7 @@ | |||||
<Content Include="Areas\CustomFunction\Views\FundsManageMain\IndexStatistics.js" /> | <Content Include="Areas\CustomFunction\Views\FundsManageMain\IndexStatistics.js" /> | ||||
<Content Include="Areas\CustomFunction\Views\FundsManageMain\IndexCheck.js" /> | <Content Include="Areas\CustomFunction\Views\FundsManageMain\IndexCheck.js" /> | ||||
<Content Include="Areas\CustomFunction\Views\PaperManage\IndexReport.js" /> | <Content Include="Areas\CustomFunction\Views\PaperManage\IndexReport.js" /> | ||||
<Content Include="Areas\CustomFunction\Views\SRAchievements\IndexStatisticsForPeople.js" /> | |||||
<Content Include="Areas\CustomFunction\Views\SRAchievements\IndexStatistics.js" /> | <Content Include="Areas\CustomFunction\Views\SRAchievements\IndexStatistics.js" /> | ||||
<Content Include="Areas\CustomFunction\Views\SRProjectAchievement\IndexYJ.js" /> | <Content Include="Areas\CustomFunction\Views\SRProjectAchievement\IndexYJ.js" /> | ||||
<Content Include="Areas\CustomFunction\Views\SRProjectBasic\FormNoCompleted.js" /> | <Content Include="Areas\CustomFunction\Views\SRProjectBasic\FormNoCompleted.js" /> | ||||
@@ -7401,6 +7402,7 @@ | |||||
<Content Include="Areas\CustomFunction\Views\FundsManageMain\IndexStatistics.cshtml" /> | <Content Include="Areas\CustomFunction\Views\FundsManageMain\IndexStatistics.cshtml" /> | ||||
<Content Include="Areas\CustomFunction\Views\ExpendedManageMain\IndexStatistics.cshtml" /> | <Content Include="Areas\CustomFunction\Views\ExpendedManageMain\IndexStatistics.cshtml" /> | ||||
<Content Include="Areas\CustomFunction\Views\SRAchievements\IndexStatistics.cshtml" /> | <Content Include="Areas\CustomFunction\Views\SRAchievements\IndexStatistics.cshtml" /> | ||||
<Content Include="Areas\CustomFunction\Views\SRAchievements\IndexStatisticsForPeople.cshtml" /> | |||||
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | <None Include="Properties\PublishProfiles\CustomProfile.pubxml" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyJoin.cshtml" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyJoin.cshtml" /> | ||||
<Content Include="Areas\PersonnelManagement\Views\MeetingSignInRecord\IndexAttendance.cshtml" /> | <Content Include="Areas\PersonnelManagement\Views\MeetingSignInRecord\IndexAttendance.cshtml" /> | ||||
@@ -68,6 +68,31 @@ namespace Learun.Application.TwoDevelopment.CustomFunction | |||||
} | } | ||||
} | } | ||||
} | } | ||||
/// <summary> | |||||
/// 获取页面显示列表数据 | |||||
/// </summary> | |||||
/// <param name="pagination">分页参数</param> | |||||
/// <param name="queryJson">查询参数</param> | |||||
/// <returns></returns> | |||||
public IEnumerable<SRAchievementsEntity> GetStatisticsListForPeople(Pagination pagination, string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
return sRAchievementsService.GetStatisticsListForPeople(pagination, queryJson); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowBusinessException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 获取SRAchievements表实体数据 | /// 获取SRAchievements表实体数据 | ||||
/// </summary> | /// </summary> | ||||
@@ -22,6 +22,7 @@ namespace Learun.Application.TwoDevelopment.CustomFunction | |||||
/// <returns></returns> | /// <returns></returns> | ||||
IEnumerable<SRAchievementsEntity> GetPageList(Pagination pagination, string queryJson); | IEnumerable<SRAchievementsEntity> GetPageList(Pagination pagination, string queryJson); | ||||
IEnumerable<SRAchievementsEntity> GetStatisticsList(Pagination pagination, string queryJson); | IEnumerable<SRAchievementsEntity> GetStatisticsList(Pagination pagination, string queryJson); | ||||
IEnumerable<SRAchievementsEntity> GetStatisticsListForPeople(Pagination pagination, string queryJson); | |||||
/// <summary> | /// <summary> | ||||
/// 获取SRAchievements表实体数据 | /// 获取SRAchievements表实体数据 | ||||
/// </summary> | /// </summary> | ||||
@@ -94,6 +94,27 @@ namespace Learun.Application.TwoDevelopment.CustomFunction | |||||
} | } | ||||
} | } | ||||
public IEnumerable<SRAchievementsEntity> GetStatisticsListForPeople(Pagination pagination, string queryJson) | |||||
{ | |||||
try | |||||
{ | |||||
string sql = "select ManageName,count(1) as num from SRAchievements group by ManageName "; | |||||
return this.BaseRepository("CollegeMIS").FindList<SRAchievementsEntity>(sql); | |||||
} | |||||
catch (Exception ex) | |||||
{ | |||||
if (ex is ExceptionEx) | |||||
{ | |||||
throw; | |||||
} | |||||
else | |||||
{ | |||||
throw ExceptionEx.ThrowServiceException(ex); | |||||
} | |||||
} | |||||
} | |||||
/// <summary> | /// <summary> | ||||
/// 获取SRAchievements表实体数据 | /// 获取SRAchievements表实体数据 | ||||
/// </summary> | /// </summary> | ||||