Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dda-front
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jose Francisco Montiel Jimenez
dda-front
Commits
34f84422
Commit
34f84422
authored
Sep 04, 2024
by
Jose Francisco Montiel Jimenez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actualizacion de Data Table a la version 2.1.5
parent
52812086
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
557 additions
and
522 deletions
+557
-522
front/src/main/webapp/css/common/migrationBootstrap.css
front/src/main/webapp/css/common/migrationBootstrap.css
+14
-1
front/src/main/webapp/design/css/general.css
front/src/main/webapp/design/css/general.css
+25
-25
front/src/main/webapp/design/css/theme.css
front/src/main/webapp/design/css/theme.css
+15
-15
front/src/main/webapp/js/dda/admin/catalogos/addons/addon.js
front/src/main/webapp/js/dda/admin/catalogos/addons/addon.js
+72
-69
front/src/main/webapp/js/dda/admin/catalogos/apartados/apartados.js
...main/webapp/js/dda/admin/catalogos/apartados/apartados.js
+53
-52
front/src/main/webapp/js/dda/admin/catalogos/categorias/categorias.js
...in/webapp/js/dda/admin/catalogos/categorias/categorias.js
+51
-49
front/src/main/webapp/js/dda/admin/catalogos/estudio/estudio.js
...src/main/webapp/js/dda/admin/catalogos/estudio/estudio.js
+8
-8
front/src/main/webapp/js/dda/admin/catalogos/estudiosAddons/estudiosAddons.js
...p/js/dda/admin/catalogos/estudiosAddons/estudiosAddons.js
+54
-52
front/src/main/webapp/js/dda/admin/catalogos/estudiosTrans/estudiosTrans.js
...app/js/dda/admin/catalogos/estudiosTrans/estudiosTrans.js
+53
-50
front/src/main/webapp/js/dda/admin/catalogos/excepciones/excepciones.js
.../webapp/js/dda/admin/catalogos/excepciones/excepciones.js
+59
-56
front/src/main/webapp/js/dda/admin/catalogos/grupos/grupos.js
...t/src/main/webapp/js/dda/admin/catalogos/grupos/grupos.js
+56
-54
front/src/main/webapp/js/dda/admin/catalogos/pais/pais.js
front/src/main/webapp/js/dda/admin/catalogos/pais/pais.js
+56
-52
front/src/main/webapp/jsp/dda/admin/catalogos/materiales/catalogoMateriales.jsp
...jsp/dda/admin/catalogos/materiales/catalogoMateriales.jsp
+41
-39
No files found.
front/src/main/webapp/css/common/migrationBootstrap.css
View file @
34f84422
...
...
@@ -147,5 +147,18 @@
font-size
:
0.875rem
;
border-radius
:
var
(
--bs-border-radius-sm
);
}
.dt-layout-start
{
display
:
inline-block
;
margin-right
:
15px
;
}
.dt-layout-end
{
display
:
inline-block
;
margin-left
:
70%
;
}
.dt-container
{
margin-top
:
20px
;
}
\ No newline at end of file
front/src/main/webapp/design/css/general.css
View file @
34f84422
...
...
@@ -4984,46 +4984,46 @@ table.dataTable.display tbody tr.even:hover .sorting_1 {
/*
* Control feature layout
*/
.d
ataTables_wrapper
{
.d
t-container
{
position
:
relative
;
clear
:
both
;
*
zoom
:
1
;
zoom
:
1
;
}
.d
ataTables_wrapper
.dataTables_
length
{
.d
t-container.dt-
length
{
float
:
left
;
padding
:
20px
20px
10px
;
}
.d
ataTables_wrapper
.dataTables_
length
label
{
.d
t-container.dt-
length
label
{
margin
:
0
;
}
.d
ataTables_wrapper
.dataTables_
length
select
{
.d
t-container.dt-
length
select
{
padding
:
5px
10px
;
margin
:
0
5px
;
}
.d
ataTables_wrapper
.dataTables_filter
{
.d
t-container.dt-search
{
float
:
right
;
text-align
:
right
;
padding
:
20px
20px
10px
;
}
.d
ataTables_wrapper
.dataTables_filter
label
{
.d
t-container.dt-search
label
{
margin
:
0
;
}
.d
ataTables_wrapper
.dataTables_filter
input
{
.d
t-container.dt-search
input
{
padding
:
5px
10px
;
margin-left
:
10px
;
}
.d
ataTables_wrapper
.dataTables_info
{
.d
t-container
.dataTables_info
{
clear
:
both
;
float
:
left
;
padding
:
20px
;
}
.d
ataTables_wrapper
.dataTables_paginate
{
.d
t-container.dt-paging
{
float
:
right
;
text-align
:
right
;
padding
:
10px
20px
;
}
.d
ataTables_wrapper
.dataTables_paginate
.paginate_
button
{
.d
t-container.dt-paging
.dt-paging-
button
{
box-sizing
:
border-box
;
display
:
inline-block
;
min-width
:
1.5em
;
...
...
@@ -5034,16 +5034,16 @@ table.dataTable.display tbody tr.even:hover .sorting_1 {
cursor
:
pointer
;
*
cursor
:
hand
;
}
.d
ataTables_wrapper
.dataTables_paginate
.paginate_
button.disabled
{
.d
t-container.dt-paging
.dt-paging-
button.disabled
{
cursor
:
default
;
}
.d
ataTables_wrapper
.dataTables_paginate
.paginate_button.disabled
:hover
,
.dataTables_wrapper
.dataTables_paginate
.paginate_
button.disabled
:active
{
.d
t-container.dt-paging
.dt-paging-button.disabled
:hover
,
.dt-container.dt-paging
.dt-paging-
button.disabled
:active
{
cursor
:
default
;
}
.d
ataTables_wrapper
.dataTables_paginate
.ellipsis
{
.d
t-container.dt-paging
.ellipsis
{
padding
:
0
1em
;
}
.d
ataTables_wrapper
.dataTables_processing
{
.d
t-container
.dataTables_processing
{
position
:
absolute
;
top
:
50%
;
left
:
50%
;
...
...
@@ -5055,14 +5055,14 @@ table.dataTable.display tbody tr.even:hover .sorting_1 {
text-align
:
center
;
font-size
:
1.2em
;
}
.d
ataTables_wrapper
.dataTables_scroll
{
.d
t-container
.dataTables_scroll
{
clear
:
both
;
}
.d
ataTables_wrapper
.dataTables_scroll
div
.dataTables_scrollBody
{
.d
t-container
.dataTables_scroll
div
.dataTables_scrollBody
{
*
margin-top
:
-1px
;
-webkit-overflow-scrolling
:
touch
;
}
.d
ataTables_wrapper
.dataTables_scroll
div
.dataTables_scrollBody
th
>
div
.dataTables_sizing
,
.dataTables_wrapper
.dataTables_scroll
div
.dataTables_scrollBody
td
>
div
.dataTables_sizing
{
.d
t-container.dataTables_scroll
div
.dataTables_scrollBody
th
>
div
.dataTables_sizing
,
.dt-container
.dataTables_scroll
div
.dataTables_scrollBody
td
>
div
.dataTables_sizing
{
height
:
0
;
overflow
:
hidden
;
margin
:
0
!important
;
...
...
@@ -5212,22 +5212,22 @@ table.dataTable > tbody > tr.child span.dtr-title {
}
@media
screen
and
(
max-width
:
767px
)
{
.d
ataTables_wrapper
.dataTables_info
{
.d
t-container
.dataTables_info
{
float
:
none
;
text-align
:
center
;
}
.d
ataTables_wrapper
.dataTables_paginate
{
.d
t-container.dt-paging
{
float
:
none
;
text-align
:
center
;
margin-top
:
0.5em
;
}
}
@media
screen
and
(
max-width
:
640px
)
{
.d
ataTables_wrapper
.dataTables_
length
{
.d
t-container.dt-
length
{
float
:
none
;
text-align
:
center
;
}
.d
ataTables_wrapper
.dataTables_filter
{
.d
t-container.dt-search
{
float
:
none
;
text-align
:
center
;
margin-top
:
0.5em
;
...
...
@@ -5266,7 +5266,7 @@ table.dataTable > tbody > tr.child span.dtr-title {
border-bottom
:
none
;
}
.footable.breakpoint
>
tbody
>
tr
.footable-detail-show
>
td
>
span
.footable-toggle
:before
{
content
:
"?"
;
content
:
"
�
?"
;
}
.footable.breakpoint
>
tbody
>
tr
:hover:not
(
.footable-row-detail
)
{
cursor
:
pointer
;
...
...
@@ -5315,7 +5315,7 @@ table.dataTable > tbody > tr.child span.dtr-title {
content
:
""
;
}
.footable.breakpoint.toggle-arrow
>
tbody
>
tr
.footable-detail-show
>
td
>
span
.footable-toggle
:before
{
content
:
"?"
;
content
:
"
�
?"
;
}
.footable.breakpoint.toggle-arrow
>
tbody
>
tr
>
td
>
span
.footable-toggle
:before
{
content
:
""
;
...
...
@@ -5330,13 +5330,13 @@ table.dataTable > tbody > tr.child span.dtr-title {
content
:
""
;
}
.footable.breakpoint.toggle-arrow-circle
>
tbody
>
tr
>
td
>
span
.footable-toggle
:before
{
content
:
"?"
;
content
:
"
�
?"
;
}
.footable.breakpoint.toggle-arrow-circle-filled
>
tbody
>
tr
.footable-detail-show
>
td
>
span
.footable-toggle
:before
{
content
:
""
;
}
.footable.breakpoint.toggle-arrow-circle-filled
>
tbody
>
tr
>
td
>
span
.footable-toggle
:before
{
content
:
"?"
;
content
:
"
�
?"
;
}
.footable.breakpoint.toggle-arrow-tiny
>
tbody
>
tr
.footable-detail-show
>
td
>
span
.footable-toggle
:before
{
content
:
""
;
...
...
front/src/main/webapp/design/css/theme.css
View file @
34f84422
...
...
@@ -2051,49 +2051,49 @@ table.dataTable.display tbody tr:hover.selected > .sorting_2, table.dataTable.or
table
.dataTable.display
tbody
tr
:hover
.selected
>
.sorting_3
,
table
.dataTable.order-column.hover
tbody
tr
:hover
.selected
>
.sorting_3
{
background-color
:
#a4b2cb
;
}
table
.dataTable
.no-footer
{
table
.dataTable
{
border-bottom
:
1px
solid
#ccc
;
}
/*
* Control feature layout
*/
.d
ataTables_wrapper
.dataTables_paginate
.paginate_
button
{
.d
t-container
.dt-paging
.dt-paging-
button
{
color
:
#535353
!important
;
border
:
1px
solid
transparent
;
}
.d
ataTables_wrapper
.dataTables_paginate
.paginate_
button.current
{
.d
t-container
.dt-paging
.dt-paging-
button.current
{
color
:
#535353
!important
;
border
:
1px
solid
#FFC20A
;
background-color
:
#FFF
;
}
.d
ataTables_wrapper
.dataTables_paginate
.paginate_
button.current
:hover
{
.d
t-container
.dt-paging
.dt-paging-
button.current
:hover
{
color
:
#535353
!important
;
border
:
1px
solid
#FFC20A
;
background-color
:
#FFF
;
}
.d
ataTables_wrapper
.dataTables_paginate
.paginate_
button.disabled
{
.d
t-container
.dt-paging
.dt-paging-
button.disabled
{
color
:
#666
!important
;
border
:
1px
solid
transparent
;
background
:
transparent
;
box-shadow
:
none
;
}
.d
ataTables_wrapper
.dataTables_paginate
.paginate_button.disabled
:hover
,
.dataTables_wrapper
.dataTables_paginate
.paginate_
button.disabled
:active
{
.d
t-container
.dt-paging
.dt-paging-button.disabled
:hover
,
.dt-container
.dt-paging
.dt-paging-
button.disabled
:active
{
color
:
#666
!important
;
border
:
1px
solid
transparent
;
background
:
transparent
;
box-shadow
:
none
;
}
.d
ataTables_wrapper
.dataTables_paginate
.paginate_
button
:hover
{
.d
t-container
.dt-paging
.dt-paging-
button
:hover
{
color
:
#535353
!important
;
border
:
1px
solid
#FFC20A
;
background-color
:
#FFC20A
;
}
.d
ataTables_wrapper
.dataTables_paginate
.paginate_
button
:active
{
.d
t-container
.dt-paging
.dt-paging-
button
:active
{
outline
:
none
;
background-color
:
#f0b400
;
}
.d
ataTables_wrapp
er
.dataTables_processing
{
.d
t-contain
er
.dataTables_processing
{
background-color
:
white
;
background
:
-webkit-gradient
(
linear
,
left
top
,
right
top
,
color-stop
(
0%
,
rgba
(
255
,
255
,
255
,
0
)),
color-stop
(
25%
,
rgba
(
255
,
255
,
255
,
0.9
)),
color-stop
(
75%
,
rgba
(
255
,
255
,
255
,
0.9
)),
color-stop
(
100%
,
rgba
(
255
,
255
,
255
,
0
)));
/* Chrome,Safari4+ */
...
...
@@ -2108,25 +2108,25 @@ table.dataTable.no-footer {
background
:
linear-gradient
(
to
right
,
rgba
(
255
,
255
,
255
,
0
)
0%
,
rgba
(
255
,
255
,
255
,
0.9
)
25%
,
rgba
(
255
,
255
,
255
,
0.9
)
75%
,
rgba
(
255
,
255
,
255
,
0
)
100%
);
/* W3C */
}
.d
ataTables_wrapper
.dataTables_filter
input
{
.d
t-container
.dt-search
input
{
background
:
#FFF
;
border
:
1px
solid
#E2E2E2
;
}
.d
ataTables_wrapper
.dataTables_filter
input
:hover
{
.d
t-container
.dt-search
input
:hover
{
background
:
#FAFAFA
;
border-color
:
#E2E2E2
;
}
.d
ataTables_wrapper
.dataTables_filter
input
:focus
{
.d
t-container
.dt-search
input
:focus
{
background
:
#F8F8F8
;
border-color
:
#D7D7D7
;
}
.d
ataTables_wrapper
.dataTables_length
,
.dataTables_wrapper
.dataTables_filter
,
.dataTables_wrapper
.dataTables_info
,
.dataTables_wrapper
.dataTables_processing
,
.dataTables_wrapper
.dataTables_paginate
{
.d
t-container
.dt-length
,
.dt-container
.dt-search
,
.dt-container
.dataTables_info
,
.dt-container
.dataTables_processing
,
.dt-container
.dt-paging
{
color
:
#535353
;
}
.d
ataTables_wrapper.no
-footer
.dataTables_scrollBody
{
.d
t-container.dt-empty
-footer
.dataTables_scrollBody
{
border-bottom
:
1px
solid
#111111
;
}
.d
ataTables_wrapper.no-footer
div
.dataTables_scrollHead
table
,
.dataTables_wrapper.no
-footer
div
.dataTables_scrollBody
table
{
.d
t-container.dt-empty-footer
div
.dataTables_scrollHead
table
,
.dt-container.dt-empty
-footer
div
.dataTables_scrollBody
table
{
border-bottom
:
none
;
}
...
...
front/src/main/webapp/js/dda/admin/catalogos/addons/addon.js
View file @
34f84422
...
...
@@ -36,77 +36,80 @@ function limpiarTabla(){
}
function
realizaConsulta
(){
// Obtener numero de menu
var
menu
=
$
(
"
#pmn
"
).
val
();
var
menuRegreso
=
$
(
"
#pmnReturn
"
).
val
();
var
namespace
=
"
/catalogos/preciosAddons/
"
;
var
rowId
=
null
;
var
oTable
=
null
;
oTable
=
$
(
'
#cataAddOn
'
).
dataTable
({
"
bAutoWidth
"
:
false
,
"
oLanguage
"
:{
"
sProcessing
"
:
"
Procesando...
"
,
"
sLengthMenu
"
:
"
Mostrar _MENU_ registros
"
,
"
sZeroRecords
"
:
"
Sin eventos encontrados
"
,
"
sEmptyTable
"
:
"
Sin eventos encontrados
"
,
"
sInfo
"
:
"
Mostrando _START_ al _END_ de _TOTAL_
"
,
"
sInfoEmpty
"
:
"
0 registros
"
,
"
sInfoFiltered
"
:
"
(filtrado de un total de _MAX_ registros)
"
,
"
sSearch
"
:
"
Buscar:
"
,
"
sInfoThousands
"
:
"
,
"
,
"
sLoadingRecords
"
:
"
Cargando...
"
,
"
oPaginate
"
:
{
"
sFirst
"
:
"
Primero
"
,
"
sLast
"
:
"
Último
"
,
"
sNext
"
:
"
Siguiente
"
,
"
sPrevious
"
:
"
Anterior
"
}
},
"
iDisplayLength
"
:
10
,
"
bInfo
"
:
false
,
"
bFilter
"
:
true
,
"
bSort
"
:
false
,
"
bPaginate
"
:
true
,
"
sPaginationType
"
:
"
full_numbers
"
,
"
aaSorting
"
:
[],
"
sAjaxSource
"
:
"
listadoAddOns
"
,
"
sAjaxDataProp
"
:
""
,
"
aoColumns
"
:
[
// {"sTitle":"ID" ,"mDataProp":"idAddOn" ,"bSearchable":true, sWidth:"500px"},
{
"
sTitle
"
:
"
Estudio
"
,
"
mDataProp
"
:
"
estudio
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
30px
"
},
{
"
sTitle
"
:
"
Pais
"
,
"
mDataProp
"
:
"
pais
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
30px
"
},
{
"
sTitle
"
:
"
Revenue Share
"
,
"
mDataProp
"
:
"
revenueShare
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
30px
"
},
{
"
sTitle
"
:
"
Precio
"
,
"
mDataProp
"
:
"
precio
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
20px
"
},
{
"
sTitle
"
:
"
Vat
"
,
"
mDataProp
"
:
"
vat
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
20px
"
},
{
"
sTitle
"
:
"
Precio Neto
"
,
"
mDataProp
"
:
"
precioNeto
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
20px
"
},
{
"
sTitle
"
:
"
Tipo de Cambio
"
,
"
mDataProp
"
:
"
tipoDeCambio
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
40px
"
},
//{"sTitle":"Calculo Monto Por Pais" ,"mDataProp":"calculoMontoXPais" ,"bSearchable":true, sWidth:"60px"},
//{"sTitle":"Calculo Revenue Share" ,"mDataProp":"calculoRevenueShare" ,"bSearchable":true, sWidth:"60px"},
{
"
sTitle
"
:
"
Tarifa Minima
"
,
"
mDataProp
"
:
"
tarifaMinima
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
30px
"
},
{
"
sTitle
"
:
"
Preferido
"
,
"
mDataProp
"
:
"
preferido
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
30px
"
},
{
"
sTitle
"
:
"
Accion
"
,
"
mDataProp
"
:
"
preferido
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
30px
"
}
],
'
fnRowCallback
'
:
function
(
nRow
,
aData
,
iDisplayIndex
,
iDisplayIndexFull
)
{
var
link
=
'
<a onClick="guardaIdAddOn(
'
+
aData
[
"
idAddOn
"
]
+
'
)" data-bs-toggle="modal" data-bs-target="#modalAgregaActualizaAddOn">
'
+
aData
[
"
estudio
"
]
+
'
</a>
'
;
var
button
=
'
<button class="btn btn-danger" type="button" onclick="eliminarPrecio(
'
+
aData
[
"
idAddOn
"
]
+
'
,
\'
'
+
aData
[
"
preferido
"
]
+
'
\'
,
'
+
aData
[
"
idRelacion
"
]
+
'
)">Eliminar</button>
'
;
$
(
nRow
).
attr
(
"
id
"
,
aData
[
"
idAddOn
"
]);
$
(
'
td:eq(0)
'
,
nRow
).
html
(
link
);
$
(
'
td:eq(1)
'
,
nRow
).
html
(
aData
[
"
pais
"
]);
$
(
'
td:eq(2)
'
,
nRow
).
html
(
aData
[
"
revenueShare
"
]
+
"
%
"
).
addClass
(
'
text-align-right
'
);
$
(
'
td:eq(3)
'
,
nRow
).
html
(
"
$
"
+
aData
[
"
precio
"
]);
$
(
'
td:eq(4)
'
,
nRow
).
html
(
aData
[
"
vat
"
]
+
"
%
"
);
$
(
'
td:eq(5)
'
,
nRow
).
html
(
"
$
"
+
aData
[
"
precioNeto
"
]);
$
(
'
td:eq(6)
'
,
nRow
).
html
(
aData
[
"
tipoDeCambio
"
]);
//$('td:eq(7)', nRow).html(aData["calculoMontoXPais"]);
//$('td:eq(8)', nRow).html(aData["calculoRevenueShare"]);
$
(
'
td:eq(7)
'
,
nRow
).
html
(
"
$
"
+
aData
[
"
tarifaMinima
"
]);
$
(
'
td:eq(8)
'
,
nRow
).
html
(
aData
[
"
preferido
"
]);
$
(
'
td:eq(9)
'
,
nRow
).
html
(
button
);
}
});
// Obtener número de menú
var
menu
=
$
(
"
#pmn
"
).
val
();
var
menuRegreso
=
$
(
"
#pmnReturn
"
).
val
();
var
namespace
=
"
/catalogos/preciosAddons/
"
;
var
rowId
=
null
;
var
oTable
=
null
;
oTable
=
$
(
'
#cataAddOn
'
).
DataTable
({
autoWidth
:
false
,
language
:
{
processing
:
"
Procesando...
"
,
lengthMenu
:
"
Mostrar _MENU_ registros
"
,
zeroRecords
:
"
Sin eventos encontrados
"
,
emptyTable
:
"
Sin eventos encontrados
"
,
info
:
"
Mostrando _START_ al _END_ de _TOTAL_
"
,
infoEmpty
:
"
0 registros
"
,
infoFiltered
:
"
(filtrado de un total de _MAX_ registros)
"
,
search
:
"
Buscar:
"
,
thousands
:
"
,
"
,
loadingRecords
:
"
Cargando...
"
,
paginate
:
{
first
:
"
Primero
"
,
last
:
"
Último
"
,
next
:
"
Siguiente
"
,
previous
:
"
Anterior
"
}
},
pageLength
:
10
,
info
:
false
,
filter
:
true
,
ordering
:
false
,
paging
:
true
,
pagingType
:
"
full_numbers
"
,
order
:
[],
ajax
:
{
url
:
"
listadoAddOns
"
,
dataSrc
:
""
},
columns
:
[
// {"title":"ID", "data":"idAddOn", "searchable": true, width:"500px"},
{
title
:
"
Estudio
"
,
data
:
"
estudio
"
,
searchable
:
true
,
width
:
"
30px
"
},
{
title
:
"
Pais
"
,
data
:
"
pais
"
,
searchable
:
true
,
width
:
"
30px
"
},
{
title
:
"
Revenue Share
"
,
data
:
"
revenueShare
"
,
searchable
:
true
,
width
:
"
30px
"
},
{
title
:
"
Precio
"
,
data
:
"
precio
"
,
searchable
:
true
,
width
:
"
20px
"
},
{
title
:
"
Vat
"
,
data
:
"
vat
"
,
searchable
:
true
,
width
:
"
20px
"
},
{
title
:
"
Precio Neto
"
,
data
:
"
precioNeto
"
,
searchable
:
true
,
width
:
"
20px
"
},
{
title
:
"
Tipo de Cambio
"
,
data
:
"
tipoDeCambio
"
,
searchable
:
true
,
width
:
"
40px
"
},
// {"title":"Calculo Monto Por Pais", "data":"calculoMontoXPais", "searchable": true, width:"60px"},
// {"title":"Calculo Revenue Share", "data":"calculoRevenueShare", "searchable": true, width:"60px"},
{
title
:
"
Tarifa Minima
"
,
data
:
"
tarifaMinima
"
,
searchable
:
true
,
width
:
"
30px
"
},
{
title
:
"
Preferido
"
,
data
:
"
preferido
"
,
searchable
:
true
,
width
:
"
30px
"
},
{
title
:
"
Accion
"
,
data
:
"
preferido
"
,
searchable
:
true
,
width
:
"
30px
"
}
],
rowCallback
:
function
(
row
,
data
,
index
)
{
var
link
=
'
<a onClick="guardaIdAddOn(
'
+
data
[
"
idAddOn
"
]
+
'
)" data-bs-toggle="modal" data-bs-target="#modalAgregaActualizaAddOn">
'
+
data
[
"
estudio
"
]
+
'
</a>
'
;
var
button
=
'
<button class="btn btn-danger" type="button" onclick="eliminarPrecio(
'
+
data
[
"
idAddOn
"
]
+
'
,
\'
'
+
data
[
"
preferido
"
]
+
'
\'
,
'
+
data
[
"
idRelacion
"
]
+
'
)">Eliminar</button>
'
;
$
(
row
).
attr
(
"
id
"
,
data
[
"
idAddOn
"
]);
$
(
'
td:eq(0)
'
,
row
).
html
(
link
);
$
(
'
td:eq(1)
'
,
row
).
html
(
data
[
"
pais
"
]);
$
(
'
td:eq(2)
'
,
row
).
html
(
data
[
"
revenueShare
"
]
+
"
%
"
).
addClass
(
'
text-align-right
'
);
$
(
'
td:eq(3)
'
,
row
).
html
(
"
$
"
+
data
[
"
precio
"
]);
$
(
'
td:eq(4)
'
,
row
).
html
(
data
[
"
vat
"
]
+
"
%
"
);
$
(
'
td:eq(5)
'
,
row
).
html
(
"
$
"
+
data
[
"
precioNeto
"
]);
$
(
'
td:eq(6)
'
,
row
).
html
(
data
[
"
tipoDeCambio
"
]);
// $('td:eq(7)', row).html(data["calculoMontoXPais"]);
// $('td:eq(8)', row).html(data["calculoRevenueShare"]);
$
(
'
td:eq(7)
'
,
row
).
html
(
"
$
"
+
data
[
"
tarifaMinima
"
]);
$
(
'
td:eq(8)
'
,
row
).
html
(
data
[
"
preferido
"
]);
$
(
'
td:eq(9)
'
,
row
).
html
(
button
);
}
});
}
function
validarAgregar
(){
$
(
"
#forma
"
).
validate
(
...
...
front/src/main/webapp/js/dda/admin/catalogos/apartados/apartados.js
View file @
34f84422
...
...
@@ -32,67 +32,68 @@ function cargarApartados(operacion){
});
}
function
crearTablaApartados
(
datos
){
function
crearTablaApartados
(
datos
)
{
var
data
=
[];
for
(
var
i
=
0
;
i
<
datos
.
length
;
i
++
)
{
for
(
var
i
=
0
;
i
<
datos
.
length
;
i
++
)
{
var
raw
=
[];
raw
.
push
(
datos
[
i
].
descripcion
);
raw
.
push
(
datos
[
i
].
amortizable
);
raw
.
push
(
datos
[
i
].
idSap
=
null
?
""
:
datos
[
i
].
idSap
);
raw
.
push
(
datos
[
i
].
idSap
?
datos
[
i
].
idSap
:
""
);
// Ajuste en la verificación de null
raw
.
push
(
datos
[
i
].
idApartado
);
data
.
push
(
raw
);
}
var
table
=
$
(
'
#cataApartados
'
).
DataTable
({
data
:
data
,
columns
:
[
{
title
:
"
Apartado
"
},
{
title
:
"
Tipo Amortizable
"
},
{
title
:
"
Código SAP
"
}
],
createdRow
:
function
(
row
,
data
,
index
)
{
//Se agrega el link pare ver el apartado
var
urlAction
=
contextPath
+
'
/catalogos/bolsas/altaApartado.action?pmn=44
'
+
'
&idApartado=
'
+
datos
[
index
].
idApartado
+
'
&descripcion=
'
+
data
[
0
]
+
'
&amortizable=
'
+
data
[
1
]
+
'
&idSAP=
'
+
data
[
2
];
html
=
'
<a href="
'
+
urlAction
+
'
">
'
+
data
[
0
]
+
'
</a>
'
;
$
(
'
td
'
,
row
).
eq
(
0
).
empty
().
append
(
html
);
},
language
:
{
"
sProcessing
"
:
"
Procesando...
"
,
"
sLengthMenu
"
:
"
Mostrar _MENU_ registros
"
,
"
sZeroRecords
"
:
"
No se encontraron resultados
"
,
"
sEmptyTable
"
:
"
No hay contratos que satisfagan los criterios de b
\
u00FAsqueda.
"
,
"
sInfo
"
:
"
Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros
"
,
"
sInfoEmpty
"
:
"
Mostrando registros del 0 al 0 de un total de 0 registros
"
,
"
sInfoFiltered
"
:
"
(filtrado de un total de _MAX_ registros)
"
,
"
sInfoPostFix
"
:
""
,
"
sSearch
"
:
"
Buscar:
"
,
"
sUrl
"
:
""
,
"
sInfoThousands
"
:
"
,
"
,
"
sLoadingRecords
"
:
"
Cargando...
"
,
"
oPaginate
"
:
{
"
sFirst
"
:
"
Primero
"
,
"
sLast
"
:
"
Último
"
,
"
sNext
"
:
"
Siguiente
"
,
"
sPrevious
"
:
"
Anterior
"
},
oAria
:
{
"
sSortAscending
"
:
"
: Activar para ordenar la columna de manera ascendente
"
,
"
sSortDescending
"
:
"
: Activar para ordenar la columna de manera descendente
"
}
},
"
columnDefs
"
:
[],
bFilter
:
true
,
bInfo
:
false
,
"
bSort
"
:
false
,
scrollX
:
true
,
bPaginate
:
true
,
"
sPaginationType
"
:
"
full_numbers
"
,
"
aaSorting
"
:
[],
"
sAjaxDataProp
"
:
""
,
});
table
.
columns
.
adjust
().
draw
();
}
data
:
data
,
columns
:
[
{
title
:
"
Apartado
"
},
{
title
:
"
Tipo Amortizable
"
},
{
title
:
"
Código SAP
"
}
],
"
rowCallback
"
:
function
(
row
,
data
,
index
)
{
// Se agrega el link para ver el apartado
var
urlAction
=
contextPath
+
'
/catalogos/bolsas/altaApartado.action?pmn=44
'
+
'
&idApartado=
'
+
datos
[
index
].
idApartado
+
'
&descripcion=
'
+
data
[
0
]
+
'
&amortizable=
'
+
data
[
1
]
+
'
&idSAP=
'
+
data
[
2
];
var
html
=
'
<a href="
'
+
urlAction
+
'
">
'
+
data
[
0
]
+
'
</a>
'
;
$
(
'
td
'
,
row
).
eq
(
0
).
empty
().
append
(
html
);
},
language
:
{
processing
:
"
Procesando...
"
,
lengthMenu
:
"
Mostrar _MENU_ registros
"
,
zeroRecords
:
"
No se encontraron resultados
"
,
emptyTable
:
"
No hay contratos que satisfagan los criterios de búsqueda.
"
,
info
:
"
Mostrando registros del _START_ al _END_ de un total de _TOTAL_ registros
"
,
infoEmpty
:
"
Mostrando registros del 0 al 0 de un total de 0 registros
"
,
infoFiltered
:
"
(filtrado de un total de _MAX_ registros)
"
,
search
:
"
Buscar:
"
,
thousands
:
"
,
"
,
loadingRecords
:
"
Cargando...
"
,
paginate
:
{
first
:
"
Primero
"
,
last
:
"
Último
"
,
next
:
"
Siguiente
"
,
previous
:
"
Anterior
"
},
aria
:
{
sortAscending
:
"
: Activar para ordenar la columna de manera ascendente
"
,
sortDescending
:
"
: Activar para ordenar la columna de manera descendente
"
}
},
columnDefs
:
[],
filter
:
true
,
info
:
false
,
ordering
:
false
,
scrollX
:
false
,
paging
:
true
,
pagingType
:
"
full_numbers
"
,
order
:
[]
});
//table.columns.adjust().draw();
}
function
limpiarTabla
(){
$
(
"
#divApartados
"
).
empty
();
...
...
front/src/main/webapp/js/dda/admin/catalogos/categorias/categorias.js
View file @
34f84422
...
...
@@ -22,57 +22,59 @@ function limpiarTabla(){
}
function
realizaConsulta
(){
// Obtener numero de menu
var
menu
=
$
(
"
#pmn
"
).
val
();
var
menuRegreso
=
$
(
"
#pmnReturn
"
).
val
();
var
namespace
=
"
/catalogos/categorias/
"
;
var
rowId
=
null
;
var
oTable
=
null
;
oTable
=
$
(
'
#cataEstudio
'
).
dataTable
({
"
bAutoWidth
"
:
false
,
"
oLanguage
"
:{
"
sProcessing
"
:
"
Procesando...
"
,
"
sLengthMenu
"
:
"
Mostrar _MENU_ registros
"
,
"
sZeroRecords
"
:
"
Sin eventos encontrados
"
,
"
sEmptyTable
"
:
"
Sin eventos encontrados
"
,
"
sInfo
"
:
"
Mostrando _START_ al _END_ de _TOTAL_
"
,
"
sInfoEmpty
"
:
"
0 registros
"
,
"
sInfoFiltered
"
:
"
(filtrado de un total de _MAX_ registros)
"
,
"
sSearch
"
:
"
Buscar:
"
,
"
sInfoThousands
"
:
"
,
"
,
"
sLoadingRecords
"
:
"
Cargando...
"
,
"
oPaginate
"
:
{
"
sFirst
"
:
"
Primero
"
,
"
sLast
"
:
"
Último
"
,
"
sNext
"
:
"
Siguiente
"
,
"
sPrevious
"
:
"
Anterior
"
}
},
"
iDisplayLength
"
:
10
,
"
bInfo
"
:
false
,
"
bFilter
"
:
true
,
"
bSort
"
:
false
,
"
bPaginate
"
:
true
,
"
sPaginationType
"
:
"
full_numbers
"
,
"
aaSorting
"
:
[],
"
sAjaxSource
"
:
"
listadoCategorias
"
,
"
sAjaxDataProp
"
:
""
,
"
aoColumns
"
:
[
{
"
sTitle
"
:
"
Nombre
"
,
"
mDataProp
"
:
"
nombre
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
100px
"
},
{
"
sTitle
"
:
"
Accion
"
,
"
mDataProp
"
:
"
nombre
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
30px
"
}
],
'
fnRowCallback
'
:
function
(
nRow
,
aData
,
iDisplayIndex
,
iDisplayIndexFull
)
{
var
link
=
'
<a onClick="actualizaCategorias(
'
+
aData
[
"
idCategoria
"
]
+
'
)" data-bs-toggle="modal" data-bs-target="#modalAgregaActualiza">
'
+
aData
[
"
nombre
"
]
+
'
</a>
'
;
var
button
=
'
<button class="btn btn-danger" type="button" onclick="eliminar(
'
+
aData
[
"
idCategoria
"
]
+
'
)">Eliminar</button>
'
;
$
(
nRow
).
attr
(
"
id
"
,
aData
[
"
idCategoria
"
]);
$
(
'
td:eq(0)
'
,
nRow
).
html
(
link
);
$
(
'
td:eq(1)
'
,
nRow
).
html
(
button
);
}
});
// Obtener número de menú
var
menu
=
$
(
"
#pmn
"
).
val
();
var
menuRegreso
=
$
(
"
#pmnReturn
"
).
val
();
var
namespace
=
"
/catalogos/categorias/
"
;
var
rowId
=
null
;
var
oTable
=
null
;
oTable
=
$
(
'
#cataEstudio
'
).
DataTable
({
autoWidth
:
false
,
language
:
{
processing
:
"
Procesando...
"
,
lengthMenu
:
"
Mostrar _MENU_ registros
"
,
zeroRecords
:
"
Sin eventos encontrados
"
,
emptyTable
:
"
Sin eventos encontrados
"
,
info
:
"
Mostrando _START_ al _END_ de _TOTAL_
"
,
infoEmpty
:
"
0 registros
"
,
infoFiltered
:
"
(filtrado de un total de _MAX_ registros)
"
,
search
:
"
Buscar:
"
,
thousands
:
"
,
"
,
loadingRecords
:
"
Cargando...
"
,
paginate
:
{
first
:
"
Primero
"
,
last
:
"
Último
"
,
next
:
"
Siguiente
"
,
previous
:
"
Anterior
"
}
},
pageLength
:
10
,
info
:
false
,
filter
:
true
,
ordering
:
false
,
paging
:
true
,
pagingType
:
"
full_numbers
"
,
order
:
[],
ajax
:
{
url
:
"
listadoCategorias
"
,
dataSrc
:
""
},
columns
:
[
{
title
:
"
Nombre
"
,
data
:
"
nombre
"
,
searchable
:
true
,
width
:
"
100px
"
},
{
title
:
"
Accion
"
,
data
:
"
nombre
"
,
searchable
:
true
,
width
:
"
30px
"
}
],
rowCallback
:
function
(
row
,
data
,
index
)
{
var
link
=
'
<a onClick="actualizaCategorias(
'
+
data
[
"
idCategoria
"
]
+
'
)" data-bs-toggle="modal" data-bs-target="#modalAgregaActualiza">
'
+
data
[
"
nombre
"
]
+
'
</a>
'
;
var
button
=
'
<button class="btn btn-danger" type="button" onclick="eliminar(
'
+
data
[
"
idCategoria
"
]
+
'
)">Eliminar</button>
'
;
$
(
row
).
attr
(
"
id
"
,
data
[
"
idCategoria
"
]);
$
(
'
td:eq(0)
'
,
row
).
html
(
link
);
$
(
'
td:eq(1)
'
,
row
).
html
(
button
);
}
});
}
function
validarAgregar
(){
$
(
"
#forma
"
).
validate
(
...
...
front/src/main/webapp/js/dda/admin/catalogos/estudio/estudio.js
View file @
34f84422
...
...
@@ -60,14 +60,14 @@ function realizaConsulta(){
"
dataSrc
"
:
""
},
"
columns
"
:
[
{
"
title
"
:
"
Código SAP
"
,
"
data
"
:
"
idSap
"
,
"
searchable
"
:
true
,
"
width
"
:
"
40
0
px
"
},
{
"
title
"
:
"
Nombre
"
,
"
data
"
:
"
descripcionEstudio
"
,
"
searchable
"
:
true
,
"
width
"
:
"
50
0
px
"
},
{
"
title
"
:
"
Siglas
"
,
"
data
"
:
"
siglaDda
"
,
"
searchable
"
:
true
,
"
width
"
:
"
40
0
px
"
},
{
"
title
"
:
"
Grupo
"
,
"
data
"
:
"
descripcionGrupo
"
,
"
searchable
"
:
true
,
"
width
"
:
"
50
0
px
"
},
{
"
title
"
:
"
Moneda
"
,
"
data
"
:
"
moneda
"
,
"
searchable
"
:
true
,
"
width
"
:
"
40
0
px
"
},
{
"
title
"
:
"
C
\
u00F3digo Pa
\
u00EDs
"
,
"
data
"
:
"
codigoPais
"
,
"
searchable
"
:
true
,
"
width
"
:
"
40
0
px
"
},
{
"
title
"
:
"
Nombre Pa
\
u00EDs
"
,
"
data
"
:
"
nombrePais
"
,
"
searchable
"
:
true
,
"
width
"
:
"
40
0
px
"
},
{
"
title
"
:
"
Sociedad
"
,
"
data
"
:
"
sociedad
"
,
"
searchable
"
:
true
,
"
width
"
:
"
40
0
px
"
}
{
"
title
"
:
"
Código SAP
"
,
"
data
"
:
"
idSap
"
,
"
searchable
"
:
true
,
"
width
"
:
"
40px
"
},
{
"
title
"
:
"
Nombre
"
,
"
data
"
:
"
descripcionEstudio
"
,
"
searchable
"
:
true
,
"
width
"
:
"
50px
"
},
{
"
title
"
:
"
Siglas
"
,
"
data
"
:
"
siglaDda
"
,
"
searchable
"
:
true
,
"
width
"
:
"
40px
"
},
{
"
title
"
:
"
Grupo
"
,
"
data
"
:
"
descripcionGrupo
"
,
"
searchable
"
:
true
,
"
width
"
:
"
50px
"
},
{
"
title
"
:
"
Moneda
"
,
"
data
"
:
"
moneda
"
,
"
searchable
"
:
true
,
"
width
"
:
"
40px
"
},
{
"
title
"
:
"
C
\
u00F3digo Pa
\
u00EDs
"
,
"
data
"
:
"
codigoPais
"
,
"
searchable
"
:
true
,
"
width
"
:
"
40px
"
},
{
"
title
"
:
"
Nombre Pa
\
u00EDs
"
,
"
data
"
:
"
nombrePais
"
,
"
searchable
"
:
true
,
"
width
"
:
"
40px
"
},
{
"
title
"
:
"
Sociedad
"
,
"
data
"
:
"
sociedad
"
,
"
searchable
"
:
true
,
"
width
"
:
"
40px
"
}
],
"
rowCallback
"
:
function
(
row
,
data
,
index
)
{
var
link
=
'
<a onClick="guardaIdEstudio(
'
+
data
[
"
idEstudio
"
]
+
'
)" data-bs-toggle="modal" data-bs-target="#modalAgregaActualiza">
'
+
data
[
"
descripcionEstudio
"
]
+
'
</a>
'
;
...
...
front/src/main/webapp/js/dda/admin/catalogos/estudiosAddons/estudiosAddons.js
View file @
34f84422
...
...
@@ -22,60 +22,62 @@ function limpiarTabla(){
}
function
realizaConsulta
(){
// Obtener numero de menu
var
menu
=
$
(
"
#pmn
"
).
val
();
var
menuRegreso
=
$
(
"
#pmnReturn
"
).
val
();
var
namespace
=
"
/catalogos/addons/
"
;
var
rowId
=
null
;
var
oTable
=
null
;
oTable
=
$
(
'
#cataEstudio
'
).
dataTable
({
"
bAutoWidth
"
:
false
,
"
oLanguage
"
:{
"
sProcessing
"
:
"
Procesando...
"
,
"
sLengthMenu
"
:
"
Mostrar _MENU_ registros
"
,
"
sZeroRecords
"
:
"
Sin eventos encontrados
"
,
"
sEmptyTable
"
:
"
Sin eventos encontrados
"
,
"
sInfo
"
:
"
Mostrando _START_ al _END_ de _TOTAL_
"
,
"
sInfoEmpty
"
:
"
0 registros
"
,
"
sInfoFiltered
"
:
"
(filtrado de un total de _MAX_ registros)
"
,
"
sSearch
"
:
"
Buscar:
"
,
"
sInfoThousands
"
:
"
,
"
,
"
sLoadingRecords
"
:
"
Cargando...
"
,
"
oPaginate
"
:
{
"
sFirst
"
:
"
Primero
"
,
"
sLast
"
:
"
Último
"
,
"
sNext
"
:
"
Siguiente
"
,
"
sPrevious
"
:
"
Anterior
"
}
},
"
iDisplayLength
"
:
10
,
"
bInfo
"
:
false
,
"
bFilter
"
:
true
,
"
bSort
"
:
false
,
"
bPaginate
"
:
true
,
"
sPaginationType
"
:
"
full_numbers
"
,
"
aaSorting
"
:
[],
"
sAjaxSource
"
:
"
listadoEstudiosAddons
"
,
"
sAjaxDataProp
"
:
""
,
"
aoColumns
"
:
[
{
"
sTitle
"
:
"
Nombre
"
,
"
mDataProp
"
:
"
nombre
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
100px
"
},
{
"
sTitle
"
:
"
Addon
"
,
"
mDataProp
"
:
"
addon
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
50px
"
},
{
"
sTitle
"
:
"
Reducci
\
u00F3n de clientes
"
,
"
mDataProp
"
:
"
reduClientes
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
50px
"
},
{
"
sTitle
"
:
"
Reporte
"
,
"
mDataProp
"
:
"
formula
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
500px
"
}
],
'
fnRowCallback
'
:
function
(
nRow
,
aData
,
iDisplayIndex
,
iDisplayIndexFull
)
{
var
link
=
'
<a onClick="guardaIdEstudio(
'
+
aData
[
"
idEstudio
"
]
+
'
)" data-bs-toggle="modal" data-bs-target="#modalAgregaActualiza">
'
+
aData
[
"
nombre
"
]
+
'
</a>
'
;
$
(
nRow
).
attr
(
"
id
"
,
aData
[
"
idEstudio
"
]);
$
(
'
td:eq(0)
'
,
nRow
).
html
(
link
);
$
(
'
td:eq(1)
'
,
nRow
).
html
(
aData
[
"
addon
"
]);
$
(
'
td:eq(2)
'
,
nRow
).
html
(
aData
[
"
reduClientes
"
]);
$
(
'
td:eq(4)
'
,
nRow
).
html
(
aData
[
"
formula
"
]);
}
});
// Obtener número de menú
var
menu
=
$
(
"
#pmn
"
).
val
();
var
menuRegreso
=
$
(
"
#pmnReturn
"
).
val
();
var
namespace
=
"
/catalogos/addons/
"
;
var
rowId
=
null
;
var
oTable
=
null
;
oTable
=
$
(
'
#cataEstudio
'
).
DataTable
({
autoWidth
:
false
,
language
:
{
processing
:
"
Procesando...
"
,
lengthMenu
:
"
Mostrar _MENU_ registros
"
,
zeroRecords
:
"
Sin eventos encontrados
"
,
emptyTable
:
"
Sin eventos encontrados
"
,
info
:
"
Mostrando _START_ al _END_ de _TOTAL_
"
,
infoEmpty
:
"
0 registros
"
,
infoFiltered
:
"
(filtrado de un total de _MAX_ registros)
"
,
search
:
"
Buscar:
"
,
thousands
:
"
,
"
,
loadingRecords
:
"
Cargando...
"
,
paginate
:
{
first
:
"
Primero
"
,
last
:
"
Último
"
,
next
:
"
Siguiente
"
,
previous
:
"
Anterior
"
}
},
pageLength
:
10
,
info
:
false
,
filter
:
true
,
ordering
:
false
,
paging
:
true
,
pagingType
:
"
full_numbers
"
,
order
:
[],
ajax
:
{
url
:
"
listadoEstudiosAddons
"
,
dataSrc
:
""
},
columns
:
[
{
title
:
"
Nombre
"
,
data
:
"
nombre
"
,
searchable
:
true
,
width
:
"
100px
"
},
{
title
:
"
Addon
"
,
data
:
"
addon
"
,
searchable
:
true
,
width
:
"
50px
"
},
{
title
:
"
Reducci
\
u00F3n de clientes
"
,
data
:
"
reduClientes
"
,
searchable
:
true
,
width
:
"
50px
"
},
{
title
:
"
Reporte
"
,
data
:
"
formula
"
,
searchable
:
true
,
width
:
"
500px
"
}
],
rowCallback
:
function
(
row
,
data
,
index
)
{
var
link
=
'
<a onClick="guardaIdEstudio(
'
+
data
[
"
idEstudio
"
]
+
'
)" data-bs-toggle="modal" data-bs-target="#modalAgregaActualiza">
'
+
data
[
"
nombre
"
]
+
'
</a>
'
;
$
(
row
).
attr
(
"
id
"
,
data
[
"
idEstudio
"
]);
$
(
'
td:eq(0)
'
,
row
).
html
(
link
);
$
(
'
td:eq(1)
'
,
row
).
html
(
data
[
"
addon
"
]);
$
(
'
td:eq(2)
'
,
row
).
html
(
data
[
"
reduClientes
"
]);
$
(
'
td:eq(3)
'
,
row
).
html
(
data
[
"
formula
"
]);
}
});
}
function
validarAgregar
(){
$
(
"
#forma
"
).
validate
(
...
...
front/src/main/webapp/js/dda/admin/catalogos/estudiosTrans/estudiosTrans.js
View file @
34f84422
...
...
@@ -22,58 +22,61 @@ function limpiarTabla(){
}
function
realizaConsulta
(){
// Obtener numero de menu
var
menu
=
$
(
"
#pmn
"
).
val
();
var
menuRegreso
=
$
(
"
#pmnReturn
"
).
val
();
var
namespace
=
"
/catalogos/estudiosTrans/
"
;
var
rowId
=
null
;
var
oTable
=
null
;
oTable
=
$
(
'
#cataEstudio
'
).
dataTable
({
"
bAutoWidth
"
:
false
,
"
oLanguage
"
:{
"
sProcessing
"
:
"
Procesando...
"
,
"
sLengthMenu
"
:
"
Mostrar _MENU_ registros
"
,
"
sZeroRecords
"
:
"
Sin eventos encontrados
"
,
"
sEmptyTable
"
:
"
Sin eventos encontrados
"
,
"
sInfo
"
:
"
Mostrando _START_ al _END_ de _TOTAL_
"
,
"
sInfoEmpty
"
:
"
0 registros
"
,
"
sInfoFiltered
"
:
"
(filtrado de un total de _MAX_ registros)
"
,
"
sSearch
"
:
"
Buscar:
"
,
"
sInfoThousands
"
:
"
,
"
,
"
sLoadingRecords
"
:
"
Cargando...
"
,
"
oPaginate
"
:
{
"
sFirst
"
:
"
Primero
"
,
"
sLast
"
:
"
Último
"
,
"
sNext
"
:
"
Siguiente
"
,
"
sPrevious
"
:
"
Anterior
"
}
},
"
iDisplayLength
"
:
10
,
"
bInfo
"
:
false
,
"
bFilter
"
:
true
,
"
bSort
"
:
false
,
"
bPaginate
"
:
true
,
"
sPaginationType
"
:
"
full_numbers
"
,
"
aaSorting
"
:
[],
"
sAjaxSource
"
:
"
listadoEstudiosTrans
"
,
"
sAjaxDataProp
"
:
""
,
"
aoColumns
"
:
[
{
"
sTitle
"
:
"
Nombre
"
,
"
mDataProp
"
:
"
nombre
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
100px
"
},
{
"
sTitle
"
:
"
Revenue Share
"
,
"
mDataProp
"
:
"
revenueShare
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
50px
"
},
{
"
sTitle
"
:
"
Accion
"
,
"
mDataProp
"
:
"
nombre
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
30px
"
}
],
'
fnRowCallback
'
:
function
(
nRow
,
aData
,
iDisplayIndex
,
iDisplayIndexFull
)
{
var
link
=
'
<a onClick="actualizaEstudio(
'
+
aData
[
"
idEstudio
"
]
+
'
)" data-bs-toggle="modal" data-bs-target="#modalAgregaActualiza">
'
+
aData
[
"
nombre
"
]
+
'
</a>
'
;
var
button
=
'
<button class="btn btn-danger" type="button" onclick="eliminar(
'
+
aData
[
"
idEstudio
"
]
+
'
)">Eliminar</button>
'
;
$
(
nRow
).
attr
(
"
id
"
,
aData
[
"
idEstudio
"
]);
$
(
'
td:eq(0)
'
,
nRow
).
html
(
link
);
$
(
'
td:eq(1)
'
,
nRow
).
html
(
aData
[
"
revenueShare
"
]);
$
(
'
td:eq(2)
'
,
nRow
).
html
(
button
);
}
});
// Obtener número de menú
var
menu
=
$
(
"
#pmn
"
).
val
();
var
menuRegreso
=
$
(
"
#pmnReturn
"
).
val
();
var
namespace
=
"
/catalogos/estudiosTrans/
"
;
var
rowId
=
null
;
var
oTable
=
null
;
oTable
=
$
(
'
#cataEstudio
'
).
DataTable
({
autoWidth
:
false
,
language
:
{
processing
:
"
Procesando...
"
,
lengthMenu
:
"
Mostrar _MENU_ registros
"
,
zeroRecords
:
"
Sin eventos encontrados
"
,
emptyTable
:
"
Sin eventos encontrados
"
,
info
:
"
Mostrando _START_ al _END_ de _TOTAL_
"
,
infoEmpty
:
"
0 registros
"
,
infoFiltered
:
"
(filtrado de un total de _MAX_ registros)
"
,
search
:
"
Buscar:
"
,
thousands
:
"
,
"
,
loadingRecords
:
"
Cargando...
"
,
paginate
:
{
first
:
"
Primero
"
,
last
:
"
Último
"
,
next
:
"
Siguiente
"
,
previous
:
"
Anterior
"
}
},
pageLength
:
10
,
info
:
false
,
filter
:
true
,
ordering
:
false
,
paging
:
true
,
pagingType
:
"
full_numbers
"
,
order
:
[],
ajax
:
{
url
:
"
listadoEstudiosTrans
"
,
dataSrc
:
""
},
columns
:
[
{
title
:
"
Nombre
"
,
data
:
"
nombre
"
,
searchable
:
true
,
width
:
"
100px
"
},
{
title
:
"
Revenue Share
"
,
data
:
"
revenueShare
"
,
searchable
:
true
,
width
:
"
50px
"
},
{
title
:
"
Accion
"
,
data
:
"
nombre
"
,
searchable
:
true
,
width
:
"
30px
"
}
],
rowCallback
:
function
(
row
,
data
,
index
)
{
var
link
=
'
<a onClick="actualizaEstudio(
'
+
data
[
"
idEstudio
"
]
+
'
)" data-bs-toggle="modal" data-bs-target="#modalAgregaActualiza">
'
+
data
[
"
nombre
"
]
+
'
</a>
'
;
var
button
=
'
<button class="btn btn-danger" type="button" onclick="eliminar(
'
+
data
[
"
idEstudio
"
]
+
'
)">Eliminar</button>
'
;
$
(
row
).
attr
(
"
id
"
,
data
[
"
idEstudio
"
]);
$
(
'
td:eq(0)
'
,
row
).
html
(
link
);
$
(
'
td:eq(1)
'
,
row
).
html
(
data
[
"
revenueShare
"
]);
$
(
'
td:eq(2)
'
,
row
).
html
(
button
);
}
});
}
function
validarAgregar
(){
$
(
"
#forma
"
).
validate
(
...
...
front/src/main/webapp/js/dda/admin/catalogos/excepciones/excepciones.js
View file @
34f84422
...
...
@@ -34,64 +34,67 @@ function limpiarTabla(){
}
function
realizaConsulta
(){
// Obtener numero de menu
var
menu
=
$
(
"
#pmn
"
).
val
();
var
menuRegreso
=
$
(
"
#pmnReturn
"
).
val
();
var
namespace
=
"
/catalogos/excepciones/
"
;
var
rowId
=
null
;
var
oTable
=
null
;
oTable
=
$
(
'
#cataEstudio
'
).
dataTable
({
"
bAutoWidth
"
:
false
,
"
oLanguage
"
:{
"
sProcessing
"
:
"
Procesando...
"
,
"
sLengthMenu
"
:
"
Mostrar _MENU_ registros
"
,
"
sZeroRecords
"
:
"
Sin eventos encontrados
"
,
"
sEmptyTable
"
:
"
Sin eventos encontrados
"
,
"
sInfo
"
:
"
Mostrando _START_ al _END_ de _TOTAL_
"
,
"
sInfoEmpty
"
:
"
0 registros
"
,
"
sInfoFiltered
"
:
"
(filtrado de un total de _MAX_ registros)
"
,
"
sSearch
"
:
"
Buscar:
"
,
"
sInfoThousands
"
:
"
,
"
,
"
sLoadingRecords
"
:
"
Cargando...
"
,
"
oPaginate
"
:
{
"
sFirst
"
:
"
Primero
"
,
"
sLast
"
:
"
Último
"
,
"
sNext
"
:
"
Siguiente
"
,
"
sPrevious
"
:
"
Anterior
"
}
},
"
iDisplayLength
"
:
10
,
"
bInfo
"
:
false
,
"
bFilter
"
:
true
,
"
bSort
"
:
false
,
"
bPaginate
"
:
true
,
"
sPaginationType
"
:
"
full_numbers
"
,
"
aaSorting
"
:
[],
"
sAjaxSource
"
:
"
listadoExcepciones
"
,
"
sAjaxDataProp
"
:
""
,
"
aoColumns
"
:
[
{
"
sTitle
"
:
"
Estudio
"
,
"
mDataProp
"
:
"
estudio
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
100px
"
},
{
"
sTitle
"
:
"
Titulo
"
,
"
mDataProp
"
:
"
titulo
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
50px
"
},
{
"
sTitle
"
:
"
Revenue Share
"
,
"
mDataProp
"
:
"
revenueShare
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
50px
"
},
{
"
sTitle
"
:
"
Fecha Inicio
"
,
"
mDataProp
"
:
"
fechaInicio
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
500px
"
},
{
"
sTitle
"
:
"
Fecha Fin
"
,
"
mDataProp
"
:
"
fechaFin
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
500px
"
},
{
"
sTitle
"
:
"
Accion
"
,
"
mDataProp
"
:
"
titulo
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
30px
"
}
],
'
fnRowCallback
'
:
function
(
nRow
,
aData
,
iDisplayIndex
,
iDisplayIndexFull
)
{
var
link
=
'
<a onClick="actualizaExcepcion(
'
+
aData
[
"
idExcepcion
"
]
+
'
)" data-bs-toggle="modal" data-bs-target="#modalAgregaActualiza">
'
+
aData
[
"
estudio
"
]
+
'
</a>
'
;
var
button
=
'
<button class="btn btn-danger" type="button" onclick="eliminar(
'
+
aData
[
"
idExcepcion
"
]
+
'
)">Eliminar</button>
'
;
$
(
nRow
).
attr
(
"
id
"
,
aData
[
"
idExcepcion
"
]);
$
(
'
td:eq(0)
'
,
nRow
).
html
(
link
);
$
(
'
td:eq(1)
'
,
nRow
).
html
(
aData
[
"
titulo
"
]);
$
(
'
td:eq(2)
'
,
nRow
).
html
(
aData
[
"
revenueShare
"
]);
$
(
'
td:eq(3)
'
,
nRow
).
html
(
aData
[
"
fechaInicio
"
]);
$
(
'
td:eq(4)
'
,
nRow
).
html
(
aData
[
"
fechaFin
"
]);
$
(
'
td:eq(5)
'
,
nRow
).
html
(
button
);
}
});
// Obtener número de menú
var
menu
=
$
(
"
#pmn
"
).
val
();
var
menuRegreso
=
$
(
"
#pmnReturn
"
).
val
();
var
namespace
=
"
/catalogos/excepciones/
"
;
var
rowId
=
null
;
var
oTable
=
null
;
oTable
=
$
(
'
#cataEstudio
'
).
DataTable
({
autoWidth
:
false
,
language
:
{
processing
:
"
Procesando...
"
,
lengthMenu
:
"
Mostrar _MENU_ registros
"
,
zeroRecords
:
"
Sin eventos encontrados
"
,
emptyTable
:
"
Sin eventos encontrados
"
,
info
:
"
Mostrando _START_ al _END_ de _TOTAL_
"
,
infoEmpty
:
"
0 registros
"
,
infoFiltered
:
"
(filtrado de un total de _MAX_ registros)
"
,
search
:
"
Buscar:
"
,
thousands
:
"
,
"
,
loadingRecords
:
"
Cargando...
"
,
paginate
:
{
first
:
"
Primero
"
,
last
:
"
Último
"
,
next
:
"
Siguiente
"
,
previous
:
"
Anterior
"
}
},
pageLength
:
10
,
info
:
false
,
filter
:
true
,
ordering
:
false
,
paging
:
true
,
pagingType
:
"
full_numbers
"
,
order
:
[],
ajax
:
{
url
:
"
listadoExcepciones
"
,
dataSrc
:
""
},
columns
:
[
{
title
:
"
Estudio
"
,
data
:
"
estudio
"
,
searchable
:
true
,
width
:
"
100px
"
},
{
title
:
"
Titulo
"
,
data
:
"
titulo
"
,
searchable
:
true
,
width
:
"
100px
"
},
{
title
:
"
Revenue Share
"
,
data
:
"
revenueShare
"
,
searchable
:
true
,
width
:
"
50px
"
},
{
title
:
"
Fecha Inicio
"
,
data
:
"
fechaInicio
"
,
searchable
:
true
,
width
:
"
50px
"
},
{
title
:
"
Fecha Fin
"
,
data
:
"
fechaFin
"
,
searchable
:
true
,
width
:
"
50px
"
},
{
title
:
"
Accion
"
,
data
:
"
titulo
"
,
searchable
:
true
,
width
:
"
30px
"
}
],
rowCallback
:
function
(
row
,
data
,
index
)
{
var
link
=
'
<a onClick="actualizaExcepcion(
'
+
data
[
"
idExcepcion
"
]
+
'
)" data-bs-toggle="modal" data-bs-target="#modalAgregaActualiza">
'
+
data
[
"
estudio
"
]
+
'
</a>
'
;
var
button
=
'
<button class="btn btn-danger" type="button" onclick="eliminar(
'
+
data
[
"
idExcepcion
"
]
+
'
)">Eliminar</button>
'
;
$
(
row
).
attr
(
"
id
"
,
data
[
"
idExcepcion
"
]);
$
(
'
td:eq(0)
'
,
row
).
html
(
link
);
$
(
'
td:eq(1)
'
,
row
).
html
(
data
[
"
titulo
"
]);
$
(
'
td:eq(2)
'
,
row
).
html
(
data
[
"
revenueShare
"
]);
$
(
'
td:eq(3)
'
,
row
).
html
(
data
[
"
fechaInicio
"
]);
$
(
'
td:eq(4)
'
,
row
).
html
(
data
[
"
fechaFin
"
]);
$
(
'
td:eq(5)
'
,
row
).
html
(
button
);
}
});
}
function
validarAgregar
(){
$
(
"
#forma
"
).
validate
(
...
...
front/src/main/webapp/js/dda/admin/catalogos/grupos/grupos.js
View file @
34f84422
...
...
@@ -19,63 +19,65 @@ function reiniciaTabla(){
}
function
cargaInformacionTabla
()
{
// Obtener numero de menu
var
menu
=
$
(
"
#pmn
"
).
val
();
var
menuRegreso
=
$
(
"
#pmnReturn
"
).
val
();
var
namespace
=
"
/catalogos/estudios/index
"
;
var
rowId
=
null
;
var
oTable
=
null
;
// Obtener numero de menu
var
menu
=
$
(
"
#pmn
"
).
val
();
var
menuRegreso
=
$
(
"
#pmnReturn
"
).
val
();
var
namespace
=
"
/catalogos/estudios/index
"
;
oTable
=
$
(
'
#tablaGrupoEstudio
'
).
dataTable
({
"
bAutoWidth
"
:
false
,
"
oLanguage
"
:{
"
sProcessing
"
:
"
Procesando...
"
,
"
sLengthMenu
"
:
"
Mostrar _MENU_ registros
"
,
"
sZeroRecords
"
:
"
Sin eventos encontrados
"
,
"
sEmptyTable
"
:
"
Sin eventos encontrados
"
,
"
sInfo
"
:
"
Mostrando _START_ al _END_ de _TOTAL_
"
,
"
sInfoEmpty
"
:
"
0 registros
"
,
"
sInfoFiltered
"
:
"
(filtrado de un total de _MAX_ registros)
"
,
"
sSearch
"
:
"
Buscar:
"
,
"
sInfoThousands
"
:
"
,
"
,
"
sLoadingRecords
"
:
"
Cargando...
"
,
"
oPaginate
"
:
{
"
sFirst
"
:
"
Primero
"
,
"
sLast
"
:
"
Último
"
,
"
sNext
"
:
"
Siguiente
"
,
"
sPrevious
"
:
"
Anterior
"
}
},
"
iDisplayLength
"
:
10
,
"
bInfo
"
:
false
,
"
bFilter
"
:
true
,
"
bSort
"
:
false
,
"
bPaginate
"
:
true
,
"
sPaginationType
"
:
"
full_numbers
"
,
"
aaSorting
"
:
[],
"
sAjaxSource
"
:
"
obtenerInfoGrupos
"
,
"
sAjaxDataProp
"
:
""
,
"
aoColumns
"
:
[
{
"
sTitle
"
:
"
Descripcion
"
,
"
mDataProp
"
:
"
descripcionGrupo
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
400px
"
},
{
"
sTitle
"
:
"
Estatus
"
,
"
mDataProp
"
:
"
estatus
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
400px
"
},
{
"
sTitle
"
:
"
Orden
"
,
"
mDataProp
"
:
"
orden
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
400px
"
},
{
"
sTitle
"
:
"
Mostrar contratos ocultos
"
,
"
mDataProp
"
:
"
colapsa
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
400px
"
},
],
'
fnRowCallback
'
:
function
(
nRow
,
aData
,
iDisplayIndex
,
iDisplayIndexFull
)
{
var
link
=
'
<a onClick="guardaIdGrupo(
'
+
aData
[
"
idGrupo
"
]
+
'
)" data-bs-toggle="modal" data-bs-target="#modalAgregaActualiza">
'
+
aData
[
"
descripcionGrupo
"
]
+
'
</a>
'
;
$
(
'
td:eq(0)
'
,
nRow
).
html
(
link
);
$
(
'
td:eq(1)
'
,
nRow
).
html
(
aData
[
"
estatus
"
]
==
0
?
"
Inactivo
"
:
"
Activo
"
);
var
palomeado
=
aData
[
"
colapsa
"
]
==
1
?
'
checked
'
:
''
;
$
(
'
td:eq(3)
'
,
nRow
).
html
(
'
<input type="checkbox"
'
+
palomeado
+
'
disabled>
'
);
}
});
var
rowId
=
null
;
var
oTable
=
null
;
oTable
=
$
(
'
#tablaGrupoEstudio
'
).
DataTable
({
autoWidth
:
false
,
language
:
{
processing
:
"
Procesando...
"
,
lengthMenu
:
"
Mostrar _MENU_ registros
"
,
zeroRecords
:
"
Sin eventos encontrados
"
,
emptyTable
:
"
Sin eventos encontrados
"
,
info
:
"
Mostrando _START_ al _END_ de _TOTAL_
"
,
infoEmpty
:
"
0 registros
"
,
infoFiltered
:
"
(filtrado de un total de _MAX_ registros)
"
,
search
:
"
Buscar:
"
,
thousands
:
"
,
"
,
loadingRecords
:
"
Cargando...
"
,
paginate
:
{
first
:
"
Primero
"
,
last
:
"
Último
"
,
next
:
"
Siguiente
"
,
previous
:
"
Anterior
"
}
},
pageLength
:
10
,
info
:
false
,
filter
:
true
,
ordering
:
false
,
paging
:
true
,
pagingType
:
"
full_numbers
"
,
order
:
[],
ajax
:
{
url
:
"
obtenerInfoGrupos
"
,
dataSrc
:
""
},
columns
:
[
{
title
:
"
Descripcion
"
,
data
:
"
descripcionGrupo
"
,
searchable
:
true
,
width
:
"
400px
"
},
{
title
:
"
Estatus
"
,
data
:
"
estatus
"
,
searchable
:
true
,
width
:
"
400px
"
},
{
title
:
"
Orden
"
,
data
:
"
orden
"
,
searchable
:
true
,
width
:
"
400px
"
},
{
title
:
"
Mostrar contratos ocultos
"
,
data
:
"
colapsa
"
,
searchable
:
true
,
width
:
"
400px
"
}
],
rowCallback
:
function
(
row
,
data
,
index
)
{
var
link
=
'
<a onClick="guardaIdGrupo(
'
+
data
[
"
idGrupo
"
]
+
'
)" data-bs-toggle="modal" data-bs-target="#modalAgregaActualiza">
'
+
data
[
"
descripcionGrupo
"
]
+
'
</a>
'
;
$
(
'
td:eq(0)
'
,
row
).
html
(
link
);
$
(
'
td:eq(1)
'
,
row
).
html
(
data
[
"
estatus
"
]
==
0
?
"
Inactivo
"
:
"
Activo
"
);
var
palomeado
=
data
[
"
colapsa
"
]
==
1
?
'
checked
'
:
''
;
$
(
'
td:eq(3)
'
,
row
).
html
(
'
<input type="checkbox"
'
+
palomeado
+
'
disabled>
'
);
}
});
}
function
callActionAjax
(
actionRoute
,
jsonActionParameter
,
functionProcessor
){
$
.
ajax
({
...
...
front/src/main/webapp/js/dda/admin/catalogos/pais/pais.js
View file @
34f84422
...
...
@@ -5,60 +5,64 @@ function limpiarTabla(){
}
function
realizaConsulta
(){
// Obtener numero de menu
var
menu
=
$
(
"
#pmn
"
).
val
();
var
menuRegreso
=
$
(
"
#pmnReturn
"
).
val
();
var
namespace
=
"
/catalogos/paises/index
"
;
var
rowId
=
null
;
var
oTable
=
null
;
oTable
=
$
(
'
#catalogoPais
'
).
dataTable
({
"
bAutoWidth
"
:
false
,
"
oLanguage
"
:{
"
sProcessing
"
:
"
Procesando...
"
,
"
sLengthMenu
"
:
"
Mostrar _MENU_ registros
"
,
"
sZeroRecords
"
:
"
Sin eventos encontrados
"
,
"
sEmptyTable
"
:
"
Sin eventos encontrados
"
,
"
sInfo
"
:
"
Mostrando _START_ al _END_ de _TOTAL_
"
,
"
sInfoEmpty
"
:
"
0 registros
"
,
"
sInfoFiltered
"
:
"
(filtrado de un total de _MAX_ registros)
"
,
"
sSearch
"
:
"
Buscar:
"
,
"
sInfoThousands
"
:
"
,
"
,
"
sLoadingRecords
"
:
"
Cargando...
"
,
"
oPaginate
"
:
{
"
sFirst
"
:
"
Primero
"
,
"
sLast
"
:
"
Último
"
,
"
sNext
"
:
"
Siguiente
"
,
"
sPrevious
"
:
"
Anterior
"
}
},
"
iDisplayLength
"
:
10
,
"
bInfo
"
:
false
,
"
bFilter
"
:
true
,
"
bSort
"
:
false
,
"
bPaginate
"
:
true
,
"
sPaginationType
"
:
"
full_numbers
"
,
"
aaSorting
"
:
[],
"
sAjaxSource
"
:
"
indexlistadoPais
"
,
"
sAjaxDataProp
"
:
""
,
"
aoColumns
"
:
[
{
"
sTitle
"
:
"
Nombre
"
,
"
mDataProp
"
:
"
nombre
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
400px
"
},
{
"
sTitle
"
:
"
Territorio
"
,
"
mDataProp
"
:
"
territorio
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
900px
"
},
{
"
sTitle
"
:
"
Regi
\
u00F3n
"
,
"
mDataProp
"
:
"
region
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
600px
"
},
{
"
sTitle
"
:
"
Impuesto %
"
,
"
mDataProp
"
:
"
impuesto
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
400px
"
}
],
"
fnRowCallback
"
:
function
(
nRow
,
aData
,
iDisplayIndex
,
iDisplayIndexFull
)
{
var
urlModificar
=
"
<a href='
"
+
contextPath
+
namespace
+
"
buscaPais.action?pmn=
"
+
menu
+
"
&pmnReturn=
"
+
menuRegreso
+
"
&pais.id=#value'>
"
+
aData
[
"
nombre
"
]
+
"
</a>
"
;
$
(
nRow
).
attr
(
"
id
"
,
aData
[
"
id
"
]);
$
(
'
td:eq(0)
'
,
nRow
).
html
(
urlModificar
.
replace
(
"
#value
"
,
aData
[
"
id
"
]
));
$
(
'
td:eq(1)
'
,
nRow
).
html
(
aData
[
"
territorio
"
]);
$
(
'
td:eq(2)
'
,
nRow
).
html
(
aData
[
"
region
"
]);
$
(
'
td:eq(3)
'
,
nRow
).
html
(
aData
[
"
impuesto
"
]);
}
});
// Obtener numero de menú
var
menu
=
$
(
"
#pmn
"
).
val
();
var
menuRegreso
=
$
(
"
#pmnReturn
"
).
val
();
var
namespace
=
"
/catalogos/paises/index
"
;
var
rowId
=
null
;
var
oTable
=
null
;
oTable
=
$
(
'
#catalogoPais
'
).
DataTable
({
autoWidth
:
false
,
language
:
{
processing
:
"
Procesando...
"
,
lengthMenu
:
"
Mostrar _MENU_ registros
"
,
zeroRecords
:
"
Sin eventos encontrados
"
,
emptyTable
:
"
Sin eventos encontrados
"
,
info
:
"
Mostrando _START_ al _END_ de _TOTAL_
"
,
infoEmpty
:
"
0 registros
"
,
infoFiltered
:
"
(filtrado de un total de _MAX_ registros)
"
,
search
:
"
Buscar:
"
,
thousands
:
"
,
"
,
loadingRecords
:
"
Cargando...
"
,
paginate
:
{
first
:
"
Primero
"
,
last
:
"
Último
"
,
next
:
"
Siguiente
"
,
previous
:
"
Anterior
"
}
},
pageLength
:
10
,
info
:
false
,
filter
:
true
,
ordering
:
false
,
paging
:
true
,
pagingType
:
"
full_numbers
"
,
order
:
[],
ajax
:
{
url
:
"
indexlistadoPais
"
,
dataSrc
:
""
},
columns
:
[
{
title
:
"
Nombre
"
,
data
:
"
nombre
"
,
searchable
:
true
,
width
:
"
40px
"
},
{
title
:
"
Territorio
"
,
data
:
"
territorio
"
,
searchable
:
true
,
width
:
"
90px
"
},
{
title
:
"
Regi
\
u00F3n
"
,
data
:
"
region
"
,
searchable
:
true
,
width
:
"
60px
"
},
{
title
:
"
Impuesto %
"
,
data
:
"
impuesto
"
,
searchable
:
true
,
width
:
"
40px
"
}
],
rowCallback
:
function
(
row
,
data
,
index
)
{
var
urlModificar
=
"
<a href='
"
+
contextPath
+
namespace
+
"
buscaPais.action?pmn=
"
+
menu
+
"
&pmnReturn=
"
+
menuRegreso
+
"
&pais.id=
"
+
data
[
"
id
"
]
+
"
'>
"
+
data
[
"
nombre
"
]
+
"
</a>
"
;
$
(
row
).
attr
(
"
id
"
,
data
[
"
id
"
]);
$
(
'
td:eq(0)
'
,
row
).
html
(
urlModificar
);
$
(
'
td:eq(1)
'
,
row
).
html
(
data
[
"
territorio
"
]);
$
(
'
td:eq(2)
'
,
row
).
html
(
data
[
"
region
"
]);
$
(
'
td:eq(3)
'
,
row
).
html
(
data
[
"
impuesto
"
]);
}
});
}
function
regreso
(){
var
menu
=
$
(
"
#pmnReturn
"
).
val
();
window
.
location
.
href
=
contextPath
+
"
/catalogos/paises/index.action?pmn=
"
+
menu
;
...
...
front/src/main/webapp/jsp/dda/admin/catalogos/materiales/catalogoMateriales.jsp
View file @
34f84422
...
...
@@ -14,46 +14,48 @@
);
function
realizaConsulta
(){
var
oTable
=
null
oTable
=
$
(
'
#cataMaterial
'
).
dataTable
({
"
bAutoWidth
"
:
false
,
"
oLanguage
"
:{
"
sProcessing
"
:
"
Procesando...
"
,
"
sLengthMenu
"
:
"
Mostrar _MENU_ registros
"
,
"
sZeroRecords
"
:
"
Sin eventos encontrados
"
,
"
sEmptyTable
"
:
"
Sin eventos encontrados
"
,
"
sInfo
"
:
"
Mostrando _START_ al _END_ de _TOTAL_
"
,
"
sInfoEmpty
"
:
"
0 registros
"
,
"
sInfoFiltered
"
:
"
(filtrado de un total de _MAX_ registros)
"
,
"
sSearch
"
:
"
Buscar:
"
,
"
sInfoThousands
"
:
"
,
"
,
"
sLoadingRecords
"
:
"
Cargando...
"
,
"
oPaginate
"
:
{
"
sFirst
"
:
"
Primero
"
,
"
sLast
"
:
"
Último
"
,
"
sNext
"
:
"
Siguiente
"
,
"
sPrevious
"
:
"
Anterior
"
}
},
"
iDisplayLength
"
:
10
,
"
bInfo
"
:
true
,
"
bFilter
"
:
true
,
"
bSort
"
:
false
,
"
bPaginate
"
:
true
,
"
sPaginationType
"
:
"
full_numbers
"
,
"
aaSorting
"
:
[],
"
sAjaxSource
"
:
"
indexlistadoMateriales
"
,
"
sAjaxDataProp
"
:
""
,
"
aoColumns
"
:
[
{
"
sTitle
"
:
"
Código SAP
"
,
"
mDataProp
"
:
"
codigoSap
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
900px
"
},
{
"
sTitle
"
:
"
Descripcin Material
"
,
"
mDataProp
"
:
"
descripcionMaterial
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
600px
"
},
{
"
sTitle
"
:
"
Unidad de Medida
"
,
"
mDataProp
"
:
"
unidadMedida
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
400px
"
},
{
"
sTitle
"
:
"
Cdigo Iso Medida
"
,
"
mDataProp
"
:
"
codigoIsoMedida
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
400px
"
},
{
"
sTitle
"
:
"
Material Antiguo
"
,
"
mDataProp
"
:
"
materialAntiguo
"
,
"
bSearchable
"
:
true
,
sWidth
:
"
400px
"
}
]
});
var
oTable
=
null
;
oTable
=
$
(
'
#cataMaterial
'
).
DataTable
({
autoWidth
:
false
,
language
:
{
processing
:
"
Procesando...
"
,
lengthMenu
:
"
Mostrar _MENU_ registros
"
,
zeroRecords
:
"
Sin eventos encontrados
"
,
emptyTable
:
"
Sin eventos encontrados
"
,
info
:
"
Mostrando _START_ al _END_ de _TOTAL_
"
,
infoEmpty
:
"
0 registros
"
,
infoFiltered
:
"
(filtrado de un total de _MAX_ registros)
"
,
search
:
"
Buscar:
"
,
thousands
:
"
,
"
,
loadingRecords
:
"
Cargando...
"
,
paginate
:
{
first
:
"
Primero
"
,
last
:
"
Último
"
,
next
:
"
Siguiente
"
,
previous
:
"
Anterior
"
}
},
pageLength
:
10
,
info
:
true
,
filter
:
true
,
ordering
:
false
,
paging
:
true
,
pagingType
:
"
full_numbers
"
,
order
:
[],
ajax
:
{
url
:
"
indexlistadoMateriales
"
,
dataSrc
:
""
},
columns
:
[
{
title
:
"
Código SAP
"
,
data
:
"
codigoSap
"
,
searchable
:
true
,
width
:
"
90px
"
},
{
title
:
"
Descripcin Material
"
,
data
:
"
descripcionMaterial
"
,
searchable
:
true
,
width
:
"
60px
"
},
{
title
:
"
Unidad de Medida
"
,
data
:
"
unidadMedida
"
,
searchable
:
true
,
width
:
"
40px
"
},
{
title
:
"
Cdigo Iso Medida
"
,
data
:
"
codigoIsoMedida
"
,
searchable
:
true
,
width
:
"
40px
"
},
{
title
:
"
Material Antiguo
"
,
data
:
"
materialAntiguo
"
,
searchable
:
true
,
width
:
"
40px
"
}
]
});
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment