3 "name": "Pman.Tab.XtuplePurchasesVendors",
4 "parent": "Pman.Tab.XtuplePurchases",
6 "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Tab.XtuplePurchasesVendors.bjs",
14 "xtype": "NestedLayoutPanel",
19 "xtype": "BorderLayout",
24 "xtype": "LayoutRegion",
29 "|activate": "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}"
35 "tableName": "vendinfo",
42 "|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}",
43 "rowdblclick": "function (_self, rowIndex, e)\n{\n var s = _this.grid.ds.getAt(rowIndex);\n if(s.data.vend_id * 1 < 1){\n Roo.MessageBox.alert(\"Error\", \"Select a row\");\n }\n \n Pman.Dialog.XtupleVendorEdit.show(s.data, function() {\n _this.grid.footer.onClick('first');\n }); \n}"
46 "autoExpandColumn": "vend_name",
54 "xtype": "RowSelectionModel",
59 "beforeload": "function (_self, options)\n{\n \n if (! _this.searchBox) {\n // not rendered yet...\n return false;\n \n }\n options.params = options.params || {};\n options.params._with_char = 1;\n options.params['search[name]'] = _this.searchBox.getValue();\n \n if (!_this.active.pressed) {\n options.params.vend_active = 1;\n } \n}"
61 "*prop": "dataSource",
64 "|sortInfo": "{ field : 'vend_name', direction: 'ASC' }",
71 "|url": "baseURL + '/Roo/Vendinfo.php'",
78 "totalProperty": "total",
79 "xtype": "JsonReader",
80 "|fields": "[\n {\n 'name': 'vend_id',\n 'type': 'int'\n },\n {\n 'name': 'vend_name',\n 'type': 'string'\n }\n]",
88 "displayMsg": "Displaying vendinfo{0} - {1} of {2}",
89 "emptyMsg": "No vendinfo found",
91 "xtype": "PagingToolbar",
102 "|xns": "Roo.Toolbar"
106 "render": "function (_self)\n{\n _this.searchBox = _self;\n}",
107 "specialkey": "function (_self, e)\n{\n _this.grid.footer.onClick('first');\n}"
109 "xtype": "TextField",
114 "|click": "function (_self, e)\n{\n_this.grid.footer.onClick('first');\n}"
118 "|icon": "rootURL + '/Pman/templates/images/search.gif'",
119 "|xns": "Roo.Toolbar"
123 "|click": "function (_self, e)\n{\n _this.searchBox.setValue('');\n \n \n _this.grid.footer.onClick('first');\n}"
127 "|icon": "rootURL + '/Pman/templates/images/edit-clear.gif'",
128 "|xns": "Roo.Toolbar"
131 "|xns": "Roo.Toolbar",
136 "toggle": "function (_self, pressed)\n{\n\n this.setText(pressed ? \"Hide Inactive\" : \"Show Inactive\");\n (function() { _this.grid.footer.onClick('first'); }).defer(100);\n}",
137 "render": "function (_self)\n{\n _this.active = _self;\n}"
139 "enableToggle": true,
140 "text": "Show Inactive",
142 "|xns": "Roo.Toolbar"
145 "|xns": "Roo.Toolbar",
150 "|click": "function()\n{\n\n Pman.Dialog.XtupleVendorEdit.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
152 "cls": "x-btn-text-icon",
155 "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
156 "|xns": "Roo.Toolbar"
160 "|click": "function()\n{\n var s = _this.grid.getSelectionModel().getSelected();\n \n if(!s || s.data.vend_id * 1 < 1){\n Roo.MessageBox.alert('Error', 'Please select a row');\n return;\n }\n \n Roo.MessageBox.confirm(\"Confirm\", \"Are you sure you want to delete that?\",\n function(v) {\n if (v != 'yes') {\n return;\n }\n new Pman.Request({\n method: 'POST',\n url: baseURL+ '/Roo/vendinfo',\n params : {\n _delete : s.data.vend_id\n },\n success : function() {\n _this.grid.footer.onClick('refresh');\n }\n });\n });\n}\n "
162 "cls": "x-btn-text-icon",
165 "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
166 "|xns": "Roo.Toolbar"
170 "click": "function (_self, e)\n{\n Pman.Dialog.Image.show(\n {\n _url : baseURL+'/Xtuple/Import/Vendors' \n \n },\n function (data) {\n _this.grid.footer.onClick('first');\n Roo.MessageBox.alert(\"Notice\", \"DONE\");\n// Roo.MessageBox.alert(\"Notice\", msg.join(\"\\n\"));\n\n }\n );\n}"
172 "text": "Upload Vendors",
174 "|xns": "Roo.Toolbar"
179 "*prop": "colModel[]",
180 "dataIndex": "vend_name",
183 "xtype": "ColumnModel",
184 "|renderer": "function(v) { return String.format('{0}', v); }",
188 "*prop": "colModel[]",
189 "dataIndex": "vend_vendtype_id_vendtype_descrip",
192 "xtype": "ColumnModel",
193 "|renderer": "function(v) { return String.format('{0}', v); }",
197 "*prop": "colModel[]",
198 "dataIndex": "vend_char_internalcompany",
199 "header": "Internal?",
201 "xtype": "ColumnModel",
202 "|renderer": "function(v) { return String.format('{0}', v ? v : ''); }",