{ "id": "roo-file-22", "name": "Pman.Dialog.XtupleReconcile", "parent": "", "title": "", "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleReconcile.bjs", "items": [ { "closable": false, "collapsible": false, "height": 260, "modal": true, "resizable": false, "title": "Reconcile account", "width": 400, "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\n this.load({ method: 'GET', params: { '_closedata' : _this.data.bankaccnt_id }});\n return;\n }\n if (action.type == 'load') {\n \n return;\n }\n if (action.type =='submit') {\n \n \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", "actionfailed": "function (_self, action)\n{\n\n Roo.MessageBox.alert(\"Error\", \n action.result ? action.result.errorMsg : \"Error posting\"\n );\n \n if (action.type == 'load') {\n _this.dialog.hide();\n return;\n }\n\n\n \n}" }, "labelAlign": "right", "labelWidth": 150, "method": "POST", "style": "margin:10px;", "xtype": "Form", "|url": "baseURL + '/Roo/bankrec.php'", "|xns": "Roo.form", "items": [ { "fieldLabel": "Bank Account", "name": "bankrec_bankaccnt_id_bankaccnt_descrip", "readOnly": true, "width": 200, "xtype": "TextField", "|xns": "Roo.form" }, { "fieldLabel": "From date", "format": "Y-m-d", "name": "bankrec_opendate", "readOnly": true, "width": 100, "xtype": "TextField", "|xns": "Roo.form" }, { "fieldLabel": "End Date", "format": "Y-m-d", "name": "bankrec_enddate", "readOnly": true, "width": 100, "xtype": "TextField", "|xns": "Roo.form" }, { "fieldLabel": "Opening Balance", "name": "bankrec_openbal", "readOnly": true, "width": 75, "xtype": "TextField", "|xns": "Roo.form" }, { "fieldLabel": "System close balance", "name": "bankrec_endbal_prop", "readOnly": true, "width": 150, "xtype": "TextField", "|xns": "Roo.form" }, { "fieldLabel": "Real close balance", "name": "bankrec_endbal", "width": 150, "xtype": "TextField", "|xns": "Roo.form" }, { "name": "_post", "value": 1, "width": 150, "xtype": "Hidden", "|xns": "Roo.form" }, { "name": "bankrec_bankaccnt_id", "width": 150, "xtype": "Hidden", "|xns": "Roo.form" }, { "name": "bankrec_id", "width": 150, "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 \n _this.form.doAction(\"submit\");\n\n}" }, "*prop": "buttons[]", "text": "Save", "xtype": "Button", "|xns": "Roo" } ] } ], "permname": "", "modOrder": "001" }