123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146 |
- 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);
- }
|