|
|
@@ -14,19 +14,28 @@ var bootstrap = function ($, learun) { |
|
|
|
page.bind(); |
|
|
|
page.initData(); |
|
|
|
}, |
|
|
|
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' |
|
|
|
// }); |
|
|
|
// } |
|
|
|
//} |
|
|
|
bind: function () { |
|
|
|
$('#DeptNo').lrselect({ |
|
|
|
allowSearch: true, |
|
|
|
value: "deptno", |
|
|
|
text: "deptname", |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdDeptInfo', |
|
|
|
select: function (item) { |
|
|
|
if (item) { |
|
|
|
$('#MajorNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
param: { strWhere: "DeptNo='" + item.deptno + "' AND CheckMark=1" } |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#MajorNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1" } |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
}); |
|
|
|
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); |
|
|
|
$('#Grade').lrselect({ |
|
|
|