CreatePatientEvent.as 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. package com.imt.intimamedia.events.patient
  2. {
  3. import com.imt.flex.cairngormExtended.event.SuperEvent;
  4. import com.imt.intimamedia.control.ApplicationController;
  5. import com.imt.intimamedia.vo.AppointmentVo;
  6. import com.imt.intimamedia.vo.PatientVo;
  7. /**
  8. * Evénement de de création d'un patient
  9. */
  10. public class CreatePatientEvent extends SuperEvent
  11. {
  12. private var _patient : PatientVo;
  13. private var _appointment : AppointmentVo;
  14. private var _person : int;
  15. public function CreatePatientEvent( patient : PatientVo, appointment : AppointmentVo, person : int, dispatcher : * = null )
  16. {
  17. super( ApplicationController.CREATE_PATIENT );
  18. this.patient = patient;
  19. this.appointment = appointment;
  20. this.person = person;
  21. this.dispatcher = dispatcher;
  22. }
  23. /**
  24. * Patient transporté par l'événement
  25. *
  26. * @default null
  27. */
  28. public function get patient () : PatientVo
  29. {
  30. return _patient;
  31. }
  32. /**
  33. * @private
  34. */
  35. public function set patient ( value : PatientVo ) : void
  36. {
  37. _patient = value;
  38. }
  39. /**
  40. * RDV transporté par l'événement
  41. *
  42. * @default null
  43. */
  44. public function get appointment () : AppointmentVo
  45. {
  46. return _appointment;
  47. }
  48. /**
  49. * @private
  50. */
  51. public function set appointment ( value : AppointmentVo ) : void
  52. {
  53. _appointment = value;
  54. }
  55. /**
  56. * ID de l'individu (humain) transporté par l'événement
  57. *
  58. * @default null
  59. */
  60. public function get person () : int
  61. {
  62. return _person;
  63. }
  64. /**
  65. * @private
  66. */
  67. public function set person ( value : int ) : void
  68. {
  69. _person = value;
  70. }
  71. }
  72. }