{ "id": "roo-file-20", "name": "Pman.Dialog.XtupleReceivePayment", "parent": "", "title": "", "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleReceivePayment.bjs", "items": [ { "listeners": { "show": "function (_self)\n{\n this.layout.getRegion('center').showPanel(0);\n}" }, "closable": false, "collapsible": false, "height": 400, "modal": true, "resizable": false, "title": "Create Receive Payment", "width": 600, "xtype": "LayoutDialog", "|xns": "Roo", "items": [ { "|xns": "Roo", "xtype": "LayoutRegion", "*prop": "center" }, { "region": "center", "xtype": "ContentPanel", "|xns": "Roo", "items": [ { "listeners": { "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n if(_this.data.cashrcpt_id){\n _this.dialog.el.mask(\"Loading\");\n this.load({ method: 'GET', params: { '_id' : _this.data.cashrcpt_id }});\n return;\n }\n }\n if (action.type == 'load') {\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" }, "labelWidth": 150, "method": "POST", "style": "margin:10px;", "xtype": "Form", "|url": "baseURL + '/Roo/cashrcpt.php'", "|xns": "Roo.form", "items": [ { "allowBlank": false, "allowDecimals": true, "decimalPrecision": 2, "fieldLabel": "Amount Received", "name": "cashrcpt_amount", "readOnly": true, "width": 200, "xtype": "NumberField", "|xns": "Roo.form" }, { "allowBlank": false, "disabled": true, "displayField": "curr_name", "editable": false, "emptyText": "Select curr_name", "fieldLabel": "Currency", "forceSelection": true, "hiddenName": "cashrcpt_curr_id", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "cashrcpt_curr_id_curr_name", "pageSize": 20, "qtip": "Select Currency", "queryParam": "query[curr_name]", "selectOnFocus": true, "tpl": "