3 "name": "Pman.Tab.AdminProjectManager",
6 "path": "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminProjectManager.bjs",
11 "xtype": "NestedLayoutPanel",
16 "xtype": "BorderLayout",
21 "xtype": "LayoutRegion",
26 "xtype": "LayoutRegion",
35 "tableName": "Projects",
39 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
45 "autoExpandColumn": "name",
48 "|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}",
49 "|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"
54 "*prop": "dataSource",
57 "|sortInfo": "{ field : 'name', direction: 'ASC' }",
64 "|url": "baseURL + '/Roo/Projects.php'",
69 "xtype": "JsonReader",
70 "totalProperty": "total",
74 "|fields": "[\n {\n 'name': 'id',\n 'type': 'int'\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': 'code',\n 'type': 'string'\n },\n {\n 'name': 'active',\n 'type': 'int'\n },\n {\n 'name': 'type',\n 'type': 'string'\n },\n {\n 'name': 'client_id',\n 'type': 'int'\n },\n {\n 'name': 'team_id',\n 'type': 'int'\n },\n {\n 'name': 'file_location',\n 'type': 'string'\n },\n {\n 'name': 'open_date',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'open_by',\n 'type': 'int'\n },\n {\n 'name': 'close_date',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'countries',\n 'type': 'string'\n },\n {\n 'name': 'languages',\n 'type': 'string'\n },\n {\n 'name': 'agency_id',\n 'type': 'int'\n },\n {\n 'name': 'client_id_code',\n 'type': 'string'\n },\n {\n 'name': 'client_id_name',\n 'type': 'string'\n },\n {\n 'name': 'client_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'client_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'client_id_address',\n 'type': 'string'\n },\n {\n 'name': 'client_id_tel',\n 'type': 'string'\n },\n {\n 'name': 'client_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'client_id_email',\n 'type': 'string'\n },\n {\n 'name': 'client_id_id',\n 'type': 'int'\n },\n {\n 'name': 'client_id_isOwner',\n 'type': 'int'\n },\n {\n 'name': 'client_id_logo_id',\n 'type': 'int'\n },\n {\n 'name': 'client_id_background_color',\n 'type': 'string'\n },\n {\n 'name': 'client_id_comptype',\n 'type': 'string'\n },\n {\n 'name': 'client_id_url',\n 'type': 'string'\n },\n {\n 'name': 'client_id_main_office_id',\n 'type': 'int'\n },\n {\n 'name': 'client_id_created_by',\n 'type': 'int'\n },\n {\n 'name': 'client_id_created_dt',\n 'type': 'date'\n },\n {\n 'name': 'client_id_updated_by',\n 'type': 'int'\n },\n {\n 'name': 'client_id_updated_dt',\n 'type': 'date'\n },\n {\n 'name': 'client_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'agency_id_code',\n 'type': 'string'\n },\n {\n 'name': 'agency_id_name',\n 'type': 'string'\n },\n {\n 'name': 'agency_id_remarks',\n 'type': 'string'\n },\n {\n 'name': 'agency_id_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'agency_id_address',\n 'type': 'string'\n },\n {\n 'name': 'agency_id_tel',\n 'type': 'string'\n },\n {\n 'name': 'agency_id_fax',\n 'type': 'string'\n },\n {\n 'name': 'agency_id_email',\n 'type': 'string'\n },\n {\n 'name': 'agency_id_id',\n 'type': 'int'\n },\n {\n 'name': 'agency_id_isOwner',\n 'type': 'int'\n },\n {\n 'name': 'agency_id_logo_id',\n 'type': 'int'\n },\n {\n 'name': 'agency_id_background_color',\n 'type': 'string'\n },\n {\n 'name': 'agency_id_comptype',\n 'type': 'string'\n },\n {\n 'name': 'agency_id_url',\n 'type': 'string'\n },\n {\n 'name': 'agency_id_main_office_id',\n 'type': 'int'\n },\n {\n 'name': 'agency_id_created_by',\n 'type': 'int'\n },\n {\n 'name': 'agency_id_created_dt',\n 'type': 'date'\n },\n {\n 'name': 'agency_id_updated_by',\n 'type': 'int'\n },\n {\n 'name': 'agency_id_updated_dt',\n 'type': 'date'\n },\n {\n 'name': 'agency_id_passwd',\n 'type': 'string'\n },\n {\n 'name': 'team_id_id',\n 'type': 'int'\n },\n {\n 'name': 'team_id_name',\n 'type': 'string'\n },\n {\n 'name': 'team_id_type',\n 'type': 'int'\n },\n {\n 'name': 'team_id_leader',\n 'type': 'int'\n },\n {\n 'name': 'open_by_id',\n 'type': 'int'\n },\n {\n 'name': 'open_by_office_id',\n 'type': 'int'\n },\n {\n 'name': 'open_by_name',\n 'type': 'string'\n },\n {\n 'name': 'open_by_phone',\n 'type': 'string'\n },\n {\n 'name': 'open_by_fax',\n 'type': 'string'\n },\n {\n 'name': 'open_by_email',\n 'type': 'string'\n },\n {\n 'name': 'open_by_company_id',\n 'type': 'int'\n },\n {\n 'name': 'open_by_role',\n 'type': 'string'\n },\n {\n 'name': 'open_by_active',\n 'type': 'int'\n },\n {\n 'name': 'open_by_remarks',\n 'type': 'string'\n },\n {\n 'name': 'open_by_passwd',\n 'type': 'string'\n },\n {\n 'name': 'open_by_owner_id',\n 'type': 'int'\n },\n {\n 'name': 'open_by_lang',\n 'type': 'string'\n },\n {\n 'name': 'open_by_no_reset_sent',\n 'type': 'int'\n },\n {\n 'name': 'open_by_action_type',\n 'type': 'string'\n },\n {\n 'name': 'open_by_project_id',\n 'type': 'int'\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]"
80 "xtype": "PagingToolbar",
83 "displayMsg": "Displaying Projects{0} - {1} of {2}",
84 "emptyMsg": "No Projects found",
95 "cls": "x-btn-text-icon",
96 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
98 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
100 "|xns": "Roo.Toolbar"
105 "cls": "x-btn-text-icon",
106 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
108 "|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"
110 "|xns": "Roo.Toolbar"
114 "cls": "x-btn-text-icon",
115 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
118 "|click": "function()\n{\n Pman.genericDelete(_this, 'Projects'); \n}\n "
120 "|xns": "Roo.Toolbar"
125 "xtype": "ColumnModel",
129 "|renderer": "function(v) { return String.format('{0}', v); }",
131 "*prop": "colModel[]"
134 "xtype": "ColumnModel",
138 "|renderer": "function(v) { return String.format('{0}', v); }",
140 "*prop": "colModel[]"
143 "xtype": "ColumnModel",
146 "dataIndex": "remarks",
147 "|renderer": "function(v) { return String.format('{0}', v); }",
149 "*prop": "colModel[]"
152 "xtype": "ColumnModel",
155 "dataIndex": "owner_id",
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": "active",
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": "client_id",
192 "|renderer": "function(v) { return String.format('{0}', v); }",
194 "*prop": "colModel[]"
197 "xtype": "ColumnModel",
200 "dataIndex": "team_id",
201 "|renderer": "function(v) { return String.format('{0}', v); }",
203 "*prop": "colModel[]"
206 "xtype": "ColumnModel",
207 "header": "File location",
209 "dataIndex": "file_location",
210 "|renderer": "function(v) { return String.format('{0}', v); }",
212 "*prop": "colModel[]"
215 "xtype": "ColumnModel",
216 "header": "Open date",
218 "dataIndex": "open_date",
219 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
221 "*prop": "colModel[]"
224 "xtype": "ColumnModel",
227 "dataIndex": "open_by",
228 "|renderer": "function(v) { return String.format('{0}', v); }",
230 "*prop": "colModel[]"
233 "xtype": "ColumnModel",
234 "header": "Close date",
236 "dataIndex": "close_date",
237 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
239 "*prop": "colModel[]"
242 "xtype": "ColumnModel",
243 "header": "Countries",
245 "dataIndex": "countries",
246 "|renderer": "function(v) { return String.format('{0}', v); }",
248 "*prop": "colModel[]"
251 "xtype": "ColumnModel",
252 "header": "Languages",
254 "dataIndex": "languages",
255 "|renderer": "function(v) { return String.format('{0}', v); }",
257 "*prop": "colModel[]"
260 "xtype": "ColumnModel",
263 "dataIndex": "agency_id",
264 "|renderer": "function(v) { return String.format('{0}', v); }",
266 "*prop": "colModel[]"