Fix #7123 - getting abra ready to test
[Pman.Xtuple] / Pman.Dialog.XtupleUploadHSBC.bjs
1 {
2     "id": "roo-file-37",
3     "name": "Pman.Dialog.XtupleUploadHSBC",
4     "parent": "",
5     "title": "",
6     "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleUploadHSBC.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 140,
12             "modal": true,
13             "resizable": false,
14             "title": "Upload HSBC",
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                                     "listeners": {
42                                         "render": "function (_self)\n{\n    _this.bankSel = _self;\n}",
43                                         "edit": "function (combo, record)\n{\n    var id = combo.getValue() * 1;\n    \n    if(id < 1){\n        Roo.MessageBox.alert('Error', 'Please select a bank account');\n        return;\n    }\n    \n    Pman.Dialog.XtupleBankAccnt.show({id : id});\n    \n}"
44                                     },
45                                     "allowBlank": false,
46                                     "alwaysQuery": true,
47                                     "displayField": "bankaccnt_name",
48                                     "editable": false,
49                                     "emptyText": "Select Bank Accnt",
50                                     "fieldLabel": "Post to",
51                                     "forceSelection": true,
52                                     "hiddenName": "bankaccnt_id",
53                                     "listWidth": 400,
54                                     "loadingText": "Searching...",
55                                     "minChars": 2,
56                                     "name": "bankaccnt_id_name",
57                                     "pageSize": 20,
58                                     "qtip": "Select Bank Accnt",
59                                     "queryParam": "query[bankaccnt_name]",
60                                     "selectOnFocus": true,
61                                     "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{bankaccnt_name} - {bankaccnt_descrip}</b> </div>",
62                                     "triggerAction": "all",
63                                     "typeAhead": true,
64                                     "valueField": "bankaccnt_id",
65                                     "width": 200,
66                                     "xtype": "ComboBox",
67                                     "|xns": "Roo.form",
68                                     "items": [
69                                         {
70                                             "listeners": {
71                                                 "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n   \n}\n"
72                                             },
73                                             "*prop": "store",
74                                             "remoteSort": true,
75                                             "xtype": "Store",
76                                             "|sortInfo": "{ direction : 'DESC', field: 'bankaccnt_id' }",
77                                             "|xns": "Roo.data",
78                                             "items": [
79                                                 {
80                                                     "*prop": "proxy",
81                                                     "method": "GET",
82                                                     "xtype": "HttpProxy",
83                                                     "|url": "baseURL + '/Roo/bankaccnt.php'",
84                                                     "|xns": "Roo.data"
85                                                 },
86                                                 {
87                                                     "*prop": "reader",
88                                                     "id": "bankaccnt_id",
89                                                     "root": "data",
90                                                     "totalProperty": "total",
91                                                     "xtype": "JsonReader",
92                                                     "|fields": "[{\"name\":\"bankaccnt_id\",\"type\":\"int\"},\"bankaccnt_name\"]",
93                                                     "|xns": "Roo.data"
94                                                 }
95                                             ]
96                                         }
97                                     ]
98                                 }
99                             ]
100                         }
101                     ]
102                 },
103                 {
104                     "listeners": {
105                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
106                     },
107                     "*prop": "buttons[]",
108                     "text": "Cancel",
109                     "xtype": "Button",
110                     "|xns": "Roo"
111                 },
112                 {
113                     "listeners": {
114                         "click": "function (_self, e)\n{\n    var bank = _this.bankSel.getValue();\n    \n    if(bank * 1 < 1){\n        Roo.MessageBox.alert(\"Error\", \"Please select a bankaccnt\");\n        return;\n    }\n    \n    _this.dialog.hide();\n    \n    _this.callback(_this.form.getValues());\n\n}"
115                     },
116                     "*prop": "buttons[]",
117                     "text": "Save",
118                     "xtype": "Button",
119                     "|xns": "Roo"
120                 }
121             ]
122         }
123     ],
124     "permname": "",
125     "modOrder": "001"
126 }