1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
7 // register the module first
8 Pman.on('beforeload', function()
11 modKey : '001-Pman.Tab.AdminContactsGroup',
12 module : Pman.Tab.AdminContactsGroup,
14 parent : Pman.Tab.AdminContactsManager,
15 name : "Pman.Tab.AdminContactsGroup",
21 Pman.Tab.AdminContactsGroup = new Roo.util.Observable({
27 add : function(parentLayout, region)
31 this.parentLayout = parentLayout;
33 this.panel = parentLayout.addxtype({
43 activate : function() {
46 _this.grid.footer.onClick('first');
53 autoExpandColumn : 'name',
59 //_this.dialog = Pman.Dialog.FILL_IN
60 if (_this.panel.active) {
61 this.footer.onClick('first');
64 rowdblclick : function (_self, rowIndex, e)
66 if (!_this.dialog) return;
67 _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
68 _this.grid.footer.onClick('first');
76 sortInfo : { field : 'name', direction: 'ASC' },
81 url : baseURL + '/Roo/Groups.php'
86 totalProperty : 'total',
111 'name': 'leader_office_id',
115 'name': 'leader_name',
119 'name': 'leader_phone',
123 'name': 'leader_fax',
127 'name': 'leader_email',
131 'name': 'leader_company_id',
135 'name': 'leader_role',
139 'name': 'leader_active',
143 'name': 'leader_remarks',
147 'name': 'leader_passwd',
151 'name': 'leader_owner_id',
155 'name': 'leader_lang',
159 'name': 'leader_no_reset_sent',
163 'name': 'leader_action_type',
167 'name': 'leader_project_id',
180 text : "Manage Groups",
191 if (!_this.dialog) return;
192 _this.dialog.show( { id : 0 } , function() {
193 _this.grid.footer.onClick('first');
197 cls : 'x-btn-text-icon',
199 icon : Roo.rootURL + 'images/default/dd/drop-add.gif'
207 var s = _this.grid.getSelectionModel().getSelections();
208 if (!s.length || (s.length > 1)) {
209 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
212 if (!_this.dialog) return;
213 _this.dialog.show(s[0].data, function() {
214 _this.grid.footer.onClick('first');
219 cls : 'x-btn-text-icon',
221 icon : Roo.rootURL + 'images/default/tree/leaf.gif'
230 cls : 'x-btn-text-icon',
231 icon : rootURL + '/Pman/templates/images/trash.gif',
235 Pman.genericDelete(_this, 'Groups');
243 xtype: 'ColumnModel',
248 renderer : function(v) { return String.format('{0}', v); }
253 this.layout = this.panel.layout;