{ "id": "roo-file-310", "name": "Pman.Dialog.XtupleSalesOrderCopy", "parent": "", "title": "", "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleSalesOrderCopy.bjs", "items": [ { "listeners": { "show": "function (_self)\n{\n _this.form.findField('scheddate').focus();\n}" }, "closable": false, "height": 120, "modal": true, "resizable": false, "title": "Copy Sales Order", "width": 500, "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}", "actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n this.findField('_copy_cohead_id').setValue(_this.data._copy_cohead_id);\n return;\n }\n if (action.type == 'load') {\n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.hide();\n \n if (_this.callback) {\n // _this.form.setValues(action.result.data);\n _this.callback.call(_this,action.result.data);\n }\n _this.form.reset();\n return;\n }\n}\n" }, "labelAlign": "right", "labelWidth": 200, "method": "POST", "xtype": "Form", "|url": "baseURL + '/Roo/cohead'", "|xns": "Roo.form", "items": [ { "allowBlank": false, "fieldLabel": "New Expected Delivery Date", "format": "d/m/Y", "name": "scheddate", "|useIso": "true", "xtype": "DateField", "|xns": "Roo.form" }, { "name": "_copy_cohead_id", "xtype": "Hidden", "|xns": "Roo.form" } ] } ] }, { "listeners": { "click": "function (_self, e)\n{\n _this.dialog.hide();\n \n }" }, "*prop": "buttons[]", "text": "Cancel", "xtype": "Button", "|xns": "Roo" }, { "listeners": { "click": "function (_self, e)\n{\n //_this.findField('cuinfo_\n \n // check if customer is filled in.\n if (!_this.form.isValid()) {\n Roo.MessageBox.alert(\"Error\", \"Fill in a date\");\n return;\n }\n _this.form.submit();\n \n}" }, "*prop": "buttons[]", "text": "OK", "xtype": "Button", "|xns": "Roo" } ] } ], "permname": "", "modOrder": "001" }