3 "name": "Pman.Dialog.XtupleSalesOrderCopy",
6 "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleSalesOrderCopy.bjs",
10 "show": "function (_self)\n{\n _this.form.findField('scheddate').focus();\n}"
16 "title": "Copy Sales Order",
18 "xtype": "LayoutDialog",
23 "xtype": "LayoutRegion",
28 "xtype": "ContentPanel",
33 "rendered": "function (form)\n{\n _this.form = form;\n}",
34 "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"
36 "labelAlign": "right",
40 "|url": "baseURL + '/Roo/cohead'",
45 "fieldLabel": "New Expected Delivery Date",
53 "name": "_copy_cohead_id",
63 "click": "function (_self, e)\n{\n _this.dialog.hide();\n \n }"
72 "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}"