3 "name": "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"
33 "*prop": "dataSource",
36 "|sortInfo": "{ field : 'name', direction: 'ASC' }",
43 "|url": "baseURL + '/Roo/mtrack_milestone.php'",
48 "xtype": "JsonReader",
49 "totalProperty": "total",
53 "|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]"
59 "xtype": "PagingToolbar",
62 "displayMsg": "Displaying mtrack_milestone{0} - {1} of {2}",
63 "emptyMsg": "No mtrack_milestone found",
74 "cls": "x-btn-text-icon",
75 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
77 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
84 "cls": "x-btn-text-icon",
85 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
87 "|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"
93 "cls": "x-btn-text-icon",
94 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
97 "|click": "function()\n{\n Pman.genericDelete(_this, 'mtrack_milestone'); \n}\n "
104 "xtype": "ColumnModel",
108 "|renderer": "function(v) { return String.format('{0}', v); }",
110 "*prop": "colModel[]"
113 "*prop": "colModel[]",
114 "dataIndex": "project_id_name",
117 "xtype": "ColumnModel",
118 "|renderer": "function(v) { return String.format('{0}', v); }",
122 "xtype": "ColumnModel",
126 "|renderer": "function(v) { return String.format('{0}', v); }",
128 "*prop": "colModel[]"
131 "xtype": "ColumnModel",
132 "header": "Description",
134 "dataIndex": "description",
135 "|renderer": "function(v) { return String.format('{0}', v); }",
137 "*prop": "colModel[]"
140 "xtype": "ColumnModel",
141 "header": "Startdate",
143 "dataIndex": "startdate",
144 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
146 "*prop": "colModel[]"
149 "xtype": "ColumnModel",
152 "dataIndex": "duedate",
153 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
155 "*prop": "colModel[]"
158 "xtype": "ColumnModel",
159 "header": "Completed",
161 "dataIndex": "completed",
162 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
164 "*prop": "colModel[]"
167 "xtype": "ColumnModel",
170 "dataIndex": "deleted",
171 "|renderer": "function(v) { return String.format('{0}', v); }",
173 "*prop": "colModel[]"
176 "xtype": "ColumnModel",
179 "dataIndex": "created",
180 "|renderer": "function(v) { return String.format('{0}', v); }",
182 "*prop": "colModel[]"
185 "xtype": "ColumnModel",
188 "dataIndex": "updated",
189 "|renderer": "function(v) { return String.format('{0}', v); }",
191 "*prop": "colModel[]"
194 "xtype": "ColumnModel",
197 "dataIndex": "project_id",
198 "|renderer": "function(v) { return String.format('{0}', v); }",
200 "*prop": "colModel[]"