using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IronIntel.Contractor.Maintenance
{
    public class FuelRecordInfo
    {
        public string RetailerName { get; set; }
        public string Notes { get; set; }
        public decimal TotalCost { get; set; }
        public decimal UnitCost { get; set; }
        public decimal Quantity { get; set; }
        public string Uom { get; set; }
        public string FuelTypeName { get; set; }
        public string FuelType { get; set; }
        public double Odomerter { get; set; }
        public string OdometerUnits { get; set; }
        public string RetailerZip { get; set; }
        public string RetailerState { get; set; }
        public string RetailerCity { get; set; }
        public string RetailerAddress { get; set; }
        public bool IsComesFromAPI { get; set; }
        public string DriverName { get; set; }
        public string TicketNumber { get; set; }
        public DateTime TransactionDate { get; set; }
        public string TransactionDateStr { get { return TransactionDate == DateTime.MinValue ? "" : TransactionDate.ToString("M/d/yyyy h:mm tt"); } }
        public DateTime TransactionLocalDate { get; set; }
        public string TransactionLocalDateStr { get { return TransactionLocalDate == DateTime.MinValue ? "" : TransactionLocalDate.ToString("M/d/yyyy h:mm tt"); } }
        public string AssetModel { get; set; }
        public string AssetMake { get; set; }
        public string AssetType { get; set; }
        public string VIN { get; set; }
        public string AssetName { get; set; }
        public long AssetID { get; set; }
        public long FuelID { get; set; }
        public string DataSource { get; set; }
        public string BrandName { get; set; }
        public int DistributedBy { get; set; }//0:Fueling Station  1:Fueling Asset
        public long FuelingAsset { get; set; }
        public string FuelingAssetName { get; set; }
    }

    public class FuelRecordAuditItem : FuelRecordInfo
    {
        public long LogID { get; set; }
        public DateTime LogTime { get; set; }
        public string AddedByName { get; set; }
        public string AddedBy { get; set; }
        public string LasetUpdatedBy { get; set; }
        public string LasetUpdatedByName { get; set; }
        public DateTime AddedOn { get; set; }
        public string AddedOnStr { get { return AddedOn == DateTime.MinValue ? "" : AddedOn.ToString("M/d/yyyy h:mm:ss tt"); } }
        public DateTime LastUpdatedOn { get; set; }
        public string LastUpdatedOnStr { get { return LastUpdatedOn == DateTime.MinValue ? "" : LastUpdatedOn.ToString("M/d/yyyy h:mm:ss tt"); } }

        public DateTime AddedOn_Local { get; set; }
        public string AddedOn_LocalStr { get { return AddedOn_Local == DateTime.MinValue ? "" : AddedOn_Local.ToString("M/d/yyyy h:mm:ss tt"); } }
        public DateTime LastUpdatedOn_Local { get; set; }
        public string LastUpdatedOn_LocalStr { get { return LastUpdatedOn_Local == DateTime.MinValue ? "" : LastUpdatedOn_Local.ToString("M/d/yyyy h:mm:ss tt"); } }

    }
}
