//刷新 function reload() { $("#dgGraduateCardStudentList").cmsXDataTable("load", $.getDataGridParams("dgGraduateCardStudentList")); } //获取选中的数据 function validChoose() { var d = []; $.each($("#dgGraduateCardStudentList").cmsXDataTable("getSelections"), function (index) { d.push(this.UserID); }); return d; } //获取选中的数据All function validChooseAll() { var d = []; $.each($("#dgGraduateCardStudentList").cmsXDataTable("getSelections"), function (index) { d.push(this); }); return d; } //确定生成成功后不关闭弹出页面 function formSuccessReloadNoClose(data) { if (data.IsSuccess == true) { reload(); } $.messager.alert("系统提示", data.Message); } //确定 function GraduateCardApplyBatchAdd_Confirm() { var d = validChooseAll(); if (d == "") { $.messager.alert("系统提示", "请选择您要新增的学生名单。"); return; } $("#graduationStudentViewList").val(JSON.stringify(d)); $(document.forms[0]).submit(); } //设置列颜色为红色 function SetRedColumn(index, row, value) { return " " + value + ""; } //联动查询 function queryCampus(data) { var campusID = $("#CampusDropdown").combogridX("getValue"); if (campusID != nonSelect) { var jsonString = "({'QueryParamsDatas':'CampusDropdown|*|" + campusID + "|@|'})"; $("#CollegeDropdown").combogridX("reload", eval(jsonString)); } queryClass(); } 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)); $("#DictionaryStandard").combogridX("reload", eval(jsonString)); queryClass(); } function querySchoolyear(data) { queryClass(); } function queryStandard(data) { queryClass(); } function queryClass() { var jsonString = ""; var parameterString = ""; var campusID = $("#CampusDropdown").combogridX("getValue"); var collegeID = $("#CollegeDropdown").combogridX("getValue"); var schoolYearID = $("#DictionarySchoolyear").combobox("getValue"); var standardID = $("#DictionaryStandard").combogridX("getValue"); var educationID = $("#DictionaryEducation").combogridX("getValue"); var learningFormID = $("#DictionaryLearningform").combogridX("getValue"); if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|"; if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|"; if (schoolYearID != nonSelect) parameterString += "DictionaryGrade|*|" + schoolYearID + "|@|"; if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|"; if (educationID != nonSelect) parameterString += "DictionaryEducation|*|" + educationID + "|@|"; if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|"; if (parameterString != "") { jsonString = "({'QueryParamsDatas':'" + parameterString + "'})"; $("#DictionaryStandard").combogridX("reload", eval(jsonString)); } else { $("#DictionaryStandard").combogridX("reload"); } reload(); }