123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- var mnu = "";
- //加载
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- function queryClass() {
- var jsonString = "";
- var parameterString = "";
- //var campusID = $("#CampusDropdown").combogridX("getValue");
- var collegeID = $("#cgCollege").combogridX("getValue");
- //var educationID = $("#Education").combobox("getValue");
- var schoolYearID = $("#ddlYear").combobox("getValue");
- var standardID = $("#ddlStandard").combogridX("getValue");
- //var learningFormID = $("#LearningformDictionaryDropDown").combobox("getValue");
- //if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|";
- if (collegeID != nonSelect && collegeID != "") parameterString += "CollegeDropdown|*|" + collegeID + "|@|";
- //if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|";
- if (schoolYearID != nonSelect && schoolYearID != "") parameterString += "DictionaryGrade|*|" + schoolYearID + "|@|";
- if (standardID != nonSelect && standardID != "") parameterString += "DictionaryStandard|*|" + standardID + "|@|";
- //if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|";
- if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#ddlStandard").combogridX("reload", eval(jsonString));
- $("#cgClassmajor").combogridX("reload", eval(jsonString));
- } else {
- $("#ddlStandard").combogridX("reload");
- $("#cgClassmajor").combogridX("reload");
- }
- 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));
- }
- //queryClass();
- }
- function queryCollege(data) {
- //var campusID = $("#CampusDropdown").combogridX("getValue");
- var collegeID = $("#cgCollege").combogridX("getValue");
- var jsonString = "({'QueryParamsDatas':";
- jsonString += "'CollegeDropdown|*|" + collegeID + "|@|'})";
- $("#cgCollege").combogridX("reload", eval(jsonString));
- $("#ddlStandard").combogridX("reload", eval(jsonString));
- // if (campusID != nonSelect) {
- // var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|'})";
- // $("#CollegeDropdown").combogridX("reload", eval(jsonString));
- // }
- queryClass();
- reload();
- }
- function queryGrademajor() {
- queryClass();
- }
- function reloadStandard() {
- var url = CMS_SystemConfig.VirtualDirectoryPath + "~/Grademajor/StandardBindComboGridOptions";
- var collegeID = $("#cgCollege").combogridX("getValue");
- if (collegeID != nonSelect) url += "&collegeID=" + collegeID;
- $("#ddlStandard").combogridX("reload", url);
- //queryClass();
- }
- function reload() {
- $("#dgStudentList").cmsXDataTable("load", $.getDataGridParams("dgStudentList"));
- }
- function StudentList_Export() {
- $("#formQuery").attr("action", "Excel");
- $(document.forms[0]).submit();
- }
- function StudentList_Import() {
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/ExaminationApplayStudentList/Import?MNU=' + mnu;
- $.popupTopWindow('学生缴费名单导入', redirectTo, 400, 300, null, null);
- }
- function validChoose() {
- var d = [];
- $.each($("#dgStudentList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- function SelectExaminationSubjectDropdown(data) {
-
- var jsonString = "({'QueryParamsDatas':'ExaminationTypeDropdown|*|" + data.ExaminationTypeID + "|@|'})";
- $("#ddlExaminationSubject").combogridX("reload", eval(jsonString));
- reload();
- }
- function StudentList_PicExport() {
- $("#formQuery").attr("action", "ExportStudentPic");
- $("#formQuery").submit();
- }
- function ExamineApply_Cancel() {
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择您要撤销报名的考试科目。");
- return;
- }
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/ExaminationApplayStudentList/ApplyCancel?ExaminationRegistrationIDs=' + $.map(d, function (x) { return x.ExaminationRegistrationID; }).join(','), function (data) {
- if (data == "撤销成功") {
- $.messager.alert("系统提示", "撤销成功!");
- $("#dgStudentList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data);
- }
- });
- }
|