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",
37 "tableName": "Projects",
41 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
47 "autoExpandColumn": "name",
50 "|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}",
51 "|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"
56 "*prop": "dataSource",
59 "|sortInfo": "{ field : 'name', direction: 'ASC' }",
66 "|url": "baseURL + '/Roo/Projects.php'",
71 "xtype": "JsonReader",
72 "totalProperty": "total",
76 "|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]"
82 "xtype": "PagingToolbar",
85 "displayMsg": "Displaying Projects{0} - {1} of {2}",
86 "emptyMsg": "No Projects found",
97 "cls": "x-btn-text-icon",
98 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
100 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
102 "|xns": "Roo.Toolbar"
107 "cls": "x-btn-text-icon",
108 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
110 "|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"
112 "|xns": "Roo.Toolbar"
116 "cls": "x-btn-text-icon",
117 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
120 "|click": "function()\n{\n Pman.genericDelete(_this, 'Projects'); \n}\n "
122 "|xns": "Roo.Toolbar"
127 "xtype": "ColumnModel",
131 "|renderer": "function(v) { return String.format('{0}', v); }",
133 "*prop": "colModel[]"
136 "xtype": "ColumnModel",
140 "|renderer": "function(v) { return String.format('{0}', v); }",
142 "*prop": "colModel[]"
145 "xtype": "ColumnModel",
148 "dataIndex": "remarks",
149 "|renderer": "function(v) { return String.format('{0}', v); }",
151 "*prop": "colModel[]"
154 "xtype": "ColumnModel",
157 "dataIndex": "owner_id",
158 "|renderer": "function(v) { return String.format('{0}', v); }",
160 "*prop": "colModel[]"
163 "xtype": "ColumnModel",
167 "|renderer": "function(v) { return String.format('{0}', v); }",
169 "*prop": "colModel[]"
172 "xtype": "ColumnModel",
175 "dataIndex": "active",
176 "|renderer": "function(v) { return String.format('{0}', v); }",
178 "*prop": "colModel[]"
181 "xtype": "ColumnModel",
185 "|renderer": "function(v) { return String.format('{0}', v); }",
187 "*prop": "colModel[]"
190 "xtype": "ColumnModel",
193 "dataIndex": "client_id",
194 "|renderer": "function(v) { return String.format('{0}', v); }",
196 "*prop": "colModel[]"
199 "xtype": "ColumnModel",
202 "dataIndex": "team_id",
203 "|renderer": "function(v) { return String.format('{0}', v); }",
205 "*prop": "colModel[]"
208 "xtype": "ColumnModel",
209 "header": "File location",
211 "dataIndex": "file_location",
212 "|renderer": "function(v) { return String.format('{0}', v); }",
214 "*prop": "colModel[]"
217 "xtype": "ColumnModel",
218 "header": "Open date",
220 "dataIndex": "open_date",
221 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
223 "*prop": "colModel[]"
226 "xtype": "ColumnModel",
229 "dataIndex": "open_by",
230 "|renderer": "function(v) { return String.format('{0}', v); }",
232 "*prop": "colModel[]"
235 "xtype": "ColumnModel",
236 "header": "Close date",
238 "dataIndex": "close_date",
239 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
241 "*prop": "colModel[]"
244 "xtype": "ColumnModel",
245 "header": "Countries",
247 "dataIndex": "countries",
248 "|renderer": "function(v) { return String.format('{0}', v); }",
250 "*prop": "colModel[]"
253 "xtype": "ColumnModel",
254 "header": "Languages",
256 "dataIndex": "languages",
257 "|renderer": "function(v) { return String.format('{0}', v); }",
259 "*prop": "colModel[]"
262 "xtype": "ColumnModel",
265 "dataIndex": "agency_id",
266 "|renderer": "function(v) { return String.format('{0}', v); }",
268 "*prop": "colModel[]"