|
|
@@ -35,15 +35,25 @@ var bootstrap = function ($, learun) { |
|
|
|
text: 'text' |
|
|
|
}); |
|
|
|
$('#Semester').lrDataItemSelect({ code: 'Semester' }); |
|
|
|
$("#MajorNo").lrselect(); |
|
|
|
$('#LessonNo').lrselect({ |
|
|
|
placeholder: "请选择课程", |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuScore/GetLessonNoDataOfAllWithNo', |
|
|
|
value: 'value', |
|
|
|
text: 'text', |
|
|
|
maxHeight: 200 |
|
|
|
$('#MajorNo').lrselect({ |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
param: { strWhere: " 1=1 and CheckMark=1 " }, |
|
|
|
value: "majorno", |
|
|
|
text: "majorname", |
|
|
|
maxHeight: 200, |
|
|
|
select: function (item) { |
|
|
|
if (item) { |
|
|
|
$('#LessonNo').lrselectRefresh({ |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=LessonInfo', |
|
|
|
param: { strWhere: " 1=1 and CheckMark=1 and teachmajorno='" + item.majorno + "'" }, |
|
|
|
value: "lessonno", |
|
|
|
text: "lessonname", |
|
|
|
maxHeight: 200 |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#LessonNo').lrDataSourceSelect({ code: 'LessonInfo', value: 'lessonno', text: 'lessonname' }); |
|
|
|
// 刷新 |
|
|
|
$('#lr_refresh').on('click', function () { |
|
|
|
location.reload(); |
|
|
@@ -131,7 +141,7 @@ var bootstrap = function ($, learun) { |
|
|
|
} else { |
|
|
|
$('#MajorNo').lrselectRefresh({ |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
param: { strWhere: " 1=1 and CheckMark=1 and deptno ='' " }, |
|
|
|
param: { strWhere: " 1=1 and CheckMark=1 " }, |
|
|
|
value: "majorno", |
|
|
|
text: "majorname", |
|
|
|
maxHeight: 200 |
|
|
|