3 "name": "Pman.Tab.AdminCompanies",
6 "path": "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminCompanies.bjs",
14 "tableName": "Companies",
18 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
24 "autoExpandColumn": "code",
27 "|render": "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}",
28 "|rowdblclick": "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
34 "load": "function (_self, records, options)\n{\n try {\n Pman.Tab.Office.grid.footer.onClick('refresh');\n } catch (e) {}\n}"
36 "*prop": "dataSource",
39 "|sortInfo": "{ field : 'code', direction: 'ASC' }",
44 "load": "function (This, o, arg)\n{\n \n}"
49 "|url": "baseURL + '/Roo/Companies.php'",
54 "xtype": "JsonReader",
55 "totalProperty": "total",
59 "|fields": "[\n {\n 'name': 'code',\n 'type': 'string'\n },\n {\n 'name': 'name',\n 'type': 'string'\n },\n {\n 'name': 'remarks',\n 'type': 'string'\n },\n {\n 'name': 'owner_id',\n 'type': 'int'\n },\n {\n 'name': 'address',\n 'type': 'string'\n },\n {\n 'name': 'tel',\n 'type': 'string'\n },\n {\n 'name': 'fax',\n 'type': 'string'\n },\n {\n 'name': 'email',\n 'type': 'string'\n },\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'isOwner',\n 'type': 'int'\n },\n {\n 'name': 'logo_id',\n 'type': 'int'\n },\n {\n 'name': 'background_color',\n 'type': 'string'\n },\n {\n 'name': 'comptype',\n 'type': 'string'\n },\n {\n 'name': 'url',\n 'type': 'string'\n },\n {\n 'name': 'main_office_id',\n 'type': 'int'\n },\n {\n 'name': 'created_by',\n 'type': 'int'\n },\n {\n 'name': 'created_dt',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'updated_by',\n 'type': 'int'\n },\n {\n 'name': 'updated_dt',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'passwd',\n 'type': 'string'\n },\n {\n 'name': 'dispatch_port',\n 'type': 'string'\n },\n {\n 'name': 'province',\n 'type': 'string'\n },\n {\n 'name': 'country',\n 'type': 'string'\n },\n {\n 'name': 'logo_id_id',\n 'type': 'int'\n },\n {\n 'name': 'logo_id_filename',\n 'type': 'string'\n },\n {\n 'name': 'logo_id_ontable',\n 'type': 'string'\n },\n {\n 'name': 'logo_id_onid',\n 'type': 'int'\n },\n {\n 'name': 'logo_id_mimetype',\n 'type': 'string'\n },\n {\n 'name': 'logo_id_width',\n 'type': 'int'\n },\n {\n 'name': 'logo_id_height',\n 'type': 'int'\n },\n {\n 'name': 'logo_id_filesize',\n 'type': 'int'\n },\n {\n 'name': 'logo_id_displayorder',\n 'type': 'int'\n },\n {\n 'name': 'logo_id_language',\n 'type': 'string'\n },\n {\n 'name': 'logo_id_parent_image_id',\n 'type': 'int'\n },\n {\n 'name': 'logo_id_created',\n 'type': 'date'\n },\n {\n 'name': 'logo_id_imgtype',\n 'type': 'string'\n },\n {\n 'name': 'logo_id_linkurl',\n 'type': 'string'\n },\n {\n 'name': 'logo_id_descript',\n 'type': 'string'\n },\n {\n 'name': 'logo_id_title',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_office_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_name',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_email',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_role',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_active',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_lang',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_action_type',\n 'type': 'string'\n },\n {\n 'name': 'owner_id_project_id',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_deleted_by',\n 'type': 'int'\n },\n {\n 'name': 'owner_id_deleted_dt',\n 'type': 'date'\n },\n {\n 'name': 'main_office_id_id',\n 'type': 'int'\n },\n {\n 'name': 'main_office_id_company_id',\n 'type': 'int'\n },\n {\n 'name': 'main_office_id_name',\n 'type': 'string'\n },\n {\n 'name': 'main_office_id_address',\n 'type': 'string'\n },\n {\n 'name': 'main_office_id_phone',\n 'type': 'string'\n },\n {\n 'name': 'main_office_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'main_office_id_email',\n 'type': 'string'\n },\n {\n 'name': 'main_office_id_role',\n 'type': 'string'\n }\n]"
65 "xtype": "PagingToolbar",
68 "displayMsg": "Displaying Companies{0} - {1} of {2}",
69 "emptyMsg": "No Companies found",
80 "cls": "x-btn-text-icon",
81 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
83 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
90 "cls": "x-btn-text-icon",
91 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
93 "|click": "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n if (!s.length || (s.length > 1)) {\n Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n return;\n }\n if (!_this.dialog) return;\n _this.dialog.show(s[0].data, function() {\n _this.grid.footer.onClick('first');\n }); \n \n}\n"
99 "cls": "x-btn-text-icon",
100 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
103 "|click": "function()\n{\n Pman.genericDelete(_this, 'Companies'); \n}\n "
105 "|xns": "Roo.Toolbar"
110 "xtype": "ColumnModel",
114 "|renderer": "function(v) { return String.format('{0}', v); }",
116 "*prop": "colModel[]"
119 "xtype": "ColumnModel",
120 "header": "Comptype",
122 "dataIndex": "comptype",
123 "|renderer": "function(v) { return String.format('{0}', v); }",
125 "*prop": "colModel[]"
128 "xtype": "ColumnModel",
132 "|renderer": "function(v) { return String.format('{0}', v); }",
134 "*prop": "colModel[]"
137 "xtype": "ColumnModel",
141 "|renderer": "function(v) { return String.format('{0}', v); }",
143 "*prop": "colModel[]"
146 "xtype": "ColumnModel",
149 "dataIndex": "remarks",
150 "|renderer": "function(v) { return String.format('{0}', v); }",
152 "*prop": "colModel[]"
155 "xtype": "ColumnModel",
158 "dataIndex": "owner_id",
159 "|renderer": "function(v) { return String.format('{0}', v); }",
161 "*prop": "colModel[]"
164 "xtype": "ColumnModel",
167 "dataIndex": "address",
168 "|renderer": "function(v) { return String.format('{0}', v); }",
170 "*prop": "colModel[]"
173 "xtype": "ColumnModel",
177 "|renderer": "function(v) { return String.format('{0}', v); }",
179 "*prop": "colModel[]"
182 "xtype": "ColumnModel",
186 "|renderer": "function(v) { return String.format('{0}', v); }",
188 "*prop": "colModel[]"
191 "xtype": "ColumnModel",
194 "dataIndex": "email",
195 "|renderer": "function(v) { return String.format('{0}', v); }",
197 "*prop": "colModel[]"
200 "xtype": "ColumnModel",
204 "|renderer": "function(v) { return String.format('{0}', v); }",
206 "*prop": "colModel[]"
209 "xtype": "ColumnModel",
212 "dataIndex": "isOwner",
213 "|renderer": "function(v) { return String.format('{0}', v); }",
215 "*prop": "colModel[]"
218 "xtype": "ColumnModel",
221 "dataIndex": "logo_id",
222 "|renderer": "function(v) { return String.format('{0}', v); }",
224 "*prop": "colModel[]"
227 "xtype": "ColumnModel",
228 "header": "Background color",
230 "dataIndex": "background_color",
231 "|renderer": "function(v) { return String.format('{0}', v); }",
233 "*prop": "colModel[]"
236 "xtype": "ColumnModel",
237 "header": "Comptype",
239 "dataIndex": "comptype",
240 "|renderer": "function(v) { return String.format('{0}', v); }",
242 "*prop": "colModel[]"
245 "xtype": "ColumnModel",
249 "|renderer": "function(v) { return String.format('{0}', v); }",
251 "*prop": "colModel[]"
254 "xtype": "ColumnModel",
255 "header": "Main office",
257 "dataIndex": "main_office_id",
258 "|renderer": "function(v) { return String.format('{0}', v); }",
260 "*prop": "colModel[]"
263 "xtype": "ColumnModel",
264 "header": "Created by",
266 "dataIndex": "created_by",
267 "|renderer": "function(v) { return String.format('{0}', v); }",
269 "*prop": "colModel[]"
272 "xtype": "ColumnModel",
273 "header": "Created dt",
275 "dataIndex": "created_dt",
276 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
278 "*prop": "colModel[]"
281 "xtype": "ColumnModel",
282 "header": "Updated by",
284 "dataIndex": "updated_by",
285 "|renderer": "function(v) { return String.format('{0}', v); }",
287 "*prop": "colModel[]"
290 "xtype": "ColumnModel",
291 "header": "Updated dt",
293 "dataIndex": "updated_dt",
294 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
296 "*prop": "colModel[]"
299 "xtype": "ColumnModel",
302 "dataIndex": "passwd",
303 "|renderer": "function(v) { return String.format('{0}', v); }",
305 "*prop": "colModel[]"
308 "xtype": "ColumnModel",
309 "header": "Dispatch port",
311 "dataIndex": "dispatch_port",
312 "|renderer": "function(v) { return String.format('{0}', v); }",
314 "*prop": "colModel[]"
317 "xtype": "ColumnModel",
318 "header": "Province",
320 "dataIndex": "province",
321 "|renderer": "function(v) { return String.format('{0}', v); }",
323 "*prop": "colModel[]"
326 "xtype": "ColumnModel",
329 "dataIndex": "country",
330 "|renderer": "function(v) { return String.format('{0}', v); }",
332 "*prop": "colModel[]"