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');
57 //_this.dialog = Pman.Dialog.FILL_IN
58 if (_this.panel.active) {
59 this.footer.onClick('first');
62 rowdblclick : function (_self, rowIndex, e)
64 if (!_this.dialog) return;
65 _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
66 _this.grid.footer.onClick('first');
70 autoExpandColumn : 'name',
78 sortInfo : { field : 'name', direction: 'ASC' },
83 url : baseURL + '/Roo/Groups.php'
88 totalProperty : 'total',
113 'name': 'leader_office_id',
117 'name': 'leader_name',
121 'name': 'leader_phone',
125 'name': 'leader_fax',
129 'name': 'leader_email',
133 'name': 'leader_company_id',
137 'name': 'leader_role',
141 'name': 'leader_active',
145 'name': 'leader_remarks',
149 'name': 'leader_passwd',
153 'name': 'leader_owner_id',
157 'name': 'leader_lang',
161 'name': 'leader_no_reset_sent',
165 'name': 'leader_action_type',
169 'name': 'leader_project_id',
182 text : "Manage Groups",
193 if (!_this.dialog) return;
194 _this.dialog.show( { id : 0 } , function() {
195 _this.grid.ds.load({});
199 cls : 'x-btn-text-icon',
201 icon : Roo.rootURL + 'images/default/dd/drop-add.gif'
209 var s = _this.grid.getSelectionModel().getSelections();
210 if (!s.length || (s.length > 1)) {
211 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
214 if (!_this.dialog) return;
215 _this.dialog.show(s[0].data, function() {
216 _this.grid.ds.load({});
221 cls : 'x-btn-text-icon',
223 icon : Roo.rootURL + 'images/default/tree/leaf.gif'
231 Pman.genericDelete(_this, 'Groups');
234 cls : 'x-btn-text-icon',
236 icon : rootURL + '/Pman/templates/images/trash.gif'
246 click : function (_self, e)
248 _this.grid.ds.load({});
260 xtype: 'ColumnModel',
265 renderer : function(v) { return String.format('{0}', v); }
274 this.layout = this.panel.layout;