Fix #7123 - getting abra ready to test
[Pman.Xtuple] / Pman.Dialog.XtupleVendTypeEdit.bjs
1 {
2     "id": "roo-file-38",
3     "name": "Pman.Dialog.XtupleVendTypeEdit",
4     "parent": "",
5     "title": "",
6     "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleVendTypeEdit.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 140,
12             "modal": true,
13             "resizable": false,
14             "title": "Edit / Create Vendor Type",
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        if(_this.data.vendtype_id){\n            _this.dialog.el.mask(\"Loading\");\n            this.load({ method: 'GET', params: { '_id' : _this.data.vendtype_id }});\n        }\n       return;\n    }\n    if (action.type == 'load') {\n        _this.data = action.result.data;\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, action.result.data);\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/Vendtype.php'",
38                             "|xns": "Roo.form",
39                             "items": [
40                                 {
41                                     "fieldLabel": "Code",
42                                     "name": "vendtype_code",
43                                     "width": 200,
44                                     "xtype": "TextField",
45                                     "|xns": "Roo.form"
46                                 },
47                                 {
48                                     "fieldLabel": "Description",
49                                     "name": "vendtype_descrip",
50                                     "width": 200,
51                                     "xtype": "TextField",
52                                     "|xns": "Roo.form"
53                                 },
54                                 {
55                                     "name": "vendtype_id",
56                                     "xtype": "Hidden",
57                                     "|xns": "Roo.form"
58                                 }
59                             ]
60                         }
61                     ]
62                 },
63                 {
64                     "listeners": {
65                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
66                     },
67                     "*prop": "buttons[]",
68                     "text": "Cancel",
69                     "xtype": "Button",
70                     "|xns": "Roo"
71                 },
72                 {
73                     "listeners": {
74                         "click": "function (_self, e)\n{\n    _this.form.doAction(\"submit\");\n\n}"
75                     },
76                     "*prop": "buttons[]",
77                     "text": "Save",
78                     "xtype": "Button",
79                     "|xns": "Roo"
80                 }
81             ]
82         }
83     ],
84     "permname": "",
85     "modOrder": "001"
86 }