Pman.Tab.BAdminCoreEnum.bjs
[Pman.BAdmin] / Pman.Tab.BAdminCoreEnum.bjs
1 {
2  "name" : "Pman.Tab.BAdminCoreEnum",
3  "parent" : "Pman.Tab.BAdmin",
4  "title" : "",
5  "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Tab.BAdminCoreEnum.bjs",
6  "permname" : "",
7  "modOrder" : "005",
8  "strings" : {
9   "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
10   "2df80d5febcde0c10a66818488622b7c" : "Pulldown Options",
11   "01abfc750a0c942167651c40d088531d" : "#",
12   "dae8ace18bdcbcc6ae5aece263e14fe8" : "Options",
13   "b48968e1c912da07df5e8d6d246291ec" : "Display Name",
14   "f2d346b1bb7c1c85ab6f7f21e3666b9f" : "Types",
15   "49ee3087348e8d44e1feda1917443987" : "Name",
16   "4d3d769b812b6faa6b76e1a8abaece2d" : "Active"
17  },
18  "items" : [
19   {
20    "xtype" : "Nest",
21    "$ xns" : "Roo.bootstrap.panel",
22    "String title" : "Pulldown Options",
23    "Boolean background" : true,
24    "items" : [
25     {
26      "xtype" : "Border",
27      "$ xns" : "Roo.bootstrap.layout",
28      "* prop" : "layout",
29      "items" : [
30       {
31        "String tabPosition" : "top",
32        "Boolean hideTabs" : true,
33        "xtype" : "Region",
34        "$ xns" : "Roo.bootstrap.layout",
35        "* prop" : "center"
36       },
37       {
38        "String tabPosition" : "top",
39        "Number width" : 350,
40        "xtype" : "Region",
41        "Boolean hideTabs" : true,
42        "$ xns" : "Roo.bootstrap.layout",
43        "* prop" : "west",
44        "Boolean split" : true
45       },
46       {
47        "listeners" : {
48         "activate" : "function (_self)\n{\n    if(_this.type_grid) {\n        _this.type_grid.footer.onClick('first');\n    }\n}",
49         "render" : "function (_self)\n{\n    _this.type_panel = _self; \n}"
50        },
51        "Boolean fitContainer" : true,
52        "xtype" : "Grid",
53        "Boolean fitToFrame" : true,
54        "String region" : "west",
55        "$ xns" : "Roo.bootstrap.panel",
56        "String title" : "Types",
57        "Boolean background" : false,
58        "Boolean closable" : false,
59        "items" : [
60         {
61          "xtype" : "NavSimplebar",
62          "$ xns" : "Roo.bootstrap",
63          "* prop" : "toolbar",
64          "items" : [
65           {
66            "xtype" : "NavGroup",
67            "$ xns" : "Roo.bootstrap",
68            "items" : [
69             {
70              "xtype" : "NavItem",
71              "$ xns" : "Roo.bootstrap",
72              "items" : [
73               {
74                "listeners" : {
75                 "click" : "function (_self, e)\n{\n    Pman.Dialog.BAdminCoreEnum.show({ \n        id : 0\n    }, function(res) {\n        _this.type_grid.footer.onClick('first');\n    });\n\n}"
76                },
77                "String weight" : "primary",
78                "xtype" : "Button",
79                "$ xns" : "Roo.bootstrap",
80                "String html" : "Add",
81                "String style" : "margin: 10px;",
82                "String glyphicon" : "plus"
83               }
84              ]
85             }
86            ]
87           }
88          ]
89         },
90         {
91          "listeners" : {
92           "rowdblclick" : "function (_self, el, rowIndex, e)\n{\n    var r = _this.type_grid.store.getAt(rowIndex);\n    \n    if(!r || r.data.id * 1 < 1){\n        return;\n    }\n    \n    Pman.Dialog.BAdminCoreEnum.show({ \n        id : r.data.id\n    }, function(res) {\n        _this.type_grid.footer.onClick('first');\n    });\n}",
93           "render" : "function (_self)\n{\n    _this.type_grid = _self; \n   \n}"
94          },
95          "String cls" : "table-fixed",
96          "Boolean cellSelection" : true,
97          "boolean hover" : true,
98          "boolean striped" : false,
99          "xtype" : "Table",
100          "boolean responsive" : true,
101          "Boolean rowSelection" : true,
102          "$ xns" : "Roo.bootstrap",
103          "Boolean loadMask" : true,
104          "* prop" : "grid",
105          "items" : [
106           {
107            "listeners" : {
108             "selectionchange" : "function (_self)\n{\n    _this.option_grid.store.load({});\n}"
109            },
110            "Boolean singleSelect" : true,
111            "xtype" : "RowSelectionModel",
112            "$ xns" : "Roo.bootstrap.Table",
113            "* prop" : "sm"
114           },
115           {
116            "listeners" : {
117             "beforeload" : "function (_self, o)\n{\n    o.params = o.params || {};\n    \n    o.params['query[empty_etype]'] = 1;\n    \n}"
118            },
119            "$ Object sortInfo" : "{ field : 'display_name', direction: 'ASC' }",
120            "xtype" : "Store",
121            "boolean remoteSort" : true,
122            "$ xns" : "Roo.data",
123            "* prop" : "store",
124            "items" : [
125             {
126              "$ Array fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'etype',\n        'type': 'string'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'display_name',\n        'type': 'string'\n    },\n    {\n        'name': 'active',\n        'type': 'int'\n    },\n    {\n        'name': 'seqid',\n        'type': 'int'\n    }\n]",
127              "xtype" : "JsonReader",
128              "String root" : "data",
129              "$ xns" : "Roo.data",
130              "String id" : "id",
131              "* prop" : "reader",
132              "String totalProperty" : "total"
133             },
134             {
135              "$ url" : "baseURL + '/Roo/core_enum.php'",
136              "xtype" : "HttpProxy",
137              "$ xns" : "Roo.data",
138              "String method" : "GET",
139              "* prop" : "proxy"
140             }
141            ]
142           },
143           {
144            "String header" : "Name",
145            "String dataIndex" : "display_name",
146            "xtype" : "ColumnModel",
147            "Number xs" : 12,
148            "$ xns" : "Roo.grid",
149            "$ renderer" : "function(v,x,r) { \n    return String.format('<span tooltip=\"{1}\">{0}</span>', v, r.data.name); \n}",
150            "Boolean sortable" : true,
151            "* prop" : "cm[]"
152           },
153           {
154            "Number pageSize" : 25,
155            "Boolean displayInfo" : false,
156            "xtype" : "PagingToolbar",
157            "$ xns" : "Roo.bootstrap",
158            "* prop" : "footer",
159            "string name" : "footer"
160           }
161          ]
162         }
163        ]
164       },
165       {
166        "listeners" : {
167         "activate" : "function (_self)\n{\n    if (_this.option_grid) {\n        _this.option_grid.store.load({});\n//        _this.option_grid.footer.onClick('first');\n    }\n}",
168         "render" : "function (_self)\n{\n    _this.option_panel = _self;\n}"
169        },
170        "Boolean fitContainer" : true,
171        "xtype" : "Grid",
172        "Boolean fitToFrame" : true,
173        "String region" : "center",
174        "$ xns" : "Roo.bootstrap.panel",
175        "String title" : "Options",
176        "Boolean background" : false,
177        "items" : [
178         {
179          "xtype" : "NavSimplebar",
180          "$ xns" : "Roo.bootstrap",
181          "* prop" : "toolbar",
182          "items" : [
183           {
184            "xtype" : "NavGroup",
185            "$ xns" : "Roo.bootstrap",
186            "items" : [
187             {
188              "xtype" : "NavItem",
189              "$ xns" : "Roo.bootstrap",
190              "items" : [
191               {
192                "listeners" : {
193                 "click" : "function (_self, e)\n{\n    var sel = _this.type_grid.getSelectionModel().getSelected();\n    \n    \n\n    Pman.Dialog.BAdminCoreEnum.show({ \n        id : 0\n    }, function(res) {\n        _this.type_grid.footer.onClick('first');\n    });\n\n}"
194                },
195                "String weight" : "primary",
196                "xtype" : "Button",
197                "$ xns" : "Roo.bootstrap",
198                "String html" : "Add",
199                "String style" : "margin: 10px;",
200                "String glyphicon" : "plus"
201               }
202              ]
203             }
204            ]
205           }
206          ]
207         },
208         {
209          "listeners" : {
210           "render" : "function (_self)\n{\n    _this.option_grid = _self; \n\n}"
211          },
212          "String cls" : "table-fixed",
213          "Boolean footerShow" : false,
214          "boolean hover" : true,
215          "boolean striped" : true,
216          "xtype" : "Table",
217          "boolean responsive" : true,
218          "Boolean rowSelection" : true,
219          "$ xns" : "Roo.bootstrap",
220          "Boolean loadMask" : true,
221          "* prop" : "grid",
222          "items" : [
223           {
224            "Boolean singleSelect" : true,
225            "xtype" : "RowSelectionModel",
226            "$ xns" : "Roo.bootstrap.Table",
227            "* prop" : "sm"
228           },
229           {
230            "listeners" : {
231             "beforeload" : "function (_self, o)\n{\n    o.params = o.params || {};\n    \n    var sel = _this.type_grid.getSelectionModel().getSelected();\n    \n    if(!sel || sel.data.id * 1 < 1 || !sel.data.name.length){\n        this.removeAll();\n        return false;\n    }\n    \n    o.params.etype = sel.data.name;\n    \n}"
232            },
233            "xtype" : "Store",
234            "boolean remoteSort" : true,
235            "$ xns" : "Roo.data",
236            "$ sortinfo" : "{ field : 'display_name', direction: 'ASC' }",
237            "* prop" : "store",
238            "items" : [
239             {
240              "$ Array fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'etype',\n        'type': 'string'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'display_name',\n        'type': 'string'\n    },\n    {\n        'name': 'active',\n        'type': 'int'\n    },\n    {\n        'name': 'seqid',\n        'type': 'int'\n    }\n]",
241              "xtype" : "JsonReader",
242              "String root" : "data",
243              "$ xns" : "Roo.data",
244              "String id" : "id",
245              "* prop" : "reader",
246              "String totalProperty" : "total"
247             },
248             {
249              "$ url" : "baseURL + '/Roo/core_enum.php'",
250              "xtype" : "HttpProxy",
251              "$ xns" : "Roo.data",
252              "String method" : "GET",
253              "* prop" : "proxy"
254             }
255            ]
256           },
257           {
258            "String header" : "#",
259            "String dataIndex" : "id",
260            "Number md" : 2,
261            "xtype" : "ColumnModel",
262            "Number xs" : 2,
263            "$ xns" : "Roo.grid",
264            "$ renderer" : "function(v,x,r) { \n    return String.format('{0}', v ? v : '');\n}",
265            "Boolean sortable" : false,
266            "* prop" : "cm[]",
267            "Number sm" : 2
268           },
269           {
270            "String header" : "Name",
271            "Number md" : 4,
272            "String dataIndex" : "name",
273            "xtype" : "ColumnModel",
274            "Number xs" : 4,
275            "$ xns" : "Roo.grid",
276            "$ renderer" : "function(v,x,r) { \n    return String.format('{0}', v ? v : '');\n}",
277            "Boolean sortable" : false,
278            "* prop" : "cm[]",
279            "Number sm" : 4
280           },
281           {
282            "String header" : "Display Name",
283            "String dataIndex" : "display_name",
284            "Number md" : 4,
285            "xtype" : "ColumnModel",
286            "Number xs" : 4,
287            "$ xns" : "Roo.grid",
288            "$ renderer" : "function(v,x,r) { \n    return String.format('{0}', v ? v : '');\n}",
289            "Boolean sortable" : false,
290            "* prop" : "cm[]",
291            "Number sm" : 4
292           },
293           {
294            "String header" : "Active",
295            "Number md" : 2,
296            "String dataIndex" : "active",
297            "xtype" : "ColumnModel",
298            "Number xs" : 2,
299            "$ xns" : "Roo.grid",
300            "$ renderer" : "function(v,x,r) { \n    var state = v > 0 ?  '-checked' : '';\n\n    return '<img class=\"x-grid-check-icon' + state + '\" src=\"' + Roo.BLANK_IMAGE_URL + '\"/>';\n}",
301            "Boolean sortable" : false,
302            "* prop" : "cm[]",
303            "Number sm" : 2
304           }
305          ]
306         }
307        ]
308       }
309      ]
310     }
311    ]
312   }
313  ]
314 }