2 "name" : "Pman.Tab.AdminProjectManager",
3 "parent" : "Pman.Tab.Admin",
4 "title" : "Pman.Tab.AdminProjectManager",
5 "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminProjectManager.bjs",
6 "permname" : "Core.Projects_All",
9 "54e1d44609e3abed11f6e1eb6ae54988" : "Projects",
10 "8115b8afd5b2953d9fa63eb0db9559fc" : "No Projects found",
11 "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
12 "13348442cc6a27032d2b4aa28b75a5d3" : "Search",
13 "7dce122004969d56ae2e0245cb754d35" : "Edit",
14 "577d7068826de925ea2aec01dbadf5e4" : "Client",
15 "917d465e9a9e8b16a8da50a1ca8156ca" : "Show:",
16 "0f111c111475c934057e6f8bb8314d56" : "Non-Projects",
17 "03f4a47830f97377a35321051685071e" : "Closed",
18 "f45e7cfb0824b6d381ade7d81bb81615" : "Displaying Projects {0} - {1} of {2}",
19 "b1c94ca2fbc3e78fc30069c8d0f01680" : "All",
20 "a1fa27779242b4902f7ae3bdd5c6d508" : "Type",
21 "ca0dbad92a874b2f69b549293387925e" : "Code",
22 "49ee3087348e8d44e1feda1917443987" : "Name",
23 "93573647a6041adaabd942e88cc29e23" : "Projects / Members"
29 "title" : "Projects / Members",
30 "xtype" : "NestedLayoutPanel",
31 "fitContainer" : true,
35 "xtype" : "BorderLayout",
40 "xtype" : "LayoutRegion",
45 "xtype" : "LayoutRegion",
53 "|activate" : "function() {\n _this.panel = this;\n try {\n _this.dialog = Pman.Dialog.CoreProject ; \n } catch(e) {}\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
59 "xtype" : "GridPanel",
60 "fitContainer" : true,
62 "tableName" : "Projects",
66 "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n _this.grid.footer.onClick('first');\n }); \n}\n",
67 "|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}"
70 "autoExpandColumn" : "name",
72 "$ getTypes" : "function() {\n return [\n [ 'U' , \"Project (Unconfirmed)\" ],\n [ 'P' , \"Project\" ],\n [ 'C' , \"Project (Closed)\" ],\n [ 'N' , \"Non-Project\" ],\n [ 'X' , \"Non-Project (Closed)\" ]\n\n ];\n}\n",
74 "$ typeToString" : "function(v)\n{\n var ar = this.getTypes();\n var ret = '';\n Roo.each(ar, function(a) {\n if (a[0] == v) {\n ret = a[1];\n return false;\n }\n });\n return ret;\n}\n",
80 "beforeload" : "function (_self, o)\n{\n if (!_this.searchBox) {\n return false;\n } \n o.params = o.params ? o.params : {};\n o.params['query[project_search]'] = _this.searchBox.getValue();\n o.params['query[project_filter]'] = _this.grid.filter;\n}"
84 "$ sortInfo" : "{ field : 'code', direction: 'ASC' }",
86 "* prop" : "dataSource",
89 "$ url" : "baseURL + '/Roo/core_project.php'",
91 "xtype" : "HttpProxy",
98 "xtype" : "JsonReader",
100 "$ 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]",
102 "totalProperty" : "total"
108 "xtype" : "PagingToolbar",
109 "emptyMsg" : "No Projects found",
111 "displayMsg" : "Displaying Projects {0} - {1} of {2}",
112 "displayInfo" : true,
118 "* prop" : "toolbar",
122 "|click" : "function()\n{\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
126 "cls" : "x-btn-text-icon",
127 "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
128 "$ xns" : "Roo.Toolbar"
132 "|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) {\n return;\n }\n _this.dialog.show(s[0].data, function() {\n _this.grid.footer.onClick('first');\n }); \n \n}\n"
136 "cls" : "x-btn-text-icon",
137 "$ icon" : "Roo.rootURL + 'images/default/tree/leaf.gif'",
138 "$ xns" : "Roo.Toolbar"
141 "xtype" : "Separator",
142 "$ xns" : "Roo.Toolbar"
146 "xtype" : "TextItem",
147 "$ xns" : "Roo.Toolbar"
151 "specialkey" : "function (_self, e)\n{\n if(e.getKey() == 13) {\n _this.grid.footer.onClick('first');\n }\n}",
152 "render" : "function (_self)\n{\n _this.searchBox = _self;\n}"
154 "xtype" : "TextField",
159 "|click" : "function (_self, e)\n{\n_this.grid.footer.onClick('first');\n}"
162 "cls" : "x-btn-icon",
163 "$ icon" : "rootURL + '/Pman/templates/images/search.gif'",
164 "$ xns" : "Roo.Toolbar"
168 "|click" : "function (_self, e)\n{\n_this.searchBox.setValue('');\n _this.grid.footer.onClick('first');\n}"
171 "cls" : "x-btn-icon",
172 "$ icon" : "rootURL + '/Pman/templates/images/edit-clear.gif'",
173 "$ xns" : "Roo.Toolbar"
176 "xtype" : "Separator",
177 "$ xns" : "Roo.Toolbar"
181 "xtype" : "TextItem",
182 "$ xns" : "Roo.Toolbar"
186 "toggle" : "function (_self,st)\n{\n if (st) { _this.grid.filter = 'P,N,U'; } \n _this.grid.footer.onClick('first');\n \n}"
189 "enableToggle" : true,
190 "toggleGroup" : "pgrp",
193 "$ xns" : "Roo.Toolbar"
197 "toggle" : "function (_self,st)\n{\n if (st) { _this.grid.filter = 'P,U'; } \n _this.grid.footer.onClick('first');\n \n}"
200 "enableToggle" : true,
201 "toggleGroup" : "pgrp",
204 "$ xns" : "Roo.Toolbar"
208 "toggle" : "function (_self,st)\n{\n if (st) { _this.grid.filter = 'N'; } \n _this.grid.footer.onClick('first');\n \n}"
210 "text" : "Non-Projects",
211 "enableToggle" : true,
212 "toggleGroup" : "pgrp",
215 "$ xns" : "Roo.Toolbar"
219 "toggle" : "function (_self, st)\n{\n if (st) { _this.grid.filter = 'X,C'; } \n _this.grid.footer.onClick('first');\n \n}"
222 "enableToggle" : true,
223 "toggleGroup" : "pgrp",
226 "$ xns" : "Roo.Toolbar"
231 "xtype" : "ColumnModel",
235 "$ renderer" : "function(v) { return _this.grid.typeToString(v);}",
236 "$ xns" : "Roo.grid",
237 "* prop" : "colModel[]",
241 "xtype" : "ColumnModel",
244 "$ renderer" : "function(v) { return String.format('{0}', v); }",
245 "$ xns" : "Roo.grid",
246 "* prop" : "colModel[]",
247 "dataIndex" : "client_id_name"
250 "xtype" : "ColumnModel",
254 "$ renderer" : "function(v) { return String.format('{0}', v); }",
255 "$ xns" : "Roo.grid",
256 "* prop" : "colModel[]",
260 "xtype" : "ColumnModel",
264 "$ renderer" : "function(v) { return String.format('{0}', v); }",
265 "$ xns" : "Roo.grid",
266 "* prop" : "colModel[]",
271 "afterselectionchange" : "function (_self)\n{\n // load project members.\n}"
273 "xtype" : "RowSelectionModel",
274 "singleSelect" : true,
275 "$ xns" : "Roo.grid",