//刷新 function reload() { $("#dgEducationMissionClassNoAddList").cmsXDataTable("load", $.getDataGridParams("dgEducationMissionClassNoAddList")); } //获取选中的数据 function validChoose() { var d = []; $.each($("#dgEducationMissionClassNoAddList").cmsXDataTable("getSelections"), function (index) { d.push(this.EducationMissionClassID); }); return d; } //获取选中的数据All function validChooseAll() { var d = []; $.each($("#dgEducationMissionClassNoAddList").cmsXDataTable("getSelections"), function (index) { d.push(this); }); return d; } //确定生成成功后不关闭弹出页面 function formSuccessReloadNoClose(data) { if (data.IsSuccess == true) { reload(); } $.messager.alert("系统提示", data.Message); } //确定 function EvaluationStudentSettingBatchAdd_Confirm() { var schoolyearID = $("#SchoolyearID").combobox("getValue"); if (schoolyearID == "" || schoolyearID == "-1" || schoolyearID == null) { $.messager.alert("系统提示", "请选择学年学期。"); return; } var d = validChooseAll(); if (d.length == 0) { $.messager.alert("系统提示", "请选择您要新增的信息。"); return; } $("#educationMissionClassViewList").val(JSON.stringify(d)); $(document.forms[0]).submit(); } //设置列颜色为红色 function SetRedColumn(index, row, value) { return " " + value + ""; } //联动查询 function queryCampus(data) { var campusID = $("#CampusDropdown").combogridX("getValue"); 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 queryDepartment(data) { var departmentID = $("#DepartmentDropdown").combogridX("getValue"); //combobox var jsonString = "({'QueryParamsDatas':'DepartmentDropdown|*|" + departmentID + "|@|'})"; $("#StaffComboGrid").combogridX("reload", eval(jsonString)); reload(); } function queryGrade(data) { queryClass(); } function queryStandard(data) { queryClass(); } function queryClass() { var jsonString = ""; var parameterString = ""; var campusID = $("#CampusDropdown").combogridX("getValue"); var collegeID = $("#CollegeDropdown").combogridX("getValue"); var gradeID = $("#DictionaryGrade").combogridX("getValue"); var standardID = $("#DictionaryStandard").combogridX("getValue"); if (campusID != nonSelect) parameterString += "CampusDropdown|*|" + campusID + "|@|"; if (collegeID != nonSelect) parameterString += "CollegeDropdown|*|" + collegeID + "|@|"; if (gradeID != nonSelect) parameterString += "DictionaryGrade|*|" + gradeID + "|@|"; if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|"; if (parameterString != "") { jsonString = "({'QueryParamsDatas':'" + parameterString + "'})"; $("#DictionaryStandard").combogridX("reload", eval(jsonString)); } else { $("#DictionaryStandard").combogridX("reload"); } reload(); }