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 "*prop": "colModel[]",
111 "dataIndex": "comptype",
115 "xtype": "ColumnModel",
116 "|renderer": "function (v,x ,r) {\n return Pman.Dialog.Companies.comptypeListToString(r.data.isOwner ? 'OWNER' : v);\n}",
120 "*prop": "colModel[]",
124 "xtype": "ColumnModel",
125 "|renderer": "function(v) { return String.format('{0}', v); }",
129 "xtype": "ColumnModel",
133 "|renderer": "function(v) { return String.format('{0}', v); }",
135 "*prop": "colModel[]"
138 "xtype": "ColumnModel",
141 "dataIndex": "remarks",
142 "|renderer": "function(v) { return String.format('{0}', v); }",
144 "*prop": "colModel[]"
147 "xtype": "ColumnModel",
150 "dataIndex": "owner_id",
151 "|renderer": "function(v) { return String.format('{0}', v); }",
153 "*prop": "colModel[]"
156 "xtype": "ColumnModel",
159 "dataIndex": "address",
160 "|renderer": "function(v) { return String.format('{0}', v); }",
162 "*prop": "colModel[]"
165 "xtype": "ColumnModel",
169 "|renderer": "function(v) { return String.format('{0}', v); }",
171 "*prop": "colModel[]"
174 "xtype": "ColumnModel",
178 "|renderer": "function(v) { return String.format('{0}', v); }",
180 "*prop": "colModel[]"
183 "xtype": "ColumnModel",
186 "dataIndex": "email",
187 "|renderer": "function(v) { return String.format('{0}', v); }",
189 "*prop": "colModel[]"
192 "xtype": "ColumnModel",
196 "|renderer": "function(v) { return String.format('{0}', v); }",
198 "*prop": "colModel[]"
201 "xtype": "ColumnModel",
204 "dataIndex": "isOwner",
205 "|renderer": "function(v) { return String.format('{0}', v); }",
207 "*prop": "colModel[]"
210 "xtype": "ColumnModel",
213 "dataIndex": "logo_id",
214 "|renderer": "function(v) { return String.format('{0}', v); }",
216 "*prop": "colModel[]"
219 "xtype": "ColumnModel",
220 "header": "Background color",
222 "dataIndex": "background_color",
223 "|renderer": "function(v) { return String.format('{0}', v); }",
225 "*prop": "colModel[]"
228 "xtype": "ColumnModel",
229 "header": "Comptype",
231 "dataIndex": "comptype",
232 "|renderer": "function(v) { return String.format('{0}', v); }",
234 "*prop": "colModel[]"
237 "xtype": "ColumnModel",
241 "|renderer": "function(v) { return String.format('{0}', v); }",
243 "*prop": "colModel[]"
246 "xtype": "ColumnModel",
247 "header": "Main office",
249 "dataIndex": "main_office_id",
250 "|renderer": "function(v) { return String.format('{0}', v); }",
252 "*prop": "colModel[]"
255 "xtype": "ColumnModel",
256 "header": "Created by",
258 "dataIndex": "created_by",
259 "|renderer": "function(v) { return String.format('{0}', v); }",
261 "*prop": "colModel[]"
264 "xtype": "ColumnModel",
265 "header": "Created dt",
267 "dataIndex": "created_dt",
268 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
270 "*prop": "colModel[]"
273 "xtype": "ColumnModel",
274 "header": "Updated by",
276 "dataIndex": "updated_by",
277 "|renderer": "function(v) { return String.format('{0}', v); }",
279 "*prop": "colModel[]"
282 "xtype": "ColumnModel",
283 "header": "Updated dt",
285 "dataIndex": "updated_dt",
286 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
288 "*prop": "colModel[]"
291 "xtype": "ColumnModel",
294 "dataIndex": "passwd",
295 "|renderer": "function(v) { return String.format('{0}', v); }",
297 "*prop": "colModel[]"
300 "xtype": "ColumnModel",
301 "header": "Dispatch port",
303 "dataIndex": "dispatch_port",
304 "|renderer": "function(v) { return String.format('{0}', v); }",
306 "*prop": "colModel[]"
309 "xtype": "ColumnModel",
310 "header": "Province",
312 "dataIndex": "province",
313 "|renderer": "function(v) { return String.format('{0}', v); }",
315 "*prop": "colModel[]"
318 "xtype": "ColumnModel",
321 "dataIndex": "country",
322 "|renderer": "function(v) { return String.format('{0}', v); }",
324 "*prop": "colModel[]"