diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/SRAchievementsController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/SRAchievementsController.cs index bb610b624..719c14816 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Controllers/SRAchievementsController.cs +++ b/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(); } + /// + /// 根据人员统计 + /// + /// + [HttpGet] + public ActionResult IndexStatisticsForPeople() + { + return View(); + } #endregion @@ -94,6 +103,27 @@ namespace Learun.Application.Web.Areas.CustomFunction.Controllers return Success(jsonData); } + /// + /// 获取页面显示列表数据 + /// + /// 分页参数 + /// 查询参数 + /// + [HttpGet] + [AjaxOnly] + public ActionResult GetStatisticsListForPeople(string pagination, string queryJson) + { + Pagination paginationobj = pagination.ToObject(); + var data = sRAchievementsIBLL.GetStatisticsListForPeople(paginationobj, queryJson); + var jsonData = new + { + rows = data, + total = paginationobj.total, + page = paginationobj.page, + records = paginationobj.records + }; + return Success(jsonData); + } /// /// 获取表单数据 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/SRAchievements/IndexStatistics.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/SRAchievements/IndexStatistics.cshtml index 99fadb0d2..0eddb74c3 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/SRAchievements/IndexStatistics.cshtml +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/SRAchievements/IndexStatistics.cshtml @@ -9,7 +9,7 @@
-
+ @*
成果名称
@@ -22,7 +22,7 @@
成果级别
-
+
*@
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/SRAchievements/IndexStatisticsForPeople.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/SRAchievements/IndexStatisticsForPeople.cshtml new file mode 100644 index 000000000..51a8e647f --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/SRAchievements/IndexStatisticsForPeople.cshtml @@ -0,0 +1,42 @@ +@{ + ViewBag.Title = "科研成果管理"; + Layout = "~/Views/Shared/_Index.cshtml"; +} +
+
+
+
+
+
+
+ @*
+
+
成果名称
+ +
+
+
成果分类
+
+
+
+
成果级别
+
+
+
*@ +
+
+
+
+
+ +
+
+  打印 +
+
+
+
+
+
+
+@Html.AppendJsFile("/Areas/CustomFunction/Views/SRAchievements/IndexStatisticsForPeople.js") diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/SRAchievements/IndexStatisticsForPeople.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/CustomFunction/Views/SRAchievements/IndexStatisticsForPeople.js new file mode 100644 index 000000000..2c20ff1b4 --- /dev/null +++ b/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(); +} diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj index 1b7613c19..9a3377e75 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Learun.Application.Web.csproj @@ -950,6 +950,7 @@ + @@ -7401,6 +7402,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/SRAchievements/SRAchievementsBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/SRAchievements/SRAchievementsBLL.cs index 0455eb212..7f31845b4 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/SRAchievements/SRAchievementsBLL.cs +++ b/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 } } } + + /// + /// 获取页面显示列表数据 + /// + /// 分页参数 + /// 查询参数 + /// + public IEnumerable GetStatisticsListForPeople(Pagination pagination, string queryJson) + { + try + { + return sRAchievementsService.GetStatisticsListForPeople(pagination, queryJson); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowBusinessException(ex); + } + } + } /// /// 获取SRAchievements表实体数据 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/SRAchievements/SRAchievementsIBLL.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/SRAchievements/SRAchievementsIBLL.cs index a55f0bebd..e11cb10a2 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/SRAchievements/SRAchievementsIBLL.cs +++ b/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 /// IEnumerable GetPageList(Pagination pagination, string queryJson); IEnumerable GetStatisticsList(Pagination pagination, string queryJson); + IEnumerable GetStatisticsListForPeople(Pagination pagination, string queryJson); /// /// 获取SRAchievements表实体数据 /// diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/SRAchievements/SRAchievementsService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/SRAchievements/SRAchievementsService.cs index 91f15040c..64e090321 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/CustomFunction/SRAchievements/SRAchievementsService.cs +++ b/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 GetStatisticsListForPeople(Pagination pagination, string queryJson) + { + try + { + string sql = "select ManageName,count(1) as num from SRAchievements group by ManageName "; + return this.BaseRepository("CollegeMIS").FindList(sql); + } + catch (Exception ex) + { + if (ex is ExceptionEx) + { + throw; + } + else + { + throw ExceptionEx.ThrowServiceException(ex); + } + } + } + /// /// 获取SRAchievements表实体数据 ///