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' }",
43 "|url": "baseURL + '/Roo/Companies.php'",
48 "xtype": "JsonReader",
49 "totalProperty": "total",
53 "|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]"
59 "xtype": "PagingToolbar",
62 "displayMsg": "Displaying Companies{0} - {1} of {2}",
63 "emptyMsg": "No Companies found",
74 "cls": "x-btn-text-icon",
75 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
77 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
84 "cls": "x-btn-text-icon",
85 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
87 "|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"
93 "cls": "x-btn-text-icon",
94 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
97 "|click": "function()\n{\n Pman.genericDelete(_this, 'Companies'); \n}\n "
104 "xtype": "ColumnModel",
108 "|renderer": "function(v) { return String.format('{0}', v); }",
110 "*prop": "colModel[]"
113 "xtype": "ColumnModel",
117 "|renderer": "function(v) { return String.format('{0}', v); }",
119 "*prop": "colModel[]"
122 "xtype": "ColumnModel",
125 "dataIndex": "remarks",
126 "|renderer": "function(v) { return String.format('{0}', v); }",
128 "*prop": "colModel[]"
131 "xtype": "ColumnModel",
134 "dataIndex": "owner_id",
135 "|renderer": "function(v) { return String.format('{0}', v); }",
137 "*prop": "colModel[]"
140 "xtype": "ColumnModel",
143 "dataIndex": "address",
144 "|renderer": "function(v) { return String.format('{0}', v); }",
146 "*prop": "colModel[]"
149 "xtype": "ColumnModel",
153 "|renderer": "function(v) { return String.format('{0}', v); }",
155 "*prop": "colModel[]"
158 "xtype": "ColumnModel",
162 "|renderer": "function(v) { return String.format('{0}', v); }",
164 "*prop": "colModel[]"
167 "xtype": "ColumnModel",
170 "dataIndex": "email",
171 "|renderer": "function(v) { return String.format('{0}', v); }",
173 "*prop": "colModel[]"
176 "xtype": "ColumnModel",
180 "|renderer": "function(v) { return String.format('{0}', v); }",
182 "*prop": "colModel[]"
185 "xtype": "ColumnModel",
188 "dataIndex": "isOwner",
189 "|renderer": "function(v) { return String.format('{0}', v); }",
191 "*prop": "colModel[]"
194 "xtype": "ColumnModel",
197 "dataIndex": "logo_id",
198 "|renderer": "function(v) { return String.format('{0}', v); }",
200 "*prop": "colModel[]"
203 "xtype": "ColumnModel",
204 "header": "Background color",
206 "dataIndex": "background_color",
207 "|renderer": "function(v) { return String.format('{0}', v); }",
209 "*prop": "colModel[]"
212 "xtype": "ColumnModel",
213 "header": "Comptype",
215 "dataIndex": "comptype",
216 "|renderer": "function(v) { return String.format('{0}', v); }",
218 "*prop": "colModel[]"
221 "xtype": "ColumnModel",
225 "|renderer": "function(v) { return String.format('{0}', v); }",
227 "*prop": "colModel[]"
230 "xtype": "ColumnModel",
231 "header": "Main office",
233 "dataIndex": "main_office_id",
234 "|renderer": "function(v) { return String.format('{0}', v); }",
236 "*prop": "colModel[]"
239 "xtype": "ColumnModel",
240 "header": "Created by",
242 "dataIndex": "created_by",
243 "|renderer": "function(v) { return String.format('{0}', v); }",
245 "*prop": "colModel[]"
248 "xtype": "ColumnModel",
249 "header": "Created dt",
251 "dataIndex": "created_dt",
252 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
254 "*prop": "colModel[]"
257 "xtype": "ColumnModel",
258 "header": "Updated by",
260 "dataIndex": "updated_by",
261 "|renderer": "function(v) { return String.format('{0}', v); }",
263 "*prop": "colModel[]"
266 "xtype": "ColumnModel",
267 "header": "Updated dt",
269 "dataIndex": "updated_dt",
270 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
272 "*prop": "colModel[]"
275 "xtype": "ColumnModel",
278 "dataIndex": "passwd",
279 "|renderer": "function(v) { return String.format('{0}', v); }",
281 "*prop": "colModel[]"
284 "xtype": "ColumnModel",
285 "header": "Dispatch port",
287 "dataIndex": "dispatch_port",
288 "|renderer": "function(v) { return String.format('{0}', v); }",
290 "*prop": "colModel[]"
293 "xtype": "ColumnModel",
294 "header": "Province",
296 "dataIndex": "province",
297 "|renderer": "function(v) { return String.format('{0}', v); }",
299 "*prop": "colModel[]"
302 "xtype": "ColumnModel",
305 "dataIndex": "country",
306 "|renderer": "function(v) { return String.format('{0}', v); }",
308 "*prop": "colModel[]"