1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.XtupleSalesOrderCopy = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
34 show : function (_self)
36 _this.form.findField('scheddate').focus();
43 title : "Copy Sales Order",
47 xtype: 'ContentPanel',
55 rendered : function (form)
59 actioncomplete : function(_self,action)
61 if (action.type == 'setdata') {
62 this.findField('_copy_cohead_id').setValue(_this.data._copy_cohead_id);
65 if (action.type == 'load') {
68 if (action.type =='submit') {
73 // _this.form.setValues(action.result.data);
74 _this.callback.call(_this,action.result.data);
84 url : baseURL + '/Roo/cohead',
90 fieldLabel : 'New Expected Delivery Date',
98 name : '_copy_cohead_id'
106 xtype: 'LayoutRegion',
114 click : function (_self, e)
126 click : function (_self, e)
128 //_this.findField('cuinfo_
130 // check if customer is filled in.
131 if (!_this.form.isValid()) {
132 Roo.MessageBox.alert("Error", "Fill in a date");