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",
24 "autoExpandColumn": "name",
27 "|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}",
28 "|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"
34 "beforeload": "function (_self, options)\n{\n options.params._with_active_tickets = 1;\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",
75 "|xns": "Roo.Toolbar",
81 "cls": "x-btn-text-icon",
82 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
84 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
91 "cls": "x-btn-text-icon",
92 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
94 "|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"
100 "|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"
102 "cls": "x-btn-text-icon",
105 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
106 "|xns": "Roo.Toolbar"
111 "*prop": "colModel[]",
112 "dataIndex": "project_id_name",
115 "xtype": "ColumnModel",
116 "|renderer": "function(v) { return String.format('{0}', v); }",
120 "*prop": "colModel[]",
121 "dataIndex": "active_tickets",
122 "header": "#Tickets",
124 "xtype": "ColumnModel",
125 "|renderer": "function(v) { return String.format('{0}', v); }",
129 "xtype": "ColumnModel",
133 "|renderer": "function(v) { return String.format('{0}', v); }",
135 "*prop": "colModel[]"
138 "xtype": "ColumnModel",
139 "header": "Description",
141 "dataIndex": "description",
142 "|renderer": "function(v) { return String.format('{0}', v); }",
144 "*prop": "colModel[]"
147 "xtype": "ColumnModel",
148 "header": "Startdate",
150 "dataIndex": "startdate",
151 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
153 "*prop": "colModel[]"
156 "xtype": "ColumnModel",
159 "dataIndex": "duedate",
160 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
162 "*prop": "colModel[]"
165 "xtype": "ColumnModel",
166 "header": "Completed",
168 "dataIndex": "completed",
169 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
171 "*prop": "colModel[]"