var isFirstLoadSchoolyear = true; //var customReportNameSetting = $(CMS_SystemConfig.GetConfig()).find("configuration>reportServer>customReportName[name='ExaminationSchedule']"); //var reportName = "ExaminationSchedule"; //if (customReportNameSetting) { // if (customReportNameSetting.attr("customName")) { // reportName = customReportNameSetting.attr("customName"); // } //} function SchoolyearLoaded(data) { if (((data.length && data.length > 0) || data)) { if (isFirstLoadSchoolyear) { isFirstLoadSchoolyear = false; } else { reload(); } } } function reload() { var schoolYearID = $("#SchoolYearDropdown").combobox("getValue"); var examsCategoryID = $("#ddlExamsCategory").combobox("getValue"); var collegeID = $("#ddlCollege").combobox("getValue"); var statusID = $("#ddlExaminationPlanStatus").combobox("getValue"); var YearID = $("#DictionaryGrade").combobox("getValue"); var collegeString = "CollegeID_RAP="; if (collegeID != nonSelect) { collegeString = "CollegeID_RAP=" + collegeID; } var YearString = "YearID_RAP="; if (YearID != nonSelect) { YearString = "YearID_RAP=" + YearID; } if (collegeID != nonSelect) { collegeString = "CollegeID_RAP=" + collegeID; } var statusString = "RecordStatus_RAP="; if (statusID != nonSelect) { statusString = "RecordStatus_RAP=" + statusID; } var examsCategoryString = "ExamsCategoryID_RAP="; if (examsCategoryID != nonSelect) { examsCategoryString = "ExamsCategoryID_RAP=" + examsCategoryID; } $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fExaminationManage%2fExaminationSchedule&rs:Command=Render&SchoolyearID_RAP=" + schoolYearID + "&" + examsCategoryString + "&" + statusString + "&" + collegeString + "&" + YearString); }