Commit 0ea063e2cef8d8f1f76d239dadcb18f7f93d0eb0
1 parent
4f04c720ca
Exists in
master
eliminado ruta innecesaria del controlador de ascenso debido a que se paso el co…
…ntinido a la funcion de ascenso show
Showing
1 changed file
with
0 additions
and
60 deletions
Show diff stats
src/AppBundle/Controller/AscensoController.php
| ... | ... | @@ -751,67 +751,7 @@ class AscensoController extends Controller |
| 751 | 751 | |
| 752 | 752 | |
| 753 | 753 | |
| 754 | - | |
| 755 | - /** | |
| 756 | - * Encuentra y muestra una entidad de tipo Adscripción. | |
| 757 | - * | |
| 758 | - * @Route("/reconocimiento/escala/{id}/{escala}/{estatus}", name="cea_escala_actualizar") | |
| 759 | - * @Method({"GET", "POST"}) | |
| 760 | - * @Security("has_role('ROLE_COORDINADOR_REGIONAL')") | |
| 761 | - */ | |
| 762 | - public function actualizarEscalaAction(DocenteServicio $servicio, $escala, $estatus, Request $request) | |
| 763 | - { | |
| 764 | - $escala_docente = new DocenteEscala(); | |
| 765 | - if ($request->getMethod() == 'POST') { | |
| 766 | - $escala_docente->setIdRolInstitucion($servicio->getIdRolInstitucion()); | |
| 767 | - $escala_docente->setidEscala($this->getDoctrine()->getRepository('AppBundle:Escalafones')->findOneById($this->get('request')->request->get('escala'))); | |
| 768 | - $escala_docente->setFechaEscala(new \DateTime($this->get('request')->request->get('fecha_escala'))); | |
| 769 | - $escala_docente->setIdTipoEscala($this->getDoctrine()->getRepository('AppBundle:TipoAscenso')->findOneById($this->get('request')->request->get('tipo'))); | |
| 770 | - | |
| 771 | - | |
| 772 | - $em = $this->getDoctrine()->getManager(); | |
| 773 | - $em->persist($escala_docente); | |
| 774 | - | |
| 775 | - if ($this->get('request')->request->get('tipo') == 2 ){ | |
| 776 | - $ServicioAscenso = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->findOneBy(array( | |
| 777 | - 'idRolInstitucion' => $servicio->getIdRolInstitucion(), | |
| 778 | - 'idServicioCe' => 5, | |
| 779 | - 'idEstatus' => 1 | |
| 780 | - )); | |
| 781 | - | |
| 782 | - | |
| 783 | - $ascenso = $this->getDoctrine()->getRepository('AppBundle:Ascenso')->findOneBy(array( | |
| 784 | - 'idRolInstitucion' => $servicio->getIdRolInstitucion(), | |
| 785 | - 'idEstatus' => 1 | |
| 786 | - )); | |
| 787 | - | |
| 788 | - | |
| 789 | - $ServicioAscenso->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(4)); | |
| 790 | - $ascenso->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(4)); | |
| 791 | - $em->persist($ServicioAscenso); | |
| 792 | - $em->persist($ascenso); | |
| 793 | - } | |
| 794 | - | |
| 795 | - $documento = $em->getRepository("AppBundle:DocumentosVerificados")->findOneBy(array( | |
| 796 | - 'idRolInstitucion' => $servicio->getIdRolInstitucion(), | |
| 797 | - 'idServicio' => $servicio->getId(), | |
| 798 | - 'idEstatus' => 2 | |
| 799 | - )); | |
| 800 | 754 | |
| 801 | - $documento->setIdEstatus($em->getRepository("AppBundle:Estatus")->findOneById($this->get('request')->request->get('reconocimiento'))); | |
| 802 | - | |
| 803 | - $servicio->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(4)); | |
| 804 | - $em->persist($servicio); | |
| 805 | - $em->persist($documento); | |
| 806 | - | |
| 807 | - $em->flush(); | |
| 808 | - } | |
| 809 | - | |
| 810 | - | |
| 811 | - $this->addFlash('success', 'Escala Agregada Satisfactoriamente'); | |
| 812 | - return $this->redirect($this->generateUrl('cea_index')); | |
| 813 | - | |
| 814 | - } | |
| 815 | 755 | |
| 816 | 756 | |
| 817 | 757 | /** | ... | ... |