3 "name": "Pman.Tab.MTrackMilestone",
4 "parent": "Pman.Tab.MTrack",
5 "title": "Pman.Tab.MTrackMilestone",
6 "path": "/home/alan/gitlive/Pman.MTrack/Pman.Tab.MTrackMilestone.bjs",
10 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
16 "tableName": "mtrack_milestone",
17 "title": "Milestones",
23 "|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}",
24 "|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"
27 "autoExpandColumn": "name",
34 "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}"
36 "*prop": "dataSource",
39 "|sortInfo": "{ field : 'duedate', direction: 'ASC' }",
46 "|url": "baseURL + '/Roo/mtrack_milestone.php'",
51 "xtype": "JsonReader",
52 "totalProperty": "total",
56 "|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]"
62 "xtype": "PagingToolbar",
65 "displayMsg": "Displaying mtrack_milestone{0} - {1} of {2}",
66 "emptyMsg": "No mtrack_milestone found",
81 "render": "function (_self)\n{\n _this.viewType = this;\n}",
82 "beforeselect": "function (combo, record, index)\n{\n (function() { _this.grid.footer.onClick('first'); }).defer(100);\n}"
85 "displayField": "val",
87 "forceSelection": true,
88 "hiddenName": "currency",
90 "triggerAction": "all",
99 "|fields": "[ 'key' , 'val' ]",
100 "xtype": "SimpleStore",
101 "|data": "[ \n [ 'HEAD', 'Head Milestones' ],\n [ 'ACTIVE', 'Active Milestones' ],\n [ 'ALL', 'All Milestones' ]\n ]",
107 "|xns": "Roo.Toolbar",
113 "cls": "x-btn-text-icon",
114 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
116 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
118 "|xns": "Roo.Toolbar"
123 "cls": "x-btn-text-icon",
124 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
126 "|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"
128 "|xns": "Roo.Toolbar"
132 "|click": "function()\n {\n Pman.genericDelete(_this, 'mtrack_milestone'); \n }\n "
134 "cls": "x-btn-text-icon",
137 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
138 "|xns": "Roo.Toolbar"
143 "*prop": "colModel[]",
144 "dataIndex": "project_id_name",
148 "xtype": "ColumnModel",
149 "|renderer": "function(v) { return String.format('{0}', v); }",
153 "*prop": "colModel[]",
154 "dataIndex": "active_tickets",
155 "header": "#Tickets",
157 "xtype": "ColumnModel",
158 "|renderer": "function(v) { return String.format('{0}', v); }",
162 "xtype": "ColumnModel",
166 "|renderer": "function(v) { return String.format('{0}', v); }",
168 "*prop": "colModel[]"
171 "xtype": "ColumnModel",
172 "header": "Description",
174 "dataIndex": "description",
175 "|renderer": "function(v) { return String.format('{0}', v); }",
177 "*prop": "colModel[]"
180 "*prop": "colModel[]",
181 "dataIndex": "startdate",
182 "header": "Startdate",
185 "xtype": "ColumnModel",
186 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
190 "xtype": "ColumnModel",
193 "dataIndex": "duedate",
194 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
196 "*prop": "colModel[]"
199 "xtype": "ColumnModel",
200 "header": "Completed",
202 "dataIndex": "completed",
203 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
205 "*prop": "colModel[]"