FuelDeliveryEventArgs.cs 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. #region --------------- Copyright Dresser Wayne Pignone -------------
  2. /*
  3. * $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/EventArgs/FuelDeliveryEventArgs.cs $
  4. *
  5. * 2 07-03-09 15:36 roger.månsson
  6. * Made COM visible.
  7. *
  8. * 1 07-01-05 15:17 roger.månsson
  9. * Created
  10. */
  11. #endregion
  12. using System;
  13. using System.Runtime.InteropServices;
  14. namespace Wayne.ForecourtControl
  15. {
  16. /// <summary>
  17. /// Data structure that contains data for a manual fuel delivery registration.
  18. /// </summary>
  19. [ComVisible(true)]
  20. public class FuelDeliveryEventArgs : EventArgs, Com.IFuelDeliveryEventArgs
  21. {
  22. #region Fields
  23. FuelDeliveryType type;
  24. int tankGroupId;
  25. DateTime startDateTime;
  26. DateTime endDateTime;
  27. decimal quantity;
  28. decimal plannedQuantity;
  29. decimal truckFuelTemperature;
  30. string sourcePlantInfo;
  31. string referenceNote;
  32. #endregion
  33. #region Construction
  34. /// <summary>
  35. ///
  36. /// </summary>
  37. /// <param name="type">Defines how the delivery was registered. I.e detected from a tank probe or a manual registration.</param>
  38. /// <param name="tankGroupId"> Id of the tank group that the delivery was made to.</param>
  39. /// <param name="startDateTime">Start date and time for the delivery.</param>
  40. /// <param name="endDateTime">End date and time for the delivery.</param>
  41. /// <param name="quantity">The delivered volume.</param>
  42. /// <param name="plannedQuantity">The volume that was planned to deliver.</param>
  43. /// <param name="truckFuelTemperature">Temperature of the fuel in the truck.</param>
  44. /// <param name="sourcePlantInfo">Plant where the truck came from. Free format string.</param>
  45. /// <param name="referenceNote">Note reference number entered by the truck driver.</param>
  46. public FuelDeliveryEventArgs(FuelDeliveryType type, int tankGroupId, DateTime startDateTime, DateTime endDateTime,
  47. decimal quantity, decimal plannedQuantity, decimal truckFuelTemperature,
  48. string sourcePlantInfo, string referenceNote)
  49. {
  50. this.type = type;
  51. this.tankGroupId = tankGroupId;
  52. this.startDateTime = startDateTime;
  53. this.endDateTime = endDateTime;
  54. this.quantity = quantity;
  55. this.plannedQuantity = plannedQuantity;
  56. this.truckFuelTemperature = truckFuelTemperature;
  57. this.sourcePlantInfo = sourcePlantInfo;
  58. this.referenceNote = referenceNote;
  59. }
  60. #endregion
  61. #region IFuelDeliveryEevntArgs Members
  62. /// <summary>
  63. /// Defines how the delivery was registered. I.e detected from a tank probe or
  64. /// a manual registration.
  65. /// </summary>
  66. public FuelDeliveryType Type
  67. {
  68. get { return type; }
  69. }
  70. /// <summary>
  71. /// Id of the tank group that the delivery was made to.
  72. /// </summary>
  73. public int TankGroupId
  74. {
  75. get { return tankGroupId; }
  76. }
  77. /// <summary>
  78. /// Start date and time for the delivery.
  79. /// </summary>
  80. public DateTime StartDateTime
  81. {
  82. get { return startDateTime; }
  83. }
  84. /// <summary>
  85. /// End date and time for the delivery.
  86. /// </summary>
  87. public DateTime EndDateTime
  88. {
  89. get { return endDateTime; }
  90. }
  91. /// <summary>
  92. /// The delivered volume
  93. /// </summary>
  94. public decimal Quantity
  95. {
  96. get { return quantity; }
  97. }
  98. /// <summary>
  99. /// The volume that was planned to deliver.
  100. /// </summary>
  101. public decimal PlannedQuantity
  102. {
  103. get { return plannedQuantity; }
  104. }
  105. /// <summary>
  106. /// Temperature of the fuel in the truck.
  107. /// </summary>
  108. public decimal TruckFuelTemperature
  109. {
  110. get { return truckFuelTemperature; }
  111. }
  112. /// <summary>
  113. /// Plant where the truck came from. Free format string.
  114. /// </summary>
  115. public string SourcePlantInfo
  116. {
  117. get { return sourcePlantInfo; }
  118. }
  119. /// <summary>
  120. /// Note reference number entered by the truck driver.
  121. /// </summary>
  122. public string ReferenceNote
  123. {
  124. get { return referenceNote; }
  125. }
  126. #endregion
  127. }
  128. }