{ "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": "
{curr_name}
", "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 // set more here\n \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, "displayField": "fname", "editable": false, "fieldLabel": "Funds Type", "hiddenName": "cashrcpt_fundstype", "listWidth": 200, "mode": "local", "name": "cashrcpt_fundstype_name", "triggerAction": "all", "valueField": "ftype", "width": 200, "xtype": "ComboBox", "|xns": "Roo.form", "items": [ { "*prop": "store", "xtype": "SimpleStore", "|data": "[ \n [ 'C', \"Check\"],\n [ 'K' , \"Cash\"]\n]\n", "|fields": "[ 'ftype', 'fname']", "|xns": "Roo.data" } ] }, { "allowBlank": true, "fieldLabel": "Check / Document #", "name": "cashrcpt_docnumber", "width": 200, "xtype": "TextField", "|xns": "Roo.form" }, { "allowBlank": false, "fieldLabel": "Check / Document Date", "format": "Y-m-d", "name": "cashrcpt_docdate", "width": 200, "xtype": "DateField", "|xns": "Roo.form" }, { "allowBlank": false, "fieldLabel": "Distribution Date", "format": "Y-m-d", "name": "cashrcpt_distdate", "width": 200, "xtype": "DateField", "|xns": "Roo.form" }, { "allowBlank": false, "fieldLabel": "Application Date", "format": "Y-m-d", "name": "cashrcpt_applydate", "width": 200, "xtype": "DateField", "|xns": "Roo.form" }, { "allowBlank": false, "displayField": "bankaccnt_name", "editable": false, "emptyText": "Select Bank Accnt", "fieldLabel": "Post to", "forceSelection": true, "hiddenName": "cashrcpt_bankaccnt_id", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "cashrcpt_bankaccnt_id_name", "pageSize": 20, "qtip": "Select Bank Accnt", "queryParam": "query[bankaccnt_name]", "selectOnFocus": true, "tpl": "
{bankaccnt_name} - {bankaccnt_descrip}
", "triggerAction": "all", "typeAhead": true, "valueField": "bankaccnt_id", "width": 200, "xtype": "ComboBox", "|xns": "Roo.form", "items": [ { "listeners": { "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n \n}\n" }, "*prop": "store", "remoteSort": true, "xtype": "Store", "|sortInfo": "{ direction : 'DESC', field: 'bankaccnt_id' }", "|xns": "Roo.data", "items": [ { "*prop": "proxy", "method": "GET", "xtype": "HttpProxy", "|url": "baseURL + '/Roo/bankaccnt.php'", "|xns": "Roo.data" }, { "*prop": "reader", "id": "bankaccnt_id", "root": "data", "totalProperty": "total", "xtype": "JsonReader", "|fields": "[{\"name\":\"bankaccnt_id\",\"type\":\"int\"},\"bankaccnt_name\"]", "|xns": "Roo.data" } ] } ] }, { "fieldLabel": "Notes", "name": "cashrcpt_notes", "xtype": "TextArea", "|xns": "Roo.form" }, { "name": "cashrcpt_id", "xtype": "Hidden", "|xns": "Roo.form" }, { "name": "cashrcpt_aropen_id", "xtype": "Hidden", "|xns": "Roo.form" }, { "name": "cashrcpt_cust_id", "xtype": "Hidden", "|xns": "Roo.form" }, { "name": "cashrcpt_salescat_id", "xtype": "Hidden", "|xns": "Roo.form" }, { "name": "cashrcpt_discount", "xtype": "Hidden", "|xns": "Roo.form" }, { "name": "cashrcpt_usecustdeposit", "xtype": "Hidden", "|xns": "Roo.form" } ] } ] }, { "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 // do some checks?\n \n \n // _this.dialog.el.mask(\"Saving\");\n _this.form.doAction(\"submit\");\n\n}" }, "*prop": "buttons[]", "text": "Save", "xtype": "Button", "|xns": "Roo" } ] } ], "permname": "", "modOrder": "001" }