namespace Edge.Core.Domain.FccOrderInfo.Output
{
///
/// fcc 订单页分页查询结果对象
///
public class OrderInfoOutput
{
///
/// 总数
///
public int Total { get; set; }
///
/// 订单
///
public List List { get; set; }
}
///
/// fcc 订单页数据对象
///
public class OrderInfo
{
public OrderInfo(FccOrderInfo fccOrderInfo)
{
this.Id = fccOrderInfo.Id;
this.CloundOrderId = fccOrderInfo.CloundOrderId;
this.Ttc = fccOrderInfo.Ttc;
this.NozzleNum = fccOrderInfo.NozzleNum;
this.OilName = fccOrderInfo.OilName;
this.Amount = fccOrderInfo.Amount;
this.Volume = fccOrderInfo.Volume;
this.AmountPayable = fccOrderInfo.AmountPayable;
this.Price = fccOrderInfo.Price;
this.AuthorizationTime = fccOrderInfo.AuthorizationTime;
this.EndTime = fccOrderInfo.EndTime;
this.PaymentTime = fccOrderInfo.PaymentTime;
this.PaymentStatus = fccOrderInfo.PaymentStatus;
this.PayType = fccOrderInfo.PayType;
}
///
/// 订单id
///
public long Id { get; set; }
///
/// 流水号
///
public int Ttc { get; set; }
///
/// 授权时间
///
public DateTime AuthorizationTime { get; set; }
///
/// 挂枪时间
///
public DateTime? EndTime { get; set; }
///
/// 交易时间
///
public DateTime? PaymentTime { get; set; }
///
/// 枪号
///
public int NozzleNum { get; set; }
///
/// 油品名
///
public String OilName { get; set; }
///
/// 支付状态
///
public int PaymentStatus { get; set; }
///
/// 支付类型
///
public int? PayType { get; set; }
///
/// 云端id
///
public long? CloundOrderId { get; set; }
///
/// 实际加油金额
///
public decimal Amount { get; set; }
///
/// 实际加油升数
///
public decimal Volume { get; set; }
///
/// 实际支付金额
///
public decimal? AmountPayable { get; set; }
///
/// 单价
///
public decimal Price { get; set; }
///
/// 是否已上传云端—— 0:未上传;1:已上传;2:不需要上传
///
public int UploadState { get; set; }
///
/// 是否删除——0:否;1:是
///
public int IsDelete { get; set; }
public FccOrderInfo ToComponent()
{
return new FccOrderInfo
{
Ttc = this.Ttc,
AuthorizationTime = this.AuthorizationTime,
EndTime = this.EndTime,
PaymentTime = this.PaymentTime,
NozzleNum = this.NozzleNum,
OilName = this.OilName,
PaymentStatus = this.PaymentStatus,
PayType = this.PayType,
CloundOrderId = this.CloundOrderId,
Amount = this.Amount,
Volume = this.Volume,
AmountPayable = this.AmountPayable,
UploadState = this.UploadState,
IsDelete = this.IsDelete
};
}
}
}