{ "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": "