Pman.Dialog.AdminEnumMerge.bjs
[Pman.Admin] / Pman.Dialog.AdminEnumMerge.bjs
1 {
2  "name" : "Pman.Dialog.AdminEnumMerge",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/edward/gitlive/Pman.Admin/Pman.Dialog.AdminEnumMerge.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "0b3e4317865feb6f0224397600b7cafc" : "Merge Core Enum",
10   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
11   "e0aa021e21dddbd6d8cecec71e9cf564" : "OK"
12  },
13  "items" : [
14   {
15    "listeners" : {
16     "show" : "function (_self)\n{\n\n}"
17    },
18    "modal" : true,
19    "collapsible" : false,
20    "background" : true,
21    "title" : "Merge Core Enum",
22    "xtype" : "LayoutDialog",
23    "width" : 400,
24    "$ xns" : "Roo",
25    "closable" : false,
26    "resizable" : false,
27    "height" : 150,
28    "items" : [
29     {
30      "xtype" : "LayoutRegion",
31      "$ xns" : "Roo",
32      "titlebar" : false,
33      "* prop" : "center"
34     },
35     {
36      "region" : "center",
37      "fitToFrame" : true,
38      "background" : true,
39      "xtype" : "ContentPanel",
40      "$ xns" : "Roo",
41      "items" : [
42       {
43        "listeners" : {
44         "|actioncomplete" : "function (_self, action)\n{\n  if (action.type == 'setdata') {\n\n       return;\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type == 'submit' ) {\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    }\n}\n",
45         "|rendered" : "function (form)\n{\n   _this.form = form;\n}"
46        },
47        "$ url" : "baseURL + '/Roo/core_enum.php'",
48        "method" : "POST",
49        "xtype" : "Form",
50        "style" : "margin: 5px",
51        "$ xns" : "Roo.form",
52        "items" : [
53         {
54          "alwaysQuery" : true,
55          "Number pageSize" : 50,
56          "triggerAction" : "all",
57          "fieldLabel" : "Merge with",
58          "forceSelection" : true,
59          "selectOnFocus" : true,
60          "xtype" : "ComboBox",
61          "minChars" : 2,
62          "hiddenName" : "_merge_id",
63          "displayField" : "display_name",
64          "valueField" : "id",
65          "editable" : true,
66          "Number listWidth" : 250,
67          "width" : 250,
68          "$ xns" : "Roo.form",
69          "name" : "merge_display_name",
70          "queryParam" : "query[search]",
71          "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>",
72          "items" : [
73           {
74            "listeners" : {
75             "|beforeload" : "function (_self, o){\n    o.params = o.params || {};\n    \n    o.params.active = 1;\n    o.params.etype = _this.data.etype;\n    o.params['!id'] = _this.data.id;\n}\n"
76            },
77            "xtype" : "Store",
78            "remoteSort" : true,
79            "$ xns" : "Roo.data",
80            "$ sortInfo" : "{ direction : 'ASC', field: 'display_name' }",
81            "* prop" : "store",
82            "items" : [
83             {
84              "$ url" : "baseURL + '/Roo/Core_enum.php'",
85              "method" : "GET",
86              "xtype" : "HttpProxy",
87              "$ xns" : "Roo.data",
88              "* prop" : "proxy"
89             },
90             {
91              "id" : "id",
92              "root" : "data",
93              "xtype" : "JsonReader",
94              "$ xns" : "Roo.data",
95              "$ fields" : "[\n    {\n        \"name\":\"id\",\n        \"type\":\"int\"\n    },\n    {\n        \"name\":\"display_name\",\n        \"type\":\"string\"\n    }\n]",
96              "* prop" : "reader",
97              "totalProperty" : "total"
98             }
99            ]
100           }
101          ]
102         },
103         {
104          "xtype" : "Hidden",
105          "$ xns" : "Roo.form",
106          "name" : "id"
107         }
108        ]
109       }
110      ]
111     },
112     {
113      "listeners" : {
114       "|click" : "function() {\n    _this.form.reset();\n    _this.dialog.hide();\n}"
115      },
116      "text" : "Cancel",
117      "xtype" : "Button",
118      "$ xns" : "Roo",
119      "* prop" : "buttons[]"
120     },
121     {
122      "listeners" : {
123       "|click" : "function() {\n\n    \n    _this.form.doAction('submit');\n    \n}"
124      },
125      "text" : "OK",
126      "xtype" : "Button",
127      "$ xns" : "Roo",
128      "* prop" : "buttons[]"
129     }
130    ]
131   }
132  ]
133 }