1234567891011121314151617181920212223242526272829303132 |
- var windowID;
- var inputData;
- var educationSchedulingID;
- var weeklyNums;
- $.parser.onComplete = function () {
- $(function () {
- windowID = $.SystemGeneral.getUrlParam("WindowID");
- inputData = top.$("#" + windowID).data("inputData");
- weeklyNums = inputData.sort(function (a, b) { return parseInt(a) - parseInt(b); });
- var gridData = { rows: $.map(weeklyNums, function (x) { return { WeekNum: x }; }), total: weeklyNums.length };
- $("#dgWeekList").cmsXDataTable("loadData", gridData);
- });
- };
- function validChoose() {
- var d = [];
- $.each($("#dgWeekList").cmsXDataTable("getSelections"), function (index) {
- d.push(this.WeekNum);
- });
- return d;
- }
- function save() {
- var d = validChoose();
- top.$("#" + windowID).data("resultData", d);
- top.$("#" + windowID).dialog("close");
- }
|