Skip to content

Commit 1e4f4db

Browse files
author
magnussolution
committed
Brasil CNL
1 parent 29dd2f1 commit 1e4f4db

23 files changed

Lines changed: 462 additions & 13 deletions

File tree

app/model/ProviderCNL.js

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/**
2+
* Classe que define a model "ProviderCNL"
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/magnusbilling/mbilling/issues
17+
* =======================================
18+
* Magnusbilling.com <info@magnusbilling.com>
19+
* 16/07/2012
20+
*/
21+
Ext.define('MBilling.model.ProviderCNL', {
22+
extend: 'Ext.data.Model',
23+
fields: [{
24+
name: 'id',
25+
type: 'int'
26+
}, {
27+
name: 'id_provider',
28+
type: 'int'
29+
}, {
30+
name: 'cnl',
31+
type: 'int'
32+
}, {
33+
name: 'zone',
34+
type: 'string'
35+
}, {
36+
name: 'id_provider',
37+
type: 'int'
38+
}, 'idProviderprovider_name'],
39+
proxy: {
40+
type: 'uxproxy',
41+
module: 'providerCNL'
42+
}
43+
});

app/model/Sip.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ Ext.define('MBilling.model.Sip', {
225225
}, {
226226
name: 'amd',
227227
type: 'int'
228+
}, {
229+
name: 'cnl',
230+
type: 'string'
228231
}, {
229232
name: 'id_trunk_group',
230233
type: 'int'

app/model/Trunk.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ Ext.define('MBilling.model.Trunk', {
135135
}, {
136136
name: 'sendrpid',
137137
type: 'string'
138+
}, {
139+
name: 'cnl',
140+
type: 'int'
138141
}],
139142
proxy: {
140143
type: 'uxproxy',

app/store/ProviderCNL.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Classe que define o store "ProviderCNL"
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/magnusbilling/mbilling/issues
17+
* =======================================
18+
* Magnusbilling.com <info@magnusbilling.com>
19+
* 25/06/2012
20+
*/
21+
Ext.define('MBilling.store.ProviderCNL', {
22+
extend: 'Ext.data.Store',
23+
model: 'MBilling.model.ProviderCNL'
24+
});

build/MagnusBilling-current.tar.gz

5.77 KB
Binary file not shown.

classic/src/Application.js

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Classe que define a lista de "CallShopCdr"
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+
* 01/10/2013
20+
*/
21+
Ext.define('MBilling.view.providerCNL.Controller', {
22+
extend: 'Ext.ux.app.ViewController',
23+
alias: 'controller.providercnl'
24+
});
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/**
2+
* Classe que define o form de "Admin"
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.Form', {
22+
extend: 'Ext.ux.form.Panel',
23+
alias: 'widget.providercnlform',
24+
initComponent: function() {
25+
var me = this;
26+
me.items = [{
27+
xtype: 'providerlookup',
28+
ownerForm: me,
29+
name: 'id_provider',
30+
fieldLabel: t('Provider')
31+
}, {
32+
name: 'cnl',
33+
fieldLabel: t('CNL')
34+
}, {
35+
name: 'zone',
36+
fieldLabel: t('Zone')
37+
}];
38+
me.callParent(arguments);
39+
}
40+
});
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
/**
2+
* Classe que define a window import csv de "Rate"
3+
*
4+
* =======================================
5+
* ###################################
6+
* MagnusBilling
7+
*
8+
* @package MagnusBilling
9+
* @author Adilson Leffa Magnus.
10+
* @copyright Todos os direitos reservados.
11+
* ###################################
12+
* =======================================
13+
* MagnusSolution.com <info@magnussolution.com>
14+
* 08/11/2012
15+
*/
16+
Ext.define('MBilling.view.providerCNL.ImportCsv', {
17+
extend: 'Ext.ux.window.ImportCsv',
18+
alias: 'widget.providercnlimportcsv',
19+
htmlTipInfo: '<br>cnl,zone<br>' + "11098, CVA<br>" + "11123, CVA</b>",
20+
fieldsImport: [{
21+
xtype: 'providercombo',
22+
width: 350
23+
}]
24+
});
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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

Comments
 (0)