123456789101112131415161718192021222324252627282930313233 |
- var inputData;
- $.parser.onComplete = function (context) {
- inputData = top.$("#" + windowID).data("inputData");
- $("#dgWeekGroupList").cmsXDataTable("loadData", { rows: inputData.weekListGroup, total: inputData.weekListGroup.length });
- }
- function validChoose() {
- var d = [];
- $.each($("#dgWeekGroupList").cmsXDataTable("getSelections"), function (index) {
- d.push(this);
- });
- return d;
- }
- function confirm() {
- var d = validChoose();
- if (d.length == 0) {
- $.messager.alert("系统提示", "请选择排课组。");
- return;
- }
- if (d.length > 1) {
- $.messager.alert("系统提示", "只能选择一个排课组。");
- return;
- }
- top.$("#" + windowID).data("resultData", {
- weekList: inputData.weekList,
- weekListGroup: d[0]
- });
- top.$("#" + windowID).dialog("close");
- }
|