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,string stationName,string machineName) { this.StationName = stationName; this.MachineName = machineName; this.Id = fccOrderInfo.Id; this.Ttc = fccOrderInfo.Ttc; this.AuthorizationTime = fccOrderInfo.AuthorizationTime; this.EndTime = fccOrderInfo.EndTime; this.PaymentTime = fccOrderInfo.PaymentTime; this.NozzleNum = fccOrderInfo.NozzleNum; this.OilName = fccOrderInfo.OilName; this.PaymentStatus = fccOrderInfo.PaymentStatus; this.PayType = fccOrderInfo.PayType; this.CloundOrderId = fccOrderInfo.CloundOrderId; this.Amount = fccOrderInfo.Amount; this.Volume = fccOrderInfo.Volume; this.AmountPayable = fccOrderInfo.AmountPayable; this.Price = fccOrderInfo.Price; this.RefundAmount = fccOrderInfo.RefundAmount; this.UserName = fccOrderInfo.UserName; this.PhoneNumber = fccOrderInfo.PhoneNumber; this.PaymentName = fccOrderInfo.PaymentName; this.AuthorizationStatus = fccOrderInfo.AuthorizationStatus; this.RefundStatus = fccOrderInfo.RefundStatus; this.VolumePayable = fccOrderInfo.VolumePayable; } /// /// 油站名 /// public string StationName { get; set; } /// /// 油机号 /// public string MachineName { get; set; } /// /// 订单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; } /// /// 退款金额 /// public decimal? RefundAmount { get; set; } /// /// 用户名 /// public string UserName { get; set; } /// /// 手机号 /// public string PhoneNumber { get; set; } /// /// 支付类型名称 /// public string PaymentName { get; set; } /// /// 授权状态 /// public int AuthorizationStatus { get; set; } /// /// 退款状态 /// public int RefundStatus { get; set; } /// /// 预定升数 /// public decimal? VolumePayable { get; set; } /// /// 获取支付状态 /// private Dictionary paystatusValue = new Dictionary() { {0,"未支付"}, { 1, "已支付" }, { 2, "订单正在支付中" }, { 3, "订单通过卡支付" }, { 4, "订单已完成" }, { 5, "已取消" } }; public string GetPaystatus() { return paystatusValue[PaymentStatus]; } /// /// 获取授权状态 /// private Dictionary authorizationValue = new Dictionary() { { 0, "未授权" }, { 1, "授权" }, { 2, "等待授权" }, { 3, "加油中" }, { 4, "已完成" } }; public string GetAuthorizationStatus() { return authorizationValue[AuthorizationStatus]; } 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, Price = this.Price, RefundAmount = this.RefundAmount, UserName = this.UserName, PhoneNumber = this.PhoneNumber, PaymentName = this.PaymentName }; } } }