EntrepotFactory.cs 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using CG67.FicheCollege.Domaine;
  5. using CG67.FicheCollege.Interface;
  6. namespace CG67.FicheCollege.Entrepot
  7. {
  8. public static class EntrepotFactory
  9. {
  10. private static IEntrepotActionEducative entrepotActionEducative;
  11. public static IEntrepotActionEducative GetEntrepotActionEducative()
  12. {
  13. if (entrepotActionEducative == null)
  14. entrepotActionEducative = new EntrepotActionEducative();
  15. return entrepotActionEducative;
  16. }
  17. private static IEntrepotClasseDecouverte entrepotClasseDecouverte;
  18. public static IEntrepotClasseDecouverte GetEntrepotClasseDecouverte()
  19. {
  20. if (entrepotClasseDecouverte == null)
  21. entrepotClasseDecouverte = new EntrepotClasseDecouverte();
  22. return entrepotClasseDecouverte;
  23. }
  24. private static IEntrepotATC entrepotATC;
  25. public static IEntrepotATC GetEntrepotATC()
  26. {
  27. if (entrepotATC == null)
  28. entrepotATC = new EntrepotATC();
  29. return entrepotATC;
  30. }
  31. private static IEntrepotContratAide entrepotContratAide;
  32. public static IEntrepotContratAide GetEntrepotContratAide()
  33. {
  34. if (entrepotContratAide == null)
  35. entrepotContratAide = new EntrepotContratAide();
  36. return entrepotContratAide;
  37. }
  38. private static IEntrepotBilinguisme entrepotBilinguisme;
  39. public static IEntrepotBilinguisme GetEntrepotBilinguisme()
  40. {
  41. if (entrepotBilinguisme == null)
  42. entrepotBilinguisme = new EntrepotBilinguisme();
  43. return entrepotBilinguisme;
  44. }
  45. private static IEntrepotDotation entrepotDotation;
  46. public static IEntrepotDotation GetEntrepotDotation()
  47. {
  48. if (entrepotDotation == null)
  49. entrepotDotation = new EntrepotDotation();
  50. return entrepotDotation;
  51. }
  52. private static IEntrepotInvestissementDCE entrepotEquipement;
  53. public static IEntrepotInvestissementDCE GetEntrepotEquipement()
  54. {
  55. if (entrepotEquipement == null)
  56. entrepotEquipement = new EntrepotInvestissementDCE();
  57. return entrepotEquipement;
  58. }
  59. private static IEntrepotInvestissement entrepotInvestissement;
  60. public static IEntrepotInvestissement GetEntrepotInvestissement()
  61. {
  62. if (entrepotInvestissement == null)
  63. entrepotInvestissement = new EntrepotInvestissement();
  64. return entrepotInvestissement;
  65. }
  66. private static IEntrepotEffectifDetail entrepotEffectifDetail;
  67. public static IEntrepotEffectifDetail GetEntrepotEffectifDetail()
  68. {
  69. if (entrepotEffectifDetail == null)
  70. entrepotEffectifDetail = new EntrepotEffectifDetail();
  71. return entrepotEffectifDetail;
  72. }
  73. private static IEntrepotLogement entrepotLogement;
  74. public static IEntrepotLogement GetEntrepotLogement()
  75. {
  76. if (entrepotLogement == null)
  77. entrepotLogement = new EntrepotLogement();
  78. return entrepotLogement;
  79. }
  80. private static IEntrepotMCG entrepotMCG;
  81. public static IEntrepotMCG GetEntrepotMCG()
  82. {
  83. if (entrepotMCG == null)
  84. entrepotMCG = new EntrepotMCG();
  85. return entrepotMCG;
  86. }
  87. private static IEntrepotProjetPilote entrepotProjetPilote;
  88. public static IEntrepotProjetPilote GetEntrepotProjetPilote()
  89. {
  90. if (entrepotProjetPilote == null)
  91. entrepotProjetPilote = new EntrepotProjetPilote();
  92. return entrepotProjetPilote;
  93. }
  94. private static IEntrepotRestaurationExterne entrepotRestaurationExterne;
  95. public static IEntrepotRestaurationExterne GetEntrepotRestaurationExterne()
  96. {
  97. if (entrepotRestaurationExterne == null)
  98. entrepotRestaurationExterne = new EntrepotRestaurationExterne();
  99. return entrepotRestaurationExterne;
  100. }
  101. private static IEntrepotContact entrepotContact;
  102. public static IEntrepotContact GetEntrepotContact()
  103. {
  104. if (entrepotContact == null)
  105. entrepotContact = new EntrepotContact();
  106. return entrepotContact;
  107. }
  108. private static IEntrepotChiffresSignificatifs entrepotChiffresSignificatifs;
  109. public static IEntrepotChiffresSignificatifs GetEntrepotChiffresSignificatifs()
  110. {
  111. if (entrepotChiffresSignificatifs == null)
  112. entrepotChiffresSignificatifs = new EntrepotChiffresSignificatifs();
  113. return entrepotChiffresSignificatifs;
  114. }
  115. private static IEntrepotCommentaires entrepotCommentaires;
  116. public static IEntrepotCommentaires GetEntrepotCommentaires()
  117. {
  118. if (entrepotCommentaires == null)
  119. entrepotCommentaires = new EntrepotCommentaires();
  120. return entrepotCommentaires;
  121. }
  122. private static IEntrepotRestauration entrepotRestauration;
  123. public static IEntrepotRestauration GetEntrepotRestauration()
  124. {
  125. if (entrepotRestauration == null)
  126. entrepotRestauration = new EntrepotRestauration();
  127. return entrepotRestauration;
  128. }
  129. private static IEntrepotSoutienScolaireEnLigne entrepotSoutienScolaireEnLigne;
  130. public static IEntrepotSoutienScolaireEnLigne GetEntrepotSoutienScolaireEnLigne()
  131. {
  132. if (entrepotSoutienScolaireEnLigne == null)
  133. entrepotSoutienScolaireEnLigne = new EntrepotSoutienScolaireEnLigne();
  134. return entrepotSoutienScolaireEnLigne;
  135. }
  136. private static IEntrepotProgTravaux entrepotProgTravaux;
  137. public static IEntrepotProgTravaux GetEntrepotProgTravaux()
  138. {
  139. if (entrepotProgTravaux == null)
  140. entrepotProgTravaux = new EntrepotProgTravaux();
  141. return entrepotProgTravaux;
  142. }
  143. private static IEntrepotFichiersTravaux entrepotFichiersTravaux;
  144. public static IEntrepotFichiersTravaux GetEntrepotFichiersTravaux()
  145. {
  146. if (entrepotFichiersTravaux == null)
  147. entrepotFichiersTravaux = new EntrepotFichiersTravaux();
  148. return entrepotFichiersTravaux;
  149. }
  150. private static IEntrepotEtablissement entrepotEtablissement;
  151. public static IEntrepotEtablissement GetEntrepotEtablissement()
  152. {
  153. if (entrepotEtablissement == null)
  154. entrepotEtablissement = new EntrepotEtablissement();
  155. return entrepotEtablissement;
  156. }
  157. }
  158. }