|
|
@@ -10,10 +10,65 @@ var bootstrap = function ($, learun) { |
|
|
|
bind: function () { |
|
|
|
$('#multiple_condition_query').lrMultipleQuery(function (queryJson) { |
|
|
|
page.search(queryJson); |
|
|
|
}, 220, 400); |
|
|
|
$('#DeptNo').lrDataSourceSelect({ code: 'CdDeptInfo', value: 'deptno', text: 'deptname' }); |
|
|
|
$('#MajorNo').lrDataSourceSelect({ code: 'CdMajorInfo', value: 'majorno', text: 'majorname' }); |
|
|
|
$('#ClassNo').lrDataSourceSelect({ code: 'bjsj', value: 'classno', text: 'classname' }); |
|
|
|
}, 300, 400); |
|
|
|
$('#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').lrselect({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=CdMajorInfo', |
|
|
|
value: "majorno", |
|
|
|
text: "majorname", |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1" }, |
|
|
|
select: function (item) { |
|
|
|
if (item) { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { strWhere: "majorno='" + item.majorno + "' AND CheckMark=1" } |
|
|
|
}); |
|
|
|
} else { |
|
|
|
$('#ClassNo').lrselectRefresh({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1" } |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
$('#ClassNo').lrselect({ |
|
|
|
allowSearch: true, |
|
|
|
url: top.$.rootUrl + '/LR_SystemModule/DataSource/GetDataTable?code=bjsj', |
|
|
|
param: { strWhere: "1=1 AND CheckMark=1" }, |
|
|
|
value: "classno", |
|
|
|
text: "classname" |
|
|
|
}); |
|
|
|
$('#Grade').lrselect({ |
|
|
|
url: top.$.rootUrl + '/EducationalAdministration/StuEnroll/GetYearListByClass', |
|
|
|
value: "year", |
|
|
|
text: "year", |
|
|
|
}); |
|
|
|
$('#GenderNo').lrDataItemSelect({ code: 'usersexbit' }); |
|
|
|
$('#NationalityNo').lrDataSourceSelect({ code: 'BCdNationality', value: 'nationalityno', text: 'nationality' }); |
|
|
|
// 刷新 |
|
|
|
$('#lr_refresh').on('click', function () { |
|
|
|
location.reload(); |
|
|
@@ -182,7 +237,7 @@ var bootstrap = function ($, learun) { |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
//查看异动 |
|
|
|
$("#lr_searchChange").on('click', function () { |
|
|
|
var keyValue = $('#gridtable').jfGridValue('StuId'); |
|
|
|