123456789101112131415161718192021 |
- var isFirstLoadBuildings = true;
- function QueryBuildingsDropdownList(data) {
- if (data && data.rows && ((data.rows.length && data.rows.length > 0))) {
- if (isFirstLoadBuildings) {
- var opts = $.data($("#BuildingsDropdown")[0], "combogridX").options;
- isFirstLoadBuildings = false;
- if (data.rows.length > 0) {
- $("#BuildingsDropdown").combogridX("setValue", data.rows[0][opts.valueField], reload);
- }
- }
- }
- }
- function reload() {
- var schoolYearID = $("#SchoolYearDropdown").combobox("getValue");
- var buildingID = $("#BuildingsDropdown").combogridX("getValue");
- if (buildingID != nonSelect) {
- $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationScheduling%2fBuildingSchedulingFullView&BuildingsInfoID_RAP=" + buildingID + "&SchoolyearID_RAP=" + schoolYearID);
- }
- }
|