-
-
-
-
-
-
-
-
-
-
-
-
+ {% for documento in docente.documentosVerificados %}
+ {% if documento.idServicio.id == servicio.id %}
+
-
-
+
+
-
Constancia Aval del NAI
-
-
-
-
-
-
-
-
-
-
-
-
-
Trabajo de Investigación / Tesis
-
-
-
-
- {% if ascenso.pertinencia is not null %}
-
-
-
-
-
-
-
Informe de Pertinencia de la Tesis
-
-
-
- {% endif %}
-
-
- {% if ascenso.aprobacion is not null %}
-
-
-
-
-
-
-
Acta de aprobación de la tesis
-
-
-
- {% endif %}
-
-
-
- {% if ascenso.curriculo is not null %}
-
-
-
-
-
-
-
Síntesis Curricular de los posibles Jurados
+
{{ documento.idTipoDocumentos.nombre }}
+
- {% endif %}
+ {% endif %}
+ {% endfor %}
+
diff --git a/src/AppBundle/Controller/AscensoController.php b/src/AppBundle/Controller/AscensoController.php
index 7bedb89..9cf11fb 100644
--- a/src/AppBundle/Controller/AscensoController.php
+++ b/src/AppBundle/Controller/AscensoController.php
@@ -128,9 +128,20 @@ class AscensoController extends Controller
$form->handleRequest($request);
- if ($form->isSubmitted() && $form->isValid()) {
+ if ($form->isSubmitted() && $form->isValid()) {
+ $em = $this->getDoctrine()->getManager();
+ //Crear la solicitud de Servicio
+ $servicios = new DocenteServicio();
+
+ $servicios->setIdRolInstitucion($this->getUser()->getIdRolInstitucion());
+ $servicios->setIdServicioCe($this->getDoctrine()->getRepository('AppBundle:ServiciosCe')->findOneById(5));
+ $servicios->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:estatus')->findOneById(2));
+
+ $em->persist($servicios);
+ $em->flush();
+
- $ascenso = new Ascenso();
+
// $file stores the uploaded PDF file
/** @var UploadedFile $constanciaTrabajo */
$constanciaTrabajo = $form->get('trabajo')->getData();
@@ -150,7 +161,6 @@ class AscensoController extends Controller
$nombreExpediente = md5(uniqid()).'.'.$constanciaExpediente->guessExtension();
$nombrePida = md5(uniqid()).'.'.$constanciaPida->guessExtension();
$nombreNai = md5(uniqid()).'.'.$constanciaNai->guessExtension();
- $nombreInvestigacion = md5(uniqid()).'.'.$constanciaInvestigacion->guessExtension();
// Guardar el archivo y crear la miniatura de cada uno
$constanciaTrabajo->move(
@@ -188,22 +198,27 @@ class AscensoController extends Controller
$nombreInvestigacion
);
thumbnail2($nombreInvestigacion, $this->container->getParameter('ascenso_directory'), $this->container->getParameter('ascenso_thumb_directory'));
- $ascenso->setInvestigacion($nombreInvestigacion);
+ verificar_documentos2($this->getUser()->getIdRolInstitucion(),15,2,$em,$nombreInvestigacion, $servicios);
}
- $em = $this->getDoctrine()->getManager();
- $ascenso->setTrabajo($nombreTrabajo);
- $ascenso->setExpediente($nombreExpediente);
+
+
+ verificar_documentos2($this->getUser()->getIdRolInstitucion(),1,2,$em,$nombreTrabajo, $servicios);
+ verificar_documentos2($this->getUser()->getIdRolInstitucion(),11,2,$em,$nombreExpediente, $servicios);
+ verificar_documentos2($this->getUser()->getIdRolInstitucion(),9,2,$em,$nombrePida, $servicios);
+ verificar_documentos2($this->getUser()->getIdRolInstitucion(),12,2,$em,$nombreNai, $servicios);
+
+ $ascenso = new Ascenso();
$ascenso->setIdRolInstitucion($this->getUser()->getIdRolInstitucion());
- $ascenso->setPida($nombrePida);
- $ascenso->setNai($nombreNai);
- $ascenso->setInvestigacion($nombreInvestigacion);
+
$ascenso->setTituloTrabajo($form->get('titulo_trabajo')->getData());
$ascenso->setTipoTrabajoInvestigacion($form->get('tipoTrabajoInvestigacion')->getData());
$ascenso->setTesisUbv($form->get('tesisUbv')->getData());
$ascenso->setNombreNucelo($form->get('nombreNucleo')->getData());
$ascenso->setIdEscalafones($nueva_escala);
$ascenso->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(2));
+ $em->persist($ascenso);
+ $em->flush();
$tutores = $form->get('tutores_ascenso')->getData();
@@ -221,7 +236,7 @@ class AscensoController extends Controller
$nombrePertinencia
);
thumbnail2($nombrePertinencia, $this->container->getParameter('ascenso_directory'), $this->container->getParameter('ascenso_thumb_directory'));
- $ascenso->setPertinencia($nombrePertinencia);
+ verificar_documentos2($this->getUser()->getIdRolInstitucion(),14,2,$em,$nombrePertinencia, $servicios);
//$ascenso->setIdLineaInvestigacion($form->get('lineas_investigacion')->getData());
}
@@ -236,7 +251,7 @@ class AscensoController extends Controller
$nombreAprobacion
);
thumbnail2($nombreAprobacion, $this->container->getParameter('ascenso_directory'), $this->container->getParameter('ascenso_thumb_directory'));
- $ascenso->setAprobacion($nombreAprobacion);
+ verificar_documentos2($this->getUser()->getIdRolInstitucion(),13,2,$em,$nombreAprobacion, $servicios);
//$ascenso->setIdLineaInvestigacion($form->get('lineas_investigacion')->getData());
}
@@ -255,22 +270,15 @@ class AscensoController extends Controller
$nombreCurriculo
);
//thumbnail2($nombreCurriculo, $this->container->getParameter('ascenso_directory'), $this->container->getParameter('ascenso_thumb_directory'));
- $ascenso->setCurriculo($nombreCurriculo);
+ verificar_documentos2($this->getUser()->getIdRolInstitucion(),16,2,$em,$nombreCurriculo, $servicios);
}
- //Crear la solicitud de Servicio
- $servicios = new DocenteServicio();
- $servicios->setIdRolInstitucion($this->getUser()->getIdRolInstitucion());
- $servicios->setIdServicioCe($this->getDoctrine()->getRepository('AppBundle:ServiciosCe')->findOneById(5));
- $servicios->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:estatus')->findOneById(2));
- $em->persist($servicios);
- $em->persist($ascenso);
//si realizó la solicitud usando la antiguedad, esta se formaliza
if($formalizarTiempo){
$servicioAntiguedad->setIdEstatus($this->getDoctrine()->getRepository("AppBundle:Estatus")->findOneById(4));
@@ -438,7 +446,10 @@ class AscensoController extends Controller
* @Security("has_role('ROLE_COORDINADOR_REGIONAL')")
*/
public function solicitudesAscensoShowAction(DocenteServicio $servicio)
- {
+ {
+
+
+ $docente = $this->getDoctrine()->getRepository("AppBundle:RolInstitucion")->findOneById($servicio->getIdRolInstitucion()->getId());
$escala = $this->getDoctrine()->getRepository('AppBundle:DocenteEscala')->findBy(array(
'idRolInstitucion' => $servicio->getIdRolInstitucion()->getId()
));
@@ -470,7 +481,8 @@ class AscensoController extends Controller
'escalas' => $escala,
'pida' => $pida,
'antiguedad' => $antiguedad,
- 'form' => $form->createView(),
+ 'form' => $form->createView(),
+ 'docente' => $docente
));
}
diff --git a/src/AppBundle/Entity/Ascenso.php b/src/AppBundle/Entity/Ascenso.php
index 6b25364..c1c44b8 100644
--- a/src/AppBundle/Entity/Ascenso.php
+++ b/src/AppBundle/Entity/Ascenso.php
@@ -50,74 +50,7 @@ class Ascenso
protected $idEscalafones;
- /**
- * @ORM\Column(type="string", nullable=false, options={"comment" = "ubicacion de la constancia de trabajo"})
- *
- * @Assert\NotBlank(message="Debe cargar su constancia de Trabajo, es obligatoria.")
- * @Assert\File(mimeTypes={ "application/pdf" })
- */
- private $trabajo;
-
-
- /**
- * @ORM\Column(type="string", nullable=false, options={"comment" = "ubicacion de la constancia de actualización de Expediente"})
- *
- * @Assert\NotBlank(message="debe cargar su constancia de actualización de expediente, es obligatorio.")
- * @Assert\File(mimeTypes={ "application/pdf" })
- */
- private $expediente;
-
-
- /**
- * @ORM\Column(type="string", nullable=false, options={"comment" = "ubicacion de la socialización del PIDA"})
- *
- * @Assert\NotBlank(message="debe cargar su constancia de socializacion del PIDA, es obligatorio.")
- * @Assert\File(mimeTypes={ "application/pdf" })
- */
- private $pida;
- /**
- * @ORM\Column(type="string", nullable=false, options={"comment" = "digital del documento aval del nucleo academico de investigacion"})
- *
- * @Assert\NotBlank(message="debe cargar su constnacia aval del NAI, es obligatorio.")
- * @Assert\File(mimeTypes={ "application/pdf" })
- */
- private $nai;
-
- /**
- * @ORM\Column(type="string", nullable=false, options={"comment" = "digital del documento de Trabajo de investigacion"})
- *
- * @Assert\NotBlank(message="debe cargar su Trabajo de investigacion, es obligatorio.")
- * @Assert\File(mimeTypes={ "application/pdf" })
- */
- private $investigacion;
-
-
- /**
- * @ORM\Column(type="string", nullable=true, options={"comment" = "ubicación del digital del informe de pertinencia en caso de ser tesis fuera de ubv"})
- *
- *
- * @Assert\File(mimeTypes={ "application/pdf" })
- */
- private $pertinencia;
-
-
- /**
- * @ORM\Column(type="string", nullable=true, options={"comment" = "ubicación del digital del informe de pertinencia en caso de ser tesis fuera de ubv"})
- *
- *
- * @Assert\File(mimeTypes={ "application/pdf" })
- */
- private $aprobacion;
-
-
- /**
- * @ORM\Column(type="string", nullable=true, options={"comment" = "ubicación del digital del curriculo de los posibles jurados"})
- *
- *
- * @Assert\File(mimeTypes={ "application/pdf" })
- */
- private $curriculo;
@@ -232,143 +165,7 @@ class Ascenso
return $this->id;
}
- /**
- * Set trabajo
- *
- * @param string $trabajo
- * @return Ascenso
- */
- public function setTrabajo($trabajo)
- {
- $this->trabajo = $trabajo;
-
- return $this;
- }
-
- /**
- * Get trabajo
- *
- * @return string
- */
- public function getTrabajo()
- {
- return $this->trabajo;
- }
-
- /**
- * Set expediente
- *
- * @param string $expediente
- * @return Ascenso
- */
- public function setExpediente($expediente)
- {
- $this->expediente = $expediente;
-
- return $this;
- }
-
- /**
- * Get expediente
- *
- * @return string
- */
- public function getExpediente()
- {
- return $this->expediente;
- }
-
- /**
- * Set pida
- *
- * @param string $pida
- * @return Ascenso
- */
- public function setPida($pida)
- {
- $this->pida = $pida;
-
- return $this;
- }
-
- /**
- * Get pida
- *
- * @return string
- */
- public function getPida()
- {
- return $this->pida;
- }
- /**
- * Set nai
- *
- * @param string $nai
- * @return Ascenso
- */
- public function setNai($nai)
- {
- $this->nai = $nai;
-
- return $this;
- }
-
- /**
- * Get nai
- *
- * @return string
- */
- public function getNai()
- {
- return $this->nai;
- }
-
- /**
- * Set investigacion
- *
- * @param string $investigacion
- * @return Ascenso
- */
- public function setInvestigacion($investigacion)
- {
- $this->investigacion = $investigacion;
-
- return $this;
- }
-
- /**
- * Get investigacion
- *
- * @return string
- */
- public function getInvestigacion()
- {
- return $this->investigacion;
- }
-
- /**
- * Set pertinencia
- *
- * @param string $pertinencia
- * @return Ascenso
- */
- public function setPertinencia($pertinencia)
- {
- $this->pertinencia = $pertinencia;
-
- return $this;
- }
-
- /**
- * Get pertinencia
- *
- * @return string
- */
- public function getPertinencia()
- {
- return $this->pertinencia;
- }
/**
* Set tituloTrabajo
@@ -598,28 +395,7 @@ class Ascenso
return $this->nombreNucelo;
}
- /**
- * Set curriculo
- *
- * @param string $curriculo
- * @return Ascenso
- */
- public function setCurriculo($curriculo)
- {
- $this->curriculo = $curriculo;
-
- return $this;
- }
- /**
- * Get curriculo
- *
- * @return string
- */
- public function getCurriculo()
- {
- return $this->curriculo;
- }
/**
* Set tipoTrabajoInvestigacion