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"
33 "*prop": "dataSource",
36 "|sortInfo": "{ field : 'code', direction: 'ASC' }",
41 "load": "function (This, o, arg)\n{\n \n}"
46 "|url": "baseURL + '/Roo/Companies.php'",
51 "xtype": "JsonReader",
52 "totalProperty": "total",
56 "|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]"
62 "xtype": "PagingToolbar",
65 "displayMsg": "Displaying Companies{0} - {1} of {2}",
66 "emptyMsg": "No Companies found",
77 "cls": "x-btn-text-icon",
78 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
80 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
87 "cls": "x-btn-text-icon",
88 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
90 "|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"
96 "cls": "x-btn-text-icon",
97 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
100 "|click": "function()\n{\n Pman.genericDelete(_this, 'Companies'); \n}\n "
102 "|xns": "Roo.Toolbar"
107 "xtype": "ColumnModel",
111 "|renderer": "function(v) { return String.format('{0}', v); }",
113 "*prop": "colModel[]"
116 "xtype": "ColumnModel",
120 "|renderer": "function(v) { return String.format('{0}', v); }",
122 "*prop": "colModel[]"
125 "xtype": "ColumnModel",
128 "dataIndex": "remarks",
129 "|renderer": "function(v) { return String.format('{0}', v); }",
131 "*prop": "colModel[]"
134 "xtype": "ColumnModel",
137 "dataIndex": "owner_id",
138 "|renderer": "function(v) { return String.format('{0}', v); }",
140 "*prop": "colModel[]"
143 "xtype": "ColumnModel",
146 "dataIndex": "address",
147 "|renderer": "function(v) { return String.format('{0}', v); }",
149 "*prop": "colModel[]"
152 "xtype": "ColumnModel",
156 "|renderer": "function(v) { return String.format('{0}', v); }",
158 "*prop": "colModel[]"
161 "xtype": "ColumnModel",
165 "|renderer": "function(v) { return String.format('{0}', v); }",
167 "*prop": "colModel[]"
170 "xtype": "ColumnModel",
173 "dataIndex": "email",
174 "|renderer": "function(v) { return String.format('{0}', v); }",
176 "*prop": "colModel[]"
179 "xtype": "ColumnModel",
183 "|renderer": "function(v) { return String.format('{0}', v); }",
185 "*prop": "colModel[]"
188 "xtype": "ColumnModel",
191 "dataIndex": "isOwner",
192 "|renderer": "function(v) { return String.format('{0}', v); }",
194 "*prop": "colModel[]"
197 "xtype": "ColumnModel",
200 "dataIndex": "logo_id",
201 "|renderer": "function(v) { return String.format('{0}', v); }",
203 "*prop": "colModel[]"
206 "xtype": "ColumnModel",
207 "header": "Background color",
209 "dataIndex": "background_color",
210 "|renderer": "function(v) { return String.format('{0}', v); }",
212 "*prop": "colModel[]"
215 "xtype": "ColumnModel",
216 "header": "Comptype",
218 "dataIndex": "comptype",
219 "|renderer": "function(v) { return String.format('{0}', v); }",
221 "*prop": "colModel[]"
224 "xtype": "ColumnModel",
228 "|renderer": "function(v) { return String.format('{0}', v); }",
230 "*prop": "colModel[]"
233 "xtype": "ColumnModel",
234 "header": "Main office",
236 "dataIndex": "main_office_id",
237 "|renderer": "function(v) { return String.format('{0}', v); }",
239 "*prop": "colModel[]"
242 "xtype": "ColumnModel",
243 "header": "Created by",
245 "dataIndex": "created_by",
246 "|renderer": "function(v) { return String.format('{0}', v); }",
248 "*prop": "colModel[]"
251 "xtype": "ColumnModel",
252 "header": "Created dt",
254 "dataIndex": "created_dt",
255 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
257 "*prop": "colModel[]"
260 "xtype": "ColumnModel",
261 "header": "Updated by",
263 "dataIndex": "updated_by",
264 "|renderer": "function(v) { return String.format('{0}', v); }",
266 "*prop": "colModel[]"
269 "xtype": "ColumnModel",
270 "header": "Updated dt",
272 "dataIndex": "updated_dt",
273 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
275 "*prop": "colModel[]"
278 "xtype": "ColumnModel",
281 "dataIndex": "passwd",
282 "|renderer": "function(v) { return String.format('{0}', v); }",
284 "*prop": "colModel[]"
287 "xtype": "ColumnModel",
288 "header": "Dispatch port",
290 "dataIndex": "dispatch_port",
291 "|renderer": "function(v) { return String.format('{0}', v); }",
293 "*prop": "colModel[]"
296 "xtype": "ColumnModel",
297 "header": "Province",
299 "dataIndex": "province",
300 "|renderer": "function(v) { return String.format('{0}', v); }",
302 "*prop": "colModel[]"
305 "xtype": "ColumnModel",
308 "dataIndex": "country",
309 "|renderer": "function(v) { return String.format('{0}', v); }",
311 "*prop": "colModel[]"