Fix #7123 - getting abra ready to test
[Pman.Xtuple] / Pman.Dialog.XtupleReconcile.bjs
1 {
2     "id": "roo-file-22",
3     "name": "Pman.Dialog.XtupleReconcile",
4     "parent": "",
5     "title": "",
6     "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleReconcile.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 260,
12             "modal": true,
13             "resizable": false,
14             "title": "Reconcile account",
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                                 "|actioncomplete": "function(_self,action)\n{\n    if (action.type == 'setdata') {\n\n       this.load({ method: 'GET', params: { '_closedata' : _this.data.bankaccnt_id }});\n       return;\n    }\n    if (action.type == 'load') {\n \n        return;\n    }\n    if (action.type =='submit') {\n    \n \n        _this.dialog.hide();\n    \n         if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n         }\n         _this.form.reset();\n         return;\n    }\n}\n",
32                                 "|rendered": "function (form)\n{\n    _this.form= form;\n}\n",
33                                 "actionfailed": "function (_self, action)\n{\n\n    Roo.MessageBox.alert(\"Error\", \n        action.result ? action.result.errorMsg : \"Error posting\"\n    );\n        \n    if (action.type == 'load') {\n        _this.dialog.hide();\n        return;\n    }\n\n\n    \n}"
34                             },
35                             "labelAlign": "right",
36                             "labelWidth": 150,
37                             "method": "POST",
38                             "style": "margin:10px;",
39                             "xtype": "Form",
40                             "|url": "baseURL + '/Roo/bankrec.php'",
41                             "|xns": "Roo.form",
42                             "items": [
43                                 {
44                                     "fieldLabel": "Bank Account",
45                                     "name": "bankrec_bankaccnt_id_bankaccnt_descrip",
46                                     "readOnly": true,
47                                     "width": 200,
48                                     "xtype": "TextField",
49                                     "|xns": "Roo.form"
50                                 },
51                                 {
52                                     "fieldLabel": "From date",
53                                     "format": "Y-m-d",
54                                     "name": "bankrec_opendate",
55                                     "readOnly": true,
56                                     "width": 100,
57                                     "xtype": "TextField",
58                                     "|xns": "Roo.form"
59                                 },
60                                 {
61                                     "fieldLabel": "End Date",
62                                     "format": "Y-m-d",
63                                     "name": "bankrec_enddate",
64                                     "readOnly": true,
65                                     "width": 100,
66                                     "xtype": "TextField",
67                                     "|xns": "Roo.form"
68                                 },
69                                 {
70                                     "fieldLabel": "Opening Balance",
71                                     "name": "bankrec_openbal",
72                                     "readOnly": true,
73                                     "width": 75,
74                                     "xtype": "TextField",
75                                     "|xns": "Roo.form"
76                                 },
77                                 {
78                                     "fieldLabel": "System close balance",
79                                     "name": "bankrec_endbal_prop",
80                                     "readOnly": true,
81                                     "width": 150,
82                                     "xtype": "TextField",
83                                     "|xns": "Roo.form"
84                                 },
85                                 {
86                                     "fieldLabel": "Real close balance",
87                                     "name": "bankrec_endbal",
88                                     "width": 150,
89                                     "xtype": "TextField",
90                                     "|xns": "Roo.form"
91                                 },
92                                 {
93                                     "name": "_post",
94                                     "value": 1,
95                                     "width": 150,
96                                     "xtype": "Hidden",
97                                     "|xns": "Roo.form"
98                                 },
99                                 {
100                                     "name": "bankrec_bankaccnt_id",
101                                     "width": 150,
102                                     "xtype": "Hidden",
103                                     "|xns": "Roo.form"
104                                 },
105                                 {
106                                     "name": "bankrec_id",
107                                     "width": 150,
108                                     "xtype": "Hidden",
109                                     "|xns": "Roo.form"
110                                 }
111                             ]
112                         }
113                     ]
114                 },
115                 {
116                     "listeners": {
117                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
118                     },
119                     "*prop": "buttons[]",
120                     "text": "Cancel",
121                     "xtype": "Button",
122                     "|xns": "Roo"
123                 },
124                 {
125                     "listeners": {
126                         "click": "function (_self, e)\n{\n    // do some checks?\n     \n    \n \n    _this.form.doAction(\"submit\");\n\n}"
127                     },
128                     "*prop": "buttons[]",
129                     "text": "Save",
130                     "xtype": "Button",
131                     "|xns": "Roo"
132                 }
133             ]
134         }
135     ],
136     "permname": "",
137     "modOrder": "001"
138 }