BuildingFullReport.js 910 B

123456789101112131415161718192021
  1. var isFirstLoadBuildings = true;
  2. function QueryBuildingsDropdownList(data) {
  3. if (data && data.rows && ((data.rows.length && data.rows.length > 0))) {
  4. if (isFirstLoadBuildings) {
  5. var opts = $.data($("#BuildingsDropdown")[0], "combogridX").options;
  6. isFirstLoadBuildings = false;
  7. if (data.rows.length > 0) {
  8. $("#BuildingsDropdown").combogridX("setValue", data.rows[0][opts.valueField], reload);
  9. }
  10. }
  11. }
  12. }
  13. function reload() {
  14. var schoolYearID = $("#SchoolYearDropdown").combobox("getValue");
  15. var buildingID = $("#BuildingsDropdown").combogridX("getValue");
  16. if (buildingID != nonSelect) {
  17. $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationScheduling%2fBuildingSchedulingFullView&BuildingsInfoID_RAP=" + buildingID + "&SchoolyearID_RAP=" + schoolYearID);
  18. }
  19. }