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
076158ac
Commit
076158ac
authored
Oct 07, 2024
by
Jose Francisco Montiel Jimenez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se agregan cambios para permisos de creacion de contrato
parent
9892f853
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
4 deletions
+23
-4
front/src/main/webapp/js/common/perfil/perfilController.js
front/src/main/webapp/js/common/perfil/perfilController.js
+1
-0
front/src/main/webapp/js/dda/contrato/generales/validacionesEnGenerales.js
...bapp/js/dda/contrato/generales/validacionesEnGenerales.js
+19
-3
front/src/main/webapp/js/dda/contrato/listado/listado.js
front/src/main/webapp/js/dda/contrato/listado/listado.js
+1
-0
front/src/main/webapp/jsp/dda/contrato/generales/generales.jsp
.../src/main/webapp/jsp/dda/contrato/generales/generales.jsp
+2
-1
No files found.
front/src/main/webapp/js/common/perfil/perfilController.js
View file @
076158ac
...
...
@@ -436,6 +436,7 @@ PerfilController.prototype.ejecutarPerfil = function(pmn) {
$
(
"
#pEliminarFalse
"
).
css
(
"
display
"
,
"
block
"
);
$
(
"
#pDetalleTrue
"
).
css
(
"
display
"
,
"
none
"
);
$
(
"
#pDetalleFalse
"
).
css
(
"
display
"
,
"
block
"
);
console
.
log
(
'
permisoSi:
'
+
permisoSi
);
if
(
permisoSi
===
0
){
window
.
location
.
href
=
'
/dla/jsp/errorPermiso.jsp
'
;
}
...
...
front/src/main/webapp/js/dda/contrato/generales/validacionesEnGenerales.js
View file @
076158ac
$
().
ready
(
function
()
{
if
(
!
$
(
"
#idContrato
"
).
val
())
{
var
perfilController
=
new
PerfilController
();
switch
(
$
(
"
#tipoContrato
"
).
val
())
{
case
'
1
'
:
perfilController
.
ejecutarPerfil
(
'
61
'
);
break
;
case
'
2
'
:
perfilController
.
ejecutarPerfil
(
'
104
'
);
break
;
case
'
3
'
:
perfilController
.
ejecutarPerfil
(
'
118
'
);
break
;
default
:
break
;
}
}
validaChecksIni
();
callExponerApartadosAction
();
$
(
"
#forma
"
).
validate
();
...
...
@@ -7,7 +23,6 @@ $().ready(function() {
$
(
"
#divFechaAutorizacion
"
).
hide
();
$
(
"
#bSkipWorkflow
"
).
hide
();
var
perfil
=
parseInt
(
$
(
"
#perfil
"
).
val
());
if
(
perfil
===
1
)
{
$
(
"
#bSkipWorkflow
"
).
css
(
"
display
"
,
"
inline
"
);
...
...
@@ -542,6 +557,7 @@ Combobox.setCombos(comboTypes, comboTypesSelecc);
function
seleccionaTodo
(
pmn
)
{
var
si
=
false
;
console
.
log
(
pmn
);
switch
(
pmn
)
{
case
'
62
'
:
si
=
seleccionandoTodo
(
'
62
'
,
'
105
'
,
'
119
'
);
...
...
@@ -562,7 +578,7 @@ function seleccionaTodo(pmn) {
si
=
validaTipoContrato
(
'
70
'
,
'
114
'
,
'
128
'
);
break
;
case
'
67
'
:
si
=
validaTipoContrato
(
'
67
'
,
'
71
'
,
'
115
'
);
si
=
validaTipoContrato
(
'
67
'
,
'
67
'
,
'
67
'
);
break
;
case
'
66
'
:
si
=
validaTipoContrato
(
'
66
'
,
'
111
'
,
'
125
'
);
...
...
front/src/main/webapp/js/dda/contrato/listado/listado.js
View file @
076158ac
...
...
@@ -42,6 +42,7 @@ function inicializarBotones(){
console
.
log
(
'
inicializa botones
'
);
$
(
"
#nuevo
"
).
click
(
function
()
{
console
.
log
(
'
pmn:
'
+
$
(
'
#pmn
'
).
val
());
$
.
post
(
contextPath
+
'
/contrato/listado/agregarEnmOAden.action
'
,
{
pmn
:
$
(
'
#pmn
'
).
val
(),
idMovimiento
:
parseInt
(
1
),
tipoContrato
:
tipoContrato
}
)
.
done
(
function
(
response
)
{
...
...
front/src/main/webapp/jsp/dda/contrato/generales/generales.jsp
View file @
076158ac
...
...
@@ -32,6 +32,7 @@
<input
type=
"hidden"
id=
"tipoContrato"
name=
"tipoContrato"
value=
"${tipoContrato}"
/>
<input
type=
"hidden"
id=
"expedienteUsuario"
name=
"expedienteUsuario"
value=
"${usuario.expediente}"
/>
<input
type=
"hidden"
id=
"idContrato"
name=
"idContrato"
value=
"${idContrato}"
/>
<input
type=
"hidden"
id=
"idMovimiento"
name=
"idMovimiento"
value=
"${idMovimiento}"
/>
<input
type=
"hidden"
id=
"ordenWF"
name=
"ordenWF"
value=
"${ordenWF}"
/>
<input
type=
"hidden"
id=
"pintaBoton"
name=
"pintaBoton"
value=
"${pintaBoton}"
/>
<input
type=
"hidden"
id=
"fechaInicioPadre"
name=
"fechaInicioPadre"
value=
"${fechaInicioPadre}"
/>
...
...
@@ -661,7 +662,7 @@
<s:if
test=
"estatus == 0"
>
<button
class=
"btn btn-success"
id=
"bCrear"
name=
"bCrear"
type=
"submit"
formaction=
"opcionesContrato_regCon"
value=
""
onclick=
"seleccionaTodo()"
>
Crear Contrato
</button>
onclick=
"seleccionaTodo(
'61'
)"
>
Crear Contrato
</button>
</s:if>
<s:if
test=
"idContrato != null"
>
...
...
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