define(['common'], function (Common) { var dialogSection = null; var ls = function () { }; ls.prototype.getDialogSection = function () { if (!dialogSection) dialogSection = new $sectionselector(); return dialogSection; } var $sectionselector = function () { this.title = GetTextByKey("P_IPT_SELECTSECTION", 'Select Section'); this.companyId = null; this.exceptSource = null; this.onOK = null; this.onDialogClosed = null; }; (function () { var __proto = $sectionselector.prototype; function initGrid(parent) { var grid = new GridView(parent); var columns = []; columns.push({ // checkbox name: 'check', key: 'Selected', width: 45, align: 'center', sortable: false, allcheck: true, type: 3 }); columns.push({ key: 'Name', caption: GetTextByKey("P_IPT_NAME", 'Name'), width: 200 }, { key: 'DisplayText', caption: GetTextByKey("P_IPT_DISPLAYTEXT", 'DisplayText'), width: 320 }); //grid.canMultiSelect = true; grid.columns = columns; grid.init(); this.gridctrl = grid; } function createDialog() { var dialog = $('