public override string ToString() { return(string.Format("航空公司:{0} 航班开始日期:{1} 航班结束日期:{2} 出票日期:{3} 退票规定:{4} 改签规定:{5} 签转规定:{6} 备注:{7} 状态:{8},舱位Id:{9},舱位类型:{10},使用行程:{11},旅客类型:{12},旅行类型:{13}", AirlineCode.Value, FlightBeginDate.ToShortDateString(), FlightEndDate.HasValue ? FlightEndDate.Value.ToShortDateString() : string.Empty, ETDZDate.ToShortDateString(), RefundRegulation, ChangeRegulation, EndorseRegulation, Remarks, Valid, Id, Type.GetDescription(), string.Join("\\", from VoyageTypeValue v in Enum.GetValues(typeof(VoyageTypeValue)) where (v & VoyageType) == v select v.GetDescription()) , string.Join("\\", from PassengerTypeValue p in Enum.GetValues(typeof(PassengerTypeValue)) where (PassengerType & p) == p select p.GetDescription()) , string.Join("\\", from TravelTypeValue t in Enum.GetValues(typeof(TravelTypeValue)) where (TravelType & t) == t select t.GetDescription()))); }
public override string ToString() { return(string.Format("航空公司:{0} 出发机场:{1} 到达机场:{2} 航班日期:{3} 出票日期:{4} 公布价格:{5} 里程数:{6}修改时间:{7:yyyy-MM-dd HH:mm}", AirlineCode.Value, DepartureCode.Value, ArrivalCode.Value, FlightDate.ToShortDateString(), ETDZDate.ToShortDateString(), Price, Mileage, ModifyTime)); }