{ "id": "roo-file-36", "name": "Pman.Dialog.XtupleUploadBalances", "parent": "", "title": "", "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleUploadBalances.bjs", "items": [ { "closable": false, "collapsible": false, "height": 140, "modal": true, "resizable": false, "title": "Upload new Balances", "width": 400, "xtype": "LayoutDialog", "|xns": "Roo", "items": [ { "|xns": "Roo", "xtype": "LayoutRegion", "*prop": "center" }, { "region": "center", "xtype": "ContentPanel", "|xns": "Roo", "items": [ { "listeners": { "|rendered": "function (form)\n{\n _this.form= form;\n}\n", "actioncomplete": "function(_self,action)\r\n{\r\n if (action.type == 'setdata') {\r\n return;\r\n }\r\n if (action.type == 'load') {\r\n return;\r\n }\r\n if (action.type =='submit') {\r\n \r\n _this.dialog.hide();\r\n\r\n if (_this.callback) {\r\n _this.callback.call(_this, _this.form.getValues());\r\n }\r\n _this.form.reset();\r\n return;\r\n }\r\n}\r" }, "method": "GET", "style": "margin:10px;", "xtype": "Form", "|url": "baseURL + '/Roo/INGORE.php'", "|xns": "Roo.form", "items": [ { "allowBlank": false, "fieldLabel": "Reference", "name": "reference", "width": 200, "xtype": "TextField", "|xns": "Roo.form" }, { "allowBlank": false, "fieldLabel": "Apply Date", "format": "Y-m-d", "name": "apply_date", "width": 200, "xtype": "DateField", "|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 var ref = _this.form.findField('reference').getValue();\n var d = _this.form.findField('apply_date').getValue();\n \n if(!ref.length || !d){\n Roo.MessageBox.alert(\"Error\", \"Referenct and Apply date must be filled in\");\n return;\n }\n \n _this.dialog.hide();\n \n _this.callback(_this.form.getValues());\n\n}" }, "*prop": "buttons[]", "text": "Save", "xtype": "Button", "|xns": "Roo" } ] } ], "permname": "", "modOrder": "001" }