123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- var isFirstLoadCollege = true;
- function QueryCollegeDropdownList(data) {
- if (((data.length && data.length > 0) || data)) {
- if (isFirstLoadCollege) {
- isFirstLoadCollege = false;
- } else {
- if (data.length > 0) {
- $("#CollegeDropdown").combobox("setValue", data[0].Value);
- } else {
- $("#CollegeDropdown").combobox("clear");
- }
- }
-
- }
- reload();
- }
- function reload() {
- if ($.data($("#DictionarySchoolyear")[0], "combobox") && $.data($("#DictionaryStandard")[0], "combogridX")) {
- var schoolYearID = $("#SchoolYearDropdown").combobox("getValue");
- var collegeID = $("#CollegeDropdown").combobox("getValue");
- var year = $("#DictionarySchoolyear").combobox("getValue");
- var yearString = "";
- var standardID = $("#DictionaryStandard").combogridX("getValue");
- var standardString = "";
- if (year == nonSelect) {
- yearString = "Year_RAP=";
- } else {
- yearString = "Year_RAP=" + year;
- }
- if (standardID == nonSelect || standardID == "") {
- standardString = "StandardID_RAP=";
- } else {
- standardString = "StandardID_RAP=" + standardID;
- }
- //教学任务状态
- var statusIDs = document.getElementsByName("StatusID");
- var statusList = "";
- for (i = 0; i < statusIDs.length; i++) {
- if (statusIDs[i].checked) {
- statusList = statusList + statusIDs[i].value + ',';
- }
- }
- statusList = statusList.substring(0, statusList.length - 1);
- $("#reportContent").attr("src", CMS_SystemConfig.ReportPagePath + "?ReportFolder=%2fEducationManage%2fCourseProcessSumary&CollegeID_RAP=" + collegeID + "&SchoolyearID_RAP=" + schoolYearID + "&" + yearString + "&" + standardString + "&StatusID_RAP=" + statusList + "&ClassScheduleWeekTimeCount_RAP=" + Count);
- }
- }
- function SelectCollegeDropdownList(data) {
-
- $("#DictionaryStandard").combogridX("setValue", "-1");
- var collegeID = $("#CollegeDropdown").combobox("getValue");
- if (collegeID != nonSelect) {
- var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID + "|@|'})";
- $("#DictionaryStandard").combogridX("reload", eval(jsonString));
- }
- reload();
- }
- //联动查询
- function queryStandard(data) {
- queryClass();
- reload();
- }
- function queryCollege(data) {
- var campusID = $("#CampusDropdown").combogridX("getValue");
- var collegeID = $("#CollegeDropdown").combogridX("getValue");
- var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|";
- jsonString += "CollegeDropdown|*|" + collegeID + "|@|'})";
- $("#CollegeDropdown").combogridX("reload", eval(jsonString));
- $("#StandardDictionaryDropDown").combogridX("reload", eval(jsonString));
- // if (campusID != nonSelect) {
- // var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|'})";
- // $("#CollegeDropdown").combogridX("reload", eval(jsonString));
- // }
- queryClass();
- reload();
- }
- function queryClass() {
- var jsonString = "";
- var parameterString = "";
- //var campusID = $("#CampusDropdown").combogridX("getValue");
- var collegeID = $("#CollegeDropdown").combobox("getValue");
- //var educationID = $("#Education").combobox("getValue");
- var schoolYearID = $("#DictionarySchoolyear").combobox("getValue");
- var standardID = $("#DictionaryStandard").combogridX("getValue");
- //var learningFormID = $("#LearningformDictionaryDropDown").combobox("getValue");
- //if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|";
- if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
- //if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|";
- if (schoolYearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolYearID + "|@|";
- if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
- //if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|";
- if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#DictionaryStandard").combogridX("reload", eval(jsonString));
- } else {
- $("#DictionaryStandard").combogridX("reload");
- }
- reload();
- }
|