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 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("MM/dd/yyyy HH:mm"); } }
        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 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("MM/dd/yyyy HH:mm:ss"); } }
        public DateTime LastUpdatedOn { get; set; }
        public string LastUpdatedOnStr { get { return LastUpdatedOn == DateTime.MinValue ? "" : LastUpdatedOn.ToString("MM/dd/yyyy HH:mm:ss"); } }

    }
}
