PersonVo.as 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. package com.imt.intimamedia.vo
  2. {
  3. import com.imt.intimamedia.helpers.AMFDateConverter;
  4. import com.imt.intimamedia.helpers.FormatString;
  5. [RemoteClass(alias="com.imt.intimamedia.vo.PersonVo")]
  6. [Bindable]
  7. /**
  8. * Objet utilisateur
  9. */
  10. public class PersonVo
  11. {
  12. private var _id : int = 0;
  13. private var _uid : String = FormatString.generateRandomUID();
  14. private var _firstName : String = "";
  15. private var _lastName : String = "";
  16. private var _creation : Date = new Date();
  17. private var _phone : String = "";
  18. private var _fax : String = "";
  19. private var _activity : String = "";
  20. private var _cellular : String = "";
  21. private var _mail : String = "";
  22. private var _organization : String = "";
  23. /**
  24. * Identifiant
  25. *
  26. * @default 0
  27. */
  28. public function get id () : int
  29. {
  30. return _id;
  31. }
  32. /**
  33. * @private
  34. */
  35. public function set id ( value : int ) : void
  36. {
  37. _id = value;
  38. }
  39. /**
  40. * Identifiant unique permettant de boucler sur les différents enregistrements en base
  41. *
  42. * @default ""
  43. */
  44. public function get uid () : String
  45. {
  46. return _uid;
  47. }
  48. /**
  49. * @private
  50. */
  51. public function set uid ( value : String ) : void
  52. {
  53. _uid = value;
  54. }
  55. /**
  56. * Prénom
  57. *
  58. * @default ""
  59. */
  60. public function get firstName () : String
  61. {
  62. return _firstName;
  63. }
  64. /**
  65. * @private
  66. */
  67. public function set firstName ( value : String ) : void
  68. {
  69. _firstName = value;
  70. }
  71. /**
  72. * Nom de famille
  73. *
  74. * @default ""
  75. */
  76. public function get lastName () : String
  77. {
  78. return _lastName;
  79. }
  80. /**
  81. * @private
  82. */
  83. public function set lastName ( value : String ) : void
  84. {
  85. _lastName = value;
  86. }
  87. /**
  88. * Date de création du patient
  89. *
  90. * @default null
  91. */
  92. public function get creation () : Date
  93. {
  94. return _creation;
  95. }
  96. /**
  97. * @private
  98. */
  99. public function set creation ( value : * ) : void
  100. {
  101. _creation = AMFDateConverter.convert( value );
  102. }
  103. /**
  104. * Téléphone du de l'utilisateur (humain)
  105. *
  106. * @default ""
  107. */
  108. public function get phone () : String
  109. {
  110. return _phone;
  111. }
  112. /**
  113. * @private
  114. */
  115. public function set phone ( value : String ) : void
  116. {
  117. _phone = value;
  118. }
  119. /**
  120. * Fax du de l'utilisateur (humain)
  121. *
  122. * @default ""
  123. */
  124. public function get fax () : String
  125. {
  126. return _fax;
  127. }
  128. /**
  129. * @private
  130. */
  131. public function set fax ( value : String ) : void
  132. {
  133. _fax = value;
  134. }
  135. /**
  136. * Spécialité de l'utilisateur (humain) - achat, cardiologue, neurologue...
  137. *
  138. * @default ""
  139. */
  140. public function get activity () : String
  141. {
  142. return _activity;
  143. }
  144. /**
  145. * @private
  146. */
  147. public function set activity ( value : String ) : void
  148. {
  149. _activity = value;
  150. }
  151. /**
  152. * Portable du de l'utilisateur (humain)
  153. *
  154. * @default ""
  155. */
  156. public function get cellular () : String
  157. {
  158. return _cellular;
  159. }
  160. /**
  161. * @private
  162. */
  163. public function set cellular ( value : String ) : void
  164. {
  165. _cellular = value;
  166. }
  167. /**
  168. * Mail du de l'utilisateur (humain)
  169. *
  170. * @default ""
  171. */
  172. public function get mail () : String
  173. {
  174. return _mail;
  175. }
  176. /**
  177. * @private
  178. */
  179. public function set mail ( value : String ) : void
  180. {
  181. _mail = value;
  182. }
  183. /**
  184. * Nom de l'établissement
  185. *
  186. * @default ""
  187. */
  188. public function get organization () : String
  189. {
  190. return _organization;
  191. }
  192. /**
  193. * @private
  194. */
  195. public function set organization ( value : String ) : void
  196. {
  197. _organization = value;
  198. }
  199. }
  200. }