@@ -1099,7 +1099,9 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
GetKeyNum = x.Count(y => y.GetKeyStatus == "1"), | GetKeyNum = x.Count(y => y.GetKeyStatus == "1"), | ||||
GetCardNum = x.Count(y => y.GetCardStatus == "1"), | GetCardNum = x.Count(y => y.GetCardStatus == "1"), | ||||
CollectFileNum = x.Count(y => y.CollectFileStatus == "1"), | CollectFileNum = x.Count(y => y.CollectFileStatus == "1"), | ||||
LoanNum = x.Count(y => y.StudentLoanStatus == "1") | |||||
LoanNum = x.Count(y => y.StudentLoanStatus == "1"), | |||||
GetMiliClothesNum = x.Count(y => y.GetMiliClothesStatus == "1"), | |||||
GetBeddingNum = x.Count(y => y.GetBeddingStatus == "1") | |||||
}).OrderBy(x => x.MajorNo); | }).OrderBy(x => x.MajorNo); | ||||
//var aa = new StatisticModel | //var aa = new StatisticModel | ||||
@@ -1143,7 +1145,9 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
GetKeyNum = x.Count(y => y.GetKeyStatus == "1"), | GetKeyNum = x.Count(y => y.GetKeyStatus == "1"), | ||||
GetCardNum = x.Count(y => y.GetCardStatus == "1"), | GetCardNum = x.Count(y => y.GetCardStatus == "1"), | ||||
CollectFileNum = x.Count(y => y.CollectFileStatus == "1"), | CollectFileNum = x.Count(y => y.CollectFileStatus == "1"), | ||||
LoanNum = x.Count(y => y.StudentLoanStatus == "1") | |||||
LoanNum = x.Count(y => y.StudentLoanStatus == "1"), | |||||
GetMiliClothesNum = x.Count(y => y.GetMiliClothesStatus == "1"), | |||||
GetBeddingNum = x.Count(y => y.GetBeddingStatus == "1") | |||||
}).OrderBy(x => x.MajorNo).ThenBy(x => x.ClassNo); | }).OrderBy(x => x.MajorNo).ThenBy(x => x.ClassNo); | ||||
return Success(list); | return Success(list); | ||||
} | } | ||||
@@ -1186,6 +1190,14 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers | |||||
/// 贷款人数 | /// 贷款人数 | ||||
/// </summary> | /// </summary> | ||||
public int LoanNum { get; set; } | public int LoanNum { get; set; } | ||||
/// <summary> | |||||
/// 已领取军训服装人数 | |||||
/// </summary> | |||||
public int GetMiliClothesNum { get; set; } | |||||
/// <summary> | |||||
/// 已领取床上用品人数 | |||||
/// </summary> | |||||
public int GetBeddingNum { get; set; } | |||||
} | } | ||||
/// <summary> | /// <summary> | ||||
/// 获取列表数据 | /// 获取列表数据 | ||||
@@ -20,6 +20,9 @@ | |||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<div id="Grade" type="lrselect" class="lr-select"></div> | <div id="Grade" type="lrselect" class="lr-select"></div> | ||||
</div> | </div> | ||||
<div class="lr-layout-tool-item"> | |||||
<div id="ClassNo" type="lrselect" class="lr-select"></div> | |||||
</div> | |||||
<div class="lr-layout-tool-item"> | <div class="lr-layout-tool-item"> | ||||
<a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> 查询</a> | <a id="btn_Search" class="btn btn-primary btn-sm"><i class="fa fa-search"></i> 查询</a> | ||||
</div> | </div> | ||||
@@ -8,6 +8,7 @@ var selectedRow; | |||||
var refreshGirdData; | var refreshGirdData; | ||||
var bootstrap = function ($, learun) { | var bootstrap = function ($, learun) { | ||||
"use strict"; | "use strict"; | ||||
var ClassNo = ""; | |||||
var page = { | var page = { | ||||
init: function () { | init: function () { | ||||
page.initGird(); | page.initGird(); | ||||
@@ -22,7 +23,9 @@ var bootstrap = function ($, learun) { | |||||
learun.alert.warning("请选择年级!"); | learun.alert.warning("请选择年级!"); | ||||
return; | return; | ||||
} | } | ||||
page.search({ Grade: Grade }); | |||||
ClassNo = $('#ClassNo').lrselectGet(); | |||||
page.search({ Grade: Grade, ClassNo: ClassNo }); | |||||
}); | }); | ||||
// 刷新 | // 刷新 | ||||
$('#lr_refresh').on('click', function () { | $('#lr_refresh').on('click', function () { | ||||
@@ -41,9 +44,11 @@ var bootstrap = function ($, learun) { | |||||
text: 'text' | text: 'text' | ||||
}); | }); | ||||
$('#Grade').lrselectSet(Grade); | $('#Grade').lrselectSet(Grade); | ||||
//班级 | |||||
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); | |||||
}, | }, | ||||
initGird: function () { | initGird: function () { | ||||
$('#gridtable').lrAuthorizeJfGrid({ | |||||
$('#gridtable').jfGrid({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetStatisticListOfClass', | url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetStatisticListOfClass', | ||||
headData: [ | headData: [ | ||||
{ label: '年级', name: 'Grade', width: 80, align: "left" }, | { label: '年级', name: 'Grade', width: 80, align: "left" }, | ||||
@@ -58,14 +63,16 @@ var bootstrap = function ($, learun) { | |||||
{ label: '贷款人数', name: 'LoanNum', width: 100, align: "left", statistics: true }, | { label: '贷款人数', name: 'LoanNum', width: 100, align: "left", statistics: true }, | ||||
{ label: '已领取钥匙人数', name: 'GetKeyNum', width: 100, align: "left", statistics: true }, | { label: '已领取钥匙人数', name: 'GetKeyNum', width: 100, align: "left", statistics: true }, | ||||
{ label: '已领取校园卡人数', name: 'GetCardNum', width: 120, align: "left", statistics: true }, | { label: '已领取校园卡人数', name: 'GetCardNum', width: 120, align: "left", statistics: true }, | ||||
{ label: '已收取档案人数', name: 'CollectFileNum', width: 100, align: "left", statistics: true }, | |||||
{ label: '已收取档案人数', name: 'CollectFileNum', width: 100, align: "left", statistics: true }, | |||||
{ label: '已领取军训服装人数', name: 'GetMiliClothesNum', width: 120, align: "left" }, | |||||
{ label: '已领取床上用品人数', name: 'GetBeddingNum', width: 120, align: "left" }, | |||||
], | ], | ||||
mainId: 'MajorNo', | mainId: 'MajorNo', | ||||
isPage: false, | isPage: false, | ||||
sidx: 'MajorNo,ClassNo', | sidx: 'MajorNo,ClassNo', | ||||
sord: 'asc', | sord: 'asc', | ||||
}); | }); | ||||
page.search({ Grade: Grade }); | |||||
page.search({ Grade: Grade, ClassNo: ClassNo }); | |||||
}, | }, | ||||
search: function (param) { | search: function (param) { | ||||
param = param || {}; | param = param || {}; | ||||
@@ -43,7 +43,7 @@ var bootstrap = function ($, learun) { | |||||
$('#Grade').lrselectSet(Grade); | $('#Grade').lrselectSet(Grade); | ||||
}, | }, | ||||
initGird: function () { | initGird: function () { | ||||
$('#gridtable').lrAuthorizeJfGrid({ | |||||
$('#gridtable').jfGrid({ | |||||
url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetStatisticList', | url: top.$.rootUrl + '/EducationalAdministration/StuInfoFresh/GetStatisticList', | ||||
headData: [ | headData: [ | ||||
{ label: '年级', name: 'Grade', width: 80, align: "left" }, | { label: '年级', name: 'Grade', width: 80, align: "left" }, | ||||
@@ -57,6 +57,8 @@ var bootstrap = function ($, learun) { | |||||
{ label: '已领取钥匙人数', name: 'GetKeyNum', width: 100, align: "left", statistics: true }, | { label: '已领取钥匙人数', name: 'GetKeyNum', width: 100, align: "left", statistics: true }, | ||||
{ label: '已领取校园卡人数', name: 'GetCardNum', width: 120, align: "left", statistics: true }, | { label: '已领取校园卡人数', name: 'GetCardNum', width: 120, align: "left", statistics: true }, | ||||
{ label: '已收取档案人数', name: 'CollectFileNum', width: 100, align: "left", statistics: true }, | { label: '已收取档案人数', name: 'CollectFileNum', width: 100, align: "left", statistics: true }, | ||||
{ label: '已领取军训服装人数', name: 'GetMiliClothesNum', width: 120, align: "left" }, | |||||
{ label: '已领取床上用品人数', name: 'GetBeddingNum', width: 120, align: "left" }, | |||||
], | ], | ||||
mainId: 'MajorNo', | mainId: 'MajorNo', | ||||
isPage: false, | isPage: false, | ||||
@@ -78,6 +80,8 @@ var bootstrap = function ($, learun) { | |||||
{ label: '已领取钥匙人数', name: 'GetKeyNum', width: 100, align: "left" }, | { label: '已领取钥匙人数', name: 'GetKeyNum', width: 100, align: "left" }, | ||||
{ label: '已领取校园卡人数', name: 'GetCardNum', width: 120, align: "left" }, | { label: '已领取校园卡人数', name: 'GetCardNum', width: 120, align: "left" }, | ||||
{ label: '已收取档案人数', name: 'CollectFileNum', width: 100, align: "left" }, | { label: '已收取档案人数', name: 'CollectFileNum', width: 100, align: "left" }, | ||||
{ label: '已领取军训服装人数', name: 'GetMiliClothesNum', width: 120, align: "left" }, | |||||
{ label: '已领取床上用品人数', name: 'GetBeddingNum', width: 120, align: "left" }, | |||||
], | ], | ||||
mainId: 'ClassNo', | mainId: 'ClassNo', | ||||
isPage: false, | isPage: false, | ||||