src/Entity/Solicitud.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Solicitud
  6.  *
  7.  * @ORM\Table(name="solicitud", indexes={@ORM\Index(name="solicitud_ubicacion_FK", columns={"ubicacion"}), @ORM\Index(name="solicitud_usuario_FK", columns={"usuario"}), @ORM\Index(name="solicitud_gestor_FK", columns={"gestor"})})
  8.  * @ORM\Entity(repositoryClass="App\Repository\SolicitudRepository")
  9.  */
  10. class Solicitud
  11. {
  12.     /**
  13.      * @var string
  14.      *
  15.      * @ORM\Column(name="id_sol", type="string", length=10, nullable=false, options={"comment"="Identificador único de solicitusd <AAPPPCCCC> AA->año, PPP->Clave ptl, CCCC->consecutivo plantel."})
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="NONE")
  18.      */
  19.     private $idSol;
  20.     /**
  21.      * @var string|null
  22.      *
  23.      * @ORM\Column(name="tipo_equipo", type="string", length=50, nullable=true, options={"default"="NULL","comment"="Referencia a la tabla donde se encuentra el equipo al que se refiere la solicitud"})
  24.      */
  25.     private $tipoEquipo NULL;
  26.     /**
  27.      * @var int|null
  28.      *
  29.      * @ORM\Column(name="id_equipo", type="integer", nullable=true, options={"default"="NULL","comment"="Hace referencia al equipo que recibe mantenimiento, según su tipo"})
  30.      */
  31.     private $idEquipo NULL;
  32.     /**
  33.      * @var string|null
  34.      *
  35.      * @ORM\Column(name="periodo", type="string", length=10, nullable=true, options={"default"="NULL","comment"="Referencia al periodo activo / Perido escolar en que realizó el registro"})
  36.      */
  37.     private $periodo NULL;
  38.     /**
  39.      * @var string|null
  40.      *
  41.      * @ORM\Column(name="tipo_mantenimiento", type="string", length=100, nullable=true, options={"default"="NULL","comment"="1 MP (Mantenimiento Preventivo)
  42. 2 MC (mantenimiento Correctivo )
  43. 3 ST (Soporte Técnico determinado de un MC)"})
  44.      */
  45.     private $tipoMantenimiento NULL;
  46.     /**
  47.      * @var string|null
  48.      *
  49.      * @ORM\Column(name="falla", type="text", length=65535, nullable=true, options={"default"="NULL","comment"="Descripción de la falla o del servicio que se realizará al equipo cuando se programa un mantenimiento preventivo."})
  50.      */
  51.     private $falla NULL;
  52.     /**
  53.      * @var string|null
  54.      *
  55.      * @ORM\Column(name="srealizado", type="text", length=65535, nullable=true, options={"default"="NULL","comment"="Servicio que se realiza para solucionar la falla reportada."})
  56.      */
  57.     private $srealizado NULL;
  58.     /**
  59.      * @var DateTime|null
  60.      *
  61.      * @ORM\Column(name="fregistro", type="datetime", nullable=true, options={"default"="NULL","comment"="Fecha y hora en la que se ingresa el registro en la tabla para MC y MP"})
  62.      */
  63.     private $fregistro;
  64.     /**
  65.      * @var DateTime|null
  66.      *
  67.      * @ORM\Column(name="fatencion", type="datetime", nullable=true, options={"default"="NULL","comment"="Fecha en que se deberá atender el mantenimiento"})
  68.      */
  69.     private $fatencion;
  70.     /**
  71.      * @var DateTime|null
  72.      *
  73.      * @ORM\Column(name="ffin", type="datetime", nullable=true, options={"default"="NULL","comment"="El sistema asigan la fecha en que el gestor cierra el reporte"})
  74.      */
  75.     private $ffin;
  76.     /**
  77.      * @var DateTime|null
  78.      *
  79.      * @ORM\Column(name="fevaluacion", type="datetime", nullable=true, options={"default"="NULL","comment"="Fecha en que el usuario realizó la evaluación al mantenimiento"})
  80.      */
  81.     private $fevaluacion;
  82.     /**
  83.      * @var bool|null
  84.      *
  85.      * @ORM\Column(name="refacciones", type="boolean", nullable=true, options={"default"="NULL","comment"="Uso de refacciones. SI | NO"})
  86.      */
  87.     private $refacciones NULL;
  88.     /**
  89.      * @var string|null
  90.      *
  91.      * @ORM\Column(name="estatus", type="string", length=20, nullable=true, options={"default"="NULL","comment"="1 Pendiente = Sin atender
  92. 2 Proceso = en atención
  93. 3 Atendido = Se notifico al usuario atendido
  94. 4 Evaluado = el usuario evaluó el servicio"})
  95.      */
  96.     private $estatus NULL;
  97.     /**
  98.      * @var \Usuario
  99.      *
  100.      * @ORM\ManyToOne(targetEntity="Usuario")
  101.      * @ORM\JoinColumns({
  102.      *   @ORM\JoinColumn(name="usuario", referencedColumnName="id_usu")
  103.      * })
  104.      */
  105.     private $usuario;
  106.     /**
  107.      * @var \Ubicacion
  108.      *
  109.      * @ORM\ManyToOne(targetEntity="Ubicacion")
  110.      * @ORM\JoinColumns({
  111.      *   @ORM\JoinColumn(name="ubicacion", referencedColumnName="id_ubi")
  112.      * })
  113.      */
  114.     private $ubicacion;
  115.     /**
  116.      * @var \Usuario
  117.      *
  118.      * @ORM\ManyToOne(targetEntity="Usuario")
  119.      * @ORM\JoinColumns({
  120.      *   @ORM\JoinColumn(name="gestor", referencedColumnName="id_usu")
  121.      * })
  122.      */
  123.     private $gestor;
  124.     /**
  125.      * @var \Unidad
  126.      *
  127.      * @ORM\ManyToOne(targetEntity="Unidad")
  128.      * @ORM\JoinColumns({
  129.      *   @ORM\JoinColumn(name="unidad", referencedColumnName="id_uni")
  130.      * })
  131.      */
  132.     private $unidad;
  133.     public function getIdSol(): ?string
  134.     {
  135.         return $this->idSol;
  136.     }
  137.     public function setIdSol(?string $idSol): self
  138.     {
  139.         $this->idSol $idSol;
  140.         return $this;
  141.     }
  142.     public function getTipoEquipo(): ?string
  143.     {
  144.         return $this->tipoEquipo;
  145.     }
  146.     public function setTipoEquipo(?string $tipoEquipo): self
  147.     {
  148.         $this->tipoEquipo $tipoEquipo;
  149.         return $this;
  150.     }
  151.     public function getIdEquipo(): ?int
  152.     {
  153.         return $this->idEquipo;
  154.     }
  155.     public function setIdEquipo(?int $idEquipo): self
  156.     {
  157.         $this->idEquipo $idEquipo;
  158.         return $this;
  159.     }
  160.     public function getPeriodo(): ?string
  161.     {
  162.         return $this->periodo;
  163.     }
  164.     public function setPeriodo(?string $periodo): self
  165.     {
  166.         $this->periodo $periodo;
  167.         return $this;
  168.     }
  169.     public function getTipoMantenimiento(): ?string
  170.     {
  171.         return $this->tipoMantenimiento;
  172.     }
  173.     public function setTipoMantenimiento(?string $tipoMantenimiento): self
  174.     {
  175.         $this->tipoMantenimiento $tipoMantenimiento;
  176.         return $this;
  177.     }
  178.     public function getFalla(): ?string
  179.     {
  180.         return $this->falla;
  181.     }
  182.     public function setFalla(?string $falla): self
  183.     {
  184.         $this->falla $falla;
  185.         return $this;
  186.     }
  187.     public function getSrealizado(): ?string
  188.     {
  189.         return $this->srealizado;
  190.     }
  191.     public function setSrealizado(?string $srealizado): self
  192.     {
  193.         $this->srealizado $srealizado;
  194.         return $this;
  195.     }
  196.     public function getFregistro(): ?\DateTimeInterface
  197.     {
  198.         return $this->fregistro;
  199.     }
  200.     public function setFregistro(?\DateTimeInterface $fregistro): self
  201.     {
  202.         $this->fregistro $fregistro;
  203.         return $this;
  204.     }
  205.     public function getFatencion(): ?\DateTimeInterface
  206.     {
  207.         return $this->fatencion;
  208.     }
  209.     public function setFatencion(?\DateTimeInterface $fatencion): self
  210.     {
  211.         $this->fatencion $fatencion;
  212.         return $this;
  213.     }
  214.     public function getFfin(): ?\DateTimeInterface
  215.     {
  216.         return $this->ffin;
  217.     }
  218.     public function setFfin(?\DateTimeInterface $ffin): self
  219.     {
  220.         $this->ffin $ffin;
  221.         return $this;
  222.     }
  223.     public function getFevaluacion(): ?\DateTimeInterface
  224.     {
  225.         return $this->fevaluacion;
  226.     }
  227.     public function setFevaluacion(?\DateTimeInterface $fevaluacion): self
  228.     {
  229.         $this->fevaluacion $fevaluacion;
  230.         return $this;
  231.     }
  232.     public function isRefacciones(): ?bool
  233.     {
  234.         return $this->refacciones;
  235.     }
  236.     public function setRefacciones(?bool $refacciones): self
  237.     {
  238.         $this->refacciones $refacciones;
  239.         return $this;
  240.     }
  241.     public function getEstatus(): ?string
  242.     {
  243.         return $this->estatus;
  244.     }
  245.     public function setEstatus(?string $estatus): self
  246.     {
  247.         $this->estatus $estatus;
  248.         return $this;
  249.     }
  250.     public function getUsuario(): ?Usuario
  251.     {
  252.         return $this->usuario;
  253.     }
  254.     public function setUsuario(?Usuario $usuario): self
  255.     {
  256.         $this->usuario $usuario;
  257.         return $this;
  258.     }
  259.     public function getUbicacion(): ?Ubicacion
  260.     {
  261.         return $this->ubicacion;
  262.     }
  263.     public function setUbicacion(?Ubicacion $ubicacion): self
  264.     {
  265.         $this->ubicacion $ubicacion;
  266.         return $this;
  267.     }
  268.     public function getGestor(): ?Usuario
  269.     {
  270.         return $this->gestor;
  271.     }
  272.     public function setGestor(?Usuario $gestor): self
  273.     {
  274.         $this->gestor $gestor;
  275.         return $this;
  276.     }
  277.     public function getUnidad(): ?Unidad
  278.     {
  279.         return $this->unidad;
  280.     }
  281.     public function setUnidad(?Unidad $unidad): self
  282.     {
  283.         $this->unidad $unidad;
  284.         return $this;
  285.     }
  286.     /*public function __toString()
  287.     {
  288.         return $this->idSol;
  289.     }*/
  290.     public function __toString(){
  291.         return $this->tipoMantenimiento;
  292.     }
  293. // Entidad de solictud
  294. }