var isFirstLoadSchoolyear = true; var startDate = ""; var endDate = ""; function startDateChanged(dp) { startDate = dp.cal.getNewDateStr(); reload(); } function startDateCleared(dp) { startDate = ""; reload(); } function endDateChanged(dp) { endDate = dp.cal.getNewDateStr(); reload(); } function endDateCleared(dp) { endDate = ""; reload(); } function SchoolyearLoaded(data) { if (((data.length && data.length > 0) || data)) { if (isFirstLoadSchoolyear) { isFirstLoadSchoolyear = false; } else { reload(); } } } function queryStandard() { if ($.data($("#cbgCollege")[0], "combogridX") && $.data($("#ddlYear")[0], "combobox")) { var parameterString = ""; var collegeID = $("#cbgCollege").combogridX("getValue"); var year = $("#ddlYear").combobox("getValue"); if (collegeID != nonSelect && collegeID != "") parameterString += "CollegeDropdown|*|" + collegeID + "|@|"; if (year != nonSelect) parameterString += "DictionaryGrade|*|" + year + "|@|"; if (parameterString != "") { jsonString = "({'QueryParamsDatas':'" + parameterString + "'})"; $("#cbgStandard").combogridX("reload", eval(jsonString)); } else { $("#cbgStandard").combogridX("reload"); } } reload(); } function queryClassmajor() { if ($.data($("#cbgCollege")[0], "combogridX") && $.data($("#ddlYear")[0], "combobox") && $.data($("#cbgStandard")[0], "combogridX")) { var parameterString = ""; var collegeID = $("#cbgCollege").combogridX("getValue"); var year = $("#ddlYear").combobox("getValue"); var standard = $("#cbgStandard").combogridX("getValue"); if (collegeID != nonSelect && collegeID != "") parameterString += "CollegeDropdown|*|" + collegeID + "|@|"; if (year != nonSelect) parameterString += "DictionaryGrade|*|" + year + "|@|"; if (standard != nonSelect && standard != "") parameterString += "DictionaryStandard|*|" + standard + "|@|"; if (parameterString != "") { jsonString = "({'QueryParamsDatas':'" + parameterString + "'})"; $("#cbgClassmajor").combogridX("reload", eval(jsonString)); } else { $("#cbgClassmajor").combogridX("reload"); } } reload(); } function reload() { var schoolYearID = $("#SchoolYearDropdown").combobox("getValue"); var examsCategoryID = $("#ddlExamsCategory").combobox("getValue"); var statusID = $("#ddlExaminationPlanStatus").combobox("getValue"); var coursematerialID = $("#cbgCoursematerial").combogridX("getValue"); var collegeID = $("#cbgCollege").combogridX("getValue"); var year = $("#ddlYear").combobox("getValue"); var standardID = $("#cbgStandard").combogridX("getValue"); var classmajorID = $("#cbgClassmajor").combogridX("getValue"); var classroomID = $("#cbgClassroom").combogridX("getValue"); var exmiantionTeacherID = $("#cbgExaminationTeacher").combogridX("getValue"); var assistantUserID = $("#cbgAssistant").combogridX("getValue"); var examsCategoryString = "ExamsCategoryID_RAP="; if (examsCategoryID != nonSelect) { examsCategoryString = "ExamsCategoryID_RAP=" + examsCategoryID; } var statusString = "RecordStatus_RAP="; if (statusID != nonSelect) { statusString = "RecordStatus_RAP=" + statusID; } var startDateString = "StartDate_RAP="; if (startDate != "") { startDateString = "StartDate_RAP=" + startDate; } var endDateString = "EndDate_RAP="; if (endDate != "") { endDateString = "EndDate_RAP=" + endDate; } var coursematerialString = "CoursematerialID_RAP="; if (coursematerialID != "") { coursematerialString = "CoursematerialID_RAP=" + coursematerialID; } var collegeString = "CollegeID_RAP="; if (collegeID != "") { collegeString = "CollegeID_RAP=" + collegeID; } var yearString = "Year_RAP="; if (year != nonSelect) { yearString = "Year_RAP=" + year; } var standardString = "StandardID_RAP="; if (standardID != "") { standardString = "StandardID_RAP=" + standardID; } var classmajorString = "ClassmajorID_RAP="; if (classmajorID != "") { classmajorString = "ClassmajorID_RAP=" + classmajorID; } var classroomString = "ClassroomID_RAP="; if (classroomID != "") { classroomString = "ClassroomID_RAP=" + classroomID; } var exmiantionTeacherString = "ExminationTeacherID_RAP="; if (exmiantionTeacherID != "") { exmiantionTeacherString = "ExminationTeacherID_RAP=" + exmiantionTeacherID; } var assistantUserString = "AssistantUserID_RAP="; if (assistantUserID != "") { assistantUserString = "AssistantUserID_RAP=" + assistantUserID; } $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fExaminationManage%2fExaminationSchedule_DGLG&SchoolyearID_RAP=" + schoolYearID + "&" + statusString + "&" + examsCategoryString + "&" + startDateString + "&" + endDateString + "&" + coursematerialString + "&" + classmajorString + "&" + classroomString + "&" + assistantUserString + "&" + collegeString + "&" + standardString + "&" + yearString + "&" + exmiantionTeacherString); }