Fix #7123 - getting abra ready to test
[Pman.Xtuple] / Pman.Dialog.XtupleBankAccnt.bjs
1 {
2  "name" : "Pman.Dialog.XtupleBankAccnt",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/Pman.Xtuple/Pman.Dialog.XtupleBankAccnt.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "items" : [
9   {
10    "modal" : true,
11    "collapsible" : false,
12    "title" : "Edit Bank Account",
13    "xtype" : "LayoutDialog",
14    "width" : 400,
15    "$ xns" : "Roo",
16    "closable" : false,
17    "resizable" : false,
18    "height" : 300,
19    "items" : [
20     {
21      "xtype" : "LayoutRegion",
22      "$ xns" : "Roo",
23      "* prop" : "center"
24     },
25     {
26      "region" : "center",
27      "xtype" : "ContentPanel",
28      "$ xns" : "Roo",
29      "items" : [
30       {
31        "listeners" : {
32         "|actioncomplete" : "function(_self,action)\n{\n    if (action.type == 'setdata') {\n    \n        if(_this.data.id){\n            _this.dialog.el.mask(\"Loading\");\n            this.load({ method: 'GET', params: { '_id' : _this.data.id }}); \n            \n        }\n\n       return;\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type =='submit') {\n    \n        _this.dialog.el.unmask();\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",
33         "|rendered" : "function (form)\n{\n    _this.form= form;\n}\n"
34        },
35        "$ url" : "baseURL + '/Roo/Bankaccnt.php'",
36        "xtype" : "Form",
37        "method" : "POST",
38        "style" : "margin:10px;",
39        "$ xns" : "Roo.form",
40        "items" : [
41         {
42          "fieldLabel" : "Bank",
43          "emptyText" : "eg. HSBC",
44          "xtype" : "TextField",
45          "allowBlank" : false,
46          "readOnly" : true,
47          "width" : 200,
48          "$ xns" : "Roo.form",
49          "name" : "bankaccnt_bankname"
50         },
51         {
52          "fieldLabel" : "Name",
53          "xtype" : "TextField",
54          "emptyText" : "Automatic",
55          "allowBlank" : true,
56          "readOnly" : true,
57          "width" : 200,
58          "$ xns" : "Roo.form",
59          "name" : "bankaccnt_name"
60         },
61         {
62          "fieldLabel" : "Account No.",
63          "emptyText" : "eg. 1-23-23-23",
64          "xtype" : "TextField",
65          "allowBlank" : false,
66          "readOnly" : true,
67          "width" : 200,
68          "$ xns" : "Roo.form",
69          "name" : "bankaccnt_accntnumber"
70         },
71         {
72          "fieldLabel" : "Description",
73          "xtype" : "TextField",
74          "allowBlank" : false,
75          "width" : 200,
76          "$ xns" : "Roo.form",
77          "name" : "bankaccnt_descrip"
78         },
79         {
80          "xtype" : "Hidden",
81          "$ xns" : "Roo.form",
82          "name" : "bankaccnt_id"
83         }
84        ]
85       }
86      ]
87     },
88     {
89      "listeners" : {
90       "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n}"
91      },
92      "text" : "Cancel",
93      "xtype" : "Button",
94      "$ xns" : "Roo",
95      "* prop" : "buttons[]"
96     },
97     {
98      "listeners" : {
99       "click" : "function (_self, e)\n{\n   \n    _this.form.doAction(\"submit\");\n\n}"
100      },
101      "text" : "Save",
102      "xtype" : "Button",
103      "$ xns" : "Roo",
104      "* prop" : "buttons[]"
105     }
106    ]
107   }
108  ]
109 }