{ "id": "roo-file-297", "name": "Pman.Tab.XtupleSales", "parent": "Pman", "title": "Pman.Tab.XtupleSales", "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtupleSales.bjs", "items": [ { "listeners": { "|activate": "function () {\n \n \n if (typeof(Pman.Login) != 'undefined') {\n var db = baseURL.split('.php').shift().substr(-2,2)\n \n this.setTitle('Sales (' + Pman.Login.authUser.dbname +')');\n \n }\n \n (function() {\n var c= _this.layout.getRegion('center');\n c.showPanel(c.getActivePanel());\n \n }).defer(100);\n}" }, "region": "center", "title": "Sales", "xtype": "NestedLayoutPanel", "|xns": "Roo", "items": [ { "xtype": "BorderLayout", "|xns": "Roo", "*prop": "layout", "items": [ { "xtype": "LayoutRegion", "|xns": "Roo", "*prop": "east", "title": "last edited", "collapsible": true, "width": "150", "split": true }, { "xtype": "LayoutRegion", "|xns": "Roo", "*prop": "center", "tabPosition": "top" }, { "listeners": { "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}" }, "background": true, "fitContainer": true, "fitToframe": true, "region": "east", "tableName": "events", "title": "events", "xtype": "GridPanel", "|xns": "Roo", "items": [ { "listeners": { "|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}", "|rowdblclick": "function (_self, rowIndex, e)\n{\n _this.dialog = Pman.Dialog.XtupleSalesOrder;\n \n data = this.getDataSource().getAt(rowIndex).data;\n \n _this.dialog.show( \n { cohead_id : data.on_id_cohead_id } , \n function() {\n _this.grid.footer.onClick('first');\n Pman.Tab.XtupleSalesOrder.grid.footer.onClick('refresh');\n \n }\n ); \n}\n" }, "*prop": "grid", ".builderCfg": "{\"cols\":[{\"table\":\"events\",\"column\":\"on_id\",\"columnshort\":\"on_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"}],\"cols_ex\":[\"on_id\"],\"table\":\"events\",\"xtype\":\"GridPanel\",\"|xns\":\"Roo\"}", "autoExpandColumn": "on_id", "loadMask": true, "xtype": "Grid", "|xns": "Roo.grid", "items": [ { "listeners": { "beforeload": "function (_self, options)\n{\n options.params._join = 'cohead';\n options.params.on_table = 'cohead';\n options.params._join_cols = 'cohead_number,cohead_id';\n options.params.sort = '';\n options.params.person_id = Pman.Login.authUser.id;\n \n /// on_table=cohead\n // &_join=cohead\n // &_join_cols=cohead_number\n // &_columns=on_id_cohead_number,event_when << this is ignored at present.\n // max(event_when) is not supported... by any query yet..\n \n}" }, "*prop": "dataSource", ".builderCfg": "{\"cols\":[{\"table\":\"events\",\"column\":\"on_id\",\"columnshort\":\"on_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"}],\"cols_ex\":[\"on_id\"],\"table\":\"events\",\"xtype\":\"GridPanel\",\"|xns\":\"Roo\"}", "remoteSort": true, "xtype": "Store", "|xns": "Roo.data", "items": [ { "*prop": "proxy", "xtype": "HttpProxy", "method": "GET", "|url": "baseURL + '/Roo/events.php'", "|xns": "Roo.data" }, { "|xns": "Roo.data", "xtype": "JsonReader", "totalProperty": "total", "root": "data", ".builderCfg": "{\"cols\":[{\"table\":\"events\",\"column\":\"on_id\",\"columnshort\":\"on_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"}],\"cols_ex\":[\"on_id\"],\"table\":\"events\",\"xtype\":\"GridPanel\",\"|xns\":\"Roo\"}", "*prop": "reader", "id": "id", "|fields": "[\n {\n 'name': 'on_id',\n 'type': 'int'\n }\n]" } ] }, { "*prop": "footer", "displayInfo": true, "displayMsg": ".", "emptyMsg": ".", "pageSize": 25, "xtype": "PagingToolbar", "|xns": "Roo" }, { "*prop": "colModel[]", ".builderCfg": "{\"table\":\"events\",\"column\":\"on_id\",\"columnshort\":\"on_id\",\"ctype\":\"int4\",\"desc\":\"\",\"use\":1,\"use_ex\":1,\"title\":\"\"}", "dataIndex": "on_id_cohead_number", "header": "on", "width": 75, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" } ] } ] } ] } ] } ], "permname": "", "modOrder": "002" }