2 "name" : "Pman.Tab.MTrackMilestone",
3 "parent" : "Pman.Tab.MTrack",
4 "title" : "Pman.Tab.MTrackMilestone",
5 "path" : "/home/alan/gitlive/Pman.MTrack/Pman.Tab.MTrackMilestone.bjs",
9 "fa444e1c75f40633fccded45b0870206" : "No mtrack_milestone found",
10 "54e1d44609e3abed11f6e1eb6ae54988" : "Projects",
11 "b8cb81ab43044c454c1e69dbba646b68" : "On-hold",
12 "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
13 "9e727fdd3aec8274f46685441900280d" : "Project",
14 "7dce122004969d56ae2e0245cb754d35" : "Edit",
15 "d5e96f1a04f3dd132b193765eee39b9e" : "Duedate",
16 "c6030af9c753c4081d7ba01420cd0922" : "Displaying mtrack_milestone{0} - {1} of {2}",
17 "1243daf593fa297e07ab03bf06d925af" : "Searching...",
18 "df25de42c84837baf5fa15049a8bc764" : "View:",
19 "5288ef9e03a2b0686856a301272e8e56" : "#Tickets",
20 "24f27bda5dd2c488aa9bc7700ba98c34" : "Select Projects",
21 "0460245609b5dc1fc4e3c72a84f95bb7" : "Startdate",
22 "780c165edced420f2207a4d5983e4bd0" : "Merge With another Milestone",
23 "07ca5050e697392c9ed47e6453f1453f" : "Completed",
24 "4ab658036f4f174205c384b863fed5c2" : "Milestones",
25 "e15e216fc1c639f787b1231ecdfa1bf8" : "HEAD",
26 "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
27 "49ee3087348e8d44e1feda1917443987" : "Name",
28 "b5a7adde1af5c87d7fd797b6245c2a39" : "Description",
29 "db478325306f02298b2980f40223a413" : "#ref"
32 "project_id_name_emptyText" : "24f27bda5dd2c488aa9bc7700ba98c34",
33 "project_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
34 "project_id_name_qtip" : "24f27bda5dd2c488aa9bc7700ba98c34",
35 "project_id_name_fieldLabel" : "54e1d44609e3abed11f6e1eb6ae54988"
40 "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
45 "title" : "Milestones",
46 "xtype" : "GridPanel",
47 "fitContainer" : true,
49 "tableName" : "mtrack_milestone",
53 "|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 "|render" : "function() \n{\n _this.grid = this; \n _this.dialog = Pman.Dialog.MTrackMilestone;\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}"
56 "autoExpandColumn" : "description",
64 "beforeload" : "function (_self, options)\n{\n options.params._with_active_tickets = 1;\n if (!_this.viewType) {\n return false;\n }\n options.params._viewtype = _this.viewType.getValue();\n \n if (_this.projsel.getValue()) {\n options.params.project_id = _this.projsel.getValue();\n }\n \n \n}"
68 "$ sortInfo" : "{ field : 'duedate', direction: 'ASC' }",
70 "* prop" : "dataSource",
73 "$ url" : "baseURL + '/Roo/mtrack_milestone.php'",
74 "xtype" : "HttpProxy",
82 "xtype" : "JsonReader",
84 "$ fields" : "[\n {\n 'name': 'id',\n 'type': 'int'\n },\n {\n 'name': 'name',\n 'type': 'string'\n },\n {\n 'name': 'description',\n 'type': 'string'\n },\n {\n 'name': 'startdate',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'duedate',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'completed',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'deleted',\n 'type': 'int'\n },\n {\n 'name': 'created',\n 'type': 'int'\n },\n {\n 'name': 'updated',\n 'type': 'int'\n },\n {\n 'name': 'project_id',\n 'type': 'int'\n },\n {\n 'name': 'deleted_id',\n 'type': 'int'\n },\n {\n 'name': 'deleted_person_id',\n 'type': 'int'\n },\n {\n 'name': 'deleted_ontable',\n 'type': 'string'\n },\n {\n 'name': 'deleted_onid',\n 'type': 'int'\n },\n {\n 'name': 'deleted_changedate',\n 'type': 'date'\n },\n {\n 'name': 'deleted_reason',\n 'type': 'string'\n },\n {\n 'name': 'updated_id',\n 'type': 'int'\n },\n {\n 'name': 'updated_person_id',\n 'type': 'int'\n },\n {\n 'name': 'updated_ontable',\n 'type': 'string'\n },\n {\n 'name': 'updated_onid',\n 'type': 'int'\n },\n {\n 'name': 'updated_changedate',\n 'type': 'date'\n },\n {\n 'name': 'updated_reason',\n 'type': 'string'\n },\n {\n 'name': 'created_id',\n 'type': 'int'\n },\n {\n 'name': 'created_person_id',\n 'type': 'int'\n },\n {\n 'name': 'created_ontable',\n 'type': 'string'\n },\n {\n 'name': 'created_onid',\n 'type': 'int'\n },\n {\n 'name': 'created_changedate',\n 'type': 'date'\n },\n {\n 'name': 'created_reason',\n 'type': 'string'\n }\n]",
86 "totalProperty" : "total"
92 "xtype" : "PagingToolbar",
93 "emptyMsg" : "No mtrack_milestone found",
96 "displayMsg" : "Displaying mtrack_milestone{0} - {1} of {2}",
102 "* prop" : "toolbar",
106 "xtype" : "TextItem",
107 "$ xns" : "Roo.Toolbar"
111 "render" : "function (_self)\n{\n _this.viewType = this;\n}",
112 "beforeselect" : "function (combo, record, index)\n{\n (function() { _this.grid.footer.onClick('first'); }).defer(100);\n}"
115 "triggerAction" : "all",
116 "forceSelection" : true,
117 "displayField" : "val",
118 "hiddenName" : "currency",
120 "valueField" : "key",
121 "xtype" : "ComboBox",
122 "allowBlank" : false,
125 "$ xns" : "Roo.form",
128 "xtype" : "SimpleStore",
129 "$ data" : "[ \n [ 'HEAD', 'Head Milestones' ],\n [ 'ACTIVE', 'Active Milestones' ],\n [ 'ALL', 'All Milestones' ]\n ]",
130 "$ fields" : "[ 'key' , 'val' ]",
131 "$ xns" : "Roo.data",
138 "render" : "function (_self)\n{\n _this.projsel = _self;\n}",
139 "beforeselect" : "function (combo, record, index)\n{\n (function() { _this.grid.footer.onClick('first')}).defer(100);\n}"
142 "triggerAction" : "all",
143 "fieldLabel" : "Projects",
144 "forceSelection" : true,
145 "selectOnFocus" : true,
147 "displayField" : "name",
148 "emptyText" : "Select Projects",
149 "hiddenName" : "project_id",
152 "xtype" : "ComboBox",
153 "allowBlank" : false,
157 "$ xns" : "Roo.form",
158 "name" : "project_id_name",
159 "qtip" : "Select Projects",
161 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{code}</b> {name}</div>",
162 "loadingText" : "Searching...",
166 "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
170 "$ sortInfo" : "{ direction : 'ASC', field: 'code' }",
171 "$ xns" : "Roo.data",
175 "$ url" : "baseURL + '/Roo/Projects.php'",
176 "xtype" : "HttpProxy",
178 "$ xns" : "Roo.data",
184 "xtype" : "JsonReader",
185 "$ xns" : "Roo.data",
186 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
188 "totalProperty" : "total"
196 "$ xns" : "Roo.Toolbar"
200 "|click" : "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
204 "cls" : "x-btn-text-icon",
205 "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
206 "$ xns" : "Roo.Toolbar"
210 "|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"
214 "cls" : "x-btn-text-icon",
215 "$ icon" : "Roo.rootURL + 'images/default/tree/leaf.gif'",
216 "$ xns" : "Roo.Toolbar"
220 "|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 \n Pman.Dialog.MTrackMilestoneMerge.show(s[0].data, function() {\n Pman.genericDelete(_this, 'mtrack_milestone'); \n }); \n \n} \n"
222 "text" : "Merge With another Milestone",
224 "cls" : "x-btn-text-icon",
225 "$ icon" : "Roo.rootURL + 'images/default/tree/leaf.gif'",
226 "$ xns" : "Roo.Toolbar"
230 "|click" : "function()\n {\n Pman.genericDelete(_this, 'mtrack_milestone'); \n }\n "
234 "cls" : "x-btn-text-icon",
235 "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
236 "$ xns" : "Roo.Toolbar"
241 "xtype" : "ColumnModel",
244 "$ renderer" : "function(v) { return String.format('{0}', v); }",
245 "$ xns" : "Roo.grid",
246 "* prop" : "colModel[]",
250 "xtype" : "ColumnModel",
252 "header" : "Project",
254 "$ renderer" : "function(v) { return String.format('{0}', v); }",
255 "$ xns" : "Roo.grid",
256 "* prop" : "colModel[]",
257 "dataIndex" : "project_id_name"
260 "xtype" : "ColumnModel",
262 "header" : "#Tickets",
263 "$ renderer" : "function(v) { return String.format('{0}', v); }",
264 "$ xns" : "Roo.grid",
265 "* prop" : "colModel[]",
266 "dataIndex" : "active_tickets"
269 "xtype" : "ColumnModel",
272 "$ renderer" : "function(v) { return String.format('{0}', v); }",
273 "$ xns" : "Roo.grid",
274 "* prop" : "colModel[]",
278 "xtype" : "ColumnModel",
279 "header" : "Description",
281 "$ renderer" : "function(v) { return String.format('{0}', v); }",
282 "$ xns" : "Roo.grid",
283 "* prop" : "colModel[]",
284 "dataIndex" : "description"
287 "xtype" : "ColumnModel",
289 "header" : "Startdate",
291 "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
292 "$ xns" : "Roo.grid",
293 "* prop" : "colModel[]",
294 "dataIndex" : "startdate"
297 "xtype" : "ColumnModel",
298 "header" : "Duedate",
300 "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
301 "$ xns" : "Roo.grid",
302 "* prop" : "colModel[]",
303 "dataIndex" : "duedate"
306 "xtype" : "ColumnModel",
308 "header" : "On-hold",
309 "$ renderer" : "function(v) { return String.format('{0}', v ? 'HOLD' : '' ); }",
310 "$ xns" : "Roo.grid",
311 "* prop" : "colModel[]",
312 "dataIndex" : "on_hold"
315 "xtype" : "ColumnModel",
316 "header" : "Completed",
318 "$ renderer" : "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
319 "$ xns" : "Roo.grid",
320 "* prop" : "colModel[]",
321 "dataIndex" : "completed"