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",
27 "xtype": "LayoutRegion",
36 "tableName": "Projects",
40 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
46 "autoExpandColumn": "name",
49 "|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}",
50 "|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"
55 "*prop": "dataSource",
58 "|sortInfo": "{ field : 'name', direction: 'ASC' }",
65 "|url": "baseURL + '/Roo/Projects.php'",
70 "xtype": "JsonReader",
71 "totalProperty": "total",
75 "|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]"
81 "xtype": "PagingToolbar",
84 "displayMsg": "Displaying Projects{0} - {1} of {2}",
85 "emptyMsg": "No Projects found",
96 "cls": "x-btn-text-icon",
97 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
99 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
101 "|xns": "Roo.Toolbar"
106 "cls": "x-btn-text-icon",
107 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
109 "|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"
111 "|xns": "Roo.Toolbar"
115 "cls": "x-btn-text-icon",
116 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
119 "|click": "function()\n{\n Pman.genericDelete(_this, 'Projects'); \n}\n "
121 "|xns": "Roo.Toolbar"
126 "xtype": "ColumnModel",
130 "|renderer": "function(v) { return String.format('{0}', v); }",
132 "*prop": "colModel[]"
135 "xtype": "ColumnModel",
139 "|renderer": "function(v) { return String.format('{0}', v); }",
141 "*prop": "colModel[]"
144 "xtype": "ColumnModel",
147 "dataIndex": "remarks",
148 "|renderer": "function(v) { return String.format('{0}', v); }",
150 "*prop": "colModel[]"
153 "xtype": "ColumnModel",
156 "dataIndex": "owner_id",
157 "|renderer": "function(v) { return String.format('{0}', v); }",
159 "*prop": "colModel[]"
162 "xtype": "ColumnModel",
166 "|renderer": "function(v) { return String.format('{0}', v); }",
168 "*prop": "colModel[]"
171 "xtype": "ColumnModel",
174 "dataIndex": "active",
175 "|renderer": "function(v) { return String.format('{0}', v); }",
177 "*prop": "colModel[]"
180 "xtype": "ColumnModel",
184 "|renderer": "function(v) { return String.format('{0}', v); }",
186 "*prop": "colModel[]"
189 "xtype": "ColumnModel",
192 "dataIndex": "client_id",
193 "|renderer": "function(v) { return String.format('{0}', v); }",
195 "*prop": "colModel[]"
198 "xtype": "ColumnModel",
201 "dataIndex": "team_id",
202 "|renderer": "function(v) { return String.format('{0}', v); }",
204 "*prop": "colModel[]"
207 "xtype": "ColumnModel",
208 "header": "File location",
210 "dataIndex": "file_location",
211 "|renderer": "function(v) { return String.format('{0}', v); }",
213 "*prop": "colModel[]"
216 "xtype": "ColumnModel",
217 "header": "Open date",
219 "dataIndex": "open_date",
220 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
222 "*prop": "colModel[]"
225 "xtype": "ColumnModel",
228 "dataIndex": "open_by",
229 "|renderer": "function(v) { return String.format('{0}', v); }",
231 "*prop": "colModel[]"
234 "xtype": "ColumnModel",
235 "header": "Close date",
237 "dataIndex": "close_date",
238 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
240 "*prop": "colModel[]"
243 "xtype": "ColumnModel",
244 "header": "Countries",
246 "dataIndex": "countries",
247 "|renderer": "function(v) { return String.format('{0}', v); }",
249 "*prop": "colModel[]"
252 "xtype": "ColumnModel",
253 "header": "Languages",
255 "dataIndex": "languages",
256 "|renderer": "function(v) { return String.format('{0}', v); }",
258 "*prop": "colModel[]"
261 "xtype": "ColumnModel",
264 "dataIndex": "agency_id",
265 "|renderer": "function(v) { return String.format('{0}', v); }",
267 "*prop": "colModel[]"