ActionEducative.cs 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace CG67.FicheCollege.Domaine
  5. {
  6. [Serializable]
  7. public class ActionEducative
  8. {
  9. /// <summary>
  10. /// Libellé de l'action éducative.
  11. /// </summary>
  12. private string mLibelle;
  13. /// <summary>
  14. /// Le collège participe ou pas à cette action.
  15. /// </summary>
  16. ///
  17. private bool mParticipe;
  18. /// <summary>
  19. /// Nombre d'élèves ayant participés à cette action.
  20. /// </summary>
  21. ///
  22. private int mNbrEleves;
  23. /// <summary>
  24. /// Montant de la subvention.
  25. /// </summary>
  26. private double mMontantSubvention;
  27. private string mTypeAction;
  28. private string mPartenaire;
  29. /// <summary>
  30. /// On obtient l'entité qui s'occupe de l'action.
  31. /// </summary>
  32. public string TypeAction
  33. {
  34. get { return mTypeAction; }
  35. set { mTypeAction = value; }
  36. }
  37. /// <summary>
  38. /// Obtient ou définit le libellé de l'action éducative.
  39. /// </summary>
  40. public string Libelle
  41. {
  42. get { return mLibelle; }
  43. set { mLibelle = value; }
  44. }
  45. /// <summary>
  46. /// Obtient ou définit si oui ou non le collège participe.
  47. /// </summary>
  48. public bool Participe
  49. {
  50. get { return mParticipe; }
  51. set { mParticipe = value; }
  52. }
  53. /// <summary>
  54. /// Obtient ou définit le nombre d'élèves ayant participés à cette action.
  55. /// </summary>
  56. public int NbrEleves
  57. {
  58. get { return mNbrEleves; }
  59. set { mNbrEleves = value; }
  60. }
  61. /// <summary>
  62. /// Obtient ou définit le montant de la subvention.
  63. /// </summary>
  64. public double MontantSubvention
  65. {
  66. get { return mMontantSubvention; }
  67. set { mMontantSubvention = value; }
  68. }
  69. /// <summary>
  70. /// On obtient l'entité qui s'occupe de l'action.
  71. /// </summary>
  72. public string Partenaire
  73. {
  74. get { return mPartenaire; }
  75. set { mPartenaire = value; }
  76. }
  77. public ActionEducative(string typeAction, string libelle, bool participe, int nbrEleves, double montantSubvention, string partenaire)
  78. {
  79. this.mTypeAction = typeAction;
  80. this.mLibelle = libelle;
  81. mParticipe = participe;
  82. this.mNbrEleves = nbrEleves;
  83. this.mMontantSubvention = montantSubvention;
  84. this.mPartenaire = partenaire;
  85. }
  86. }
  87. }