1+ /**
2+ * Classe que define a lista de "Provider"
3+ *
4+ * =======================================
5+ * ###################################
6+ * MagnusBilling
7+ *
8+ * @package MagnusBilling
9+ * @author Adilson Leffa Magnus.
10+ * @copyright Copyright (C) 2005 - 2021 MagnusBilling. All rights reserved.
11+ * ###################################
12+ *
13+ * This software is released under the terms of the GNU Lesser General Public License v3
14+ * A copy of which is available from http://www.gnu.org/copyleft/lesser.html
15+ *
16+ * Please submit bug reports, patches, etc to https://github.com/magnussolution/magnusbilling7/issues
17+ * =======================================
18+ * Magnusbilling.org <info@magnussolution.com>
19+ * 25/06/2012
20+ */
21+ Ext . define ( 'MBilling.view.providerCNL.List' , {
22+ extend : 'Ext.ux.grid.Panel' ,
23+ alias : 'widget.providercnllist' ,
24+ store : 'ProviderCNL' ,
25+ buttonImportCsv : true ,
26+ buttonUpdateLot : false ,
27+ initComponent : function ( ) {
28+ var me = this ;
29+ me . columns = me . columns || [ {
30+ header : t ( 'ID' ) ,
31+ dataIndex : 'id' ,
32+ flex : 1 ,
33+ hidden : true ,
34+ hideable : App . user . isAdmin
35+ } , {
36+ xtype : 'templatecolumn' ,
37+ tpl : '{idProviderprovider_name}' ,
38+ header : t ( 'Provider' ) ,
39+ dataIndex : 'id_provider' ,
40+ comboFilter : 'providercombo' ,
41+ flex : 2
42+ } , {
43+ header : t ( 'CNL' ) ,
44+ dataIndex : 'cnl' ,
45+ flex : 2
46+ } , {
47+ header : t ( 'Zone' ) ,
48+ dataIndex : 'zone' ,
49+ flex : 2
50+ } ] ;
51+ me . callParent ( arguments ) ;
52+ }
53+ } ) ;
0 commit comments