|
|
@@ -16,19 +16,19 @@ var bootstrap = function ($, learun) { |
|
|
|
}, |
|
|
|
bind: function () { |
|
|
|
$('#DeptNo').lrDataSourceSelect({ |
|
|
|
code: 'CdDeptInfo', value: 'deptno', text: 'deptname', |
|
|
|
select: function (item) { |
|
|
|
if (!!item) { |
|
|
|
$('#MajorNo').lrselectRefresh({ |
|
|
|
url: "/CdMajor/GetListByDeptNo", |
|
|
|
param: { DeptNo: item.deptno }, |
|
|
|
value: 'MajorNo', |
|
|
|
text: 'MajorName' |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
code: 'CdDeptInfo', value: 'deptno', text: 'deptname' |
|
|
|
//select: function (item) { |
|
|
|
// if (!!item) { |
|
|
|
// $('#MajorNo').lrselectRefresh({ |
|
|
|
// url: "/CdMajor/GetListByDeptNo", |
|
|
|
// param: { DeptNo: item.deptno }, |
|
|
|
// value: 'MajorNo', |
|
|
|
// text: 'MajorName' |
|
|
|
// }); |
|
|
|
// } |
|
|
|
//} |
|
|
|
}); |
|
|
|
$('#MajorNo').lrselect(); |
|
|
|
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajor', value: 'majorno', text: 'majorname'}); |
|
|
|
$('#Grade').lrselect({ |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/ClassInfo/GenerateNearByYear', |
|
|
|
value: 'value', |
|
|
|