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          "listeners" : {
55           "render" : "function (_self)\n{\n    _this.merge = this;\n}"
56          },
57          "alwaysQuery" : true,
58          "Number pageSize" : 50,
59          "triggerAction" : "all",
60          "fieldLabel" : "Merge with",
61          "forceSelection" : true,
62          "selectOnFocus" : true,
63          "xtype" : "ComboBox",
64          "minChars" : 2,
65          "hiddenName" : "_merge_id",
66          "displayField" : "display_name",
67          "valueField" : "id",
68          "editable" : true,
69          "Number listWidth" : 250,
70          "width" : 250,
71          "$ xns" : "Roo.form",
72          "name" : "merge_display_name",
73          "queryParam" : "query[search]",
74          "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>",
75          "items" : [
76           {
77            "listeners" : {
78             "|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"
79            },
80            "xtype" : "Store",
81            "remoteSort" : true,
82            "$ xns" : "Roo.data",
83            "$ sortInfo" : "{ direction : 'ASC', field: 'display_name' }",
84            "* prop" : "store",
85            "items" : [
86             {
87              "$ url" : "baseURL + '/Roo/Core_enum.php'",
88              "method" : "GET",
89              "xtype" : "HttpProxy",
90              "$ xns" : "Roo.data",
91              "* prop" : "proxy"
92             },
93             {
94              "id" : "id",
95              "root" : "data",
96              "xtype" : "JsonReader",
97              "$ xns" : "Roo.data",
98              "$ fields" : "[\n    {\n        \"name\":\"id\",\n        \"type\":\"int\"\n    },\n    {\n        \"name\":\"display_name\",\n        \"type\":\"string\"\n    }\n]",
99              "* prop" : "reader",
100              "totalProperty" : "total"
101             }
102            ]
103           }
104          ]
105         },
106         {
107          "xtype" : "Hidden",
108          "$ xns" : "Roo.form",
109          "name" : "id"
110         }
111        ]
112       }
113      ]
114     },
115     {
116      "listeners" : {
117       "|click" : "function() {\n    _this.form.reset();\n    _this.dialog.hide();\n}"
118      },
119      "text" : "Cancel",
120      "xtype" : "Button",
121      "$ xns" : "Roo",
122      "* prop" : "buttons[]"
123     },
124     {
125      "listeners" : {
126       "|click" : "function() {\n\n    \n    _this.form.doAction('submit');\n    \n}"
127      },
128      "text" : "OK",
129      "xtype" : "Button",
130      "$ xns" : "Roo",
131      "* prop" : "buttons[]"
132     }
133    ]
134   }
135  ]
136 }