{ "id": "roo-file-39", "name": "Pman.Dialog.XtupleVendorEdit", "parent": "", "title": "", "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleVendorEdit.bjs", "items": [ { "listeners": { "show": "function (_self)\n{\n this.layout.getRegion('center').showPanel(0);\n}" }, "closable": false, "collapsible": false, "height": 550, "modal": true, "resizable": false, "title": "Edit / Create Vendor", "width": 600, "xtype": "LayoutDialog", "|xns": "Roo", "items": [ { "*prop": "center", "tabPosition": "top", "xtype": "LayoutRegion", "|xns": "Roo" }, { "region": "center", "title": "Details", "xtype": "ContentPanel", "|xns": "Roo", "items": [ { "listeners": { "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n if(_this.data.vend_id){\n _this.dialog.el.mask(\"Loading\");\n this.load({ method: 'GET', params: { '_id' : _this.data.vend_id }}); \n }\n \n return;\n }\n if (action.type == 'load') {\n _this.data = action.result.data;\n _this.form.findField('addr_view').sync();\n _this.dialog.el.unmask();\n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.el.unmask();\n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\n }\n}\n", "|rendered": "function (form)\n{\n _this.form= form;\n}\n" }, "method": "POST", "style": "margin:10px;", "xtype": "Form", "|url": "baseURL + '/Roo/vendinfo.php'", "|xns": "Roo.form", "items": [ { "legend": "Basic Details", "style": "width:450px", "xtype": "FieldSet", "|xns": "Roo.form", "items": [ { "listeners": { "keyup": "function (_self, e)\n{\n if (!(_this.form.findField('vend_id').getValue() * 1)) {\n \n _this.form.findField('vend_number').setValue(this.getValue().replace(/[^a-z0-9]/ig, '').toUpperCase());\n \n }\n}" }, "allowBlank": false, "fieldLabel": "Name", "name": "vend_name", "width": 200, "xtype": "TextField", "|xns": "Roo.form" }, { "allowBlank": false, "fieldLabel": "Vendor #", "name": "vend_number", "readOnly": true, "width": 200, "xtype": "TextField", "|xns": "Roo.form" }, { "allowBlank": true, "fieldLabel": "Ship Via", "name": "vend_shipvia", "width": 200, "xtype": "TextField", "|xns": "Roo.form" }, { "allowBlank": false, "alwaysQuery": true, "displayField": "curr_symbol", "editable": false, "emptyText": "Select Currency", "fieldLabel": "Currency", "forceSelection": true, "hiddenName": "vend_curr_id", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "vend_curr_id_curr_symbol", "pageSize": 20, "qtip": "Select Currency", "queryParam": "query[curr_symbol]", "selectOnFocus": true, "tpl": "
{curr_symbol}
", "triggerAction": "all", "typeAhead": true, "valueField": "curr_id", "width": 200, "xtype": "ComboBox", "|xns": "Roo.form", "items": [ { "listeners": { "|beforeload": "function (_self, o){\n o.params = o.params || {};\n}\n" }, "*prop": "store", "remoteSort": true, "xtype": "Store", "|sortInfo": "{ direction : 'ASC', field: 'curr_symbol' }", "|xns": "Roo.data", "items": [ { "*prop": "proxy", "xtype": "HttpProxy", "method": "GET", "|xns": "Roo.data", "|url": "baseURL + '/Roo/curr_symbol.php'" }, { "*prop": "reader", "xtype": "JsonReader", "|xns": "Roo.data", "id": "curr_id", "root": "data", "totalProperty": "total", "|fields": "[{\"name\":\"curr_id\",\"type\":\"int\"},\"curr_symbol\"]" } ] } ] }, { "allowBlank": false, "alwaysQuery": true, "displayField": "terms_descrip", "editable": false, "emptyText": "Select Terms", "fieldLabel": "Terms", "forceSelection": true, "hiddenName": "vend_terms_id", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "vend_terms_id_terms_descrip", "pageSize": 20, "qtip": "Select Terms", "queryParam": "query[terms_descrip]", "selectOnFocus": true, "tpl": "
{terms_descrip}
", "triggerAction": "all", "typeAhead": true, "valueField": "terms_id", "width": 200, "xtype": "ComboBox", "|xns": "Roo.form", "items": [ { "listeners": { "|beforeload": "function (_self, o){\n o.params = o.params || {};\n}\n" }, "*prop": "store", "remoteSort": true, "xtype": "Store", "|sortInfo": "{ direction : 'ASC', field: 'terms_descrip' }", "|xns": "Roo.data", "items": [ { "*prop": "proxy", "xtype": "HttpProxy", "method": "GET", "|xns": "Roo.data", "|url": "baseURL + '/Roo/terms.php'" }, { "*prop": "reader", "xtype": "JsonReader", "|xns": "Roo.data", "id": "terms_id", "root": "data", "totalProperty": "total", "|fields": "[{\"name\":\"terms_id\",\"type\":\"int\"},\"terms_descrip\"]" } ] } ] }, { "allowBlank": false, "alwaysQuery": true, "displayField": "taxzone_descrip", "editable": false, "emptyText": "Select Taxzone", "fieldLabel": "Tax Zone", "forceSelection": true, "hiddenName": "vend_taxzone_id", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "vend_taxzone_id_taxzone_descrip", "pageSize": 20, "qtip": "Select Taxzone", "queryParam": "query[taxzone_descrip]", "selectOnFocus": true, "tpl": "
{taxzone_descrip}
", "triggerAction": "all", "typeAhead": true, "valueField": "taxzone_id", "width": 200, "xtype": "ComboBox", "|xns": "Roo.form", "items": [ { "listeners": { "|beforeload": "function (_self, o){\n o.params = o.params || {};\n}\n" }, "*prop": "store", "remoteSort": true, "xtype": "Store", "|sortInfo": "{ direction : 'ASC', field: 'taxzone_descrip' }", "|xns": "Roo.data", "items": [ { "*prop": "proxy", "xtype": "HttpProxy", "method": "GET", "|xns": "Roo.data", "|url": "baseURL + '/Roo/taxzone.php'" }, { "*prop": "reader", "xtype": "JsonReader", "|xns": "Roo.data", "id": "taxzone_id", "root": "data", "totalProperty": "total", "|fields": "[{\"name\":\"taxzone_id\",\"type\":\"int\"},\"taxzone_descrip\"]" } ] } ] }, { "listeners": { "add": "function (combo)\n{\n Pman.Dialog.XtupleVendTypeEdit.show({vendtype_id : 0}, function(res){\n _this.form.findField('vend_vendtype_id').setFromData(res);\n \n });\n}", "edit": "function (combo, record)\n{\n var s = _this.form.findField('vend_vendtype_id').getValue() * 1;\n if(s < 1){\n Roo.MessageBox.alert('Error','Please select a type');\n return;\n }\n\n Pman.Dialog.XtupleVendTypeEdit.show({vendtype_id : s}, function(res){\n\n _this.form.findField('vend_vendtype_id').setFromData(res);\n \n });\n}" }, "allowBlank": false, "alwaysQuery": true, "displayField": "vendtype_descrip", "editable": false, "emptyText": "Select Vendor Type", "fieldLabel": "Type", "forceSelection": true, "hiddenName": "vend_vendtype_id", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "vend_vendtype_id_vendtype_descrip", "pageSize": 20, "qtip": "Select Vendor Type", "queryParam": "query[vendtype_descrip]", "selectOnFocus": true, "tpl": "
{vendtype_descrip}
", "triggerAction": "all", "typeAhead": true, "valueField": "vendtype_id", "width": 200, "xtype": "ComboBox", "|xns": "Roo.form", "items": [ { "listeners": { "|beforeload": "function (_self, o){\n o.params = o.params || {};\n}\n" }, "*prop": "store", "remoteSort": true, "xtype": "Store", "|sortInfo": "{ direction : 'ASC', field: 'vendtype_descrip' }", "|xns": "Roo.data", "items": [ { "*prop": "proxy", "method": "GET", "xtype": "HttpProxy", "|url": "baseURL + '/Roo/vendtype.php'", "|xns": "Roo.data" }, { "*prop": "reader", "id": "vendtype_id", "root": "data", "totalProperty": "total", "xtype": "JsonReader", "|fields": "[{\"name\":\"vendtype_id\",\"type\":\"int\"},\"vendtype_descrip\"]", "|xns": "Roo.data" } ] } ] }, { "fieldLabel": "Active", "inputValue": "true", "name": "vend_active", "valueOff": 0, "xtype": "Checkbox", "|xns": "Roo.form" }, { "allowBlank": true, "fieldLabel": "Comments", "name": "vend_comments", "xtype": "TextArea", "|xns": "Roo.form" } ] }, { "hideLabels": true, "legend": "Address", "style": "width:450px;", "xtype": "FieldSet", "|xns": "Roo.form", "items": [ { "listeners": { "add": "function (combo)\n{\n Pman.Dialog.XtupleAddress.show({addr_id : 0});\n}", "edit": "function (combo, record)\n{\n var s = _this.form.findField('vend_addr_id').getValue() * 1;\n if(s < 1){\n Roo.MessageBox.alert('Error','Please select a address');\n return;\n }\n Pman.Dialog.XtupleAddress.show({addr_id : s});\n}", "select": "function (combo, record, index)\n{\n for(var i in record.data) {\n _this.data['vend_addr_id_' + i] = record.data[i];\n }\n\n _this.form.findField('addr_view').sync();\n}" }, "allowBlank": false, "alwaysQuery": true, "displayField": "addr_number", "editable": true, "emptyText": "Select Address", "fieldLabel": "Address", "forceSelection": true, "hiddenName": "vend_addr_id", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "vend_addr_id_addr_number", "pageSize": 20, "qtip": "Select Address", "queryParam": "query[address]", "selectOnFocus": true, "tpl": "
#{addr_id} - {addr_number}
", "triggerAction": "all", "typeAhead": true, "valueField": "addr_id", "width": 400, "xtype": "ComboBox", "|xns": "Roo.form", "items": [ { "listeners": { "|beforeload": "function (_self, o){\n o.params = o.params || {};\n addr_active = 1;\n}\n" }, "*prop": "store", "remoteSort": true, "xtype": "Store", "|sortInfo": "{ direction : 'DESC', field: 'addr_id' }", "|xns": "Roo.data", "items": [ { "*prop": "proxy", "method": "GET", "xtype": "HttpProxy", "|url": "baseURL + '/Roo/addr.php'", "|xns": "Roo.data" }, { "*prop": "reader", "id": "addr_id", "root": "data", "totalProperty": "total", "xtype": "JsonReader", "|fields": "[{\"name\":\"addr_id\",\"type\":\"int\"},\"addr_number\"]", "|xns": "Roo.data" } ] } ] }, { "allowBlank": true, "fieldLabel": "Notes", "name": "addr_view", "readOnly": true, "width": 400, "xtype": "TextArea", "|sync": "function() {\n var a = [ 'line1', 'line2', 'line3', 'city', 'state', 'country' ];\n var v = [];\n \n Roo.each(a, function(e) {\n if (_this.data['vend_addr_id_addr_' +e].length) {\n v.push(_this.data['vend_addr_id_addr_' +e]);\n }\n });\n \n this.setValue(v.join(\"\\n\"));\n}\n", "|xns": "Roo.form" } ] }, { "name": "vend_id", "xtype": "Hidden", "|xns": "Roo.form" } ] } ] }, { "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": "center", "tableName": "itemsrc", "title": "Supplier of", "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 \n Pman.Dialog.XtupleItem.show({ item_id : this.getDataSource().getAt(rowIndex).data.itemsrc_item_id }, function() {\n _this.grid.footer.onClick('first');\n }); \n}\n" }, "*prop": "grid", "autoExpandColumn": "itemsrc_vend_item_descrip", "loadMask": true, "xtype": "Grid", "|xns": "Roo.grid", "items": [ { "listeners": { "beforeload": "function (_self, options)\n{\n options.params.itemsrc_vend_id = _this.form.findField('vend_id').getValue();\n var s = _this.searchBox.getValue();\n if (s.length) {\n options.params['search[name]'] = s;\n }\n}" }, "*prop": "dataSource", "remoteSort": true, "xtype": "Store", "|sortInfo": "{ field : 'itemsrc_item_id_item_number', direction: 'ASC' }", "|xns": "Roo.data", "items": [ { "*prop": "proxy", "xtype": "HttpProxy", "method": "GET", "|url": "baseURL + '/Roo/itemsrc.php'", "|xns": "Roo.data" }, { "|xns": "Roo.data", "xtype": "JsonReader", "totalProperty": "total", "root": "data", "*prop": "reader", "id": "id", "|fields": "[\n {\n 'name': 'itemsrc_id',\n 'type': 'int'\n },\n {\n 'name': 'itemsrc_item_id',\n 'type': 'int'\n },\n {\n 'name': 'itemsrc_item_id',\n 'type': 'int'\n },\n {\n 'name': 'itemsrc_vend_id',\n 'type': 'int'\n },\n {\n 'name': 'itemsrc_vend_id',\n 'type': 'int'\n },\n {\n 'name': 'itemsrc_vend_item_number',\n 'type': 'string'\n },\n {\n 'name': 'itemsrc_vend_item_descrip',\n 'type': 'string'\n },\n {\n 'name': 'itemsrc_comments',\n 'type': 'string'\n },\n {\n 'name': 'itemsrc_vend_uom',\n 'type': 'string'\n },\n {\n 'name': 'itemsrc_invvendoruomratio',\n 'type': 'float'\n },\n {\n 'name': 'itemsrc_minordqty',\n 'type': 'float'\n },\n {\n 'name': 'itemsrc_multordqty',\n 'type': 'float'\n },\n {\n 'name': 'itemsrc_leadtime',\n 'type': 'int'\n },\n {\n 'name': 'itemsrc_ranking',\n 'type': 'int'\n },\n {\n 'name': 'itemsrc_active',\n 'type': 'int'\n },\n {\n 'name': 'itemsrc_manuf_name',\n 'type': 'string'\n },\n {\n 'name': 'itemsrc_manuf_item_number',\n 'type': 'string'\n },\n {\n 'name': 'itemsrc_manuf_item_descrip',\n 'type': 'string'\n },\n {\n 'name': 'itemsrc_default',\n 'type': 'int'\n },\n {\n 'name': 'itemsrc_upccode',\n 'type': 'string'\n }\n]" } ] }, { "*prop": "footer", "displayInfo": true, "displayMsg": "Displaying itemsrc{0} - {1} of {2}", "emptyMsg": "No itemsrc found", "pageSize": 100, "xtype": "PagingToolbar", "|xns": "Roo" }, { "*prop": "toolbar", "xtype": "Toolbar", "|xns": "Roo", "items": [ { "listeners": { "render": "function (_self)\n{\n _this.searchBox = _self;\n}", "specialkey": "function (_self, e)\n{\n _this.grid.footer.onClick('first');\n}" }, "xtype": "TextField", "|xns": "Roo.form" }, { "listeners": { "|click": "function (_self, e)\n{\n_this.grid.footer.onClick('first');\n}" }, "cls": "x-btn-icon", "xtype": "Button", "|icon": "rootURL + '/Pman/templates/images/search.gif'", "|xns": "Roo.Toolbar" }, { "listeners": { "|click": "function (_self, e)\n{\n _this.searchBox.setValue('');\n \n _this.grid.footer.onClick('first');\n}" }, "cls": "x-btn-icon", "xtype": "Button", "|icon": "rootURL + '/Pman/templates/images/edit-clear.gif'", "|xns": "Roo.Toolbar" }, { "|xns": "Roo.Toolbar", "xtype": "Fill" }, { "listeners": { "|click": "function()\n{\n \n Pman.Dialog.XtupleSalesProductList.show({\n exclude_itemsrc_vendor : _this.form.findField('vend_id').getValue(),\n multi_select : true\n \n }, function(sels) {\n Roo.log(sels); \n\n var ids = [];\n Roo.each(sels,function(rec) {\n ids.push(rec.data.item_id);\n });\n new Pman.Request({\n mask: \"Adding\",\n url : baseURL + '/Roo/Itemsrc',\n method: 'POST',\n params : {\n add_multiple : ids.join(','),\n itemsrc_vend_id : _this.form.findField('vend_id').getValue()\n },\n success : function() { \n \n \n _this.grid.footer.onClick('first');\n }\n });\n \n \n });\n \n}\n" }, "cls": "x-btn-text-icon", "text": "Add", "xtype": "Button", "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'", "|xns": "Roo.Toolbar" }, { "listeners": { "|click": "function()\n{\n Pman.genericDelete(_this, 'itemsrc'); \n}\n " }, "cls": "x-btn-text-icon", "text": "Delete", "xtype": "Button", "|icon": "rootURL + '/Pman/templates/images/trash.gif'", "|xns": "Roo.Toolbar" } ] }, { "*prop": "colModel[]", "dataIndex": "itemsrc_item_id_item_number", "header": "Item", "width": 120, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "itemsrc_vend_item_number", "header": "Vendor item number", "width": 120, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "itemsrc_vend_item_descrip", "header": "Vendor item description", "width": 200, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "itemsrc_vend_uom", "header": "Uom", "width": 50, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "itemsrc_minordqty", "header": "Min ord qty", "width": 50, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "itemsrc_leadtime", "header": "Lead time", "width": 75, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "itemsrc_active", "header": "Active", "width": 75, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" } ] } ] }, { "listeners": { "|activate": "function() {\n _this.apanel = this;\n if (_this.agrid) {\n _this.agrid.footer.onClick('first');\n }\n}" }, "background": true, "fitContainer": true, "fitToframe": true, "region": "center", "tableName": "vendaddrinfo", "title": "Addresses", "xtype": "GridPanel", "|xns": "Roo", "items": [ { "listeners": { "|render": "function() \n{\n _this.agrid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.apanel.active) {\n this.footer.onClick('first');\n }\n}" }, "*prop": "grid", "autoExpandColumn": "vendaddr_addr_id_addr_line1", "loadMask": true, "xtype": "Grid", "|xns": "Roo.grid", "items": [ { "*prop": "sm", "singleSelect": true, "xtype": "RowSelectionModel", "|xns": "Roo.grid" }, { "listeners": { "beforeload": "function (_self, options)\n{\n options.params = options.params || {};\n \n var id = _this.form.findField('vend_id').getValue();\n \n if(id * 1 < 1){\n return false;\n }\n \n options.params.vendaddr_vend_id = id;\n}" }, "*prop": "dataSource", "remoteSort": true, "xtype": "Store", "|sortInfo": "{ field : 'vendaddr_id', direction: 'ASC' }", "|xns": "Roo.data", "items": [ { "*prop": "proxy", "method": "GET", "xtype": "HttpProxy", "|url": "baseURL + '/Roo/vendaddrinfo.php'", "|xns": "Roo.data" }, { "*prop": "reader", "id": "vendaddr_id", "root": "data", "totalProperty": "total", "xtype": "JsonReader", "|fields": "[\n {\n 'name': 'vendaddr_id',\n 'type': 'int'\n },\n {\n 'name': 'vendaddr_vend_id',\n 'type': 'int'\n },\n {\n 'name': 'vendaddr_code',\n 'type': 'string'\n }\n]", "|xns": "Roo.data" } ] }, { "*prop": "footer", "displayInfo": true, "displayMsg": "Displaying address{0} - {1} of {2}", "emptyMsg": "Nothing found", "pageSize": 100, "xtype": "PagingToolbar", "|xns": "Roo" }, { "*prop": "toolbar", "xtype": "Toolbar", "|xns": "Roo", "items": [ { "|xns": "Roo.Toolbar", "xtype": "Fill" }, { "listeners": { "click": "function (_self, e)\n{\n var id = _this.form.findField('vend_id').getValue();\n \n if(id * 1 < 1){\n Roo.MessageBox.alert('Error', 'Please save the vendor first');\n return;\n }\n \n Pman.Dialog.Image.show(\n {\n _url : baseURL+'/Xtuple/Import/VendAddrInfo?' + Roo.urlEncode({'vend_id' : id})\n \n },\n function (data) {\n _this.agrid.footer.onClick('first');\n }\n );\n}" }, "text": "Upload", "xtype": "Button", "|xns": "Roo.Toolbar" }, { "listeners": { "|click": "function()\n{\n var s = _this.agrid.getSelectionModel().getSelected();\n \n if(!s || s.data.vendaddr_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/vendaddrinfo',\n params : {\n _delete : s.data.vendaddr_id\n },\n success : function() {\n _this.agrid.footer.onClick('refresh');\n }\n });\n });\n}\n " }, "cls": "x-btn-text-icon", "text": "Delete", "xtype": "Button", "|icon": "rootURL + '/Pman/templates/images/trash.gif'", "|xns": "Roo.Toolbar" }, { "listeners": { "|click": "function()\n{\n var s = _this.form.findField('vend_id').getValue() * 1;\n \n if(!s || s * 1 < 1){\n Roo.MessageBox.alert('Error', 'Save first!');\n return;\n }\n \n Roo.MessageBox.confirm(\"Confirm\", \"Are you sure you want to delete all the address?\",\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 vend_id : s,\n _remove_addr : 1\n },\n success : function() {\n _this.agrid.footer.onClick('refresh');\n }\n });\n });\n}\n " }, "cls": "x-btn-text-icon", "text": "Delete All", "xtype": "Button", "|icon": "rootURL + '/Pman/templates/images/trash.gif'", "|xns": "Roo.Toolbar" } ] }, { "*prop": "colModel[]", "dataIndex": "vendaddr_code", "header": "Code", "width": 75, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "vendaddr_addr_id_addr_city", "header": "District", "width": 100, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "vendaddr_addr_id_addr_line1", "header": "Address Line 1", "width": 200, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" }, { "*prop": "colModel[]", "dataIndex": "vendaddr_addr_id_addr_line2", "header": "Address Line 2", "width": 200, "xtype": "ColumnModel", "|renderer": "function(v) { return String.format('{0}', v); }", "|xns": "Roo.grid" } ] } ] }, { "listeners": { "click": "function (_self, e)\n{\n _this.dialog.hide();\n}" }, "*prop": "buttons[]", "text": "Cancel", "xtype": "Button", "|xns": "Roo" }, { "listeners": { "click": "function (_self, e)\n{\n _this.form.doAction(\"submit\");\n\n}" }, "*prop": "buttons[]", "text": "Save", "xtype": "Button", "|xns": "Roo" } ] } ], "permname": "", "modOrder": "001" }