Commit 0601348afe3fbfd831211f5a4c7ed118c60b297c
1 parent
54f7d8aac6
Exists in
master
corregido el error al ascender por segunda vez; corregido el documento a mostar …
…de acuerdo con la escala para ascender; se muestran todos los tipos de ascenso en la adscripcion; no permite ascender más si hemos llegado a titular
Showing
5 changed files
with
164 additions
and
88 deletions
Show diff stats
app/Resources/views/cea/reconocimiento_escala_mostrar.html.twig
| ... | ... | @@ -104,7 +104,21 @@ |
| 104 | 104 | </div> |
| 105 | 105 | {% else %} |
| 106 | 106 | |
| 107 | + {% if escalafones == "ASISTENTE" %} | |
| 108 | + <div class="col-xs-4"> | |
| 109 | + <div class="thumbnail"> | |
| 110 | + <a href="{{asset('uploads/ascenso/'~ adscripcion.asistente)}}" data-lightbox="adscripcion"> | |
| 111 | + <img src="{{ asset('uploads/ascenso/thumb/'~ adscripcion.asistente) }}" /> | |
| 112 | + </a> | |
| 113 | + <div class="caption"> | |
| 114 | + <p>Constancia de Aprobación de Ascenso.</p> | |
| 115 | + </div> | |
| 116 | + </div> | |
| 117 | + </div> | |
| 118 | + {% endif %} | |
| 107 | 119 | |
| 120 | + | |
| 121 | + {% if escalafones == "AGREGADO" %} | |
| 108 | 122 | <div class="col-xs-4"> |
| 109 | 123 | <div class="thumbnail"> |
| 110 | 124 | <a href="{{asset('uploads/ascenso/'~ adscripcion.agreado)}}" data-lightbox="adscripcion"> |
| ... | ... | @@ -115,6 +129,35 @@ |
| 115 | 129 | </div> |
| 116 | 130 | </div> |
| 117 | 131 | </div> |
| 132 | + {% endif %} | |
| 133 | + | |
| 134 | + | |
| 135 | + {% if escalafones == "ASOCIADO" %} | |
| 136 | + <div class="col-xs-4"> | |
| 137 | + <div class="thumbnail"> | |
| 138 | + <a href="{{asset('uploads/ascenso/'~ adscripcion.asociado)}}" data-lightbox="adscripcion"> | |
| 139 | + <img src="{{ asset('uploads/ascenso/thumb/'~ adscripcion.asociado) }}" /> | |
| 140 | + </a> | |
| 141 | + <div class="caption"> | |
| 142 | + <p>Constancia de Aprobación de Ascenso.</p> | |
| 143 | + </div> | |
| 144 | + </div> | |
| 145 | + </div> | |
| 146 | + {% endif %} | |
| 147 | + | |
| 148 | + | |
| 149 | + {% if escalafones == "TITULAR" %} | |
| 150 | + <div class="col-xs-4"> | |
| 151 | + <div class="thumbnail"> | |
| 152 | + <a href="{{asset('uploads/ascenso/'~ adscripcion.titular)}}" data-lightbox="adscripcion"> | |
| 153 | + <img src="{{ asset('uploads/ascenso/thumb/'~ adscripcion.titular) }}" /> | |
| 154 | + </a> | |
| 155 | + <div class="caption"> | |
| 156 | + <p>Constancia de Aprobación de Ascenso.</p> | |
| 157 | + </div> | |
| 158 | + </div> | |
| 159 | + </div> | |
| 160 | + {% endif %} | |
| 118 | 161 | |
| 119 | 162 | |
| 120 | 163 | ... | ... |
app/Resources/views/cea/servicios.html.twig
| ... | ... | @@ -2,94 +2,97 @@ |
| 2 | 2 | |
| 3 | 3 | {%block body %} |
| 4 | 4 | <div class="container"> |
| 5 | - <div class="widget widget-table action-table"> | |
| 5 | + <div class="widget widget-table action-table"> | |
| 6 | 6 | <div class="widget-header"> <i class="icon-th-list"></i> |
| 7 | - <h3>Solicitudes al CEA con Estatus {{ estatus_servicio }}</h3> | |
| 7 | + <h3>Solicitudes al CEA con Estatus {{ estatus_servicio }}</h3> | |
| 8 | 8 | </div> |
| 9 | 9 | <!-- /widget-header --> |
| 10 | 10 | <div class="widget-content"> |
| 11 | - <table class="table table-striped table-bordered"> | |
| 12 | - <thead> | |
| 13 | - <tr> | |
| 14 | - <th> Id </th> | |
| 15 | - <th> Datos del Docente </th> | |
| 16 | - <th> Tipo de Solicitud</th> | |
| 17 | - <th> Area / PfG Docente</th> | |
| 18 | - <th> Eje del Docente</th> | |
| 19 | - <th> Estado del Eje</th> | |
| 20 | - <th> Acciones</th> | |
| 21 | - </tr> | |
| 22 | - </thead> | |
| 23 | - <tbody> | |
| 24 | - {%for servicio in servicios %} | |
| 25 | - {% if not is_granted('ROLE_COORDINADOR_NACIONAL') %} | |
| 26 | - {% if servicio.idRolInstitucion.idInstitucion.idEjeParroquia.idEje == app.user.idRolInstitucion.idInstitucion.idEjeParroquia.idEje %} | |
| 27 | - <tr> | |
| 28 | - <td>{{servicio.id}}</td> | |
| 29 | - <td> | |
| 30 | - {{servicio.idRolInstitucion.idRol.idPersona.PrimerNombre}} | |
| 31 | - {{servicio.idRolInstitucion.idRol.idPersona.PrimerApellido}} | |
| 32 | - ( {{servicio.idRolInstitucion}} ) | |
| 33 | - | |
| 34 | - | |
| 35 | - </td> | |
| 36 | - <td>{{servicio.idRolInstitucion}}</td> | |
| 37 | - <td> | |
| 38 | - {{servicio.idRolInstitucion.IdRol.IdAreaInstitucion.nombre}} | |
| 39 | - </td> | |
| 40 | - <td> | |
| 41 | - {{servicio.idRolInstitucion.idInstitucion.idEjeParroquia.IdEje}} | |
| 42 | - </td> | |
| 43 | - <td>{{servicio.idRolInstitucion.idInstitucion.idEjeParroquia.idParroquia.idMunicipio.idEstado}} </td> | |
| 44 | - <td> | |
| 45 | - <a href="{{ path('cea_servicio_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | |
| 46 | - | |
| 47 | - </td> | |
| 48 | - | |
| 49 | - </tr> | |
| 50 | - {%endif%} | |
| 51 | - {%else%} | |
| 52 | - | |
| 11 | + <table class="table table-striped table-bordered"> | |
| 12 | + <thead> | |
| 13 | + <tr> | |
| 14 | + <th> Id </th> | |
| 15 | + <th> Datos del Docente </th> | |
| 16 | + <th> Tipo de Solicitud</th> | |
| 17 | + <th> Area / PfG Docente</th> | |
| 18 | + <th> Eje del Docente</th> | |
| 19 | + <th> Estado del Eje</th> | |
| 20 | + <th> Acciones</th> | |
| 21 | + </tr> | |
| 22 | + </thead> | |
| 23 | + <tbody> | |
| 24 | + {%for servicio in servicios %} | |
| 25 | + {% if not is_granted('ROLE_DIRECTOR_NACIONAL') %} | |
| 26 | + {% if servicio.idRolInstitucion.idInstitucion.idEjeParroquia.idEje == app.user.idRolInstitucion.idInstitucion.idEjeParroquia.idEje %} | |
| 27 | + <tr> | |
| 28 | + <td>{{servicio.id}}</td> | |
| 29 | + <td> | |
| 30 | + {{servicio.idRolInstitucion.idRol.idPersona.PrimerNombre}} | |
| 31 | + {{servicio.idRolInstitucion.idRol.idPersona.PrimerApellido}} | |
| 32 | + ( {{servicio.idRolInstitucion}} ) | |
| 33 | + </td> | |
| 34 | + <td>{{servicio.idServicioCe.nombre}}</td> | |
| 35 | + <td> | |
| 36 | + {{servicio.idRolInstitucion.IdRol.IdAreaInstitucion.nombre}} | |
| 37 | + </td> | |
| 38 | + <td> | |
| 39 | + {{servicio.idRolInstitucion.idInstitucion.idEjeParroquia.IdEje}} | |
| 40 | + </td> | |
| 41 | + <td>{{servicio.idRolInstitucion.idInstitucion.idEjeParroquia.idParroquia.idMunicipio.idEstado}} </td> | |
| 42 | + <td> | |
| 43 | + {% if servicio.idServicioCe.id == 1 %} | |
| 44 | + <a href="{{ path('cea_servicio_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | |
| 45 | + {% elseif servicio.idServicioCe.id == 2 %} | |
| 46 | + <a href="{{ path('cea_adscripcion_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | |
| 47 | + {% elseif servicio.idServicioCe.id == 3 %} | |
| 48 | + <a href="{{ path('cea_estado_academico_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | |
| 49 | + {% elseif servicio.idServicioCe.id == 5 %} | |
| 50 | + <a href="{{ path('cea_ascenso_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | |
| 51 | + {% elseif servicio.idServicioCe.id == 6 %} | |
| 52 | + <a href="{{ path('cea_reconocimientoEscala_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | |
| 53 | + {% endif %} | |
| 54 | + </td> | |
| 55 | + </tr> | |
| 56 | + {% endif %} | |
| 57 | + {%else%} | |
| 53 | 58 | <tr> |
| 54 | - <td>{{servicio.id}}</td> | |
| 55 | - <td> | |
| 56 | - {{servicio.idRolInstitucion.idRol.idPersona.PrimerNombre}} | |
| 57 | - {{servicio.idRolInstitucion.idRol.idPersona.PrimerApellido}} | |
| 58 | - ( {{servicio.idRolInstitucion}} ) | |
| 59 | - | |
| 60 | - | |
| 61 | - </td> | |
| 62 | - <td>{{servicio.idServicioCe.nombre}}</td> | |
| 63 | - <td> | |
| 64 | - {{servicio.idRolInstitucion.IdRol.IdAreaInstitucion.nombre}} | |
| 65 | - </td> | |
| 66 | - <td> | |
| 67 | - {{servicio.idRolInstitucion.idInstitucion.idEjeParroquia.IdEje}} | |
| 68 | - </td> | |
| 69 | - <td>{{servicio.idRolInstitucion.idInstitucion.idEjeParroquia.idParroquia.idMunicipio.idEstado}} </td> | |
| 70 | - <td> | |
| 71 | - {% if servicio.idServicioCe.id == 1 %} | |
| 72 | - <a href="{{ path('cea_servicio_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | |
| 73 | - {% elseif servicio.idServicioCe.id == 2 %} | |
| 74 | - <a href="{{ path('cea_adscripcion_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | |
| 75 | - {% elseif servicio.idServicioCe.id == 3 %} | |
| 76 | - <a href="{{ path('cea_estado_academico_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | |
| 77 | - {% elseif servicio.idServicioCe.id == 5 %} | |
| 78 | - <a href="{{ path('cea_ascenso_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | |
| 79 | - {% elseif servicio.idServicioCe.id == 6 %} | |
| 80 | - <a href="{{ path('cea_reconocimientoEscala_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | |
| 81 | - {% endif %} | |
| 82 | - </td> | |
| 83 | - </tr> | |
| 84 | - {%endif%} | |
| 85 | - {% endfor %} | |
| 86 | - | |
| 87 | - </tbody> | |
| 88 | - </table> | |
| 59 | + <td>{{servicio.id}}</td> | |
| 60 | + <td> | |
| 61 | + {{servicio.idRolInstitucion.idRol.idPersona.PrimerNombre}} | |
| 62 | + {{servicio.idRolInstitucion.idRol.idPersona.PrimerApellido}} | |
| 63 | + ( {{servicio.idRolInstitucion}} ) | |
| 64 | + </td> | |
| 65 | + <td>{{servicio.idServicioCe.nombre}}</td> | |
| 66 | + <td> | |
| 67 | + {{servicio.idRolInstitucion.IdRol.IdAreaInstitucion.nombre}} | |
| 68 | + </td> | |
| 69 | + <td> | |
| 70 | + {{servicio.idRolInstitucion.idInstitucion.idEjeParroquia.IdEje}} | |
| 71 | + </td> | |
| 72 | + <td>{{servicio.idRolInstitucion.idInstitucion.idEjeParroquia.idParroquia.idMunicipio.idEstado}} </td> | |
| 73 | + <td> | |
| 74 | + {% if servicio.idServicioCe.id == 1 %} | |
| 75 | + <a href="{{ path('cea_servicio_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | |
| 76 | + {% elseif servicio.idServicioCe.id == 2 %} | |
| 77 | + <a href="{{ path('cea_adscripcion_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | |
| 78 | + {% elseif servicio.idServicioCe.id == 3 %} | |
| 79 | + <a href="{{ path('cea_estado_academico_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | |
| 80 | + {% elseif servicio.idServicioCe.id == 5 %} | |
| 81 | + <a href="{{ path('cea_ascenso_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | |
| 82 | + {% elseif servicio.idServicioCe.id == 6 %} | |
| 83 | + <a href="{{ path('cea_reconocimientoEscala_show', { 'id': servicio.id }) }}" class="btn btn-xs btn-info"><i class="fa fa-eye"> </i></a> | |
| 84 | + {% endif %} | |
| 85 | + </td> | |
| 86 | + </tr> | |
| 87 | + {%endif%} | |
| 88 | + {% endfor %} | |
| 89 | + | |
| 90 | + </tbody> | |
| 91 | + </table> | |
| 89 | 92 | </div> |
| 90 | 93 | <!-- /widget-content --> |
| 91 | - </div> | |
| 92 | - <!-- /widget --> | |
| 93 | - </div> | |
| 94 | + </div> | |
| 95 | + <!-- /widget --> | |
| 96 | + </div> | |
| 94 | 97 | <!-- /container --> |
| 95 | 98 | {% endblock %} | ... | ... |
app/Resources/views/cea/solicitudes_mostar.html.twig
| ... | ... | @@ -172,7 +172,34 @@ |
| 172 | 172 | <img src="{{ asset('uploads/ascenso/thumb/'~ adscripcion.agreado) }}" /> |
| 173 | 173 | </a> |
| 174 | 174 | <div class="caption"> |
| 175 | - <p>Ascenso Asistente</p> | |
| 175 | + <p>Ascenso Agregado</p> | |
| 176 | + </div> | |
| 177 | + </div> | |
| 178 | + </div> | |
| 179 | + {% endif %} | |
| 180 | + | |
| 181 | + | |
| 182 | + {% if adscripcion.asociado is not null %} | |
| 183 | + <div class="col-xs-4"> | |
| 184 | + <div class="thumbnail"> | |
| 185 | + <a href="{{asset('uploads/ascenso/'~ adscripcion.asociado)}}" data-lightbox="adscripcion"> | |
| 186 | + <img src="{{ asset('uploads/ascenso/thumb/'~ adscripcion.asociado) }}" /> | |
| 187 | + </a> | |
| 188 | + <div class="caption"> | |
| 189 | + <p>Ascenso Asociado</p> | |
| 190 | + </div> | |
| 191 | + </div> | |
| 192 | + </div> | |
| 193 | + {% endif %} | |
| 194 | + | |
| 195 | + {% if adscripcion.titular is not null %} | |
| 196 | + <div class="col-xs-4"> | |
| 197 | + <div class="thumbnail"> | |
| 198 | + <a href="{{asset('uploads/ascenso/'~ adscripcion.titular)}}" data-lightbox="adscripcion"> | |
| 199 | + <img src="{{ asset('uploads/ascenso/thumb/'~ adscripcion.titular) }}" /> | |
| 200 | + </a> | |
| 201 | + <div class="caption"> | |
| 202 | + <p>Ascenso Titular</p> | |
| 176 | 203 | </div> |
| 177 | 204 | </div> |
| 178 | 205 | </div> | ... | ... |
src/AppBundle/Controller/AppController.php
| ... | ... | @@ -78,7 +78,7 @@ class AppController extends Controller { |
| 78 | 78 | if ($request->getMethod() != 'POST') { |
| 79 | 79 | $servicios = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->findBy(array( |
| 80 | 80 | 'idEstatus' => $estatus, |
| 81 | - )); | |
| 81 | + )); | |
| 82 | 82 | switch ($estatus){ |
| 83 | 83 | case 1: |
| 84 | 84 | $mensaje = "activas"; | ... | ... |
src/AppBundle/Controller/AscensoController.php
| ... | ... | @@ -57,6 +57,8 @@ class AscensoController extends Controller |
| 57 | 57 | $ascenso = new Ascenso(); |
| 58 | 58 | if($siguiente < 6){ |
| 59 | 59 | $nueva_escala = $this->getDoctrine()->getRepository('AppBundle:Escalafones')->findOneById($siguiente); |
| 60 | + }else{ | |
| 61 | + return $this->redirect($this->generateUrl('servicios_index')); | |
| 60 | 62 | } |
| 61 | 63 | |
| 62 | 64 | |
| ... | ... | @@ -152,7 +154,7 @@ class AscensoController extends Controller |
| 152 | 154 | ); |
| 153 | 155 | thumbnail2($nombrePertinencia, $this->container->getParameter('ascenso_directory'), $this->container->getParameter('ascenso_thumb_directory')); |
| 154 | 156 | $ascenso->setPertinencia($nombrePertinencia); |
| 155 | - $ascenso->setIdLineaInvestigacion($form->get('lineas_investigacion')->getData()); | |
| 157 | + //$ascenso->setIdLineaInvestigacion($form->get('lineas_investigacion')->getData()); | |
| 156 | 158 | |
| 157 | 159 | } |
| 158 | 160 | |
| ... | ... | @@ -404,7 +406,8 @@ class AscensoController extends Controller |
| 404 | 406 | //$adscripciones = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findOneById($adscripcion->getId()); |
| 405 | 407 | $serviciosAscenso = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->findOneBy(array( |
| 406 | 408 | 'idRolInstitucion' => $ascenso->getIdRolInstitucion(), |
| 407 | - 'idServicioCe' => 5 | |
| 409 | + 'idServicioCe' => 5, | |
| 410 | + 'idEstatus' => 2 | |
| 408 | 411 | )); |
| 409 | 412 | |
| 410 | 413 | |
| ... | ... | @@ -495,8 +498,8 @@ class AscensoController extends Controller |
| 495 | 498 | if ($this->get('request')->request->get('tipo') == 2 ){ |
| 496 | 499 | $ServicioAscenso = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->findOneBy(array( |
| 497 | 500 | 'idRolInstitucion' => $this->getUser()->getIdRolInstitucion(), |
| 498 | - 'idServicioCe' => 6, | |
| 499 | - 'idEstatus' => 2 | |
| 501 | + 'idServicioCe' => 5, | |
| 502 | + 'idEstatus' => 1 | |
| 500 | 503 | )); |
| 501 | 504 | |
| 502 | 505 | ... | ... |