Commit bd23faf14f92a918c8554c49d40dbc861afb54d2

Authored by Wilmer Ramones
1 parent 9fbe27f543
Exists in master

añadiendo fechas de inicio y fin y el objetivo especifico a la solicitud de PIDA

src/AppBundle/Entity/AdscripcionPida.php
... ... @@ -27,6 +27,14 @@ class AdscripcionPida
27 27 private $id;
28 28  
29 29  
  30 + /**
  31 + * @var string
  32 + *
  33 + * @ORM\Column(name="objetivo_especifico", type="text", nullable=false, options={"comment" = "objetivo especifico a desarrollar dentro enmarcado en el plan patria"})
  34 + */
  35 + private $objetivoEspecifico;
  36 +
  37 +
30 38  
31 39 /**
32 40 * @var \AppBundle\Entity\RolInstitucion
... ... @@ -60,6 +68,20 @@ class AdscripcionPida
60 68 * })
61 69 */
62 70 protected $idActividadDocente;
  71 +
  72 +
  73 + /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de inicio de la activdad PIDA"})
  74 +
  75 + */
  76 +
  77 + private $fecha_inicio;
  78 +
  79 +
  80 + /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de fin de la actividad"})
  81 +
  82 + */
  83 +
  84 + private $fecha_final;
63 85  
64 86  
65 87 /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de creación de la solicitud"})
... ... @@ -229,4 +251,73 @@ class AdscripcionPida
229 251 {
230 252 return $this->idActividadDocente;
231 253 }
  254 +
  255 + /**
  256 + * Set fecha_inicio
  257 + *
  258 + * @param \DateTime $fechaInicio
  259 + * @return AdscripcionPida
  260 + */
  261 + public function setFechaInicio($fechaInicio)
  262 + {
  263 + $this->fecha_inicio = $fechaInicio;
  264 +
  265 + return $this;
  266 + }
  267 +
  268 + /**
  269 + * Get fecha_inicio
  270 + *
  271 + * @return \DateTime
  272 + */
  273 + public function getFechaInicio()
  274 + {
  275 + return $this->fecha_inicio;
  276 + }
  277 +
  278 + /**
  279 + * Set fecha_final
  280 + *
  281 + * @param \DateTime $fechaFinal
  282 + * @return AdscripcionPida
  283 + */
  284 + public function setFechaFinal($fechaFinal)
  285 + {
  286 + $this->fecha_final = $fechaFinal;
  287 +
  288 + return $this;
  289 + }
  290 +
  291 + /**
  292 + * Get fecha_final
  293 + *
  294 + * @return \DateTime
  295 + */
  296 + public function getFechaFinal()
  297 + {
  298 + return $this->fecha_final;
  299 + }
  300 +
  301 + /**
  302 + * Set objetivoEspecifico
  303 + *
  304 + * @param string $objetivoEspecifico
  305 + * @return AdscripcionPida
  306 + */
  307 + public function setObjetivoEspecifico($objetivoEspecifico)
  308 + {
  309 + $this->objetivoEspecifico = $objetivoEspecifico;
  310 +
  311 + return $this;
  312 + }
  313 +
  314 + /**
  315 + * Get objetivoEspecifico
  316 + *
  317 + * @return string
  318 + */
  319 + public function getObjetivoEspecifico()
  320 + {
  321 + return $this->objetivoEspecifico;
  322 + }
232 323 }
... ...
src/AppBundle/Entity/AdscripcionPida.php~
... ... @@ -27,6 +27,14 @@ class AdscripcionPida
27 27 private $id;
28 28  
29 29  
  30 + /**
  31 + * @var string
  32 + *
  33 + * @ORM\Column(name="objetivo_especifico", type="text", nullable=false, options={"comment" = "objetivo especifico a desarrollar dentro enmarcado en el plan patria"})
  34 + */
  35 + private $objetivoEspecifico;
  36 +
  37 +
30 38  
31 39 /**
32 40 * @var \AppBundle\Entity\RolInstitucion
... ... @@ -60,6 +68,20 @@ class AdscripcionPida
60 68 * })
61 69 */
62 70 protected $idActividadDocente;
  71 +
  72 +
  73 + /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de inicio de la activdad PIDA"})
  74 +
  75 + */
  76 +
  77 + private $fecha_inicio;
  78 +
  79 +
  80 + /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de fin de la actividad"})
  81 +
  82 + */
  83 +
  84 + private $fecha_final;
63 85  
64 86  
65 87 /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de creación de la solicitud"})
... ... @@ -173,4 +195,106 @@ class AdscripcionPida
173 195 $this->fecha_utlima_actualizacion = new \DateTime();
174 196 }
175 197  
  198 +
  199 + /**
  200 + * Get fecha_ultima_actualizacion
  201 + *
  202 + * @return \DateTime
  203 + */
  204 + public function getFechaUltimaActualizacion()
  205 + {
  206 + return $this->fecha_ultima_actualizacion;
  207 + }
  208 +
  209 + /**
  210 + * Set idPlanHistoricoNacionalEstrategico
  211 + *
  212 + * @param \AppBundle\Entity\PlanHistoricoNacionalEstrategico $idPlanHistoricoNacionalEstrategico
  213 + * @return AdscripcionPida
  214 + */
  215 + public function setIdPlanHistoricoNacionalEstrategico(\AppBundle\Entity\PlanHistoricoNacionalEstrategico $idPlanHistoricoNacionalEstrategico = null)
  216 + {
  217 + $this->idPlanHistoricoNacionalEstrategico = $idPlanHistoricoNacionalEstrategico;
  218 +
  219 + return $this;
  220 + }
  221 +
  222 + /**
  223 + * Get idPlanHistoricoNacionalEstrategico
  224 + *
  225 + * @return \AppBundle\Entity\PlanHistoricoNacionalEstrategico
  226 + */
  227 + public function getIdPlanHistoricoNacionalEstrategico()
  228 + {
  229 + return $this->idPlanHistoricoNacionalEstrategico;
  230 + }
  231 +
  232 + /**
  233 + * Set idActividadDocente
  234 + *
  235 + * @param \AppBundle\Entity\ActividadDocente $idActividadDocente
  236 + * @return AdscripcionPida
  237 + */
  238 + public function setIdActividadDocente(\AppBundle\Entity\ActividadDocente $idActividadDocente = null)
  239 + {
  240 + $this->idActividadDocente = $idActividadDocente;
  241 +
  242 + return $this;
  243 + }
  244 +
  245 + /**
  246 + * Get idActividadDocente
  247 + *
  248 + * @return \AppBundle\Entity\ActividadDocente
  249 + */
  250 + public function getIdActividadDocente()
  251 + {
  252 + return $this->idActividadDocente;
  253 + }
  254 +
  255 + /**
  256 + * Set fecha_inicio
  257 + *
  258 + * @param \DateTime $fechaInicio
  259 + * @return AdscripcionPida
  260 + */
  261 + public function setFechaInicio($fechaInicio)
  262 + {
  263 + $this->fecha_inicio = $fechaInicio;
  264 +
  265 + return $this;
  266 + }
  267 +
  268 + /**
  269 + * Get fecha_inicio
  270 + *
  271 + * @return \DateTime
  272 + */
  273 + public function getFechaInicio()
  274 + {
  275 + return $this->fecha_inicio;
  276 + }
  277 +
  278 + /**
  279 + * Set fecha_final
  280 + *
  281 + * @param \DateTime $fechaFinal
  282 + * @return AdscripcionPida
  283 + */
  284 + public function setFechaFinal($fechaFinal)
  285 + {
  286 + $this->fecha_final = $fechaFinal;
  287 +
  288 + return $this;
  289 + }
  290 +
  291 + /**
  292 + * Get fecha_final
  293 + *
  294 + * @return \DateTime
  295 + */
  296 + public function getFechaFinal()
  297 + {
  298 + return $this->fecha_final;
  299 + }
176 300 }
... ...
src/AppBundle/Form/PidaType.php
... ... @@ -11,6 +11,7 @@ namespace AppBundle\Form;
11 11  
12 12 use Symfony\Component\Form\AbstractType;
13 13 use Symfony\Component\Form\FormBuilderInterface;
  14 +use Symfony\Component\OptionsResolver\OptionsResolver;
14 15 use Symfony\Component\Form\Extension\Core\Type\SubmitType;
15 16  
16 17 use Symfony\Bridge\Doctrine\Form\Type\EntityType;
... ... @@ -22,32 +23,35 @@ class PidaType extends AbstractType
22 23 $builder
23 24  
24 25 ->add('plan_historico_nacional_estrategico', EntityType::class, array(
25   - 'label' => false,
26   - 'attr' => array(
27   - 'class' => 'select2'
28   - ),
29   -
30   - 'placeholder' => 'Seleccione Plan Nacional que se relaciona con su Actividad PIDA',
31   - 'required' => true,
32   - 'class' => 'AppBundle:PlanHistoricoNacionalEstrategico',
33   - 'choice_label' => 'getNombre',
34   - 'group_by' => 'getIdPlanHistoricoNacional'
35   -
  26 + 'label' => false,
  27 + 'attr' => array(
  28 + 'class' => 'select2'
  29 + ),
  30 + 'placeholder' => 'Seleccione Plan Nacional que se relaciona con su Actividad PIDA',
  31 + 'required' => true,
  32 + 'class' => 'AppBundle:PlanHistoricoNacionalEstrategico',
  33 + 'choice_label' => 'getNombre',
  34 + 'group_by' => 'getIdPlanHistoricoNacional'
36 35 ))
37 36  
38 37 ->add('actividad_docente', EntityType::class, array(
39   - 'label' => false,
40   - 'attr' => array(
41   - 'class' => 'select2'
42   - ),
  38 + 'label' => false,
  39 + 'attr' => array(
  40 + 'class' => 'select2'
  41 + ),
43 42  
44   - 'placeholder' => '¿Bajo cúal actividad docente está enmarcado dicho objetivo?',
45   - 'required' => true,
46   - 'class' => 'AppBundle:ActividadDocente',
47   - 'choice_label' => 'getNombre'
  43 + 'placeholder' => '¿Bajo cúal actividad docente está enmarcado dicho objetivo?',
  44 + 'required' => true,
  45 + 'class' => 'AppBundle:ActividadDocente',
  46 + 'choice_label' => 'getNombre'
48 47  
49 48 ))
50 49  
  50 + ->add('objetivo_especifico')
  51 +
  52 + ->add('fecha_inicio')
  53 +
  54 + ->add('fecha_final')
51 55  
52 56 ->add('send', SubmitType::class, array(
53 57 'label' => 'Enviar Actividad PIDA',
... ... @@ -60,6 +64,17 @@ class PidaType extends AbstractType
60 64 }
61 65  
62 66  
  67 + /**
  68 + * @param OptionsResolver $resolver
  69 + */
  70 + public function configureOptions(OptionsResolver $resolver)
  71 + {
  72 + $resolver->setDefaults(array(
  73 + 'data_class' => 'AppBundle\Entity\AdscripcionPida'
  74 + ));
  75 + }
  76 +
  77 +
63 78  
64 79  
65 80 }
... ...