Fix #5702 - Supplier contact details - extra fields
[Pman.Admin] / Pman.Tab.AdminGeoLocations.bjs
1 {
2  "name" : "Pman.Tab.AdminGeoLocations",
3  "parent" : "Pman.Tab.Admin",
4  "title" : "",
5  "path" : "/home/edward/gitlive/Pman.Admin/Pman.Tab.AdminGeoLocations.bjs",
6  "permname" : "",
7  "modOrder" : "100",
8  "strings" : {
9   "f2b734f9d29a7b036a5f26b229f1e918" : "Geographic Locations",
10   "59716c97497eb9694541f7c3d37b1a4d" : "Country",
11   "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
12   "fc6f97505d89fe9277965c126744647a" : "No Companies found",
13   "7dce122004969d56ae2e0245cb754d35" : "Edit",
14   "646f95b46cdc6ae59dd9f2e86bf3b598" : "Displaying Country {0} - {1} of {2}",
15   "7faaef9675ee0e8280a243a290569359" : "No. Provinces",
16   "bbf2182dd4040fabc2b5433c32fd60f4" : "Province / District",
17   "05a43538cbc752df5428fe0a71192d09" : "No. Cities",
18   "155ca6a755e25c15ad7ce45e2f638f10" : "Displaying Companies{0} - {1} of {2}",
19   "57d056ed0984166336b7879c2af3657f" : "City",
20   "c6b5d0bb9a0c3f077863fdaef9773f7c" : "Province",
21   "31311feefd4f3253ed255d109da1480b" : "No Country found",
22   "42e3bd04a7339573df51e33a0e4e8969" : "Search Province",
23   "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
24   "49ee3087348e8d44e1feda1917443987" : "Name",
25   "90fd8a29b37d805cf75af6a3809bca87" : "Search City",
26   "08b523137281088adf3cb1883c8e5627" : "Search Country",
27   "36dc0beb80c36193ac81b4f94e915e36" : "Country Name"
28  },
29  "items" : [
30   {
31    "background" : true,
32    "region" : "center",
33    "title" : "Geographic Locations",
34    "xtype" : "NestedLayoutPanel",
35    "$ xns" : "Roo",
36    "items" : [
37     {
38      "xtype" : "BorderLayout",
39      "$ xns" : "Roo",
40      "* prop" : "layout",
41      "items" : [
42       {
43        "xtype" : "LayoutRegion",
44        "$ xns" : "Roo",
45        "* prop" : "center"
46       },
47       {
48        "Number width" : 400,
49        "xtype" : "LayoutRegion",
50        "$ xns" : "Roo",
51        "split" : true,
52        "* prop" : "west"
53       },
54       {
55        "xtype" : "LayoutRegion",
56        "$ xns" : "Roo",
57        "width" : 400,
58        "split" : true,
59        "* prop" : "east"
60       },
61       {
62        "listeners" : {
63         "|activate" : "function() {\n    \n    _this.country_panel = this;\n    if (_this.country_grid) {\n        _this.country_grid.footer.onClick('first');\n    }\n}"
64        },
65        "region" : "west",
66        "fitToframe" : true,
67        "title" : "Country",
68        "xtype" : "GridPanel",
69        "fitContainer" : true,
70        "$ xns" : "Roo",
71        "tableName" : "i18n",
72        "items" : [
73         {
74          "listeners" : {
75           "|render" : "function() \n{\n   _this.country_grid = this; \n   \n    if (_this.country_panel.active) {\n       this.footer.onClick('first');\n    }\n}"
76          },
77          "autoExpandColumn" : "lval",
78          "xtype" : "Grid",
79          "loadMask" : true,
80          "$ xns" : "Roo.grid",
81          "* prop" : "grid",
82          "items" : [
83           {
84            "listeners" : {
85             "afterselectionchange" : "function (_self)\n{\n    _this.province_grid.footer.onClick('first');\n}"
86            },
87            "Boolean singleSelect" : true,
88            "xtype" : "RowSelectionModel",
89            "$ xns" : "Roo.grid",
90            "* prop" : "sm"
91           },
92           {
93            "listeners" : {
94             "beforeload" : "function (_self, options)\n{\n    options.params = options.params || {};\n    \n    options.params.ltype = 'c',\n    options.params.inlang = 'en';\n    options.is_active = 1;\n    \n    options.params['query[name]'] = _this.country_searchBox.getValue();\n    \n    options.params._with_geoip_count = 1;\n}",
95             "load" : "function (_self, records, options)\n{\n    _this.province_grid.footer.onClick('first');\n}"
96            },
97            "xtype" : "Store",
98            "remoteSort" : true,
99            "$ sortInfo" : "{ field: 'lval', direction: 'ASC' }",
100            "$ xns" : "Roo.data",
101            "* prop" : "dataSource",
102            "items" : [
103             {
104              "$ url" : "baseURL + '/Roo/i18n.php'",
105              "method" : "GET",
106              "xtype" : "HttpProxy",
107              "$ xns" : "Roo.data",
108              "* prop" : "proxy"
109             },
110             {
111              "id" : "id",
112              "root" : "data",
113              "xtype" : "JsonReader",
114              "$ xns" : "Roo.data",
115              "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'lkey',\n        'type': 'string'\n    },\n    {\n        'name': 'inlang',\n        'type': 'string'\n    },\n    {\n        'name': 'lval',\n        'type': 'string'\n    },\n    {\n        'name': 'is_active',\n        'type': 'int'\n    },\n    {\n        'name': 'is_prefer',\n        'type': 'int'\n    },\n    {\n        'name': 'no_of_division',\n        'type': 'int'\n    },\n    {\n        'name': 'no_of_city',\n        'type': 'int'\n    }\n]",
116              "* prop" : "reader",
117              "totalProperty" : "total"
118             }
119            ]
120           },
121           {
122            "pageSize" : 25,
123            "xtype" : "PagingToolbar",
124            "emptyMsg" : "No Country found",
125            "$ xns" : "Roo",
126            "displayInfo" : true,
127            "displayMsg" : "Displaying Country {0} - {1} of {2}",
128            "* prop" : "footer"
129           },
130           {
131            "xtype" : "Toolbar",
132            "$ xns" : "Roo",
133            "* prop" : "toolbar",
134            "items" : [
135             {
136              "listeners" : {
137               "specialkey" : "function (_self, e)\n{\n    if (e.getKey() == 13) {\n        _this.country_grid.footer.onClick('first');\n    }\n}",
138               "render" : "function (_self)\n{\n    _this.country_searchBox = _self;\n}"
139              },
140              "emptyText" : "Search Country",
141              "xtype" : "TextField",
142              "$ xns" : "Roo.form"
143             },
144             {
145              "listeners" : {
146               "|click" : "function (_self, e)\n{\n    _this.country_grid.footer.onClick('first');\n}"
147              },
148              "xtype" : "Button",
149              "cls" : "x-btn-icon",
150              "$ icon" : "rootURL + '/Pman/templates/images/search.gif'",
151              "$ xns" : "Roo.Toolbar"
152             },
153             {
154              "listeners" : {
155               "|click" : "function (_self, e)\n{\n   _this.country_searchBox.setValue('');\n    _this.country_grid.footer.onClick('first');\n}"
156              },
157              "xtype" : "Button",
158              "cls" : "x-btn-icon",
159              "$ icon" : "rootURL + '/Pman/templates/images/edit-clear.gif'",
160              "$ xns" : "Roo.Toolbar"
161             }
162            ]
163           },
164           {
165            "xtype" : "ColumnModel",
166            "sortable" : true,
167            "header" : "Country Name",
168            "width" : 200,
169            "$ renderer" : "function(v) \n{ \n    return String.format('{0}', v ? v : ''); \n}",
170            "$ xns" : "Roo.grid",
171            "* prop" : "cm[]",
172            "dataIndex" : "lval"
173           },
174           {
175            "xtype" : "ColumnModel",
176            "String align" : "right",
177            "sortable" : true,
178            "header" : "No. Provinces",
179            "width" : 100,
180            "$ renderer" : "function(v) \n{ \n    return String.format('{0}', v ? v : ''); \n}",
181            "$ xns" : "Roo.grid",
182            "* prop" : "cm[]",
183            "dataIndex" : "no_of_division"
184           },
185           {
186            "xtype" : "ColumnModel",
187            "String align" : "right",
188            "sortable" : true,
189            "header" : "No. Cities",
190            "width" : 100,
191            "$ renderer" : "function(v) \n{ \n    return String.format('{0}', v ? v : ''); \n}",
192            "$ xns" : "Roo.grid",
193            "* prop" : "cm[]",
194            "dataIndex" : "no_of_city"
195           }
196          ]
197         }
198        ]
199       },
200       {
201        "listeners" : {
202         "|activate" : "function() {\n    _this.province_panel = this;\n    if (_this.province_grid) {\n        _this.province_grid.footer.onClick('first');\n    }\n}"
203        },
204        "region" : "center",
205        "fitToframe" : true,
206        "title" : "Province",
207        "xtype" : "GridPanel",
208        "fitContainer" : true,
209        "$ xns" : "Roo",
210        "tableName" : "geoip_division",
211        "items" : [
212         {
213          "listeners" : {
214           "rowdblclick" : "function (_self, rowIndex, e)\n{\n    var s =  _this.province_grid.getDataSource().getAt(rowIndex);\n    \n    Pman.Dialog.AdminGeoDivisionEdit.show({\n        id : s.data.id\n    }, function(){\n        _this.province_grid.footer.onClick('refresh');\n    });\n}",
215           "|render" : "function() \n{\n   _this.province_grid = this; \n   \n    if (_this.province_panel.active) {\n       this.footer.onClick('first');\n    }\n}"
216          },
217          "autoExpandColumn" : "name",
218          "xtype" : "Grid",
219          "loadMask" : true,
220          "$ xns" : "Roo.grid",
221          "* prop" : "grid",
222          "items" : [
223           {
224            "listeners" : {
225             "afterselectionchange" : "function (_self)\n{\n    _this.city_grid.footer.onClick('first');\n}"
226            },
227            "Boolean singleSelect" : true,
228            "xtype" : "RowSelectionModel",
229            "$ xns" : "Roo.grid",
230            "* prop" : "sm"
231           },
232           {
233            "listeners" : {
234             "beforeload" : "function (_self, options)\n{\n    options.params = options.params || {};\n    \n    var country = _this.country_grid.getSelectionModel().getSelected();\n    \n    if(!country) {\n        this.removeAll();\n        return false;\n    }\n    \n    options.params.country = country.data.lkey;\n    \n    options.params['query[name]'] = _this.province_searchBox.getValue();\n    \n    options.params._with_geoip_count = 1;\n}",
235             "load" : "function (_self, records, options)\n{\n    _this.city_grid.footer.onClick('first');\n}"
236            },
237            "xtype" : "Store",
238            "remoteSort" : true,
239            "$ sortInfo" : "{ field: 'name', direction: 'ASC' }",
240            "$ xns" : "Roo.data",
241            "* prop" : "dataSource",
242            "items" : [
243             {
244              "$ url" : "baseURL + '/Roo/geoip_division.php'",
245              "xtype" : "HttpProxy",
246              "method" : "GET",
247              "$ xns" : "Roo.data",
248              "* prop" : "proxy"
249             },
250             {
251              "id" : "id",
252              "root" : "data",
253              "xtype" : "JsonReader",
254              "$ xns" : "Roo.data",
255              "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'code',\n        'type': 'string'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'country',\n        'type': 'string'\n    },\n    {\n        'name': 'country_name',\n        'type': 'string'\n    },\n    {\n        'name': 'no_of_city',\n        'type': 'string'\n    }\n]",
256              "* prop" : "reader",
257              "totalProperty" : "total"
258             }
259            ]
260           },
261           {
262            "pageSize" : 25,
263            "xtype" : "PagingToolbar",
264            "emptyMsg" : "No Companies found",
265            "$ xns" : "Roo",
266            "displayInfo" : true,
267            "displayMsg" : "Displaying Companies{0} - {1} of {2}",
268            "* prop" : "footer"
269           },
270           {
271            "xtype" : "Toolbar",
272            "$ xns" : "Roo",
273            "* prop" : "toolbar",
274            "items" : [
275             {
276              "listeners" : {
277               "specialkey" : "function (_self, e)\n{\n     if (e.getKey() == 13) {\n        _this.province_grid.footer.onClick('first');\n     }\n}",
278               "render" : "function (_self)\n{\n    _this.province_searchBox = _self;\n}"
279              },
280              "emptyText" : "Search Province",
281              "xtype" : "TextField",
282              "$ xns" : "Roo.form"
283             },
284             {
285              "listeners" : {
286               "|click" : "function (_self, e)\n{\n    _this.provincegrid.footer.onClick('first');\n}"
287              },
288              "xtype" : "Button",
289              "cls" : "x-btn-icon",
290              "$ icon" : "rootURL + '/Pman/templates/images/search.gif'",
291              "$ xns" : "Roo.Toolbar"
292             },
293             {
294              "listeners" : {
295               "|click" : "function (_self, e)\n{\n    _this.province_searchBox.setValue('');\n    _this.province_grid.footer.onClick('first');\n}"
296              },
297              "xtype" : "Button",
298              "cls" : "x-btn-icon",
299              "$ icon" : "rootURL + '/Pman/templates/images/edit-clear.gif'",
300              "$ xns" : "Roo.Toolbar"
301             },
302             {
303              "xtype" : "Fill",
304              "$ xns" : "Roo.Toolbar"
305             },
306             {
307              "listeners" : {
308               "|click" : "function()\n{\n    var country = _this.country_grid.getSelectionModel().getSelected();\n    \n    Pman.Dialog.AdminGeoDivisionEdit.show({\n        id : 0,\n        country : (country) ? country.data.lkey : '',\n        country_name : (country) ? country.data.lval : ''\n    }, function(){\n        _this.country_grid.footer.onClick('refresh');\n    });\n    \n}\n"
309              },
310              "text" : "Add",
311              "xtype" : "Button",
312              "cls" : "x-btn-text-icon",
313              "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
314              "$ xns" : "Roo.Toolbar"
315             },
316             {
317              "listeners" : {
318               "|click" : "function()\n{\n    var s = _this.province_grid.getSelectionModel().getSelected();\n    \n    if (!s)  {\n        Roo.MessageBox.alert(\"Error\", \"Select a Row\");\n        return;\n    }\n    \n    Pman.Dialog.AdminGeoDivisionEdit.show({\n        id : s.data.id\n    }, function(){\n        _this.province_grid.footer.onClick('refresh');\n    });\n    \n}"
319              },
320              "text" : "Edit",
321              "xtype" : "Button",
322              "cls" : "x-btn-text-icon",
323              "$ icon" : "Roo.rootURL + 'images/default/tree/leaf.gif'",
324              "$ xns" : "Roo.Toolbar"
325             },
326             {
327              "listeners" : {
328               "|click" : "function()\n{\n    var s = _this.province_grid.getSelectionModel().getSelected();\n    \n    if (!s)  {\n        Roo.MessageBox.alert(\"Error\", \"Select a Row\");\n        return;\n    }\n    \n    Roo.MessageBox.confirm(\n        \"Confirm\", \n        \"Are you sure want to delete this division\", \n        function(res) {\n            if(res != 'yes') {\n                return;\n            }\n            new Pman.Request({\n                method : 'POST',\n                url : baseURL + '/Roo/geoip_division',\n                params : {\n                    _delete  : s.data.id\n                },\n                success : function() {\n                    _this.country_grid.footer.onClick('refresh');\n                }\n            });\n        }\n    );\n}"
329              },
330              "text" : "Delete",
331              "xtype" : "Button",
332              "cls" : "x-btn-text-icon",
333              "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
334              "$ xns" : "Roo.Toolbar"
335             }
336            ]
337           },
338           {
339            "xtype" : "ColumnModel",
340            "sortable" : true,
341            "header" : "Name",
342            "width" : 200,
343            "$ renderer" : "function(v) \n{ \n    return String.format('{0}', v ? v : ''); \n}",
344            "$ xns" : "Roo.grid",
345            "* prop" : "cm[]",
346            "dataIndex" : "name"
347           },
348           {
349            "xtype" : "ColumnModel",
350            "String align" : "right",
351            "sortable" : true,
352            "header" : "No. Cities",
353            "width" : 100,
354            "$ renderer" : "function(v) \n{ \n    return String.format('{0}', v ? v : ''); \n}",
355            "$ xns" : "Roo.grid",
356            "* prop" : "cm[]",
357            "dataIndex" : "no_of_city"
358           }
359          ]
360         }
361        ]
362       },
363       {
364        "listeners" : {
365         "|activate" : "function() {\n    \n    _this.city_panel = this;\n    if (_this.city_grid) {\n        _this.city_grid.footer.onClick('first');\n    }\n}"
366        },
367        "region" : "east",
368        "fitToframe" : true,
369        "title" : "City",
370        "xtype" : "GridPanel",
371        "fitContainer" : true,
372        "$ xns" : "Roo",
373        "tableName" : "geoip_city",
374        "items" : [
375         {
376          "listeners" : {
377           "rowdblclick" : "function (_self, rowIndex, e)\n{\n    var s =  _this.city_grid.getDataSource().getAt(rowIndex);\n    \n    Pman.Dialog.AdminGeoCityEdit.show({\n        id : s.data.id\n    }, function(){\n        _this.city_grid.footer.onClick('refresh');\n    });\n    \n}",
378           "|render" : "function() \n{\n   _this.city_grid = this; \n   \n    if (_this.city_panel.active) {\n       this.footer.onClick('first');\n    }\n}"
379          },
380          "autoExpandColumn" : "name",
381          "xtype" : "Grid",
382          "loadMask" : true,
383          "$ xns" : "Roo.grid",
384          "* prop" : "grid",
385          "items" : [
386           {
387            "listeners" : {
388             "beforeload" : "function (_self, options)\n{\n    options.params = options.params || {};\n    \n    var country = _this.country_grid.getSelectionModel().getSelected();\n    \n    if(!country) {\n        this.removeAll();\n        return false;\n    }\n    \n    options.params.country = country.data.lkey;\n    \n    var province = _this.province_grid.getSelectionModel().getSelected();\n    \n    if(province) {\n        options.params.division_id = province.data.id\n    }\n    \n    options.params['query[name]'] = _this.city_searchBox.getValue();\n}"
389            },
390            "xtype" : "Store",
391            "remoteSort" : true,
392            "$ sortInfo" : "{ field: 'name', direction: 'ASC' }",
393            "$ xns" : "Roo.data",
394            "* prop" : "dataSource",
395            "items" : [
396             {
397              "$ url" : "baseURL + '/Roo/geoip_city.php'",
398              "xtype" : "HttpProxy",
399              "method" : "GET",
400              "$ xns" : "Roo.data",
401              "* prop" : "proxy"
402             },
403             {
404              "id" : "id",
405              "root" : "data",
406              "xtype" : "JsonReader",
407              "$ xns" : "Roo.data",
408              "$ fields" : "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'country',\n        'type': 'string'\n    },\n    {\n        'name': 'country_name',\n        'type': 'string'\n    },\n    {\n        'name': 'division_id',\n        'type': 'int'\n    },\n    {\n        'name': 'division_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'postal_code',\n        'type': 'string'\n    },\n    {\n        'name': 'time_zone',\n        'type': 'string'\n    }\n]",
409              "* prop" : "reader",
410              "totalProperty" : "total"
411             }
412            ]
413           },
414           {
415            "pageSize" : 25,
416            "xtype" : "PagingToolbar",
417            "emptyMsg" : "No Country found",
418            "$ xns" : "Roo",
419            "displayInfo" : true,
420            "displayMsg" : "Displaying Country {0} - {1} of {2}",
421            "* prop" : "footer"
422           },
423           {
424            "xtype" : "Toolbar",
425            "$ xns" : "Roo",
426            "* prop" : "toolbar",
427            "items" : [
428             {
429              "listeners" : {
430               "specialkey" : "function (_self, e)\n{\n    if (e.getKey() == 13) {\n        _this.city_grid.footer.onClick('first');\n    }\n}",
431               "render" : "function (_self)\n{\n    _this.city_searchBox = _self;\n}"
432              },
433              "emptyText" : "Search City",
434              "xtype" : "TextField",
435              "$ xns" : "Roo.form"
436             },
437             {
438              "listeners" : {
439               "|click" : "function (_self, e)\n{\n    _this.country_grid.footer.onClick('first');\n}"
440              },
441              "xtype" : "Button",
442              "cls" : "x-btn-icon",
443              "$ icon" : "rootURL + '/Pman/templates/images/search.gif'",
444              "$ xns" : "Roo.Toolbar"
445             },
446             {
447              "listeners" : {
448               "|click" : "function (_self, e)\n{\n   _this.country_searchBox.setValue('');\n    _this.country_grid.footer.onClick('first');\n}"
449              },
450              "xtype" : "Button",
451              "cls" : "x-btn-icon",
452              "$ icon" : "rootURL + '/Pman/templates/images/edit-clear.gif'",
453              "$ xns" : "Roo.Toolbar"
454             },
455             {
456              "xtype" : "Fill",
457              "$ xns" : "Roo.Toolbar"
458             },
459             {
460              "listeners" : {
461               "|click" : "function()\n{\n    var country = _this.country_grid.getSelectionModel().getSelected();\n    \n    var province = _this.province_grid.getSelectionModel().getSelected();\n    \n    Pman.Dialog.AdminGeoCityEdit.show({\n        id : 0,\n        country : (country) ? country.data.lkey : '',\n        country_name : (country) ? country.data.lval : '',\n        division_id : (province) ? province.data.id : '',\n        division_id_name : (province) ? province.data.name : ''\n    }, function(){\n        _this.country_grid.footer.onClick('refresh');\n    });\n    \n}\n"
462              },
463              "text" : "Add",
464              "xtype" : "Button",
465              "cls" : "x-btn-text-icon",
466              "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
467              "$ xns" : "Roo.Toolbar"
468             },
469             {
470              "listeners" : {
471               "|click" : "function()\n{\n    var s = _this.city_grid.getSelectionModel().getSelections();\n    \n    if (!s.length || s.length > 1)  {\n        Roo.MessageBox.alert(\"Error\", \"Select a single city\");\n        return;\n    }\n    \n    Pman.Dialog.AdminGeoCityEdit.show({\n        id : s[0].data.id\n    }, function(){\n        _this.city_grid.footer.onClick('refresh');\n    });\n    \n}"
472              },
473              "text" : "Edit",
474              "xtype" : "Button",
475              "cls" : "x-btn-text-icon",
476              "$ icon" : "Roo.rootURL + 'images/default/tree/leaf.gif'",
477              "$ xns" : "Roo.Toolbar"
478             },
479             {
480              "listeners" : {
481               "|click" : "function()\n{\n    var s = _this.city_grid.getSelectionModel().getSelections();\n    \n    if (!s.length)  {\n        Roo.MessageBox.alert(\"Error\", \"Select city to delete\");\n        return;\n    }\n    \n    var ids = [];\n    \n    Roo.each(s, function(v, k){\n        ids.push(v.data.id);\n    });\n    \n    Roo.MessageBox.confirm(\n        \"Confirm\", \n        \"Are you sure want to delete the selected city\", \n        function(res) {\n            if(res != 'yes') {\n                return;\n            }\n            new Pman.Request({\n                method : 'POST',\n                url : baseURL + '/Roo/geoip_city',\n                params : {\n                    _delete  : ids.join(',')\n                },\n                success : function() {\n                    _this.country_grid.footer.onClick('refresh');\n                }\n            });\n        }\n    );\n}"
482              },
483              "text" : "Delete",
484              "xtype" : "Button",
485              "cls" : "x-btn-text-icon",
486              "$ icon" : "rootURL + '/Pman/templates/images/trash.gif'",
487              "$ xns" : "Roo.Toolbar"
488             }
489            ]
490           },
491           {
492            "xtype" : "ColumnModel",
493            "sortable" : true,
494            "header" : "Name",
495            "width" : 200,
496            "$ renderer" : "function(v) \n{ \n    return String.format('{0}', v ? v : ''); \n}",
497            "$ xns" : "Roo.grid",
498            "* prop" : "cm[]",
499            "dataIndex" : "name"
500           },
501           {
502            "xtype" : "ColumnModel",
503            "sortable" : true,
504            "header" : "Province / District",
505            "width" : 150,
506            "$ renderer" : "function(v) \n{ \n    return String.format('{0}', v ? v : ''); \n}",
507            "$ xns" : "Roo.grid",
508            "* prop" : "cm[]",
509            "dataIndex" : "division_id_name"
510           }
511          ]
512         }
513        ]
514       }
515      ]
516     }
517    ]
518   }
519  ]
520 }