瀏覽代碼

按人员统计科研成果

master
zhangli 3 年之前
父節點
當前提交
d9bcfa08ca
共有 8 個檔案被更改,包括 186 行新增2 行删除
  1. +30
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/SRAchievementsController.cs
  2. +2
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/SRAchievements/IndexStatistics.cshtml
  3. +42
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/SRAchievements/IndexStatisticsForPeople.cshtml
  4. +63
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/SRAchievements/IndexStatisticsForPeople.js
  5. +2
    -0
      Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj
  6. +25
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/SRAchievements/SRAchievementsBLL.cs
  7. +1
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/SRAchievements/SRAchievementsIBLL.cs
  8. +21
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/SRAchievements/SRAchievementsService.cs

+ 30
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/SRAchievementsController.cs 查看文件

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

@@ -94,6 +103,27 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers
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>


+ 2
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/SRAchievements/IndexStatistics.cshtml 查看文件

@@ -9,7 +9,7 @@
<div class="lr-layout-tool-left">
<div class="lr-layout-tool-item">
<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="lr-form-item-title">成果名称</div>
<input id="Name" type="text" class="form-control" />
@@ -22,7 +22,7 @@
<div class="lr-form-item-title">成果级别</div>
<div id="Level"></div>
</div>
</div>
</div>*@
</div>
</div>
</div>


+ 42
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/SRAchievements/IndexStatisticsForPeople.cshtml 查看文件

@@ -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>&nbsp;打印</a>
</div>
</div>
</div>
<div class="lr-layout-body" id="gridtable"></div>
</div>
</div>
</div>
@Html.AppendJsFile("/Areas/CustomFunction/Views/SRAchievements/IndexStatisticsForPeople.js")

+ 63
- 0
Learun.Framework.Ultimate V7/Learun.Application.Web/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();
}

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

@@ -950,6 +950,7 @@
<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\SRAchievements\IndexStatisticsForPeople.js" />
<Content Include="Areas\CustomFunction\Views\SRAchievements\IndexStatistics.js" />
<Content Include="Areas\CustomFunction\Views\SRProjectAchievement\IndexYJ.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\ExpendedManageMain\IndexStatistics.cshtml" />
<Content Include="Areas\CustomFunction\Views\SRAchievements\IndexStatistics.cshtml" />
<Content Include="Areas\CustomFunction\Views\SRAchievements\IndexStatisticsForPeople.cshtml" />
<None Include="Properties\PublishProfiles\CustomProfile.pubxml" />
<Content Include="Areas\PersonnelManagement\Views\MeetingManagement\IndexOfMyJoin.cshtml" />
<Content Include="Areas\PersonnelManagement\Views\MeetingSignInRecord\IndexAttendance.cshtml" />


+ 25
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/SRAchievements/SRAchievementsBLL.cs 查看文件

@@ -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>
/// 获取SRAchievements表实体数据
/// </summary>


+ 1
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/SRAchievements/SRAchievementsIBLL.cs 查看文件

@@ -22,6 +22,7 @@ namespace Learun.Application.TwoDevelopment.CustomFunction
/// <returns></returns>
IEnumerable<SRAchievementsEntity> GetPageList(Pagination pagination, string queryJson);
IEnumerable<SRAchievementsEntity> GetStatisticsList(Pagination pagination, string queryJson);
IEnumerable<SRAchievementsEntity> GetStatisticsListForPeople(Pagination pagination, string queryJson);
/// <summary>
/// 获取SRAchievements表实体数据
/// </summary>


+ 21
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/SRAchievements/SRAchievementsService.cs 查看文件

@@ -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>
/// 获取SRAchievements表实体数据
/// </summary>


Loading…
取消
儲存