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",
28 "xtype": "LayoutRegion",
37 "tableName": "report",
41 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
47 "autoExpandColumn": "report_name",
50 "|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}",
51 "|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"
56 "*prop": "dataSource",
59 "|sortInfo": "{ field : 'report_name', direction: 'ASC' }",
66 "|url": "baseURL + '/Roo/report.php'",
71 "xtype": "JsonReader",
72 "totalProperty": "total",
76 "|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]"
82 "xtype": "PagingToolbar",
85 "displayMsg": "Displaying report{0} - {1} of {2}",
86 "emptyMsg": "No report found",
97 "cls": "x-btn-text-icon",
98 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
100 "|click": "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
102 "|xns": "Roo.Toolbar"
107 "cls": "x-btn-text-icon",
108 "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
110 "|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"
112 "|xns": "Roo.Toolbar"
116 "cls": "x-btn-text-icon",
117 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
120 "|click": "function()\n{\n Pman.genericDelete(_this, 'report'); \n}\n "
122 "|xns": "Roo.Toolbar"
127 "xtype": "ColumnModel",
130 "dataIndex": "report_id",
131 "|renderer": "function(v) { return String.format('{0}', v); }",
133 "*prop": "colModel[]"
136 "xtype": "ColumnModel",
137 "header": "Report name",
139 "dataIndex": "report_name",
140 "|renderer": "function(v) { return String.format('{0}', v); }",
142 "*prop": "colModel[]"
145 "xtype": "ColumnModel",
146 "header": "Report sys",
148 "dataIndex": "report_sys",
149 "|renderer": "function(v) { return String.format('{0}', v); }",
151 "*prop": "colModel[]"
154 "xtype": "ColumnModel",
155 "header": "Report source",
157 "dataIndex": "report_source",
158 "|renderer": "function(v) { return String.format('{0}', v); }",
160 "*prop": "colModel[]"
163 "xtype": "ColumnModel",
164 "header": "Report descrip",
166 "dataIndex": "report_descrip",
167 "|renderer": "function(v) { return String.format('{0}', v); }",
169 "*prop": "colModel[]"
177 "xtype": "GridPanel",
180 "fitContainer": true,
181 "tableName": "report",
185 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
191 "autoExpandColumn": "report_name",
194 "|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}",
195 "|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"
200 "*prop": "dataSource",
203 "|sortInfo": "{ field : 'report_name', direction: 'ASC' }",
208 "xtype": "HttpProxy",
210 "|url": "baseURL + '/Roo/report.php'",
215 "xtype": "JsonReader",
216 "totalProperty": "total",
220 "|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]"
226 "xtype": "PagingToolbar",
229 "displayMsg": "Displaying report{0} - {1} of {2}",
230 "emptyMsg": "No report found",
234 "xtype": "ColumnModel",
235 "header": "Report grade",
237 "dataIndex": "report_grade",
238 "|renderer": "function(v) { return String.format('{0}', v); }",
240 "*prop": "colModel[]"
243 "xtype": "ColumnModel",
244 "header": "Report loaddate",
246 "dataIndex": "report_loaddate",
247 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
249 "*prop": "colModel[]"