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',
77 sortInfo : { field : 'name', direction: 'ASC' },
82 url : baseURL + '/Roo/Groups.php'
87 totalProperty : 'total',
112 'name': 'leader_office_id',
116 'name': 'leader_name',
120 'name': 'leader_phone',
124 'name': 'leader_fax',
128 'name': 'leader_email',
132 'name': 'leader_company_id',
136 'name': 'leader_role',
140 'name': 'leader_active',
144 'name': 'leader_remarks',
148 'name': 'leader_passwd',
152 'name': 'leader_owner_id',
156 'name': 'leader_lang',
160 'name': 'leader_no_reset_sent',
164 'name': 'leader_action_type',
168 'name': 'leader_project_id',
181 text : "Manage Groups",
192 if (!_this.dialog) return;
193 _this.dialog.show( { id : 0 } , function() {
194 _this.grid.ds.load({});
198 cls : 'x-btn-text-icon',
200 icon : Roo.rootURL + 'images/default/dd/drop-add.gif'
208 var s = _this.grid.getSelectionModel().getSelections();
209 if (!s.length || (s.length > 1)) {
210 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
213 if (!_this.dialog) return;
214 _this.dialog.show(s[0].data, function() {
215 _this.grid.ds.load({});
220 cls : 'x-btn-text-icon',
222 icon : Roo.rootURL + 'images/default/tree/leaf.gif'
230 Pman.genericDelete(_this, 'Groups');
233 cls : 'x-btn-text-icon',
235 icon : rootURL + '/Pman/templates/images/trash.gif'
245 click : function (_self, e)
247 _this.grid.ds.load({});
259 xtype: 'ColumnModel',
264 renderer : function(v) { return String.format('{0}', v); }
269 this.layout = this.panel.layout;