@@ -20,6 +20,38 @@ var bootstrap = function ($, learun) {
$('#lr_refresh').on('click', function () {
location.reload();
});
//学年
$('#AcademicYearNo').lrselect({
placeholder: "学年",
allowSearch: false,
url: top.$.rootUrl + '/EducationalAdministration/StuScoreOfPrevious/GetAcademicYearNoData',
value: 'value',
text: 'text'
});
//学期
$('#Semester').lrselect({
placeholder: "学期",
allowSearch: false,
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetSemesterData',
value: 'value',
text: 'text'
});
//课程类型
$('#LessonSortNo').lrselect({
placeholder: "课程类型",
allowSearch: false,
data: [{ id: "1", text: "必修课" }, { id: "2", text: "选修课" }]
});
//查询
$('#btn_Search').on('click', function () {
var param = {
AcademicYearNo: $("#AcademicYearNo").lrselectGet(),
Semester: $("#Semester").lrselectGet(),
LessonSortNo: $("#LessonSortNo").lrselectGet(),
keyword: $("#keyword").val()
};
page.search(param);
});
//导入弹窗
$('#importBtn').on('click', function () {
learun.layerForm({
@@ -62,8 +94,8 @@ var bootstrap = function ($, learun) {
return cellvalue == "1" ? "必修课" : "选修课";
}
},
{ label: '课程编号', name: 'LessonNo', width: 20 0, align: "left" },
{ label: '课程名称', name: 'LessonName', width: 20 0, align: "left" },
{ label: '课程编号', name: 'LessonNo', width: 15 0, align: "left" },
{ label: '课程名称', name: 'LessonName', width: 15 0, align: "left" },
{ label: '学分', name: 'StudyScore', width: 100, align: "left" },
{
label: '平时成绩', name: 'OrdinaryScore', width: 100, align: "left"
@@ -87,7 +119,9 @@ var bootstrap = function ($, learun) {
},
],
mainId: 'ScoreId',
isPage: true
isPage: true,
sidx: 'AcademicYearNo desc,Semester desc,LessonNo,StuNo',
sord: ""
});
page.search();
},