123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- function queryCollege(data) {
- queryClass();
- }
- function ExaminationSubjectSelect() {
- var jsonString = "";
- var parameterString = "";
- var examinationSubjectSelectID = $("#ExaminationSubjectDropdown").combogridX("getValue");
- if (examinationSubjectSelectID != nonSelect) {
- parameterString += "ExaminationSubjectDropdown|*|" + examinationSubjectSelectID + "|@|";
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#ScorelevelDropdown").combogridX("reload", eval(jsonString));
- }
- reload();
- }
- function queryStandard(data) {
- queryClass();
- }
- function queryClass() {
- var jsonString = "";
- var parameterString = "";
- //var campusID = $("#CampusDropdown").combogridX("getValue");
- var collegeID = $("#CollegeComboGrid").combogridX("getValue");
- var educationID = $("#DictionaryEducation").combobox("getValue");
- var schoolYearID = $("#DictionarySchoolyear").combobox("getValue");
- var standardID = $("#DictionaryStandard").combogridX("getValue");
- var LearnSystem = $("#DictionaryLearnSystem").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 += "DictionarySchoolyear|*|" + schoolYearID + "|@|";
- if (standardID != nonSelect) parameterString += "DictionaryStandard|*|" + standardID + "|@|";
- if (learningFormID != nonSelect) parameterString += "DictionaryLearningform|*|" + learningFormID + "|@|";
- if (LearnSystem != nonSelect) parameterString += "DictionaryLearnSystem|*|" + LearnSystem + "|@|";
- if (parameterString != "") {
- jsonString = "({'QueryParamsDatas':'" + parameterString + "'})";
- $("#ClassmajorDropdown").combogridX("reload", eval(jsonString));
- $("#DictionaryStandard").combogridX("reload", eval(jsonString));
- } else {
- $("#ClassmajorDropdown").combogridX("reload");
- $("#DictionaryStandard").combogridX("reload");
- }
- reload();
- }
- function reloadClassmajor() {
- if ($("#ClassmajorDropdown").length > 0 && $.data($("#ClassmajorDropdown")[0], "combogridX")) {
- var collegeID = null;
- var yearID = null;
- var standardID = null;
- if ($("#CollegeComboGrid").length > 0 && $.data($("#CollegeComboGrid")[0], "combogridX")) {
- collegeID = $("#CollegeComboGrid").combogridX("getValue");
- }
- if ($("#DictionarySchoolyear").length > 0 && $.data($("#DictionarySchoolyear")[0], "combobox")) {
- yearID = $("#DictionarySchoolyear").combobox("getValue");
- }
- if ($("#DictionaryStandard").length > 0 && $.data($("#DictionaryStandard")[0], "combogridX")) {
- standardID = $("#DictionaryStandard").combogridX("getValue");
- }
- if (collegeID == nonSelect) {
- collegeID = null;
- }
- if (yearID == nonSelect) {
- yearID = null;
- }
- if (standardID == nonSelect) {
- standardID = null;
- }
- var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID
- + "|@|DictionarySchoolyear|*|" + yearID + "|@|DictionaryStandard|*|" + standardID + "|@|'})";
- $("#ClassmajorDropdown").combogridX("reload", eval(jsonString));
- }
- }
- function reload() {
- $("#dgLevelScoreList").cmsXDataTable("load", $.getDataGridParams("dgLevelScoreList"));
- }
- $(function () {
- mnu = $.SystemGeneral.getUrlParam("MNU");
- })
- // 获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgLevelScoreList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.LevelScoreID);
- });
- return d;
- }
- //批量修改执行前触发事件
- SystemBatchModifyControl.OnSubmit = function (a) {
- if (document.getElementById("TotalScoreTextBox_div")!=null&&document.getElementById("TotalScoreTextBox_div").style.display != "none") {
- var TotalScore = $("#TotalScore_TextBox").val();
- var regExp = /^\d+(\.\d+)?$/;
- if (!regExp.test(TotalScore)) {
- $.messager.alert("系统提示", "请输入正确的分数。");
- return false;
- }
- }
- }
- function LevelScore_Add() {
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + "/LevelScore/Edit?MNU=" + mnu;
- $.popupTopWindow('增加过级成绩', redirectTo, 650, 385, null, null);
- }
- function LevelScore_Update() {
- var d = validChoose();
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要修改的成绩信息。");
- return;
- }
- if (d.length > 1) {
- $.messager.alert("系统提示", "只能选择单个记录进行修改。");
- return;
- }
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + "/levelScore/Edit?levelScoreID=" + d + "&MNU=" + mnu;
- $.popupTopWindow('过级成绩信息', redirectTo, 650, 430, null, null);
- }
- function LevelScore_Delete() {
- var records = $("#dgLevelScoreList").cmsXDataTable("getSelections");
- var msg = "";
- var d = validChoose().join(',');
- if (d == "") {
- $.messager.alert("系统提示", "请选择您要删除的信息!!");
- return;
- }
- $.messager.confirm("系统提示", msg + "您确定要删除所勾选的信息?", function (r) {
- if (r) {
- $.post(CMS_SystemConfig.VirtualDirectoryPath + '/levelScore/Delete', { levelScoreIDs: d }, function (data) {
- if (data == "删除成功") {
- $.messager.alert("系统提示", "删除成功!");
- $("#dgLevelScoreList").cmsXDataTable('load');
- } else {
- $.messager.alert("系统提示", data);
- }
- });
- }
- });
- // $.post(CMS_SystemConfig.VirtualDirectoryPath + '/NewStudent/Verification', { newStudentIDs: d }, function (data) {
- // if (data == "1") {
- // msg = "所选信息存在已分配的新生,";
- // }
- // $.messager.confirm("系统提示", msg + "您确定要删除所选择的新生信息?", function (r) {
- // if (r) {
- // $.post(CMS_SystemConfig.VirtualDirectoryPath + '/NewStudent/Delete', { newStudentIDs: d }, function (data) {
- // if (data == "删除成功") {
- // $.messager.alert("系统提示", "删除成功!");
- // $("#dgLevelScoreList").cmsXDataTable('load');
- // } else {
- // $.messager.alert("系统提示", data);
- // }
- // });
- // }
- // });
- // });
- }
- function LevelScore_Export() { $("#formQuery").submit(); }
- function LevelScore_Import() {
- var redirectTo = CMS_SystemConfig.VirtualDirectoryPath + '/LevelScore/Import?MNU=' + mnu;
- $.popupTopWindow('过级成绩导入', redirectTo, 400, 180, null, null);
- }
|