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 : '860-Pman.Tab.AdminWatches',
12 module : Pman.Tab.AdminWatches,
14 parent : Pman.Tab.Admin,
15 name : "Pman.Tab.AdminWatches",
21 Pman.Tab.AdminWatches = new Roo.util.Observable({
27 add : function(parentLayout, region)
31 this.parentLayout = parentLayout;
33 this.panel = parentLayout.addxtype({
39 tableName : 'core_watch',
43 activate : function() {
46 _this.grid.footer.onClick('first');
53 autoExpandColumn : 'ontable',
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 : 'ontable', direction: 'ASC' },
81 url : baseURL + '/Roo/core_watch.php'
86 totalProperty : 'total',
119 'name': 'person_id_id',
123 'name': 'person_id_office_id',
127 'name': 'person_id_name',
131 'name': 'person_id_phone',
135 'name': 'person_id_fax',
139 'name': 'person_id_email',
143 'name': 'person_id_company_id',
147 'name': 'person_id_role',
151 'name': 'person_id_active',
155 'name': 'person_id_remarks',
159 'name': 'person_id_passwd',
163 'name': 'person_id_owner_id',
167 'name': 'person_id_lang',
171 'name': 'person_id_no_reset_sent',
175 'name': 'person_id_action_type',
179 'name': 'person_id_project_id',
183 'name': 'person_id_deleted_by',
187 'name': 'person_id_deleted_dt',
194 xtype: 'PagingToolbar',
198 displayMsg : "Displaying core_watch{0} - {1} of {2}",
199 emptyMsg : "No core_watch found"
209 cls : 'x-btn-text-icon',
210 icon : Roo.rootURL + 'images/default/dd/drop-add.gif',
214 if (!_this.dialog) return;
215 _this.dialog.show( { id : 0 } , function() {
216 _this.grid.footer.onClick('first');
225 cls : 'x-btn-text-icon',
226 icon : Roo.rootURL + 'images/default/tree/leaf.gif',
230 var s = _this.grid.getSelectionModel().getSelections();
231 if (!s.length || (s.length > 1)) {
232 Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
235 if (!_this.dialog) return;
236 _this.dialog.show(s[0].data, function() {
237 _this.grid.footer.onClick('first');
247 cls : 'x-btn-text-icon',
248 icon : rootURL + '/Pman/templates/images/trash.gif',
252 Pman.genericDelete(_this, 'core_watch');
260 xtype: 'ColumnModel',
263 header : 'Watch Event',
265 renderer : function(v) { return String.format('{0}', v); }
268 xtype: 'ColumnModel',
270 dataIndex : 'ontable',
271 header : 'Watch Table',
273 renderer : function(v) { return String.format('{0}', v); }
276 xtype: 'ColumnModel',
281 renderer : function(v) { return String.format('{0}', v); }
284 xtype: 'ColumnModel',
288 dataIndex : 'person_id',
289 renderer : function(v) { return String.format('{0}', v); }
292 xtype: 'ColumnModel',
296 dataIndex : 'medium',
297 renderer : function(v) { return String.format('{0}', v); }
300 xtype: 'ColumnModel',
304 dataIndex : 'active',
305 renderer : function(v) { return String.format('{0}', v); }
310 this.layout = this.panel.layout;