Pman.Tab.MTrackMerger.bjs
[Pman.MTrack] / Pman.Tab.MTrackMerger.bjs
1 {
2     "id": "roo-file-160",
3     "name": "Pman.Tab.MTrackMerger",
4     "parent": "Pman.Tab.MTrack",
5     "title": "Pman.Tab.MTrackMerger",
6     "path": "/home/alan/gitlive/Pman.MTrack/Pman.Tab.MTrackMerger.bjs",
7     "items": [
8         {
9             "region": "center",
10             "title": "Merger",
11             "xtype": "NestedLayoutPanel",
12             "|xns": "Roo",
13             "items": [
14                 {
15                     "|xns": "Roo",
16                     "xtype": "BorderLayout",
17                     "*prop": "layout",
18                     "items": [
19                         {
20                             "*prop": "west",
21                             "width": 200,
22                             "xtype": "LayoutRegion",
23                             "|xns": "Roo"
24                         },
25                         {
26                             "*prop": "center",
27                             "xtype": "LayoutRegion",
28                             "|xns": "Roo"
29                         },
30                         {
31                             "*prop": "south",
32                             "xtype": "LayoutRegion",
33                             "|xns": "Roo"
34                         },
35                         {
36                             "autoScroll": true,
37                             "fitToFrame": true,
38                             "region": "west",
39                             "xtype": "TreePanel",
40                             "|xns": "Roo",
41                             "items": [
42                                 {
43                                     "|xns": "Roo.tree",
44                                     "xtype": "TreePanel",
45                                     "*prop": "tree",
46                                     "items": [
47                                         {
48                                             "*prop": "loader",
49                                             "baseParams": "{ _tree : 1 }",
50                                             "requestMethod": "GET",
51                                             "root": "data",
52                                             "xtype": "TreeLoader",
53                                             "|dataUrl": "rootURL + '/MTrack/Merger'",
54                                             "|xns": "Roo.tree"
55                                         },
56                                         {
57                                             "*prop": "root",
58                                             "checked": false,
59                                             "text": "All Changes",
60                                             "xtype": "TreeNode",
61                                             "|xns": "Roo.tree"
62                                         }
63                                     ]
64                                 }
65                             ]
66                         },
67                         {
68                             "|xns": "Roo",
69                             "xtype": "GridPanel",
70                             "title": "core_enum",
71                             "fitToframe": true,
72                             "fitContainer": true,
73                             "tableName": "core_enum",
74                             "background": true,
75                             "region": "center",
76                             "listeners": {
77                                 "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
78                             },
79                             "items": [
80                                 {
81                                     "*prop": "grid",
82                                     "xtype": "Grid",
83                                     "autoExpandColumn": "etype",
84                                     "loadMask": true,
85                                     "listeners": {
86                                         "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
87                                         "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
88                                     },
89                                     "|xns": "Roo.grid",
90                                     "items": [
91                                         {
92                                             "*prop": "dataSource",
93                                             "xtype": "Store",
94                                             "remoteSort": true,
95                                             "|sortInfo": "{ field : 'etype', direction: 'ASC' }",
96                                             "|xns": "Roo.data",
97                                             "items": [
98                                                 {
99                                                     "*prop": "proxy",
100                                                     "xtype": "HttpProxy",
101                                                     "method": "GET",
102                                                     "|url": "baseURL + '/Roo/core_enum.php'",
103                                                     "|xns": "Roo.data"
104                                                 },
105                                                 {
106                                                     "|xns": "Roo.data",
107                                                     "xtype": "JsonReader",
108                                                     "totalProperty": "total",
109                                                     "root": "data",
110                                                     "*prop": "reader",
111                                                     "id": "id",
112                                                     "|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': 'active',\n        'type': 'int'\n    },\n    {\n        'name': 'seqid',\n        'type': 'int'\n    }\n]"
113                                                 }
114                                             ]
115                                         },
116                                         {
117                                             "*prop": "footer",
118                                             "xtype": "PagingToolbar",
119                                             "pageSize": 25,
120                                             "displayInfo": true,
121                                             "displayMsg": "Displaying core_enum{0} - {1} of {2}",
122                                             "emptyMsg": "No core_enum found",
123                                             "|xns": "Roo"
124                                         },
125                                         {
126                                             "*prop": "toolbar",
127                                             "xtype": "Toolbar",
128                                             "|xns": "Roo",
129                                             "items": [
130                                                 {
131                                                     "listeners": {
132                                                         "|click": "function()\n{\n   \n}\n"
133                                                     },
134                                                     "cls": "x-btn-text-icon",
135                                                     "text": "Add",
136                                                     "xtype": "Button",
137                                                     "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
138                                                     "|xns": "Roo.Toolbar"
139                                                 },
140                                                 {
141                                                     "text": "Edit",
142                                                     "xtype": "Button",
143                                                     "cls": "x-btn-text-icon",
144                                                     "|icon": "Roo.rootURL + 'images/default/tree/leaf.gif'",
145                                                     "listeners": {
146                                                         "|click": "function()\n{\n    var s = _this.grid.getSelectionModel().getSelections();\n    if (!s.length || (s.length > 1))  {\n        Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n        return;\n    }\n    if (!_this.dialog) return;\n    _this.dialog.show(s[0].data, function() {\n        _this.grid.footer.onClick('first');\n    }); \n    \n}\n"
147                                                     },
148                                                     "|xns": "Roo.Toolbar"
149                                                 },
150                                                 {
151                                                     "text": "Delete",
152                                                     "cls": "x-btn-text-icon",
153                                                     "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
154                                                     "xtype": "Button",
155                                                     "listeners": {
156                                                         "|click": "function()\n{\n     Pman.genericDelete(_this, 'core_enum'); \n}\n        "
157                                                     },
158                                                     "|xns": "Roo.Toolbar"
159                                                 }
160                                             ]
161                                         },
162                                         {
163                                             "*prop": "colModel[]",
164                                             "dataIndex": "file",
165                                             "header": "File",
166                                             "width": 200,
167                                             "xtype": "ColumnModel",
168                                             "|renderer": "function(v) { return String.format('{0}', v); }",
169                                             "|xns": "Roo.grid"
170                                         },
171                                         {
172                                             "xtype": "ColumnModel",
173                                             "header": "Name",
174                                             "width": 200,
175                                             "dataIndex": "name",
176                                             "|renderer": "function(v) { return String.format('{0}', v); }",
177                                             "|xns": "Roo.grid",
178                                             "*prop": "colModel[]"
179                                         },
180                                         {
181                                             "xtype": "ColumnModel",
182                                             "header": "Active",
183                                             "width": 75,
184                                             "dataIndex": "active",
185                                             "|renderer": "function(v) { return String.format('{0}', v); }",
186                                             "|xns": "Roo.grid",
187                                             "*prop": "colModel[]"
188                                         },
189                                         {
190                                             "xtype": "ColumnModel",
191                                             "header": "Seqid",
192                                             "width": 75,
193                                             "dataIndex": "seqid",
194                                             "|renderer": "function(v) { return String.format('{0}', v); }",
195                                             "|xns": "Roo.grid",
196                                             "*prop": "colModel[]"
197                                         }
198                                     ]
199                                 }
200                             ]
201                         }
202                     ]
203                 }
204             ]
205         }
206     ],
207     "permname": "",
208     "modOrder": "400"
209 }