src/Entity/OperacionDetalle.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use DateTimeInterface;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(readOnly=true)
  7. * @ORM\Table(name="operacion_detalle", schema="perseo")
  8. */
  9. class OperacionDetalle
  10. {
  11. /**
  12. * @ORM\Id
  13. * @ORM\Column(type="uuid", unique=true)
  14. * @ORM\GeneratedValue(strategy="CUSTOM")
  15. * @ORM\CustomIdGenerator(class="doctrine.uuid_generator")
  16. */
  17. private $id;
  18. /**
  19. * @ORM\Column(type="uuid", name="operacion_id")
  20. */
  21. private $operacion;
  22. /**
  23. * @ORM\Column(type="string", name="tipo")
  24. */
  25. private $tipo;
  26. /**
  27. * @ORM\Column(type="string", unique=true, nullable=true, name="IDperseo")
  28. */
  29. private $IDperseo;
  30. /**
  31. * @ORM\Column(type="datetime", name="fecha")
  32. */
  33. private $fecha;
  34. /**
  35. * @ORM\Column(type="uuid", name="valoracion_id")
  36. */
  37. private $valoracionOperacion;
  38. /**
  39. * @ORM\Column(type="string", name="valoracion_IDperseo")
  40. */
  41. private $valoracionIDperseo;
  42. /**
  43. * @ORM\Column(type="uuid", name="estado_id")
  44. */
  45. private $estado;
  46. /**
  47. * @ORM\Column(type="string", name="estado_key")
  48. */
  49. private $estadoKey;
  50. /**
  51. * @ORM\Column(type="string", name="estado_nombre")
  52. */
  53. private $estadoNombre;
  54. /**
  55. * @ORM\Column(type="datetime", name="estado_fecha")
  56. */
  57. private $estadoFecha;
  58. /**
  59. * @ORM\Column(type="uuid", name="cliente_id")
  60. */
  61. private $cliente;
  62. /**
  63. * @ORM\Column(type="string", name="cliente_razon_social")
  64. */
  65. private $clienteRazonSocial;
  66. /**
  67. * @ORM\Column(type="uuid", name="canal_id")
  68. */
  69. private $canal;
  70. /**
  71. * @ORM\Column(type="string", name="canal_nombre")
  72. */
  73. private $canalNombre;
  74. /**
  75. * @ORM\Column(type="uuid", name="usuario_id")
  76. */
  77. private $usuario;
  78. /**
  79. * @ORM\Column(type="string", name="usuario_IDperseo")
  80. */
  81. private $usuarioIDperseo;
  82. /**
  83. * @ORM\Column(type="uuid", name="user_id")
  84. */
  85. private $user;
  86. /**
  87. * @ORM\Column(type="string", name="user_username")
  88. */
  89. private $userUsername;
  90. /**
  91. * @ORM\Column(type="string", name="user_email")
  92. */
  93. private $userEmail;
  94. /**
  95. * @ORM\Column(type="string", name="user_nombre")
  96. */
  97. private $userNombre;
  98. /**
  99. * @ORM\Column(type="string", name="user_primer_apellido")
  100. */
  101. private $userPrimerApellido;
  102. /**
  103. * @ORM\Column(type="string", name="user_segundo_apellido")
  104. */
  105. private $userSegundoApellido;
  106. /**
  107. * @ORM\Column(type="string", name="fecha_tramitacion")
  108. */
  109. private $fechaTramitacion;
  110. /**
  111. * @ORM\Column(type="string", name="fecha_tramitada")
  112. */
  113. private $fechaTramitada;
  114. /**
  115. * @ORM\Column(type="string", name="fecha_confirmada")
  116. */
  117. private $fechaConfirmada;
  118. /**
  119. * @ORM\Column(type="string", name="fecha_cancelada")
  120. */
  121. private $fechaCancelada;
  122. /**
  123. * @ORM\Column(type="string", name="fecha_asentada")
  124. */
  125. private $fechaAsentada;
  126. /**
  127. * @ORM\Column(type="string", name="fecha_finalizada")
  128. */
  129. private $fechaFinalizada;
  130. /**
  131. * @ORM\Column(type="uuid", name="detalle_id")
  132. */
  133. private $detalle;
  134. /**
  135. * @ORM\Column(type="uuid", name="detalle_reloj_id")
  136. */
  137. private $detalleReloj;
  138. /**
  139. * @ORM\Column(type="string", name="detalle_reloj_IDperseo")
  140. */
  141. private $detalleRelojIDperseo;
  142. /**
  143. * @ORM\Column(type="string", name="detalle_reloj_codigo")
  144. */
  145. private $detalleRelojCodigo;
  146. /**
  147. * @ORM\Column(type="uuid", name="detalle_reloj_marca_id")
  148. */
  149. private $detalleRelojMarca;
  150. /**
  151. * @ORM\Column(type="string", name="detalle_reloj_marca_nombre")
  152. */
  153. private $detalleRelojMarcaNombre;
  154. /**
  155. * @ORM\Column(type="string", name="detalle_reloj_modelo1")
  156. */
  157. private $detalleRelojModelo1;
  158. /**
  159. * @ORM\Column(type="string", name="detalle_reloj_ref1")
  160. */
  161. private $detalleRelojRef1;
  162. /**
  163. * @ORM\Column(type="float", precision=2, name="detalle_precio_coste")
  164. */
  165. private $detallePrecioCoste;
  166. /**
  167. * @ORM\Column(type="float", precision=2, name="detalle_precio_venta")
  168. */
  169. private $detallePrecioVenta;
  170. /**
  171. * @ORM\Column(type="datetime", nullable=true, name="deleted_at")
  172. */
  173. protected $deletedAt;
  174. /**
  175. * @return mixed
  176. */
  177. public function getId()
  178. {
  179. return $this->id;
  180. }
  181. /**
  182. * @param mixed $id
  183. * @return OperacionDetalle
  184. */
  185. public function setId($id)
  186. {
  187. $this->id = $id;
  188. return $this;
  189. }
  190. /**
  191. * @return mixed
  192. */
  193. public function getOperacion()
  194. {
  195. return $this->operacion;
  196. }
  197. /**
  198. * @param mixed $operacion
  199. * @return OperacionDetalle
  200. */
  201. public function setOperacion($operacion)
  202. {
  203. $this->operacion = $operacion;
  204. return $this;
  205. }
  206. /**
  207. * @return mixed
  208. */
  209. public function getTipo()
  210. {
  211. return $this->tipo;
  212. }
  213. /**
  214. * @param mixed $tipo
  215. * @return OperacionDetalle
  216. */
  217. public function setTipo($tipo)
  218. {
  219. $this->tipo = $tipo;
  220. return $this;
  221. }
  222. /**
  223. * @return mixed
  224. */
  225. public function getIDperseo()
  226. {
  227. return $this->IDperseo;
  228. }
  229. /**
  230. * @param mixed $IDperseo
  231. * @return OperacionDetalle
  232. */
  233. public function setIDperseo($IDperseo)
  234. {
  235. $this->IDperseo = $IDperseo;
  236. return $this;
  237. }
  238. /**
  239. * @return mixed
  240. */
  241. public function getValoracionOperacion()
  242. {
  243. return $this->valoracionOperacion;
  244. }
  245. /**
  246. * @param mixed $valoracionOperacion
  247. * @return OperacionDetalle
  248. */
  249. public function setValoracionOperacion($valoracionOperacion)
  250. {
  251. $this->valoracionOperacion = $valoracionOperacion;
  252. return $this;
  253. }
  254. /**
  255. * @return mixed
  256. */
  257. public function getValoracionIDperseo()
  258. {
  259. return $this->valoracionIDperseo;
  260. }
  261. /**
  262. * @param mixed $valoracionIDperseo
  263. * @return OperacionDetalle
  264. */
  265. public function setValoracionIDperseo($valoracionIDperseo)
  266. {
  267. $this->valoracionIDperseo = $valoracionIDperseo;
  268. return $this;
  269. }
  270. /**
  271. * @return mixed
  272. */
  273. public function getEstado()
  274. {
  275. return $this->estado;
  276. }
  277. /**
  278. * @param mixed $estado
  279. * @return OperacionDetalle
  280. */
  281. public function setEstado($estado)
  282. {
  283. $this->estado = $estado;
  284. return $this;
  285. }
  286. /**
  287. * @return mixed
  288. */
  289. public function getEstadoKey()
  290. {
  291. return $this->estadoKey;
  292. }
  293. /**
  294. * @param mixed $estadoKey
  295. * @return OperacionDetalle
  296. */
  297. public function setEstadoKey($estadoKey)
  298. {
  299. $this->estadoKey = $estadoKey;
  300. return $this;
  301. }
  302. /**
  303. * @return mixed
  304. */
  305. public function getEstadoNombre()
  306. {
  307. return $this->estadoNombre;
  308. }
  309. /**
  310. * @param mixed $estadoNombre
  311. * @return OperacionDetalle
  312. */
  313. public function setEstadoNombre($estadoNombre)
  314. {
  315. $this->estadoNombre = $estadoNombre;
  316. return $this;
  317. }
  318. /**
  319. * @return mixed
  320. */
  321. public function getEstadoFecha()
  322. {
  323. return $this->estadoFecha;
  324. }
  325. /**
  326. * @param mixed $estadoFecha
  327. * @return OperacionDetalle
  328. */
  329. public function setEstadoFecha($estadoFecha)
  330. {
  331. $this->estadoFecha = $estadoFecha;
  332. return $this;
  333. }
  334. /**
  335. * @return mixed
  336. */
  337. public function getCliente()
  338. {
  339. return $this->cliente;
  340. }
  341. /**
  342. * @param mixed $cliente
  343. * @return OperacionDetalle
  344. */
  345. public function setCliente($cliente)
  346. {
  347. $this->cliente = $cliente;
  348. return $this;
  349. }
  350. /**
  351. * @return mixed
  352. */
  353. public function getClienteRazonSocial()
  354. {
  355. return $this->clienteRazonSocial;
  356. }
  357. /**
  358. * @param mixed $clienteRazonSocial
  359. * @return OperacionDetalle
  360. */
  361. public function setClienteRazonSocial($clienteRazonSocial)
  362. {
  363. $this->clienteRazonSocial = $clienteRazonSocial;
  364. return $this;
  365. }
  366. /**
  367. * @return mixed
  368. */
  369. public function getCanal()
  370. {
  371. return $this->canal;
  372. }
  373. /**
  374. * @param mixed $canal
  375. * @return OperacionDetalle
  376. */
  377. public function setCanal($canal)
  378. {
  379. $this->canal = $canal;
  380. return $this;
  381. }
  382. /**
  383. * @return mixed
  384. */
  385. public function getCanalNombre()
  386. {
  387. return $this->canalNombre;
  388. }
  389. /**
  390. * @param mixed $canalNombre
  391. * @return OperacionDetalle
  392. */
  393. public function setCanalNombre($canalNombre)
  394. {
  395. $this->canalNombre = $canalNombre;
  396. return $this;
  397. }
  398. /**
  399. * @return mixed
  400. */
  401. public function getUsuario()
  402. {
  403. return $this->usuario;
  404. }
  405. /**
  406. * @param mixed $usuario
  407. * @return OperacionDetalle
  408. */
  409. public function setUsuario($usuario)
  410. {
  411. $this->usuario = $usuario;
  412. return $this;
  413. }
  414. /**
  415. * @return mixed
  416. */
  417. public function getUsuarioIDperseo()
  418. {
  419. return $this->usuarioIDperseo;
  420. }
  421. /**
  422. * @param mixed $usuarioIDperseo
  423. * @return OperacionDetalle
  424. */
  425. public function setUsuarioIDperseo($usuarioIDperseo)
  426. {
  427. $this->usuarioIDperseo = $usuarioIDperseo;
  428. return $this;
  429. }
  430. /**
  431. * @return mixed
  432. */
  433. public function getUser()
  434. {
  435. return $this->user;
  436. }
  437. /**
  438. * @param mixed $user
  439. * @return OperacionDetalle
  440. */
  441. public function setUser($user)
  442. {
  443. $this->user = $user;
  444. return $this;
  445. }
  446. /**
  447. * @return mixed
  448. */
  449. public function getUserUsername()
  450. {
  451. return $this->userUsername;
  452. }
  453. /**
  454. * @param mixed $userUsername
  455. * @return OperacionDetalle
  456. */
  457. public function setUserUsername($userUsername)
  458. {
  459. $this->userUsername = $userUsername;
  460. return $this;
  461. }
  462. /**
  463. * @return mixed
  464. */
  465. public function getUserEmail()
  466. {
  467. return $this->userEmail;
  468. }
  469. /**
  470. * @param mixed $userEmail
  471. * @return OperacionDetalle
  472. */
  473. public function setUserEmail($userEmail)
  474. {
  475. $this->userEmail = $userEmail;
  476. return $this;
  477. }
  478. /**
  479. * @return mixed
  480. */
  481. public function getUserNombre()
  482. {
  483. return $this->userNombre;
  484. }
  485. /**
  486. * @param mixed $userNombre
  487. * @return OperacionDetalle
  488. */
  489. public function setUserNombre($userNombre)
  490. {
  491. $this->userNombre = $userNombre;
  492. return $this;
  493. }
  494. /**
  495. * @return mixed
  496. */
  497. public function getUserPrimerApellido()
  498. {
  499. return $this->userPrimerApellido;
  500. }
  501. /**
  502. * @param mixed $userPrimerApellido
  503. * @return OperacionDetalle
  504. */
  505. public function setUserPrimerApellido($userPrimerApellido)
  506. {
  507. $this->userPrimerApellido = $userPrimerApellido;
  508. return $this;
  509. }
  510. /**
  511. * @return mixed
  512. */
  513. public function getUserSegundoApellido()
  514. {
  515. return $this->userSegundoApellido;
  516. }
  517. /**
  518. * @param mixed $userSegundoApellido
  519. * @return OperacionDetalle
  520. */
  521. public function setUserSegundoApellido($userSegundoApellido)
  522. {
  523. $this->userSegundoApellido = $userSegundoApellido;
  524. return $this;
  525. }
  526. /**
  527. * @return mixed
  528. */
  529. public function getFechaTramitacion()
  530. {
  531. return $this->fechaTramitacion;
  532. }
  533. /**
  534. * @param mixed $fechaTramitacion
  535. * @return OperacionDetalle
  536. */
  537. public function setFechaTramitacion($fechaTramitacion)
  538. {
  539. $this->fechaTramitacion = $fechaTramitacion;
  540. return $this;
  541. }
  542. /**
  543. * @return mixed
  544. */
  545. public function getFechaTramitada()
  546. {
  547. return $this->fechaTramitada;
  548. }
  549. /**
  550. * @param mixed $fechaTramitada
  551. * @return OperacionDetalle
  552. */
  553. public function setFechaTramitada($fechaTramitada)
  554. {
  555. $this->fechaTramitada = $fechaTramitada;
  556. return $this;
  557. }
  558. /**
  559. * @return mixed
  560. */
  561. public function getFechaConfirmada()
  562. {
  563. return $this->fechaConfirmada;
  564. }
  565. /**
  566. * @param mixed $fechaConfirmada
  567. * @return OperacionDetalle
  568. */
  569. public function setFechaConfirmada($fechaConfirmada)
  570. {
  571. $this->fechaConfirmada = $fechaConfirmada;
  572. return $this;
  573. }
  574. /**
  575. * @return mixed
  576. */
  577. public function getFechaCancelada()
  578. {
  579. return $this->fechaCancelada;
  580. }
  581. /**
  582. * @param mixed $fechaCancelada
  583. * @return OperacionDetalle
  584. */
  585. public function setFechaCancelada($fechaCancelada)
  586. {
  587. $this->fechaCancelada = $fechaCancelada;
  588. return $this;
  589. }
  590. /**
  591. * @return mixed
  592. */
  593. public function getFechaAsentada()
  594. {
  595. return $this->fechaAsentada;
  596. }
  597. /**
  598. * @param mixed $fechaAsentada
  599. * @return OperacionDetalle
  600. */
  601. public function setFechaAsentada($fechaAsentada)
  602. {
  603. $this->fechaAsentada = $fechaAsentada;
  604. return $this;
  605. }
  606. /**
  607. * @return mixed
  608. */
  609. public function getFechaFinalizada()
  610. {
  611. return $this->fechaFinalizada;
  612. }
  613. /**
  614. * @param mixed $fechaFinalizada
  615. * @return OperacionDetalle
  616. */
  617. public function setFechaFinalizada($fechaFinalizada)
  618. {
  619. $this->fechaFinalizada = $fechaFinalizada;
  620. return $this;
  621. }
  622. /**
  623. * @return mixed
  624. */
  625. public function getDetalle()
  626. {
  627. return $this->detalle;
  628. }
  629. /**
  630. * @param mixed $detalle
  631. * @return OperacionDetalle
  632. */
  633. public function setDetalle($detalle)
  634. {
  635. $this->detalle = $detalle;
  636. return $this;
  637. }
  638. /**
  639. * @return mixed
  640. */
  641. public function getDetalleReloj()
  642. {
  643. return $this->detalleReloj;
  644. }
  645. /**
  646. * @param mixed $detalleReloj
  647. * @return OperacionDetalle
  648. */
  649. public function setDetalleReloj($detalleReloj)
  650. {
  651. $this->detalleReloj = $detalleReloj;
  652. return $this;
  653. }
  654. /**
  655. * @return mixed
  656. */
  657. public function getDetalleRelojIDperseo()
  658. {
  659. return $this->detalleRelojIDperseo;
  660. }
  661. public function getDetalleRelojCodigo()
  662. {
  663. return $this->detalleRelojCodigo;
  664. }
  665. /**
  666. * @param mixed $detalleRelojIDperseo
  667. * @return OperacionDetalle
  668. */
  669. public function setDetalleRelojIDperseo($detalleRelojIDperseo)
  670. {
  671. $this->detalleRelojIDperseo = $detalleRelojIDperseo;
  672. return $this;
  673. }
  674. /**
  675. * @return mixed
  676. */
  677. public function getDetalleRelojMarca()
  678. {
  679. return $this->detalleRelojMarca;
  680. }
  681. /**
  682. * @param mixed $detalleRelojMarca
  683. * @return OperacionDetalle
  684. */
  685. public function setDetalleRelojMarca($detalleRelojMarca)
  686. {
  687. $this->detalleRelojMarca = $detalleRelojMarca;
  688. return $this;
  689. }
  690. /**
  691. * @return mixed
  692. */
  693. public function getDetalleRelojMarcaNombre()
  694. {
  695. return $this->detalleRelojMarcaNombre;
  696. }
  697. /**
  698. * @param mixed $detalleRelojMarcaNombre
  699. * @return OperacionDetalle
  700. */
  701. public function setDetalleRelojMarcaNombre($detalleRelojMarcaNombre)
  702. {
  703. $this->detalleRelojMarcaNombre = $detalleRelojMarcaNombre;
  704. return $this;
  705. }
  706. /**
  707. * @return mixed
  708. */
  709. public function getDetalleRelojModelo1()
  710. {
  711. return $this->detalleRelojModelo1;
  712. }
  713. /**
  714. * @param mixed $detalleRelojModelo1
  715. * @return OperacionDetalle
  716. */
  717. public function setDetalleRelojModelo1($detalleRelojModelo1)
  718. {
  719. $this->detalleRelojModelo1 = $detalleRelojModelo1;
  720. return $this;
  721. }
  722. /**
  723. * @return mixed
  724. */
  725. public function getDetalleRelojRef1()
  726. {
  727. return $this->detalleRelojRef1;
  728. }
  729. /**
  730. * @param mixed $detalleRelojRef1
  731. * @return OperacionDetalle
  732. */
  733. public function setDetalleRelojRef1($detalleRelojRef1)
  734. {
  735. $this->detalleRelojRef1 = $detalleRelojRef1;
  736. return $this;
  737. }
  738. /**
  739. * @return mixed
  740. */
  741. public function getDetallePrecioCoste()
  742. {
  743. return $this->detallePrecioCoste;
  744. }
  745. /**
  746. * @param mixed $detallePrecioCoste
  747. * @return OperacionDetalle
  748. */
  749. public function setDetallePrecioCoste($detallePrecioCoste)
  750. {
  751. $this->detallePrecioCoste = $detallePrecioCoste;
  752. return $this;
  753. }
  754. /**
  755. * @return mixed
  756. */
  757. public function getDetallePrecioVenta()
  758. {
  759. return $this->detallePrecioVenta;
  760. }
  761. /**
  762. * @param mixed $detallePrecioVenta
  763. * @return OperacionDetalle
  764. */
  765. public function setDetallePrecioVenta($detallePrecioVenta)
  766. {
  767. $this->detallePrecioVenta = $detallePrecioVenta;
  768. return $this;
  769. }
  770. /*
  771. * @return DateTime
  772. * @throws Exception
  773. */
  774. /*public function getEstadoFecha(): DateTime
  775. {
  776. switch($this->getEstadoKey())
  777. {
  778. case EstadoOperacionEnum::ESTADO_EN_TRAMITACION:
  779. $fecha = $this->getFechaTramitacion();
  780. break;
  781. case EstadoOperacionEnum::ESTADO_TRAMITADA:
  782. $fecha = $this->getFechaTramitada();
  783. break;
  784. case EstadoOperacionEnum::ESTADO_CONFIRMADA:
  785. $fecha = $this->getFechaConfirmada();
  786. break;
  787. default:
  788. $fecha = null;
  789. break;
  790. }
  791. return new DateTime($fecha);
  792. }*/
  793. public function getFecha(): ?\DateTimeInterface
  794. {
  795. return $this->fecha;
  796. }
  797. public function setFecha(\DateTimeInterface $fecha): static
  798. {
  799. $this->fecha = $fecha;
  800. return $this;
  801. }
  802. public function getDeletedAt(): ?DateTimeInterface
  803. {
  804. return $this->deletedAt;
  805. }
  806. public function setDeletedAt(?DateTimeInterface $deletedAt): self
  807. {
  808. $this->deletedAt = $deletedAt;
  809. return $this;
  810. }
  811. }