1234567891011121314151617181920212223242526272829303132333435 |
-
- function reload() {
- $("#dgClassroomList").cmsXDataTable("load", $.getDataGridParams("dgClassroomList"));
- }
- //获取选中的数据
- function validChoose() {
- var d = [];
- $.each($("#dgClassroomList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- function QueryBuildingsDropdownList(data) {
- reload();
- }
- function Classroom_Confirm() {
- var d = validChoose();
- var windowID = $.SystemGeneral.getUrlParam("WindowID");
- var maxSelect = $.SystemGeneral.getUrlParam("MaxSelect");
- if (!maxSelect || isNaN(maxSelect)) maxSelect = 0;
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择教室。");
- return;
- }
- if (maxSelect > 0 && d.length > maxSelect) {
- $.messager.alert("系统提示", "只能选择" + maxSelect + "项记录。");
- return;
- }
- top.$("#" + windowID).data("resultData", d);
- top.$("#" + windowID).dialog("close");
- }
|