diff --git a/app/Resources/views/solicitudes/pida.html.twig b/app/Resources/views/solicitudes/pida.html.twig
index 42c1a70..bde4d41 100644
--- a/app/Resources/views/solicitudes/pida.html.twig
+++ b/app/Resources/views/solicitudes/pida.html.twig
@@ -35,6 +35,12 @@
{% form_theme form 'bootstrap_3_layout.html.twig' %}
{{ form_start(form) }}
{{ form_widget(form) }}
+
+
+
+
{{ form_end(form) }}
diff --git a/src/AppBundle/Entity/AdscripcionPida.php b/src/AppBundle/Entity/AdscripcionPida.php
index 5adb882..4e05428 100644
--- a/src/AppBundle/Entity/AdscripcionPida.php
+++ b/src/AppBundle/Entity/AdscripcionPida.php
@@ -68,20 +68,20 @@ class AdscripcionPida
* })
*/
protected $idActividadDocente;
+
+
+ /**
+ * @var \AppBundle\Entity\PidaPlazo
+ *
+ * @ORM\ManyToOne(targetEntity="AppBundle\Entity\PidaPlazo")
+ * @ORM\JoinColumns({
+ * @ORM\JoinColumn(name="id_pida_plazo", referencedColumnName="id", nullable=true)
+ * })
+ */
+ protected $idPidaPlazo;
- /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de inicio de la activdad PIDA"})
-
- */
-
- private $fecha_inicio;
-
-
- /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de fin de la actividad"})
-
- */
-
- private $fecha_final;
+
/** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de creación de la solicitud"})
@@ -96,6 +96,19 @@ class AdscripcionPida
*/
private $fecha_ultima_actualizacion;
+
+
+ /**
+ * @var \AppBundle\Entity\PidaEstatus
+ *
+ * @ORM\ManyToOne(targetEntity="AppBundle\Entity\PidaEstatus")
+ * @ORM\JoinColumns({
+ * @ORM\JoinColumn(name="id_pida_estatus", referencedColumnName="id", nullable=true)
+ * })
+ */
+ protected $idPidaEstatus;
+
+
/**
* @var \AppBundle\Entity\Estatus
@@ -252,72 +265,74 @@ class AdscripcionPida
return $this->idActividadDocente;
}
+
+
/**
- * Set fecha_inicio
+ * Set objetivoEspecifico
*
- * @param \DateTime $fechaInicio
+ * @param string $objetivoEspecifico
* @return AdscripcionPida
*/
- public function setFechaInicio($fechaInicio)
+ public function setObjetivoEspecifico($objetivoEspecifico)
{
- $this->fecha_inicio = $fechaInicio;
+ $this->objetivoEspecifico = $objetivoEspecifico;
return $this;
}
/**
- * Get fecha_inicio
+ * Get objetivoEspecifico
*
- * @return \DateTime
+ * @return string
*/
- public function getFechaInicio()
+ public function getObjetivoEspecifico()
{
- return $this->fecha_inicio;
+ return $this->objetivoEspecifico;
}
/**
- * Set fecha_final
+ * Set idPidaPlazo
*
- * @param \DateTime $fechaFinal
+ * @param \AppBundle\Entity\PidaPlazo $idPidaPlazo
* @return AdscripcionPida
*/
- public function setFechaFinal($fechaFinal)
+ public function setIdPidaPlazo(\AppBundle\Entity\PidaPlazo $idPidaPlazo = null)
{
- $this->fecha_final = $fechaFinal;
+ $this->idPidaPlazo = $idPidaPlazo;
return $this;
}
/**
- * Get fecha_final
+ * Get idPidaPlazo
*
- * @return \DateTime
+ * @return \AppBundle\Entity\PidaPlazo
*/
- public function getFechaFinal()
+ public function getIdPidaPlazo()
{
- return $this->fecha_final;
+ return $this->idPidaPlazo;
}
/**
- * Set objetivoEspecifico
+ * Set idPidaEstatus
*
- * @param string $objetivoEspecifico
+ * @param \AppBundle\Entity\PidaEstatus $idPidaEstatus
* @return AdscripcionPida
*/
- public function setObjetivoEspecifico($objetivoEspecifico)
+ public function setIdPidaEstatus(\AppBundle\Entity\PidaEstatus $idPidaEstatus)
{
- $this->objetivoEspecifico = $objetivoEspecifico;
+ $this->idPidaEstatus = $idPidaEstatus;
return $this;
}
/**
- * Get objetivoEspecifico
+ * Get idPidaEstatus
*
- * @return string
+ * @return \AppBundle\Entity\PidaEstatus
*/
- public function getObjetivoEspecifico()
+ public function getIdPidaEstatus()
{
- return $this->objetivoEspecifico;
+ return $this->idPidaEstatus;
}
}
diff --git a/src/AppBundle/Entity/AdscripcionPida.php~ b/src/AppBundle/Entity/AdscripcionPida.php~
index 3b32b15..edb24ff 100644
--- a/src/AppBundle/Entity/AdscripcionPida.php~
+++ b/src/AppBundle/Entity/AdscripcionPida.php~
@@ -39,7 +39,7 @@ class AdscripcionPida
/**
* @var \AppBundle\Entity\RolInstitucion
*
- * @ORM\ManyToOne(targetEntity="AppBundle\Entity\RolInstitucion")
+ * @ORM\ManyToOne(targetEntity="AppBundle\Entity\RolInstitucion", inversedBy="pida")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="id_rol_institucion", referencedColumnName="id", nullable=false)
* })
@@ -68,20 +68,20 @@ class AdscripcionPida
* })
*/
protected $idActividadDocente;
+
+
+ /**
+ * @var \AppBundle\Entity\PidaPlazo
+ *
+ * @ORM\ManyToOne(targetEntity="AppBundle\Entity\PidaPlazo")
+ * @ORM\JoinColumns({
+ * @ORM\JoinColumn(name="id_pida_plazo", referencedColumnName="id", nullable=true)
+ * })
+ */
+ protected $idPidaPlazo;
- /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de inicio de la activdad PIDA"})
-
- */
-
- private $fecha_inicio;
-
-
- /** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de fin de la actividad"})
-
- */
-
- private $fecha_final;
+
/** @ORM\Column(type="datetime", nullable=false, options={"comment" = "Fecha de creación de la solicitud"})
@@ -96,6 +96,19 @@ class AdscripcionPida
*/
private $fecha_ultima_actualizacion;
+
+
+ /**
+ * @var \AppBundle\Entity\PidaEstatus
+ *
+ * @ORM\ManyToOne(targetEntity="AppBundle\Entity\PidaEstatus")
+ * @ORM\JoinColumns({
+ * @ORM\JoinColumn(name="id_pida_estatus", referencedColumnName="id", nullable=false)
+ * })
+ */
+ protected $idPidaEstatus;
+
+
/**
* @var \AppBundle\Entity\Estatus
@@ -252,49 +265,51 @@ class AdscripcionPida
return $this->idActividadDocente;
}
+
+
/**
- * Set fecha_inicio
+ * Set objetivoEspecifico
*
- * @param \DateTime $fechaInicio
+ * @param string $objetivoEspecifico
* @return AdscripcionPida
*/
- public function setFechaInicio($fechaInicio)
+ public function setObjetivoEspecifico($objetivoEspecifico)
{
- $this->fecha_inicio = $fechaInicio;
+ $this->objetivoEspecifico = $objetivoEspecifico;
return $this;
}
/**
- * Get fecha_inicio
+ * Get objetivoEspecifico
*
- * @return \DateTime
+ * @return string
*/
- public function getFechaInicio()
+ public function getObjetivoEspecifico()
{
- return $this->fecha_inicio;
+ return $this->objetivoEspecifico;
}
/**
- * Set fecha_final
+ * Set idPidaPlazo
*
- * @param \DateTime $fechaFinal
+ * @param \AppBundle\Entity\PidaPlazo $idPidaPlazo
* @return AdscripcionPida
*/
- public function setFechaFinal($fechaFinal)
+ public function setIdPidaPlazo(\AppBundle\Entity\PidaPlazo $idPidaPlazo = null)
{
- $this->fecha_final = $fechaFinal;
+ $this->idPidaPlazo = $idPidaPlazo;
return $this;
}
/**
- * Get fecha_final
+ * Get idPidaPlazo
*
- * @return \DateTime
+ * @return \AppBundle\Entity\PidaPlazo
*/
- public function getFechaFinal()
+ public function getIdPidaPlazo()
{
- return $this->fecha_final;
+ return $this->idPidaPlazo;
}
}
diff --git a/src/AppBundle/Entity/PidaEstatus.php b/src/AppBundle/Entity/PidaEstatus.php
new file mode 100644
index 0000000..874ff9d
--- /dev/null
+++ b/src/AppBundle/Entity/PidaEstatus.php
@@ -0,0 +1,107 @@
+nombre = $nombre;
+
+ return $this;
+ }
+
+ /**
+ * Get nombre
+ *
+ * @return string
+ */
+ public function getNombre()
+ {
+ return $this->nombre;
+ }
+
+ /**
+ * Set descripcion
+ *
+ * @param string $descripcion
+ * @return Estatus
+ */
+ public function setDescripcion($descripcion)
+ {
+ $this->descripcion = $descripcion;
+
+ return $this;
+ }
+
+ /**
+ * Get descripcion
+ *
+ * @return string
+ */
+ public function getDescripcion()
+ {
+ return $this->descripcion;
+ }
+
+ /**
+ * Get id
+ *
+ * @return integer
+ */
+ public function getId()
+ {
+ return $this->id;
+ }
+
+ public function __toString() {
+ return $this->getNombre();
+ }
+}
\ No newline at end of file
diff --git a/src/AppBundle/Form/PidaType.php b/src/AppBundle/Form/PidaType.php
index 153ceb7..9ecb392 100644
--- a/src/AppBundle/Form/PidaType.php
+++ b/src/AppBundle/Form/PidaType.php
@@ -9,6 +9,7 @@
namespace AppBundle\Form;
+use Doctrine\ORM\EntityRepository;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
@@ -52,9 +53,39 @@ class PidaType extends AbstractType
'label' => 'Tarea'
))
- ->add('fecha_inicio')
+ ->add('idPidaPlazo', EntityType::class, array(
+ 'class' => 'AppBundle:PidaPlazo',
+ 'label' => 'Plazos de la Actividad: ',
+ 'label_attr' => array('class' => 'radio-inline'),
+
+
+
+ 'choice_label' => 'nombre',
+
+ // used to render a select box, check boxes or radios
+ // 'multiple' => true,
+ 'expanded' => true,
+ ))
+
+
+ ->add('idPidaEstatus', EntityType::class, array(
+ 'class' => 'AppBundle:PidaEstatus',
+ 'label' => false,
+ 'label_attr' => array('class' => 'radio-inline'),
+ 'query_builder' => function (EntityRepository $er) {
+ return $er->createQueryBuilder('u')
+ ->orderBy('u.id', 'ASC');
+ },
+
+ // use the User.username property as the visible option string
+ 'choice_label' => 'nombre',
+
+ // used to render a select box, check boxes or radios
+ // 'multiple' => true,
+ 'expanded' => true,
+ ))
- ->add('fecha_final')
+
;