123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- var inputData;
- var windowID;
- function validChoose() {
- var d = [];
- $.each($("#dgStudentList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- };
- function reload() {
- $("#dgStudentList").cmsXDataTable("load", $.getDataGridParams("dgStudentList"));
- };
- $.parser.onComplete = function () {
- $(function () {
- windowID = $.SystemGeneral.getUrlParam("WindowID");
- inputData = top.$("#" + windowID).data("inputData");
- reload();
- });
- };
- function SelectCollegeComboGrid() {
- var collegeID = $("#CollegeComboGrid").combogridX("getValue");
- if (collegeID != nonSelect) {
- var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID + "|@|'})";
- $("#GrademajorComboGrid").combogridX("reload", eval(jsonString));
- }
- reload();
- };
- function SelectGrademajorComboGrid() {
- var grademajorID = $("#GrademajorComboGrid").combogridX("getValue");
- if (grademajorID != nonSelect) {
- var jsonString = "({'QueryParamsDatas':'GrademajorComboGrid|*|" + grademajorID + "|@|'})";
- $("#ClassmajorComboGrid").combogridX("reload", eval(jsonString));
- }
- reload();
- };
- function Student_Confirm() {
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择您要添加的学生。");
- return;
- }
- // if (d.length > inputData.limit) {
- // $.messager.alert("系统提示", "由于座位安排的限制,目前该教室只能再容纳" + inputData.limit + "人。");
- // return;
- // }
- top.$("#" + windowID).data("resultData", d);
- top.$("#" + windowID).dialog("close");
- };
|