Commit 2c6443ac0dde3dbeeb9cbb4ee10e248366cce1b7

Authored by Wilmer
1 parent 3e4325e198
Exists in master

añadido el correlativo de adscripcion segun el correo del CEA; se pasa a obligat…

…orio el trabajo de investigacion junto al area y linea; se muestran los resultados a los usuarios correspondientes
app/Resources/views/cea/index.html.twig
@@ -28,27 +28,31 @@ @@ -28,27 +28,31 @@
28 {%endif %} 28 {%endif %}
29 <div class="row"> 29 <div class="row">
30 <!-- Si no tiene una solicitud de ascenso activa --> 30 <!-- Si no tiene una solicitud de ascenso activa -->
31 - {% if ascenso.idEstatus.id > 2 %}  
32 - {% if tiempoProxEscalafon %}  
33 - {% if suffix == '' %}  
34 - <h4 class="alert alert-info">  
35 - Estimado docente, le recordamos que para solicitar ascenso aun le faltan:  
36 - {% else %}  
37 - <h4 class="alert alert-warning">  
38 - Estimado docente ya tiene el tiempo para solicitar ascenso desde hace:  
39 - {% endif %}  
40 - <strong>  
41 - {% if tiempoProxEscalafon.y > 0 %} {{ tiempoProxEscalafon.y }} año/s {% endif %}  
42 - {% if tiempoProxEscalafon.m > 0 %} {{ tiempoProxEscalafon.m }} mes/es y {% endif %}  
43 - {% if tiempoProxEscalafon.d > 0 %} {{ tiempoProxEscalafon.d }} día/s {% endif %}  
44 - </strong>  
45 - </h4>  
46 - {% endif %} 31 + {% if ascenso %}
  32 + {% if ascenso.idEstatus.id > 2 %}
  33 + {% if tiempoProxEscalafon %}
  34 + {% if suffix == '' %}
  35 + <h4 class="alert alert-info">
  36 + Estimado docente, le recordamos que para solicitar ascenso aun le faltan:
  37 + {% else %}
  38 + <h4 class="alert alert-warning">
  39 + Estimado docente ya tiene el tiempo para solicitar ascenso desde hace:
  40 + {% endif %}
  41 + <strong>
  42 + {% if tiempoProxEscalafon.y > 0 %} {{ tiempoProxEscalafon.y }} año/s {% endif %}
  43 + {% if tiempoProxEscalafon.m > 0 %} {{ tiempoProxEscalafon.m }} mes/es y {% endif %}
  44 + {% if tiempoProxEscalafon.d > 0 %} {{ tiempoProxEscalafon.d }} día/s {% endif %}
  45 + </strong>
  46 + </h4>
  47 + {% endif %}
  48 + {% endif %}
  49 + {% else %}
  50 +
47 {% endif %} 51 {% endif %}
48 <div class="col-md-6"> 52 <div class="col-md-6">
49 <div class="widget widget-nopad"> 53 <div class="widget widget-nopad">
50 <div class="widget-header"> <i class="fa fa-list-alt"></i> 54 <div class="widget-header"> <i class="fa fa-list-alt"></i>
51 - <h3> CEA@UBV</h3> 55 + <h3>CEA@UBV{% if adscrito %}: CEA-{{adscripcion.idRolInstitucion.idInstitucion.idEjeParroquia.IdEje.abreviacion}}-{{ adscripcion.anoAdscripcion }}-{{adscripcion.correlativoAdscripcion}}{% endif %}</h3>
52 </div> 56 </div>
53 <!-- /widget-header --> 57 <!-- /widget-header -->
54 <div class="widget-content"> 58 <div class="widget-content">
app/Resources/views/cea/solicitudes_mostar.html.twig
@@ -14,7 +14,7 @@ @@ -14,7 +14,7 @@
14 {%endfor %} 14 {%endfor %}
15 <div class="row"> 15 <div class="row">
16 <div class="col-md-9"> 16 <div class="col-md-9">
17 - <h4 class="page-head-line">Solicitud de Adscripción número <code>{{adscripcion.id}}</code>: 17 + <h4 class="page-head-line">Solicitud de Adscripción número <code>CEA-{{adscripcion.idRolInstitucion.idInstitucion.idEjeParroquia.IdEje.abreviacion}}-{{ adscripcion.anoAdscripcion }}-{{adscripcion.correlativoAdscripcion}}</code>:
18 {{ adscripcion.idRolInstitucion.idRol.idPersona.primerNombre }}, 18 {{ adscripcion.idRolInstitucion.idRol.idPersona.primerNombre }},
19 {{ adscripcion.idRolInstitucion.idRol.idPersona.primerApellido }} 19 {{ adscripcion.idRolInstitucion.idRol.idPersona.primerApellido }}
20 </h4> 20 </h4>
@@ -67,7 +67,7 @@ @@ -67,7 +67,7 @@
67 <div class="form-group"> 67 <div class="form-group">
68 <h6 class="alert alert-warning">El Docente al momento de la solicitud informa no haber realizado Concurso de oposición</h6> 68 <h6 class="alert alert-warning">El Docente al momento de la solicitud informa no haber realizado Concurso de oposición</h6>
69 </div> 69 </div>
70 - <button class="btn btn-success btn-sm">Añadir Concurso de Oposición</button> 70 + <!-- <button class="btn btn-success btn-sm">Añadir Concurso de Oposición</button> -->
71 {% endif %} 71 {% endif %}
72 72
73 73
app/Resources/views/memorando/adscripcion.html.twig
@@ -30,14 +30,14 @@ @@ -30,14 +30,14 @@
30 <p class="text-justify cuerpo-memo"> 30 <p class="text-justify cuerpo-memo">
31 Reciba un cordial saludo bolivariano y revolucionario de parte del equipo 31 Reciba un cordial saludo bolivariano y revolucionario de parte del equipo
32 de trabajo de este Centro de Estudios Ambientales. La presente es para 32 de trabajo de este Centro de Estudios Ambientales. La presente es para
33 - informar que este Centro reconoce, 33 + informar que este Centro de estudios reconoce,
34 {% if adscripcion.idLineaInvestigacion %} 34 {% if adscripcion.idLineaInvestigacion %}
35 basado en su interés en el área de 35 basado en su interés en el área de
36 <i>{{adscripcion.idLineaInvestigacion.idAreaInvestigacion |capitalize }}</i> 36 <i>{{adscripcion.idLineaInvestigacion.idAreaInvestigacion |capitalize }}</i>
37 bajo la línea <i>{{adscripcion.idLineaInvestigacion}}</i> 37 bajo la línea <i>{{adscripcion.idLineaInvestigacion}}</i>
38 con su trabajo de investigación titulado <i>{{adscripcion.tituloTrabajo}}</i> 38 con su trabajo de investigación titulado <i>{{adscripcion.tituloTrabajo}}</i>
39 {% endif %} 39 {% endif %}
40 - para así dar 40 + su adscripción bajo el correlativo <strong>CEA-{{eje}}-{{adscripcion.anoAdscripcion}}-{{adscripcion.correlativoAdscripcion}} </strong>para así dar
41 cumplimiento al artículo N° 91 de Reglamento General de la Universidad Bolivariana de 41 cumplimiento al artículo N° 91 de Reglamento General de la Universidad Bolivariana de
42 Venezuela, que estable en su segundo párrafo <i>"Estarán adscritos a cada Centro de Estudios 42 Venezuela, que estable en su segundo párrafo <i>"Estarán adscritos a cada Centro de Estudios
43 , los trabajadores académicos, según el interés, formación y experiencia desarrollada en su 43 , los trabajadores académicos, según el interés, formación y experiencia desarrollada en su
src/AppBundle/Controller/AdscripcionController.php
@@ -53,7 +53,6 @@ class AdscripcionController extends Controller @@ -53,7 +53,6 @@ class AdscripcionController extends Controller
53 /** @var UploadedFile $constanciaPregrado */ 53 /** @var UploadedFile $constanciaPregrado */
54 $constanciaPregrado = $form->get('pregrado')->getData(); 54 $constanciaPregrado = $form->get('pregrado')->getData();
55 55
56 -  
57 56
58 // Generate a unique name for the file before saving it 57 // Generate a unique name for the file before saving it
59 $nombreTrabajo = md5(uniqid()).'.'.$constanciaTrabajo->guessExtension(); 58 $nombreTrabajo = md5(uniqid()).'.'.$constanciaTrabajo->guessExtension();
@@ -91,7 +90,21 @@ class AdscripcionController extends Controller @@ -91,7 +90,21 @@ class AdscripcionController extends Controller
91 $adscripcion->setIdRolInstitucion($this->getUser()->getIdRolInstitucion()); 90 $adscripcion->setIdRolInstitucion($this->getUser()->getIdRolInstitucion());
92 $adscripcion->setFechaIngreso($form->get('fecha_ingreso')->getData()); 91 $adscripcion->setFechaIngreso($form->get('fecha_ingreso')->getData());
93 $adscripcion->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(2)); 92 $adscripcion->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(2));
94 - 93 + $adscripcion->setIdLineaInvestigacion($form->get('lineas_investigacion')->getData());
  94 + $adscripcion->setTituloTrabajo($form->get('titulo_trabajo')->getData());
  95 +
  96 + $correlativo = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findOneBy(
  97 + array(),
  98 + array('correlativoAdscripcion' => 'DESC')
  99 + );
  100 + $numero = 1;
  101 + $ano = date("Y");
  102 + if ($correlativo){
  103 + $numero = $correlativo->getCorrelativoAdscripcion() + 1;
  104 + }
  105 + $adscripcion->setAnoAdscripcion($ano);
  106 + $adscripcion->setCorrelativoAdscripcion($numero);
  107 +
95 108
96 if ($form->get('escala')->getData()){ 109 if ($form->get('escala')->getData()){
97 $escala->setIdRolInstitucion($this->getUser()->getIdRolInstitucion()); 110 $escala->setIdRolInstitucion($this->getUser()->getIdRolInstitucion());
@@ -108,9 +121,7 @@ class AdscripcionController extends Controller @@ -108,9 +121,7 @@ class AdscripcionController extends Controller
108 $nombreOposicion 121 $nombreOposicion
109 ); 122 );
110 thumbnail($nombreOposicion, $this->container->getParameter('adscripcion_directory'), $this->container->getParameter('adscripcion_thumb_directory')); 123 thumbnail($nombreOposicion, $this->container->getParameter('adscripcion_directory'), $this->container->getParameter('adscripcion_thumb_directory'));
111 - $adscripcion->setOposicion($nombreOposicion);  
112 - $adscripcion->setIdLineaInvestigacion($form->get('lineas_investigacion')->getData());  
113 - $adscripcion->setTituloTrabajo($form->get('titulo_trabajo')->getData()); 124 + $adscripcion->setOposicion($nombreOposicion);
114 } 125 }
115 126
116 127
@@ -491,12 +502,13 @@ class AdscripcionController extends Controller @@ -491,12 +502,13 @@ class AdscripcionController extends Controller
491 }else{ 502 }else{
492 $memorando = $correlativo->getCorrelativo() . "-" . $correlativo->getAno(); 503 $memorando = $correlativo->getCorrelativo() . "-" . $correlativo->getAno();
493 } 504 }
494 -  
495 - 505 +
496 $adscripcion = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findOneByIdRolInstitucion($servicio->getIdRolInstitucion()); 506 $adscripcion = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findOneByIdRolInstitucion($servicio->getIdRolInstitucion());
  507 + $eje = $adscripcion->getIdRolInstitucion()->getIdInstitucion()->getIdEjeParroquia()->getIdEje()->getAbreviacion();
497 return $this->render('memorando/adscripcion.html.twig', array( 508 return $this->render('memorando/adscripcion.html.twig', array(
498 'adscripcion' => $adscripcion, 509 'adscripcion' => $adscripcion,
499 - 'correlativo' => $memorando 510 + 'correlativo' => $memorando,
  511 + 'eje' => $eje
500 )); 512 ));
501 513
502 }else{ 514 }else{
src/AppBundle/Controller/AppController.php
@@ -37,11 +37,12 @@ class AppController extends Controller { @@ -37,11 +37,12 @@ class AppController extends Controller {
37 public function indexAction() 37 public function indexAction()
38 { 38 {
39 //verificar en las solicitudes la adscripcion del docente 39 //verificar en las solicitudes la adscripcion del docente
40 - $adscripcion = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')-> 40 + $servicioAdscripcion = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->
41 findOneBy(array( 41 findOneBy(array(
42 'idRolInstitucion' => $this->getUser()->getIdRolInstitucion()->getId(), 42 'idRolInstitucion' => $this->getUser()->getIdRolInstitucion()->getId(),
43 'idServicioCe' => 2 43 'idServicioCe' => 2
44 )); 44 ));
  45 +
45 46
46 $ascenso = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')-> 47 $ascenso = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->
47 findOneBy(array( 48 findOneBy(array(
@@ -51,7 +52,9 @@ class AppController extends Controller { @@ -51,7 +52,9 @@ class AppController extends Controller {
51 ); 52 );
52 53
53 //si no ha solicitado adscripción regresa a la pagina de adscripcion 54 //si no ha solicitado adscripción regresa a la pagina de adscripcion
54 - if(!$adscripcion){ return $this->redirect($this->generateUrl('solicitud_adscripcion')); } 55 + if(!$servicioAdscripcion){ return $this->redirect($this->generateUrl('solicitud_adscripcion')); }
  56 +
  57 +
55 58
56 $pida = $this->getDoctrine()->getRepository('AppBundle:AdscripcionPida')-> 59 $pida = $this->getDoctrine()->getRepository('AppBundle:AdscripcionPida')->
57 findOneBy(array( 60 findOneBy(array(
@@ -65,7 +68,8 @@ class AppController extends Controller { @@ -65,7 +68,8 @@ class AppController extends Controller {
65 array('idRolInstitucion' => $this->getUser()->getIdRolInstitucion()), 68 array('idRolInstitucion' => $this->getUser()->getIdRolInstitucion()),
66 array('id' => 'DESC') 69 array('id' => 'DESC')
67 ); 70 );
68 - 71 + $tiempoTranscurrido = -1;
  72 + $suffix = "";
69 if ($escalafon){ 73 if ($escalafon){
70 $escalafones = $this->getDoctrine()->getRepository("AppBundle:Escalafones")->findOneById($escalafon->getIdEscala()->getId() + 1); //tiempo para el proximo escalafon 74 $escalafones = $this->getDoctrine()->getRepository("AppBundle:Escalafones")->findOneById($escalafon->getIdEscala()->getId() + 1); //tiempo para el proximo escalafon
71 if($escalafones){ 75 if($escalafones){
@@ -79,13 +83,14 @@ class AppController extends Controller { @@ -79,13 +83,14 @@ class AppController extends Controller {
79 83
80 84
81 85
82 - 86 + $adscripcion = $this->getDoctrine()->getRepository("AppBundle:Adscripcion")->findOneByIdRolInstitucion($this->getUser()->getIdRolInstitucion()->getId());
83 //solicitud aprobada está en falso 87 //solicitud aprobada está en falso
84 $adscrito = false; 88 $adscrito = false;
85 - if($adscripcion->getIdEstatus()->getId() == 1) $adscrito = true; 89 + if($servicioAdscripcion->getIdEstatus()->getId() == 1){ $adscrito = true; }
86 90
87 return $this->render('cea/index.html.twig', array ( 91 return $this->render('cea/index.html.twig', array (
88 'adscrito' => $adscrito, 92 'adscrito' => $adscrito,
  93 + 'adscripcion' => $adscripcion,
89 'ascenso' => $ascenso, 94 'ascenso' => $ascenso,
90 'tiempoProxEscalafon' => $tiempoTranscurrido, 95 'tiempoProxEscalafon' => $tiempoTranscurrido,
91 'suffix' => $suffix 96 'suffix' => $suffix
src/AppBundle/Controller/AscensoController.php
@@ -330,11 +330,7 @@ class AscensoController extends Controller @@ -330,11 +330,7 @@ class AscensoController extends Controller
330 ); 330 );
331 331
332 332
333 - if (!$concurso->getOposicion()){  
334 - $form = $this->createForm('AppBundle\Form\ReconocimientoConcursoType');  
335 - }else{  
336 - $form = $this->createForm('AppBundle\Form\ReconocimientoEscalaType');  
337 - } 333 + $form = $this->createForm('AppBundle\Form\ReconocimientoEscalaType');
338 334
339 $form->handleRequest($request); 335 $form->handleRequest($request);
340 336
@@ -348,9 +344,7 @@ class AscensoController extends Controller @@ -348,9 +344,7 @@ class AscensoController extends Controller
348 344
349 // Guardar el archivo y crear la miniatura de cada uno 345 // Guardar el archivo y crear la miniatura de cada uno
350 if (!$concurso->getOposicion()){ 346 if (!$concurso->getOposicion()){
351 - $adscripcion->setOposicion($nombreAscenso);  
352 - $adscripcion->setIdLineaInvestigacion($form['lineas_investigacion']->getData());  
353 - $adscripcion->setTituloTrabajo($form['titulo_trabajo']->getData()); 347 + $adscripcion->setOposicion($nombreAscenso);
354 $constanciaAscenso->move( 348 $constanciaAscenso->move(
355 $this->container->getParameter('adscripcion_directory'), 349 $this->container->getParameter('adscripcion_directory'),
356 $nombreAscenso 350 $nombreAscenso
src/AppBundle/Entity/Adscripcion.php
@@ -138,6 +138,19 @@ class Adscripcion @@ -138,6 +138,19 @@ class Adscripcion
138 * @ORM\Column(name="titulo_trabajo", type="string", nullable=true, options={"comment" = "titulo del trabajo de investigacion"}) 138 * @ORM\Column(name="titulo_trabajo", type="string", nullable=true, options={"comment" = "titulo del trabajo de investigacion"})
139 */ 139 */
140 private $tituloTrabajo; 140 private $tituloTrabajo;
  141 +
  142 +
  143 + /**
  144 + * @ORM\Column(name="ano_adscripcion", type="integer", nullable=true, options={"comment" = "El número de profesor nos permitirá saber la cantidad de profesores adscritos al CEA por eje geopolítico y desde cuando"})
  145 + */
  146 + private $anoAdscripcion;
  147 +
  148 +
  149 + /**
  150 + * @ORM\Column(name="correlativo_adscripcion", type="integer", nullable=true, options={"comment" = "El número de profesor nos permitirá saber la cantidad de profesores adscritos al CEA por eje geopolítico y desde cuando"})
  151 + */
  152 + private $correlativoAdscripcion;
  153 +
141 154
142 155
143 /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de creación de la solicitud"}) 156 /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de creación de la solicitud"})
@@ -433,4 +446,62 @@ class Adscripcion @@ -433,4 +446,62 @@ class Adscripcion
433 } 446 }
434 447
435 448
  449 +
  450 +
  451 +
  452 + /**
  453 + * Get fecha_ultima_actualizacion
  454 + *
  455 + * @return \DateTime
  456 + */
  457 + public function getFechaUltimaActualizacion()
  458 + {
  459 + return $this->fecha_ultima_actualizacion;
  460 + }
  461 +
  462 + /**
  463 + * Set anoAdscripcion
  464 + *
  465 + * @param string $anoAdscripcion
  466 + * @return Adscripcion
  467 + */
  468 + public function setAnoAdscripcion($anoAdscripcion)
  469 + {
  470 + $this->anoAdscripcion = $anoAdscripcion;
  471 +
  472 + return $this;
  473 + }
  474 +
  475 + /**
  476 + * Get anoAdscripcion
  477 + *
  478 + * @return string
  479 + */
  480 + public function getAnoAdscripcion()
  481 + {
  482 + return $this->anoAdscripcion;
  483 + }
  484 +
  485 + /**
  486 + * Set correlativoAdscripcion
  487 + *
  488 + * @param integer $correlativoAdscripcion
  489 + * @return Adscripcion
  490 + */
  491 + public function setCorrelativoAdscripcion($correlativoAdscripcion)
  492 + {
  493 + $this->correlativoAdscripcion = $correlativoAdscripcion;
  494 +
  495 + return $this;
  496 + }
  497 +
  498 + /**
  499 + * Get correlativoAdscripcion
  500 + *
  501 + * @return integer
  502 + */
  503 + public function getCorrelativoAdscripcion()
  504 + {
  505 + return $this->correlativoAdscripcion;
  506 + }
436 } 507 }
src/AppBundle/Entity/Adscripcion.php~
@@ -22,7 +22,7 @@ use Doctrine\Common\Collections\ArrayCollection; @@ -22,7 +22,7 @@ use Doctrine\Common\Collections\ArrayCollection;
22 class Adscripcion 22 class Adscripcion
23 { 23 {
24 24
25 - /** 25 + /**
26 * @var integer 26 * @var integer
27 * 27 *
28 * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la Adscripcion"}) 28 * @ORM\Column(name="id", type="integer", nullable=false, options={"comment" = "Identificador de la Adscripcion"})
@@ -43,6 +43,23 @@ class Adscripcion @@ -43,6 +43,23 @@ class Adscripcion
43 * }) 43 * })
44 */ 44 */
45 protected $idRolInstitucion; 45 protected $idRolInstitucion;
  46 +
  47 + /** @ORM\Column(type="date", nullable=false, options={"comment" = "Fecha de de Ingreso a la Institucion"})
  48 + /**
  49 + * @Assert\Date()
  50 + */
  51 + private $fecha_ingreso;
  52 +
  53 +
  54 + /**
  55 + * @var \AppBundle\Entity\LineasInvestigacion
  56 + *
  57 + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\LineasInvestigacion")
  58 + * @ORM\JoinColumns({
  59 + * @ORM\JoinColumn(name="id_linea_investigacion", referencedColumnName="id", nullable=true)
  60 + * })
  61 + */
  62 + protected $idLineaInvestigacion;
46 63
47 64
48 /** 65 /**
@@ -70,8 +87,71 @@ class Adscripcion @@ -70,8 +87,71 @@ class Adscripcion
70 * @Assert\File(mimeTypes={ "application/pdf" }) 87 * @Assert\File(mimeTypes={ "application/pdf" })
71 */ 88 */
72 private $postgrado; 89 private $postgrado;
  90 +
  91 + /**
  92 + * @ORM\Column(type="string", nullable=true, options={"comment" = "digital del documento de aprobación del concurso de oposicion"})
  93 + *
  94 + *
  95 + * @Assert\File(mimeTypes={ "application/pdf" })
  96 + */
  97 + private $oposicion;
  98 +
  99 + /**
  100 + * @ORM\Column(type="string", nullable=true, options={"comment" = "digital del documento de ascenso de Asistente"})
  101 + *
  102 + *
  103 + * @Assert\File(mimeTypes={ "application/pdf" })
  104 + */
  105 + private $asistente;
  106 +
  107 + /**
  108 + * @ORM\Column(type="string", nullable=true, options={"comment" = "digital del documento de ascenso de Asociado"})
  109 + *
  110 + *
  111 + * @Assert\File(mimeTypes={ "application/pdf" })
  112 + */
  113 + private $asociado;
  114 +
  115 +
  116 +
  117 +
  118 + /**
  119 + * @ORM\Column(type="string", nullable=true, options={"comment" = "digital del documento de ascenso de agregado"})
  120 + *
  121 + *
  122 + * @Assert\File(mimeTypes={ "application/pdf" })
  123 + */
  124 + private $agreado;
  125 +
  126 +
  127 + /**
  128 + * @ORM\Column(type="string", nullable=true, options={"comment" = "digital del documento de ascenso de titular"})
  129 + *
  130 + *
  131 + * @Assert\File(mimeTypes={ "application/pdf" })
  132 + */
  133 + private $titular;
  134 +
  135 +
  136 +
  137 + /**
  138 + * @ORM\Column(name="titulo_trabajo", type="string", nullable=true, options={"comment" = "titulo del trabajo de investigacion"})
  139 + */
  140 + private $tituloTrabajo;
  141 +
  142 +
  143 + /**
  144 + * @ORM\Column(name="ano_adscripcion", type="string", nullable=true, options={"comment" = "El número de profesor nos permitirá saber la cantidad de profesores adscritos al CEA por eje geopolítico y desde cuando"})
  145 + */
  146 + private $anoAdscripcion;
  147 +
73 148
  149 + /**
  150 + * @ORM\Column(name="correlativo_adscripcion", type="integer", nullable=true, options={"comment" = "El número de profesor nos permitirá saber la cantidad de profesores adscritos al CEA por eje geopolítico y desde cuando"})
  151 + */
  152 + private $correlativoAdscripcion;
74 153
  154 +
75 155
76 /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de creación de la solicitud"}) 156 /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de creación de la solicitud"})
77 157
@@ -86,20 +166,17 @@ class Adscripcion @@ -86,20 +166,17 @@ class Adscripcion
86 166
87 private $fecha_ultima_actualizacion; 167 private $fecha_ultima_actualizacion;
88 168
89 -  
90 -  
91 - /**  
92 - * @ORM\OneToMany(targetEntity="AppBundle\Entity\DocenteEscala", mappedBy="docente") 169 + /**
  170 + * @var \AppBundle\Entity\Estatus
  171 + *
  172 + * @ORM\ManyToOne(targetEntity="AppBundle\Entity\Estatus")
  173 + * @ORM\JoinColumns({
  174 + * @ORM\JoinColumn(name="id_estatus", referencedColumnName="id", nullable=false)
  175 + * })
93 */ 176 */
94 - private $escala;  
95 - // ...  
96 -  
97 - public function __construct() {  
98 - $this->escala = new ArrayCollection();  
99 - }  
100 - 177 + protected $idEstatus;
101 178
102 - 179 +
103 180
104 181
105 182
@@ -139,28 +216,93 @@ class Adscripcion @@ -139,28 +216,93 @@ class Adscripcion
139 return $this; 216 return $this;
140 } 217 }
141 218
142 - 219 + public function getAsistente()
  220 + {
  221 + return $this->asistente;
  222 + }
  223 +
  224 + public function setAsistente($asistente)
  225 + {
  226 + $this->asistente = $asistente;
  227 +
  228 + return $this;
  229 + }
143 230
144 /** 231 /**
145 - * Get id  
146 - *  
147 - * @return integer 232 + * @return mixed
148 */ 233 */
149 - public function getId() 234 + public function getOposicion()
150 { 235 {
151 - return $this->id; 236 + return $this->oposicion;
152 } 237 }
153 238
154 /** 239 /**
155 - * Get nombre 240 + * @param mixed $oposicion
  241 + */
  242 + public function setOposicion($oposicion)
  243 + {
  244 + $this->oposicion = $oposicion;
  245 + }
  246 +
  247 + /**
  248 + * @return mixed
  249 + */
  250 + public function getAsociado()
  251 + {
  252 + return $this->asociado;
  253 + }
  254 +
  255 + /**
  256 + * @param mixed $asociado
  257 + */
  258 + public function setAsociado($asociado)
  259 + {
  260 + $this->asociado = $asociado;
  261 + }
  262 +
  263 + /**
  264 + * @return mixed
  265 + */
  266 + public function getAgreado()
  267 + {
  268 + return $this->agreado;
  269 + }
  270 +
  271 + /**
  272 + * @param mixed $agreado
  273 + */
  274 + public function setAgreado($agreado)
  275 + {
  276 + $this->agreado = $agreado;
  277 + }
  278 +
  279 + /**
  280 + * @return mixed
  281 + */
  282 + public function getTitular()
  283 + {
  284 + return $this->titular;
  285 + }
  286 +
  287 + /**
  288 + * @param mixed $titular
  289 + */
  290 + public function setTitular($titular)
  291 + {
  292 + $this->titular = $titular;
  293 + }
  294 +
  295 + /**
  296 + * Get id
156 * 297 *
157 - * @return string 298 + * @return integer
158 */ 299 */
159 - public function __toString() 300 + public function getId()
160 { 301 {
161 - return $this->trabajo; 302 + return $this->id;
162 } 303 }
163 - 304 +
  305 +
164 /** 306 /**
165 * Set idRolInstitucion 307 * Set idRolInstitucion
166 * 308 *
@@ -183,67 +325,137 @@ class Adscripcion @@ -183,67 +325,137 @@ class Adscripcion
183 { 325 {
184 return $this->idRolInstitucion; 326 return $this->idRolInstitucion;
185 } 327 }
186 -  
187 - /**  
188 - * @ORM\PrePersist  
189 - */  
190 - public function setFechaCreacion() 328 +
  329 +
  330 +
  331 + /**
  332 + * Set idLineaInvestigacion
  333 + *
  334 + * @param \AppBundle\Entity\LineasInvestigacion $idLineaInvestigacion
  335 + * @return LineasInvestigacion
  336 + */
  337 + public function setIdLineaInvestigacion(\AppBundle\Entity\LineasInvestigacion $idLineaInvestigacion = null)
191 { 338 {
192 - $this->fecha_creacion = new \DateTime();  
193 - $this->fecha_ultima_actualizacion = new \DateTime(); 339 + $this->idLineaInvestigacion = $idLineaInvestigacion;
  340 +
  341 + return $this;
194 } 342 }
195 343
196 /** 344 /**
197 - * @ORM\PreUpdate  
198 - */  
199 - public function setFechaUltimaActualizacion() 345 + * Get idLineaIvestigacion
  346 + *
  347 + * @return \AppBundle\Entity\LineasInvestigacion
  348 + */
  349 + public function getIdLineaInvestigacion()
200 { 350 {
201 - $this->fecha_utlima_actualizacion = new \DateTime(); 351 + return $this->idLineaInvestigacion;
202 } 352 }
203 353
204 354
205 355
206 /** 356 /**
207 - * Add escala 357 + * Set idEstatus
208 * 358 *
209 - * @param \AppBundle\Entity\DocenteEscala $escala  
210 - * @return DocenteEscala 359 + * @param \AppBundle\Entity\Estatus $idEstatus
  360 + * @return Estatus
211 */ 361 */
212 - public function addEscala(\AppBundle\Entity\DocenteEscala $escala) 362 + public function setIdEstatus(\AppBundle\Entity\Estatus $idEstatus = null)
213 { 363 {
214 - $this->escala[] = $escala; 364 + $this->idEstatus = $idEstatus;
215 365
216 return $this; 366 return $this;
217 } 367 }
218 368
219 /** 369 /**
220 - * Remove escala 370 + * Get idEstatus
221 * 371 *
222 - * @param \AppBundle\Entity\DocenteEscala $escala 372 + * @return \AppBundle\Entity\Estatus
223 */ 373 */
224 - public function removeEscala(\AppBundle\Entity\DocenteEscala $escala) 374 + public function getIdEstatus()
225 { 375 {
226 - $this->escala->removeElement($escala); 376 + return $this->idEstatus;
227 } 377 }
228 378
  379 +
  380 +
  381 + /**
  382 + * @ORM\PrePersist
  383 + */
  384 + public function setFechaCreacion()
  385 + {
  386 + $this->fecha_creacion = new \DateTime();
  387 + $this->fecha_ultima_actualizacion = new \DateTime();
  388 + }
  389 +
  390 + public function getFechaCreacion()
  391 + {
  392 + return $this->fecha_creacion;
  393 +
  394 + }
  395 +
  396 +
229 /** 397 /**
230 - * Get Escala  
231 - *  
232 - * @return \Doctrine\Common\Collections\Collection  
233 - */  
234 - public function getEscala() 398 + * @ORM\PreUpdate
  399 + */
  400 + public function setFechaUltimaActualizacion()
235 { 401 {
236 - return $this->escala; 402 + $this->fecha_utlima_actualizacion = new \DateTime();
237 } 403 }
238 404
239 405
240 - public function getEscalafones() 406 +
  407 + /**
  408 + * @return mixed
  409 + */
  410 + public function getTituloTrabajo()
241 { 411 {
242 - return $this->escala->toArray(); /*IMPORTANTE: el mecanismo de seguridad de Sf2 requiere ésto como un array*/ 412 + return $this->tituloTrabajo;
243 } 413 }
244 -  
245 -  
246 -  
247 414
248 415
  416 + /**
  417 + * @param mixed $tituloTrabajo
  418 + */
  419 + public function setTituloTrabajo($tituloTrabajo)
  420 + {
  421 + $this->tituloTrabajo = $tituloTrabajo;
  422 + }
  423 +
  424 +
  425 + /**
  426 + * Set fecha_escala
  427 + *
  428 + * @param \DateTime $fecha_escala
  429 + * @return Comment
  430 + */
  431 + public function setFechaIngreso($fecha_ingreso)
  432 + {
  433 + $this->fecha_ingreso = $fecha_ingreso;
  434 +
  435 + return $this;
  436 + }
  437 +
  438 + /**
  439 + * Get fecha_escala
  440 + *
  441 + * @return \DateTime
  442 + */
  443 + public function getFechaIngreso()
  444 + {
  445 + return $this->fecha_ingreso;
  446 + }
  447 +
  448 +
  449 +
  450 +
  451 +
  452 + /**
  453 + * Get fecha_ultima_actualizacion
  454 + *
  455 + * @return \DateTime
  456 + */
  457 + public function getFechaUltimaActualizacion()
  458 + {
  459 + return $this->fecha_ultima_actualizacion;
  460 + }
249 } 461 }
src/AppBundle/Entity/Eje.php
@@ -25,6 +25,13 @@ class Eje @@ -25,6 +25,13 @@ class Eje
25 * @ORM\Column(name="nombre", type="string", length=50, nullable=false, options={"comment" = "Nombre del eje (Generalmente el nombre de un estado)"}) 25 * @ORM\Column(name="nombre", type="string", length=50, nullable=false, options={"comment" = "Nombre del eje (Generalmente el nombre de un estado)"})
26 */ 26 */
27 private $nombre; 27 private $nombre;
  28 +
  29 + /**
  30 + * @var string
  31 + *
  32 + * @ORM\Column(name="abreviacion", type="string", length=3, nullable=false, options={"comment" = "Abreviacion del Eje"})
  33 + */
  34 + private $abreviacion;
28 35
29 /** 36 /**
30 * @var string 37 * @var string
@@ -104,4 +111,27 @@ class Eje @@ -104,4 +111,27 @@ class Eje
104 public function __toString() { 111 public function __toString() {
105 return $this->getNombre(); 112 return $this->getNombre();
106 } 113 }
107 -}  
108 \ No newline at end of file 114 \ No newline at end of file
  115 +
  116 + /**
  117 + * Set abreviacion
  118 + *
  119 + * @param string $abreviacion
  120 + * @return Eje
  121 + */
  122 + public function setAbreviacion($abreviacion)
  123 + {
  124 + $this->abreviacion = $abreviacion;
  125 +
  126 + return $this;
  127 + }
  128 +
  129 + /**
  130 + * Get abreviacion
  131 + *
  132 + * @return string
  133 + */
  134 + public function getAbreviacion()
  135 + {
  136 + return $this->abreviacion;
  137 + }
  138 +}
src/AppBundle/Form/UserType.php
@@ -86,6 +86,25 @@ class UserType extends AbstractType @@ -86,6 +86,25 @@ class UserType extends AbstractType
86 )) 86 ))
87 ) 87 )
88 )) 88 ))
  89 +
  90 +
  91 + ->add('lineas_investigacion', EntityType::class, array(
  92 + 'label' => false,
  93 + 'placeholder' => 'Seleccione Área y Línea de Investigación',
  94 + 'required' => true,
  95 + 'class' => 'AppBundle:LineasInvestigacion',
  96 +
  97 + 'choice_label' => 'getNombre',
  98 + 'group_by' => 'getIdAreaInvestigacion'
  99 + ))
  100 +
  101 + ->add('titulo_trabajo', TextType::class, array(
  102 + 'label' => 'Título del Trabajo de Investigación',
  103 + 'required' => true,
  104 + ))
  105 +
  106 +
  107 +
89 ->add('oposicion', CheckboxType::class, array( 108 ->add('oposicion', CheckboxType::class, array(
90 'label' => '¿Tiene Concurso de Oposición?', 109 'label' => '¿Tiene Concurso de Oposición?',
91 'required' => false, 110 'required' => false,
@@ -132,27 +151,7 @@ class UserType extends AbstractType @@ -132,27 +151,7 @@ class UserType extends AbstractType
132 ) 151 )
133 )) 152 ))
134 153
135 - ->add('lineas_investigacion', EntityType::class, array(  
136 - 'label' => false,  
137 - 'attr' => array(  
138 - 'class' => 'esc_oposicion'  
139 - ),  
140 - 'placeholder' => 'Seleccione Área y Línea de Investigación',  
141 - 'required' => false,  
142 - 'class' => 'AppBundle:LineasInvestigacion',  
143 -  
144 - 'choice_label' => 'getNombre',  
145 - 'group_by' => 'getIdAreaInvestigacion'  
146 - ))  
147 -  
148 - ->add('titulo_trabajo', TextType::class, array(  
149 - 'label' => 'Título del Trabajo de Investigación',  
150 - 'label_attr' => array( 'class' => 'esc_oposicion'),  
151 - 'required' => false,  
152 - 'attr' => array(  
153 - 'class' => 'esc_oposicion'  
154 - )  
155 - )) 154 +
156 155
157 ->add('ascenso', CheckboxType::class, array( 156 ->add('ascenso', CheckboxType::class, array(
158 'label' => '¿Ha tenido Ascenso luego del Concurso?', 157 'label' => '¿Ha tenido Ascenso luego del Concurso?',