diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuEnrollController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuEnrollController.cs
index dead205cf..4ea978478 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuEnrollController.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/StuEnrollController.cs
@@ -524,7 +524,18 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
return Success(list);
}
-
+ ///
+ /// 获取年级(最大)
+ ///
+ ///
+ [HttpGet]
+ [AjaxOnly]
+ public ActionResult GetYearListByMaxClass()
+ {
+ var classList = classInfoIBLL.GetAllClass().ToList();
+ var grade = classList.OrderByDescending(x => x.Grade).Select(x => x.Grade).FirstOrDefault();
+ return Success(grade);
+ }
[HttpPost]
[AjaxOnly]
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/CheckIn.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/CheckIn.cshtml
index 5a7f484cc..7cb4697f5 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/CheckIn.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/CheckIn.cshtml
@@ -24,7 +24,7 @@
是否量校服尺寸
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/GetClothSize.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/GetClothSize.js
index e21eac40d..57ea27d54 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/GetClothSize.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/GetClothSize.js
@@ -5,10 +5,15 @@
* 描 述:新生录取管理
*/
var refreshGirdData;
+var NowGrade;
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
+ var data_grade = learun.httpGet(top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetYearListByMaxClass',
+ {});
+ NowGrade = data_grade.info;
+
page.initGird();
page.bind();
},
@@ -17,11 +22,12 @@ var bootstrap = function ($, learun) {
page.search(queryJson);
}, 380, 400);
$("#IsQuantity").lrDataItemSelect({ code: "jyYewOrNot" });
- $('#Year').lrselect({
+ $('#Grade').lrselect({
url: top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetYearListByClass',
value: "year",
text: "year",
- })
+ });
+ $('#Grade').lrselectSet(NowGrade);
$('#DeptNo').lrselect({
allowSearch: true,
@@ -296,7 +302,10 @@ var bootstrap = function ($, learun) {
param = param || {};
//param.SqlParameter = " AND IsPay ='true'";
param.SqlParameter = ' AND IsReport=1';
- param.Grade = "20";
+
+ if (!param.Grade && param.Grade == undefined) {
+ param.Grade = NowGrade;
+ }
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Index.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Index.js
index 87a783068..986f26210 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Index.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Index.js
@@ -5,10 +5,16 @@
* 描 述:新生录取管理
*/
var refreshGirdData;
+var NowGrade;
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
+ var data_grade = learun.httpGet(top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetYearListByMaxClass',
+ {});
+ NowGrade = data_grade.info;
+ //console.log('NowGrade:', NowGrade);
+
page.initGird();
page.bind();
},
@@ -26,7 +32,6 @@ var bootstrap = function ($, learun) {
learun.alert.error('读取错误!未检测到身份证或设备连接错误,请调整身份证位置并重新读取,多次未读取到身份证信息则可能是身份证芯片已损坏!');
}
});
-
$('#DeptNo').lrselect({
allowSearch: true,
value: "deptno",
@@ -75,7 +80,9 @@ var bootstrap = function ($, learun) {
url: top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetYearListByClass',
value: "year",
text: "year",
- })
+ });
+ $('#Grade').lrselectSet(NowGrade);
+
$('#ClassNo').lrselect({
allowSearch: true,
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj',
@@ -475,11 +482,10 @@ var bootstrap = function ($, learun) {
},
search: function (param) {
param = param || {};
+
if (!param.Grade && param.Grade == undefined) {
- param.Grade = "20";
+ param.Grade = NowGrade;
}
-
- //param.Grade = "20";
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/IndexHelpChange.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/IndexHelpChange.cshtml
index f8187699f..1e525f361 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/IndexHelpChange.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/IndexHelpChange.cshtml
@@ -24,7 +24,7 @@
@*
@*
是否拍照
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/IsPhoto.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/IsPhoto.js
index d3f87b190..9c4e4d606 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/IsPhoto.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/IsPhoto.js
@@ -5,11 +5,16 @@
* 描 述:新生录取管理
*/
var refreshGirdData;
+var NowGrade;
var StuId;
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
+ var data_grade = learun.httpGet(top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetYearListByMaxClass',
+ {});
+ NowGrade = data_grade.info;
+
page.initGird();
page.bind();
},
@@ -18,11 +23,12 @@ var bootstrap = function ($, learun) {
page.search(queryJson);
}, 380, 400);
$("#IsMug").lrDataItemSelect({ code: "jyYewOrNot" });
- $('#Year').lrselect({
- url:top.$.rootUrl+'/EducationalAdministration/StuEnroll/GetYearListByClass',
- value:"year",
- text:"year",
- })
+ $('#Grade').lrselect({
+ url: top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetYearListByClass',
+ value: "year",
+ text: "year",
+ });
+ $('#Grade').lrselectSet(NowGrade);
$('#DeptNo').lrselect({
allowSearch: true,
@@ -291,7 +297,10 @@ var bootstrap = function ($, learun) {
param = param || {};
//param.SqlParameter = " AND IsPay ='true'";
param.SqlParameter = ' AND IsReport=1';
- //param.Grade = "20";
+
+ if (!param.Grade && param.Grade == undefined) {
+ param.Grade = NowGrade;
+ }
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Military.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Military.cshtml
index d75e406b5..26a636a95 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Military.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Military.cshtml
@@ -26,7 +26,7 @@
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Report.js b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Report.js
index 2e64ef64a..5048c2b27 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Report.js
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/Report.js
@@ -5,10 +5,14 @@
* 描 述:新生录取管理
*/
var refreshGirdData;
+var NowGrade;
var bootstrap = function ($, learun) {
"use strict";
var page = {
init: function () {
+ var data_grade = learun.httpGet(top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetYearListByMaxClass',
+ {});
+ NowGrade = data_grade.info;
page.initGird();
page.bind();
},
@@ -17,11 +21,13 @@ var bootstrap = function ($, learun) {
page.search(queryJson);
}, 400, 400);
$("#IsReport").lrDataItemSelect({ code: "jyYewOrNot" });
- $('#Year').lrselect({
+ $('#Grade').lrselect({
url: top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetYearListByClass',
value: "year",
text: "year",
});
+ $('#Grade').lrselectSet(NowGrade);
+
$('#Admissions').lrDataItemSelect({ code: 'enrollType' });
@@ -394,7 +400,10 @@ var bootstrap = function ($, learun) {
},
search: function (param) {
param = param || {};
- param.Grade = "20";
+
+ if (!param.Grade && param.Grade == undefined) {
+ param.Grade = NowGrade;
+ }
$('#gridtable').jfGridSet('reload', { queryJson: JSON.stringify(param) });
}
};
diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/StuTuition.cshtml b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/StuTuition.cshtml
index 25db3aa53..1a10a4835 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/StuTuition.cshtml
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/StuEnroll/StuTuition.cshtml
@@ -24,7 +24,7 @@