HospitalVo.as 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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.HospitalVo")]
  6. [Bindable]
  7. /**
  8. * Objet hopital
  9. */
  10. public class HospitalVo
  11. {
  12. private var _id : String = "";
  13. private var _uid : String = FormatString.generateRandomUID();
  14. private var _codeOrganization : String = "";
  15. private var _name : String = "";
  16. private var _creation : Date = new Date();
  17. private var _addressInvoicing : String = "";
  18. private var _addressShipping : String = "";
  19. private var _city : String = "";
  20. private var _zipCode : String = "";
  21. private var _phone : String = "";
  22. private var _fax : String = "";
  23. private var _state : String = "";
  24. private var _county : String = "";
  25. private var _district : String = "";
  26. private var _country : String = "";
  27. /**
  28. * Clef primaire en base
  29. *
  30. * @default généré
  31. */
  32. public function get id () : String
  33. {
  34. return _id;
  35. }
  36. /**
  37. * @private
  38. */
  39. public function set id ( value : String ) : void
  40. {
  41. _id = value;
  42. }
  43. /**
  44. * Identifiant unique
  45. *
  46. * @default généré
  47. */
  48. public function get uid () : String
  49. {
  50. return _uid;
  51. }
  52. /**
  53. * @private
  54. */
  55. public function set uid ( value : String ) : void
  56. {
  57. _uid = value;
  58. }
  59. /**
  60. * Code unique de l'établissement
  61. *
  62. * @default généré
  63. */
  64. public function get codeOrganization () : String
  65. {
  66. return _codeOrganization;
  67. }
  68. /**
  69. * @private
  70. */
  71. public function set codeOrganization ( value : String ) : void
  72. {
  73. _codeOrganization = value;
  74. }
  75. /**
  76. * Nom de l'établissement
  77. *
  78. * @default ""
  79. */
  80. public function get name () : String
  81. {
  82. return _name;
  83. }
  84. /**
  85. * @private
  86. */
  87. public function set name ( value : String ) : void
  88. {
  89. _name = value;
  90. }
  91. /**
  92. * Date de création de l'établissement
  93. *
  94. * @default null
  95. */
  96. public function get creation () : Date
  97. {
  98. return _creation;
  99. }
  100. /**
  101. * @private
  102. */
  103. public function set creation ( value : Date ) : void
  104. {
  105. _creation = AMFDateConverter.convert( value );
  106. }
  107. /**
  108. * Adresse de facturation
  109. *
  110. * @default ""
  111. */
  112. public function get addressInvoicing () : String
  113. {
  114. return _addressInvoicing;
  115. }
  116. /**
  117. * @private
  118. */
  119. public function set addressInvoicing ( value : String ) : void
  120. {
  121. _addressInvoicing = value;
  122. }
  123. /**
  124. * Adresse de livraison
  125. *
  126. * @default ""
  127. */
  128. public function get addressShipping () : String
  129. {
  130. return _addressShipping;
  131. }
  132. /**
  133. * @private
  134. */
  135. public function set addressShipping ( value : String ) : void
  136. {
  137. _addressShipping = value;
  138. }
  139. /**
  140. * Ville de l'hopital
  141. *
  142. * @default ""
  143. */
  144. public function get city () : String
  145. {
  146. return _city;
  147. }
  148. /**
  149. * @private
  150. */
  151. public function set city ( value : String ) : void
  152. {
  153. _city = value;
  154. }
  155. /**
  156. * Code postal de l'hopital
  157. *
  158. * @default 0
  159. */
  160. public function get zipCode () : String
  161. {
  162. return _zipCode;
  163. }
  164. /**
  165. * @private
  166. */
  167. public function set zipCode ( value : String ) : void
  168. {
  169. _zipCode = value;
  170. }
  171. /**
  172. * Téléphone de l'hopital
  173. *
  174. * @default 0
  175. */
  176. public function get phone () : String
  177. {
  178. return _phone;
  179. }
  180. /**
  181. * @private
  182. */
  183. public function set phone ( value : String ) : void
  184. {
  185. _phone = value;
  186. }
  187. /**
  188. * Fax de l'hopital
  189. *
  190. * @default 0
  191. */
  192. public function get fax () : String
  193. {
  194. return _fax;
  195. }
  196. /**
  197. * @private
  198. */
  199. public function set fax ( value : String ) : void
  200. {
  201. _fax = value;
  202. }
  203. /**
  204. * Etat (ou region) de l'hopital
  205. *
  206. * @default ""
  207. */
  208. public function get state () : String
  209. {
  210. return _state;
  211. }
  212. /**
  213. * @private
  214. */
  215. public function set state ( value : String ) : void
  216. {
  217. _state = value;
  218. }
  219. /**
  220. * Conté (USA) de l'hopital
  221. *
  222. * @default ""
  223. */
  224. public function get county () : String
  225. {
  226. return _county;
  227. }
  228. /**
  229. * @private
  230. */
  231. public function set county ( value : String ) : void
  232. {
  233. _county = value;
  234. }
  235. /**
  236. * District (USA) de l'hopital
  237. *
  238. * @default ""
  239. */
  240. public function get district () : String
  241. {
  242. return _district;
  243. }
  244. /**
  245. * @private
  246. */
  247. public function set district ( value : String ) : void
  248. {
  249. _district = value;
  250. }
  251. /**
  252. * Pays de l'hopital
  253. *
  254. * @default ""
  255. */
  256. public function get country () : String
  257. {
  258. return _country;
  259. }
  260. /**
  261. * @private
  262. */
  263. public function set country ( value : String ) : void
  264. {
  265. _country = value;
  266. }
  267. }
  268. }