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",
11 "title": "mtrack_milestone",
14 "tableName": "mtrack_milestone",
18 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
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",
77 "cls": "x-btn-text-icon",
78 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
80 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
87 "cls": "x-btn-text-icon",
88 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
90 "|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"
96 "cls": "x-btn-text-icon",
97 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
100 "|click": "function()\n{\n Pman.genericDelete(_this, 'mtrack_milestone'); \n}\n "
102 "|xns": "Roo.Toolbar"
107 "*prop": "colModel[]",
108 "dataIndex": "project_id_name",
111 "xtype": "ColumnModel",
112 "|renderer": "function(v) { return String.format('{0}', v); }",
116 "*prop": "colModel[]",
117 "dataIndex": "active_tickets",
118 "header": "Active Tickets",
120 "xtype": "ColumnModel",
121 "|renderer": "function(v) { return String.format('{0}', v); }",
125 "xtype": "ColumnModel",
129 "|renderer": "function(v) { return String.format('{0}', v); }",
131 "*prop": "colModel[]"
134 "xtype": "ColumnModel",
135 "header": "Description",
137 "dataIndex": "description",
138 "|renderer": "function(v) { return String.format('{0}', v); }",
140 "*prop": "colModel[]"
143 "xtype": "ColumnModel",
144 "header": "Startdate",
146 "dataIndex": "startdate",
147 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
149 "*prop": "colModel[]"
152 "xtype": "ColumnModel",
155 "dataIndex": "duedate",
156 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
158 "*prop": "colModel[]"
161 "xtype": "ColumnModel",
162 "header": "Completed",
164 "dataIndex": "completed",
165 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
167 "*prop": "colModel[]"