Commit 8d1d0638269c2ddd62d746554421fb0ebce3be9e
1 parent
68e1a5ef7c
Exists in
master
arreglado algunos fallos y bugs
Showing
6 changed files
with
13 additions
and
18 deletions
 
Show diff stats
app/config/config.yml
src/AppBundle/Controller/AdscripcionController.php
| @@ -460,6 +460,7 @@ class AdscripcionController extends Controller | @@ -460,6 +460,7 @@ class AdscripcionController extends Controller | ||
| 460 | 'idServicioCe' => 4), | 460 | 'idServicioCe' => 4), | 
| 461 | array('id' => 'DESC') | 461 | array('id' => 'DESC') | 
| 462 | ); | 462 | ); | 
| 463 | + $pid = false; | ||
| 463 | if($serv) { | 464 | if($serv) { | 
| 464 | //si el servicio está cadudado, debe solicitar uno nuevo | 465 | //si el servicio está cadudado, debe solicitar uno nuevo | 
| 465 | if ($serv->getIdEstatus()->getId() == 5) { | 466 | if ($serv->getIdEstatus()->getId() == 5) { | 
| @@ -878,7 +879,7 @@ class AdscripcionController extends Controller | @@ -878,7 +879,7 @@ class AdscripcionController extends Controller | ||
| 878 | 'idRolInstitucion' => $adscripcion->getIdRolInstitucion()->getId() | 879 | 'idRolInstitucion' => $adscripcion->getIdRolInstitucion()->getId() | 
| 879 | )); | 880 | )); | 
| 880 | 881 | ||
| 881 | - return $this->redirect($this->generateUrl('cea_adscripcion_show', array('id' => $serviciosAdscripcion->getId()))); | 882 | + return $this->redirect($this->generateUrl('aja', array('id' => $serviciosAdscripcion->getId()))); | 
| 882 | 883 | ||
| 883 | } | 884 | } | 
| 884 | 885 | 
src/AppBundle/Controller/AjaxController.php
src/AppBundle/Controller/AppController.php
| @@ -64,7 +64,7 @@ class AppController extends Controller { | @@ -64,7 +64,7 @@ class AppController extends Controller { | ||
| 64 | ); | 64 | ); | 
| 65 | $em = $this->getDoctrine()->getManager(); | 65 | $em = $this->getDoctrine()->getManager(); | 
| 66 | if(!$pida){ | 66 | if(!$pida){ | 
| 67 | - $this->addFlash('danger', 'Estimado Docente Mientras se verifica su adscripción, le solicitamos que por favor cree su PIDA.'); | 67 | + $this->addFlash('warning', 'Estimado Docente Mientras se verifica su adscripción, le solicitamos que por favor cree su PIDA.'); | 
| 68 | return $this->redirect($this->generateUrl('solicitud_pida')); | 68 | return $this->redirect($this->generateUrl('solicitud_pida')); | 
| 69 | }else{ | 69 | }else{ | 
| 70 | $caducidad = $this->getDoctrine()->getRepository("AppBundle:PidaCaducidad")->findOneByIdDocenteServicio($pida); | 70 | $caducidad = $this->getDoctrine()->getRepository("AppBundle:PidaCaducidad")->findOneByIdDocenteServicio($pida); | 
src/AppBundle/Controller/AscensoController.php
| @@ -708,7 +708,7 @@ class AscensoController extends Controller | @@ -708,7 +708,7 @@ class AscensoController extends Controller | ||
| 708 | $em->persist($serviciosAscenso); | 708 | $em->persist($serviciosAscenso); | 
| 709 | $em->persist($ascenso); | 709 | $em->persist($ascenso); | 
| 710 | $em->flush(); | 710 | $em->flush(); | 
| 711 | - | 711 | + | 
| 712 | $message = \Swift_Message::newInstance() | 712 | $message = \Swift_Message::newInstance() | 
| 713 | ->setSubject('Resultado Ascenso CEA@UBV') | 713 | ->setSubject('Resultado Ascenso CEA@UBV') | 
| 714 | ->setFrom('wilmer.ramones@gmail.com') | 714 | ->setFrom('wilmer.ramones@gmail.com') | 
| @@ -724,23 +724,13 @@ class AscensoController extends Controller | @@ -724,23 +724,13 @@ class AscensoController extends Controller | ||
| 724 | ) | 724 | ) | 
| 725 | ), | 725 | ), | 
| 726 | 'text/html' | 726 | 'text/html' | 
| 727 | - ) | 727 | + ) | 
| 728 | ; | 728 | ; | 
| 729 | $this->get('mailer')->send($message); | 729 | $this->get('mailer')->send($message); | 
| 730 | - | 730 | + | 
| 731 | $this->addFlash('notice', 'Solicitud Actualizada Correctamente, hemos enviado un correo al docente notificandole los cambios.'); | 731 | $this->addFlash('notice', 'Solicitud Actualizada Correctamente, hemos enviado un correo al docente notificandole los cambios.'); | 
| 732 | - | ||
| 733 | - $escala = $this->getDoctrine()->getRepository('AppBundle:DocenteEscala')->findBy(array( | ||
| 734 | - 'idRolInstitucion' => $ascenso->getIdRolInstitucion()->getId() | ||
| 735 | - )); | ||
| 736 | - | ||
| 737 | - $antiguedad = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->findOneBy(array( | ||
| 738 | - 'idRolInstitucion' => $this->getUser()->getIdRolInstitucion(), | ||
| 739 | - 'idServicioCe' => 1 | ||
| 740 | - )); | ||
| 741 | - | ||
| 742 | - $pida = $this->getDoctrine()->getRepository('AppBundle:AdscripcionPida')->findOneByIdRolInstitucion($serviciosAscenso->getIdRolInstitucion()); | ||
| 743 | - $docente = $this->getDoctrine()->getRepository("AppBundle:RolInstitucion")->findOneById($ascenso->getIdRolInstitucion()->getId()); | 732 | + | 
| 733 | + | ||
| 744 | return $this->redirect($this->generateUrl('cea_ascenso_show', array('id' => $ascenso->getId()))); | 734 | return $this->redirect($this->generateUrl('cea_ascenso_show', array('id' => $ascenso->getId()))); | 
| 745 | 735 | ||
| 746 | } | 736 | } | 
src/AppBundle/Controller/EstadoAcademicoController.php
| @@ -117,6 +117,7 @@ class EstadoAcademicoController extends Controller { | @@ -117,6 +117,7 @@ class EstadoAcademicoController extends Controller { | ||
| 117 | $adscripcion = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findOneByIdRolInstitucion($servicio->getIdRolInstitucion()); | 117 | $adscripcion = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findOneByIdRolInstitucion($servicio->getIdRolInstitucion()); | 
| 118 | 118 | ||
| 119 | return $this->render('cea/servicios_mostar.html.twig', array( | 119 | return $this->render('cea/servicios_mostar.html.twig', array( | 
| 120 | + 'docente' => $servicio->getIdRolInstitucion(), | ||
| 120 | 'estado_academico' => $ea, | 121 | 'estado_academico' => $ea, | 
| 121 | 'servicio' => $servicio, | 122 | 'servicio' => $servicio, | 
| 122 | )); | 123 | )); |