UpdateDatabase.php
[Pman.Xtuple] / Pman.Dialog.XtupleBankAccnt.bjs
1 {
2     "id": "roo-file-320",
3     "name": "Pman.Dialog.XtupleBankAccnt",
4     "parent": "",
5     "title": "",
6     "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleBankAccnt.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 150,
12             "modal": true,
13             "resizable": false,
14             "title": "Edit Bank 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        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",
32                                 "|rendered": "function (form)\n{\n    _this.form= form;\n}\n"
33                             },
34                             "method": "POST",
35                             "style": "margin:10px;",
36                             "xtype": "Form",
37                             "|url": "baseURL + '/Roo/Bankaccnt.php'",
38                             "|xns": "Roo.form",
39                             "items": [
40                                 {
41                                     "allowBlank": true,
42                                     "emptyText": "Automatic",
43                                     "fieldLabel": "Name",
44                                     "name": "bankaccnt_name",
45                                     "readOnly": true,
46                                     "width": 200,
47                                     "xtype": "TextField",
48                                     "|xns": "Roo.form"
49                                 },
50                                 {
51                                     "allowBlank": false,
52                                     "fieldLabel": "Description",
53                                     "name": "bankaccnt_descrip",
54                                     "width": 200,
55                                     "xtype": "TextField",
56                                     "|xns": "Roo.form"
57                                 },
58                                 {
59                                     "name": "bankaccnt_id",
60                                     "xtype": "Hidden",
61                                     "|xns": "Roo.form"
62                                 }
63                             ]
64                         }
65                     ]
66                 },
67                 {
68                     "listeners": {
69                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
70                     },
71                     "*prop": "buttons[]",
72                     "text": "Cancel",
73                     "xtype": "Button",
74                     "|xns": "Roo"
75                 },
76                 {
77                     "listeners": {
78                         "click": "function (_self, e)\n{\n   \n    _this.form.doAction(\"submit\");\n\n}"
79                     },
80                     "*prop": "buttons[]",
81                     "text": "Save",
82                     "xtype": "Button",
83                     "|xns": "Roo"
84                 }
85             ]
86         }
87     ],
88     "permname": "",
89     "modOrder": "001"
90 }