123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- function reload() {
- $("#dgStudentList").cmsXDataTable("load", $.getDataGridParams("dgStudentList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgStudentList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- function queryGrade(data) {
- if (data && $("#GrademajorComboGrid").length > 0 && $.data($("#GrademajorComboGrid")[0], "combogridX")) {
- var collegeID = $("#CollegeComboGrid").combogridX("getValue");
- if (collegeID != nonSelect) {
- var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID + "|@|'})";
- $("#GrademajorComboGrid").combogridX("reload", eval(jsonString));
- }
- }
- }
- function queryClass(data) {
- if (data && $("#ClassmajorComboGrid").length > 0 && $.data($("#ClassmajorComboGrid")[0], "combogridX")) {
- var grademajorID = $("#GrademajorComboGrid").combogridX("getValue");
- if (grademajorID != nonSelect) {
- var jsonString = "({'QueryParamsDatas':'GrademajorComboGrid|*|" + grademajorID + "|@|'})";
- $("#ClassmajorComboGrid").combogridX("reload", eval(jsonString));
- }
- }
- }
- function queryStudent(data) {
- if (data && $("#dgStudentList").length > 0 && $.data($("#dgStudentList")[0], "cmsXDataTable")) {
- var classmajorID = $("#ClassmajorComboGrid").combogridX("getValue");
- if (classmajorID != nonSelect) {
- reload();
- }
- }
- }
- //院系所
- function SelectCollegeComboGrid() {
- var collegeID = $("#CollegeComboGrid").combogridX("getValue");
- if (collegeID != nonSelect) {
- var jsonString = "({'QueryParamsDatas':'CollegeDropdown|*|" + collegeID + "|@|'})";
- $("#GrademajorComboGrid").combogridX("reload", eval(jsonString));
- }
- }
- function SelectGrademajorComboGrid() {
- var grademajorID = $("#GrademajorComboGrid").combogridX("getValue");
- if (grademajorID != nonSelect) {
- var jsonString = "({'QueryParamsDatas':'GrademajorComboGrid|*|" + grademajorID + "|@|'})";
- $("#ClassmajorComboGrid").combogridX("reload", eval(jsonString));
- }
- //reload();
- }
- //学生姓名查询
- function SelectStudentComboGrid() {
- reload();
- }
|