Pman.Dialog.BAdminCoreEnum.bjs
[Pman.BAdmin] / Pman.Dialog.BAdminCoreEnum.bjs
1 {
2  "name" : "Pman.Dialog.BAdminCoreEnum",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/johns/gitlive/Pman.BAdmin/Pman.Dialog.BAdminCoreEnum.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "d5cf6a6c4887716d7a14a84d9ba81b02" : "Add / Edit Pulldown Option",
10   "b48968e1c912da07df5e8d6d246291ec" : "Display Name",
11   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
12   "688a7766da608ca2b2fe6a7d1c0d7ccb" : "Sequence Number",
13   "49ee3087348e8d44e1feda1917443987" : "Name",
14   "c9cc8cce247e49bae79f15173ce97354" : "Save"
15  },
16  "items" : [
17   {
18    "String cls" : "enable-overflow",
19    "xtype" : "Modal",
20    "$ xns" : "Roo.bootstrap",
21    "String title" : "Add / Edit Pulldown Option",
22    "items" : [
23     {
24      "listeners" : {
25       "actionfailed" : "function (_self, action)\n{\n    Roo.bootstrap.MessageBox.alert('Error', action.result.errorMsg);\n}",
26       "actioncomplete" : "function (_self, action)\n{\n    if(action.type == 'setdata') {\n    \n       if(_this.data.id * 1 > 0) {\n            \n            this.doAction('load',{ method: 'GET', params: { '_id' : _this.data.id }});\n        } \n        \n        return;\n    }\n   \n    if (action.type == 'load') {\n    \n        _this.data = action.result.data;\n        \n        return;\n    }\n    \n    \n    if (action.type == 'submit') {\n    \n        _this.dialog.hide();\n       \n        if (_this.callback) {\n            _this.callback.call(this, action.result.data);\n        }\n        \n        return; \n    }\n}",
27       "render" : "function (_self)\n{\n    _this.form = _self;\n}"
28      },
29      "$ url" : "baseURL + '/Roo/Core_enum' ",
30      "xtype" : "Form",
31      "String labelAlign" : "top",
32      "$ xns" : "Roo.bootstrap",
33      "Boolean loadMask" : true,
34      "items" : [
35       {
36        "String name" : "name",
37        "xtype" : "Input",
38        "string fieldLabel" : "Name",
39        "$ xns" : "Roo.bootstrap"
40       },
41       {
42        "String name" : "display_name",
43        "xtype" : "Input",
44        "string fieldLabel" : "Display Name",
45        "$ xns" : "Roo.bootstrap"
46       },
47       {
48        "String name" : "seqid",
49        "xtype" : "Input",
50        "string fieldLabel" : "Sequence Number",
51        "$ xns" : "Roo.bootstrap"
52       },
53       {
54        "Boolean checked" : true,
55        "xtype" : "CheckBox",
56        "String valueOff" : 0,
57        "String boxLabel" : "Active",
58        "$ xns" : "Roo.bootstrap",
59        "String inputValue" : 1
60       },
61       {
62        "String name" : "id",
63        "xtype" : "Input",
64        "String inputType" : "hidden",
65        "$ xns" : "Roo.bootstrap"
66       },
67       {
68        "String name" : "etype",
69        "xtype" : "Input",
70        "String inputType" : "hidden",
71        "$ xns" : "Roo.bootstrap"
72       }
73      ]
74     },
75     {
76      "listeners" : {
77       "click" : "function (_self, e)\n{\n    _this.dialog.hide(); \n}"
78      },
79      "xtype" : "Button",
80      "$ xns" : "Roo.bootstrap",
81      "String html" : "Cancel",
82      "* prop" : "buttons[]"
83     },
84     {
85      "listeners" : {
86       "click" : "function (_self, e)\n{\n    _this.form.doAction(\"submit\");\n    \n    return;\n}"
87      },
88      "String weight" : "primary",
89      "xtype" : "Button",
90      "$ xns" : "Roo.bootstrap",
91      "String html" : "Save",
92      "* prop" : "buttons[]"
93     }
94    ]
95   }
96  ]
97 }