3 "name": "Pman.Tab.XtuplePriceLists",
4 "parent": "Pman.Tab.XtupleManage",
5 "title": "Pman.Tab.XtuplePriceLists",
6 "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtuplePriceLists.bjs",
10 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
16 "tableName": "ipshead",
17 "title": "Price Lists",
23 "|render": "function() \n{\n _this.grid = this; \n _this.dialog = Pman.Dialog.XtuplePriceList\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}",
24 "|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}\n"
27 "autoExpandColumn": "ipshead_descrip",
33 "*prop": "dataSource",
36 "|sortInfo": "{ field : 'ipshead_name', direction: 'ASC' }",
43 "|url": "baseURL + '/Roo/ipshead.php'",
48 "xtype": "JsonReader",
49 "totalProperty": "total",
53 "|fields": "[\n {\n 'name': 'ipshead_id',\n 'type': 'int'\n },\n {\n 'name': 'ipshead_name',\n 'type': 'string'\n },\n {\n 'name': 'ipshead_descrip',\n 'type': 'string'\n },\n {\n 'name': 'ipshead_effective',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'ipshead_expires',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'ipshead_curr_id',\n 'type': 'int'\n },\n {\n 'name': 'ipshead_updated',\n 'type': 'date',\n 'dateFormat': 'Y-m-d'\n },\n {\n 'name': 'ipshead_curr_id_curr_id',\n 'type': 'int'\n },\n {\n 'name': 'ipshead_curr_id_curr_base',\n 'type': 'int'\n },\n {\n 'name': 'ipshead_curr_id_curr_name',\n 'type': 'string'\n },\n {\n 'name': 'ipshead_curr_id_curr_symbol',\n 'type': 'string'\n },\n {\n 'name': 'ipshead_curr_id_curr_abbr',\n 'type': 'string'\n }\n]"
60 "displayMsg": "Displaying ipshead{0} - {1} of {2}",
61 "emptyMsg": "No ipshead found",
63 "xtype": "PagingToolbar",
73 "click": "function (_self, e)\n{\n new Pman.Download({\n method: 'GET',\n url : baseURL + '/Roo/Ipsiteminfo',\n params : {\n _pricegrid : 1\n }\n });\n}"
75 "text": "Download Price Matrix",
81 "click": "function (_self, e)\n{\n Pman.Dialog.Image.show(\n {\n _url : baseURL+'/Xtuple/Pricing'\n \n },\n function (data) {\n var msg = [];\n if (data.deleted) {\n msg.push(\"Deleted \" + data.deleted + \" Price(s)\");\n }\n if (data.updated) {\n msg.push(\"Updated \" + data.updated + \" Price(s)\");\n } \n if (data.inserted) {\n msg.push(\"Added \" + data.inserted + \" Price(s)\");\n }\n if (!msg.length) {\n msg.push(\"No data changed\");\n }\n Roo.MessageBox.alert(\"Notice\", msg.join(\"\\n\"));\n\n }\n );\n}"
83 "text": "Upload Price Matrix",
88 "|xns": "Roo.Toolbar",
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"
103 "cls": "x-btn-text-icon",
104 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
107 "|click": "function()\n{\n Pman.genericDelete(_this, 'ipshead'); \n}\n "
109 "|xns": "Roo.Toolbar"
114 "*prop": "colModel[]",
115 "dataIndex": "ipshead_curr_id_curr_name",
116 "header": "Ipshead curr",
119 "xtype": "ColumnModel",
120 "|renderer": "function(v) { return String.format('{0}', v); }",
124 "*prop": "colModel[]",
125 "dataIndex": "ipshead_name",
126 "header": "Ipshead name",
129 "xtype": "ColumnModel",
130 "|renderer": "function(v) { return String.format('{0}', v); }",
134 "xtype": "ColumnModel",
135 "header": "Ipshead descrip",
137 "dataIndex": "ipshead_descrip",
138 "|renderer": "function(v) { return String.format('{0}', v); }",
140 "*prop": "colModel[]"
143 "xtype": "ColumnModel",
144 "header": "Ipshead effective",
146 "dataIndex": "ipshead_effective",
147 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
149 "*prop": "colModel[]"
152 "*prop": "colModel[]",
153 "dataIndex": "ipshead_expires",
154 "header": "Ipshead expires",
156 "xtype": "ColumnModel",
157 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
161 "xtype": "ColumnModel",
162 "header": "Ipshead updated",
164 "dataIndex": "ipshead_updated",
165 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
167 "*prop": "colModel[]"