12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- function queryClass() {
- var jsonString = "";
- var parameterString = "";
- //var campusID = $("#CampusDropdown").combogridX("getValue");
- var collegeID = $("#cgCollege").combogridX("getValue");
- var standardID = $("#ddlStandard").combogridX("getValue");
- var schoolyearID = $("#ddlYear").combobox("getValue");
- if (schoolyearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolyearID + "|@|";
- //if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|";
- if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
- if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
- if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#cgClassmajor").combogridX("reload", eval(jsonString));
- $("#ddlStandard").combogridX("reload", eval(jsonString));
- } else {
- $("#cgClassmajor").combogridX("reload");
- $("#ddlStandard").combogridX("reload", eval(jsonString));
- }
- reload();
- }
- //function reloadClassmajor() {
- // if ($("#cgClassmajor").length > 0 && $.data($("#cgClassmajor")[0], "combogridX")) {
- // var collegeID = null;
- // var yearID = null;
- // var standardID = null;
- // if ($("#cgCollege").length > 0 && $.data($("#cgCollege")[0], "combogridX")) {
- // collegeID = $("#cgCollege").combogridX("getValue");
- // }
- // if ($("#ddlYear").length > 0 && $.data($("#ddlYear")[0], "combobox")) {
- // yearID = $("#ddlYear").combobox("getValue");
- // }
- // if ($("#ddlStandard").length > 0 && $.data($("#ddlStandard")[0], "combogridX")) {
- // standardID = $("#ddlStandard").combogridX("getValue");
- // }
- // if (collegeID == nonSelect) {
- // collegeID = null;
- // }
- // if (yearID == nonSelect) {
- // yearID = null;
- // }
- // if (standardID == nonSelect) {
- // standardID = null;
- // }
- // var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID
- // + "|@|DictionaryGrade|*|" + yearID + "|@|DictionaryStandard|*|" + standardID + "|@|'})";
- // $("#cgClassmajor").combogridX("reload", eval(jsonString));
- // }
- //}
- //function reloadStandard() {
- // var url = "/Facultymajor/BindStandardDropDownList?bindType=0";
- // var collegeID = $("#cgCollege").combogridX("getValue");
- // if (collegeID != nonSelect) url += "&collegeID=" + collegeID;
- // $("#ddlStandard").combobox("reload", url);
- // reload();
- //}
- function reload() {
- $("#dgStudentEvaluationCountList").cmsXDataTable("load", $.getDataGridParams("dgStudentEvaluationCountList"));
- }
- function StudentEvaluationCount_Export() {
- $("#formQuery").submit();
- }
- function validChoose() {
- var d = [];
- $.each($("#dgStudentEvaluationCountList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- function SelectExaminationSubjectDropdown(data) {
- var jsonString = "({'QueryParamsDatas':'ExaminationTypeDropdown|*|" + data.ExaminationTypeID + "|@|'})";
- $("#ddlExaminationSubject").combogridX("reload", eval(jsonString));
- reload();
- }
|