#region --------------- Copyright Dresser Wayne Pignone -------------
/*
* $Log: /Wrk/Support/ForecourtControl/Wrk/ForecourtControl/EventArgs/FuelDeliveryEventArgs.cs $
*
* 2 07-03-09 15:36 roger.månsson
* Made COM visible.
*
* 1 07-01-05 15:17 roger.månsson
* Created
*/
#endregion
using System;
using System.Runtime.InteropServices;
namespace Wayne.ForecourtControl
{
///
/// Data structure that contains data for a manual fuel delivery registration.
///
[ComVisible(true)]
public class FuelDeliveryEventArgs : EventArgs, Com.IFuelDeliveryEventArgs
{
#region Fields
FuelDeliveryType type;
int tankGroupId;
DateTime startDateTime;
DateTime endDateTime;
decimal quantity;
decimal plannedQuantity;
decimal truckFuelTemperature;
string sourcePlantInfo;
string referenceNote;
#endregion
#region Construction
///
///
///
/// Defines how the delivery was registered. I.e detected from a tank probe or a manual registration.
/// Id of the tank group that the delivery was made to.
/// Start date and time for the delivery.
/// End date and time for the delivery.
/// The delivered volume.
/// The volume that was planned to deliver.
/// Temperature of the fuel in the truck.
/// Plant where the truck came from. Free format string.
/// Note reference number entered by the truck driver.
public FuelDeliveryEventArgs(FuelDeliveryType type, int tankGroupId, DateTime startDateTime, DateTime endDateTime,
decimal quantity, decimal plannedQuantity, decimal truckFuelTemperature,
string sourcePlantInfo, string referenceNote)
{
this.type = type;
this.tankGroupId = tankGroupId;
this.startDateTime = startDateTime;
this.endDateTime = endDateTime;
this.quantity = quantity;
this.plannedQuantity = plannedQuantity;
this.truckFuelTemperature = truckFuelTemperature;
this.sourcePlantInfo = sourcePlantInfo;
this.referenceNote = referenceNote;
}
#endregion
#region IFuelDeliveryEevntArgs Members
///
/// Defines how the delivery was registered. I.e detected from a tank probe or
/// a manual registration.
///
public FuelDeliveryType Type
{
get { return type; }
}
///
/// Id of the tank group that the delivery was made to.
///
public int TankGroupId
{
get { return tankGroupId; }
}
///
/// Start date and time for the delivery.
///
public DateTime StartDateTime
{
get { return startDateTime; }
}
///
/// End date and time for the delivery.
///
public DateTime EndDateTime
{
get { return endDateTime; }
}
///
/// The delivered volume
///
public decimal Quantity
{
get { return quantity; }
}
///
/// The volume that was planned to deliver.
///
public decimal PlannedQuantity
{
get { return plannedQuantity; }
}
///
/// Temperature of the fuel in the truck.
///
public decimal TruckFuelTemperature
{
get { return truckFuelTemperature; }
}
///
/// Plant where the truck came from. Free format string.
///
public string SourcePlantInfo
{
get { return sourcePlantInfo; }
}
///
/// Note reference number entered by the truck driver.
///
public string ReferenceNote
{
get { return referenceNote; }
}
#endregion
}
}