3 "name": "Pman.Tab.XtupleReports",
6 "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleReports.bjs",
10 "xtype": "NestedLayoutPanel",
15 "xtype": "BorderLayout",
20 "xtype": "LayoutRegion",
25 "xtype": "LayoutRegion",
34 "tableName": "report",
38 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
44 "autoExpandColumn": "report_name",
47 "|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}",
48 "|rowdblclick": "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
53 "*prop": "dataSource",
56 "|sortInfo": "{ field : 'report_name', direction: 'ASC' }",
63 "|url": "baseURL + '/Roo/report.php'",
68 "xtype": "JsonReader",
69 "totalProperty": "total",
73 "|fields": "[\n {\n 'name': 'report_id',\n 'type': 'int'\n },\n {\n 'name': 'report_name',\n 'type': 'string'\n },\n {\n 'name': 'report_sys',\n 'type': 'int'\n },\n {\n 'name': 'report_source',\n 'type': 'string'\n },\n {\n 'name': 'report_descrip',\n 'type': 'string'\n },\n {\n 'name': 'report_grade',\n 'type': 'int'\n },\n {\n 'name': 'report_loaddate',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n }\n]"
79 "xtype": "PagingToolbar",
82 "displayMsg": "Displaying report{0} - {1} of {2}",
83 "emptyMsg": "No report found",
94 "cls": "x-btn-text-icon",
95 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
97 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
104 "cls": "x-btn-text-icon",
105 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
107 "|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"
109 "|xns": "Roo.Toolbar"
113 "cls": "x-btn-text-icon",
114 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
117 "|click": "function()\n{\n Pman.genericDelete(_this, 'report'); \n}\n "
119 "|xns": "Roo.Toolbar"
124 "xtype": "ColumnModel",
127 "dataIndex": "report_id",
128 "|renderer": "function(v) { return String.format('{0}', v); }",
130 "*prop": "colModel[]"
133 "xtype": "ColumnModel",
134 "header": "Report name",
136 "dataIndex": "report_name",
137 "|renderer": "function(v) { return String.format('{0}', v); }",
139 "*prop": "colModel[]"
142 "xtype": "ColumnModel",
143 "header": "Report sys",
145 "dataIndex": "report_sys",
146 "|renderer": "function(v) { return String.format('{0}', v); }",
148 "*prop": "colModel[]"
151 "xtype": "ColumnModel",
152 "header": "Report source",
154 "dataIndex": "report_source",
155 "|renderer": "function(v) { return String.format('{0}', v); }",
157 "*prop": "colModel[]"
160 "xtype": "ColumnModel",
161 "header": "Report descrip",
163 "dataIndex": "report_descrip",
164 "|renderer": "function(v) { return String.format('{0}', v); }",
166 "*prop": "colModel[]"
169 "xtype": "ColumnModel",
170 "header": "Report grade",
172 "dataIndex": "report_grade",
173 "|renderer": "function(v) { return String.format('{0}', v); }",
175 "*prop": "colModel[]"
178 "xtype": "ColumnModel",
179 "header": "Report loaddate",
181 "dataIndex": "report_loaddate",
182 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
184 "*prop": "colModel[]"
192 "xtype": "GridPanel",
195 "fitContainer": true,
196 "tableName": "report",
200 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
206 "autoExpandColumn": "report_name",
209 "|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}",
210 "|rowdblclick": "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
215 "*prop": "dataSource",
218 "|sortInfo": "{ field : 'report_name', direction: 'ASC' }",
223 "xtype": "HttpProxy",
225 "|url": "baseURL + '/Roo/report.php'",
230 "xtype": "JsonReader",
231 "totalProperty": "total",
235 "|fields": "[\n {\n 'name': 'report_id',\n 'type': 'int'\n },\n {\n 'name': 'report_name',\n 'type': 'string'\n },\n {\n 'name': 'report_sys',\n 'type': 'int'\n },\n {\n 'name': 'report_source',\n 'type': 'string'\n },\n {\n 'name': 'report_descrip',\n 'type': 'string'\n },\n {\n 'name': 'report_grade',\n 'type': 'int'\n },\n {\n 'name': 'report_loaddate',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n }\n]"
241 "xtype": "PagingToolbar",
244 "displayMsg": "Displaying report{0} - {1} of {2}",
245 "emptyMsg": "No report found",
256 "cls": "x-btn-text-icon",
257 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
259 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
261 "|xns": "Roo.Toolbar"
266 "cls": "x-btn-text-icon",
267 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
269 "|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"
271 "|xns": "Roo.Toolbar"
275 "cls": "x-btn-text-icon",
276 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
279 "|click": "function()\n{\n Pman.genericDelete(_this, 'report'); \n}\n "
281 "|xns": "Roo.Toolbar"
286 "xtype": "ColumnModel",
287 "header": "Report sys",
289 "dataIndex": "report_sys",
290 "|renderer": "function(v) { return String.format('{0}', v); }",
292 "*prop": "colModel[]"
295 "xtype": "ColumnModel",
296 "header": "Report grade",
298 "dataIndex": "report_grade",
299 "|renderer": "function(v) { return String.format('{0}', v); }",
301 "*prop": "colModel[]"
304 "xtype": "ColumnModel",
305 "header": "Report loaddate",
307 "dataIndex": "report_loaddate",
308 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
310 "*prop": "colModel[]"