Fix #7123 - getting abra ready to test
[Pman.Xtuple] / Pman.Dialog.XtupleUploadBalances.bjs
1 {
2     "id": "roo-file-36",
3     "name": "Pman.Dialog.XtupleUploadBalances",
4     "parent": "",
5     "title": "",
6     "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleUploadBalances.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 140,
12             "modal": true,
13             "resizable": false,
14             "title": "Upload new Balances",
15             "width": 400,
16             "xtype": "LayoutDialog",
17             "|xns": "Roo",
18             "items": [
19                 {
20                     "|xns": "Roo",
21                     "xtype": "LayoutRegion",
22                     "*prop": "center"
23                 },
24                 {
25                     "region": "center",
26                     "xtype": "ContentPanel",
27                     "|xns": "Roo",
28                     "items": [
29                         {
30                             "listeners": {
31                                 "|rendered": "function (form)\n{\n    _this.form= form;\n}\n",
32                                 "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"
33                             },
34                             "method": "GET",
35                             "style": "margin:10px;",
36                             "xtype": "Form",
37                             "|url": "baseURL + '/Roo/INGORE.php'",
38                             "|xns": "Roo.form",
39                             "items": [
40                                 {
41                                     "allowBlank": false,
42                                     "fieldLabel": "Reference",
43                                     "name": "reference",
44                                     "width": 200,
45                                     "xtype": "TextField",
46                                     "|xns": "Roo.form"
47                                 },
48                                 {
49                                     "allowBlank": false,
50                                     "fieldLabel": "Apply Date",
51                                     "format": "Y-m-d",
52                                     "name": "apply_date",
53                                     "width": 200,
54                                     "xtype": "DateField",
55                                     "|xns": "Roo.form"
56                                 }
57                             ]
58                         }
59                     ]
60                 },
61                 {
62                     "listeners": {
63                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\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    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}"
73                     },
74                     "*prop": "buttons[]",
75                     "text": "Save",
76                     "xtype": "Button",
77                     "|xns": "Roo"
78                 }
79             ]
80         }
81     ],
82     "permname": "",
83     "modOrder": "001"
84 }