AuthorizeParameters.cs 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. #region --------------- Copyright Dresser Wayne Pignone -------------
  2. /*
  3. * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/AuthorizeParameters.cs $
  4. *
  5. * 4 07-03-14 7:49 roger.månsson
  6. * Removed unnessecary empty public constuctor.
  7. *
  8. * 3 07-02-26 14:05 roger.månsson
  9. * Published for COM interop.
  10. *
  11. * 2 07-01-05 8:58 roger.månsson
  12. * Created an interface for COM
  13. */
  14. #endregion
  15. using System.Runtime.InteropServices;
  16. namespace Wayne.ForecourtControl
  17. {
  18. /// <summary>
  19. /// The AuthorizeParameters is a data structure that contains the
  20. /// parameters that is used when authorizing a fuelling.
  21. /// </summary>
  22. [ComVisible(true)]
  23. //[ComDefaultInterface(typeof(IAuthorizeParameters))]
  24. [ClassInterface(ClassInterfaceType.None)]
  25. public class AuthorizeParameters : Wayne.ForecourtControl.IAuthorizeParameters
  26. {
  27. #region Fields
  28. decimal presetValue;
  29. Wayne.ForecourtControl.PresetType presetType;
  30. Wayne.ForecourtControl.PriceGroup priceGroup;
  31. AllowedFuelGrades allowedFuelGrades = new AllowedFuelGrades();
  32. bool lockToReleaseClient;
  33. bool prepay;
  34. //FG, OCT-13-10, Add PayType to show outdoor payment type on FM
  35. string payType;
  36. #endregion
  37. #region Properties
  38. /// <summary>
  39. /// Maximum fuelling amount in domestic currency or volume.
  40. /// May be overridden by the configured maximum volume or
  41. /// amount in the pump controller. The lowest value will be used.
  42. /// </summary>
  43. public decimal PresetValue
  44. {
  45. get
  46. {
  47. return presetValue;
  48. }
  49. set
  50. {
  51. presetValue = value;
  52. }
  53. }
  54. /// <summary>
  55. /// Specifies if the PresetValue should be regarded as a volume or an amount.
  56. /// </summary>
  57. /// <see cref="PresetType"/>
  58. public Wayne.ForecourtControl.PresetType PresetType
  59. {
  60. get
  61. {
  62. return presetType;
  63. }
  64. set
  65. {
  66. presetType = value;
  67. }
  68. }
  69. /// <summary>
  70. /// Fuel grades allowed to use for the fuelling are set to true.
  71. /// </summary>
  72. public AllowedFuelGrades AllowedFuelGrade
  73. {
  74. get
  75. {
  76. return allowedFuelGrades;
  77. }
  78. }
  79. /// <summary>
  80. /// Specifies the price group that should be used for the price calculation.
  81. /// </summary>
  82. public int PriceGroup
  83. {
  84. get
  85. {
  86. return priceGroup;
  87. }
  88. set
  89. {
  90. priceGroup = value;
  91. }
  92. }
  93. /// <summary>
  94. /// The fuelling can only be reserved and set as paid by the releasing client if this
  95. /// property is set to true.
  96. /// </summary>
  97. public bool LockToReleaseClient
  98. {
  99. get
  100. {
  101. return lockToReleaseClient;
  102. }
  103. set
  104. {
  105. lockToReleaseClient = value;
  106. }
  107. }
  108. /// <summary>
  109. /// Prepay flag is true for bank note sale
  110. /// </summary>
  111. public bool Prepay
  112. {
  113. get
  114. {
  115. return prepay;
  116. }
  117. set
  118. {
  119. prepay = value;
  120. }
  121. }
  122. //FG, OCT-13-10, Add PayType to show outdoor payment type on FM
  123. /// <summary>
  124. /// Payment type: e.g. "ST" for speedpass tag; "FC" for fleet card; "PC" for payment card;
  125. /// </summary>
  126. public string PayType
  127. {
  128. get
  129. {
  130. return payType;
  131. }
  132. set
  133. {
  134. payType = value;
  135. }
  136. }
  137. #endregion
  138. #region IAuthorizeParameters Members
  139. IAllowedFuelGrades IAuthorizeParameters.AllowedFuelGrade
  140. {
  141. get { return allowedFuelGrades as IAllowedFuelGrades; }
  142. }
  143. #endregion
  144. }
  145. }