Fix #7123 - getting abra ready to test
[Pman.Xtuple] / Pman.Dialog.XtupleSalesOrderCopy.bjs
1 {
2     "id": "roo-file-310",
3     "name": "Pman.Dialog.XtupleSalesOrderCopy",
4     "parent": "",
5     "title": "",
6     "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleSalesOrderCopy.bjs",
7     "items": [
8         {
9             "listeners": {
10                 "show": "function (_self)\n{\n    _this.form.findField('scheddate').focus();\n}"
11             },
12             "closable": false,
13             "height": 120,
14             "modal": true,
15             "resizable": false,
16             "title": "Copy  Sales Order",
17             "width": 500,
18             "xtype": "LayoutDialog",
19             "|xns": "Roo",
20             "items": [
21                 {
22                     "|xns": "Roo",
23                     "xtype": "LayoutRegion",
24                     "*prop": "center"
25                 },
26                 {
27                     "region": "center",
28                     "xtype": "ContentPanel",
29                     "|xns": "Roo",
30                     "items": [
31                         {
32                             "listeners": {
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"
35                             },
36                             "labelAlign": "right",
37                             "labelWidth": 200,
38                             "method": "POST",
39                             "xtype": "Form",
40                             "|url": "baseURL + '/Roo/cohead'",
41                             "|xns": "Roo.form",
42                             "items": [
43                                 {
44                                     "allowBlank": false,
45                                     "fieldLabel": "New Expected Delivery Date",
46                                     "format": "d/m/Y",
47                                     "name": "scheddate",
48                                     "|useIso": "true",
49                                     "xtype": "DateField",
50                                     "|xns": "Roo.form"
51                                 },
52                                 {
53                                     "name": "_copy_cohead_id",
54                                     "xtype": "Hidden",
55                                     "|xns": "Roo.form"
56                                 }
57                             ]
58                         }
59                     ]
60                 },
61                 {
62                     "listeners": {
63                         "click": "function (_self, e)\n{\n   _this.dialog.hide();\n \n }"
64                     },
65                     "*prop": "buttons[]",
66                     "text": "Cancel",
67                     "xtype": "Button",
68                     "|xns": "Roo"
69                 },
70                 {
71                     "listeners": {
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}"
73                     },
74                     "*prop": "buttons[]",
75                     "text": "OK",
76                     "xtype": "Button",
77                     "|xns": "Roo"
78                 }
79             ]
80         }
81     ],
82     "permname": "",
83     "modOrder": "001"
84 }