Browse Source

班级系部专业联动

枝江中职分支
ndbs 1 month ago
parent
commit
c9a04c8966
1 changed files with 22 additions and 13 deletions
  1. +22
    -13
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassInfo/Form.js

+ 22
- 13
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Views/ClassInfo/Form.js View File

@@ -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({


Loading…
Cancel
Save