Commit 24e16fe7 authored by liudong1993's avatar liudong1993

1

parent c9cc74ca
...@@ -1473,7 +1473,7 @@ namespace REBORN.Module.DMCModule ...@@ -1473,7 +1473,7 @@ namespace REBORN.Module.DMCModule
{ {
Accommodations.Add(new AccommodationItem() Accommodations.Add(new AccommodationItem()
{ {
//4、标准间 5、单人间 6、三人间 10、加床 99、其他
Name = item.HotelName, Name = item.HotelName,
Address = new Address() Address = new Address()
{ {
...@@ -1481,7 +1481,10 @@ namespace REBORN.Module.DMCModule ...@@ -1481,7 +1481,10 @@ namespace REBORN.Module.DMCModule
}, },
CheckInDate = item.CheckInDate, CheckInDate = item.CheckInDate,
CheckOutDate = item.OutDate, CheckOutDate = item.OutDate,
RoomType = item.RoomType, RoomType = item.RoomType == "标准间" ? "4" :
item.RoomType == "单人间" ? "5" :
item.RoomType == "三人间" ? "6" :
item.RoomType == "加床" ? "10" : "99",
Rooms = !string.IsNullOrEmpty(item.DoubleRoom) ? Convert.ToInt32(item.DoubleRoom) : !string.IsNullOrEmpty(item.SingleRoom) ? Convert.ToInt32(item.SingleRoom) : !string.IsNullOrEmpty(item.ThirdRoom) ? Convert.ToInt32(item.ThirdRoom) : Convert.ToInt32(item.AdultNum), Rooms = !string.IsNullOrEmpty(item.DoubleRoom) ? Convert.ToInt32(item.DoubleRoom) : !string.IsNullOrEmpty(item.SingleRoom) ? Convert.ToInt32(item.SingleRoom) : !string.IsNullOrEmpty(item.ThirdRoom) ? Convert.ToInt32(item.ThirdRoom) : Convert.ToInt32(item.AdultNum),
RoomPrice = Convert.ToDecimal(item.RoomPrice) RoomPrice = Convert.ToDecimal(item.RoomPrice)
}); });
...@@ -1514,11 +1517,12 @@ namespace REBORN.Module.DMCModule ...@@ -1514,11 +1517,12 @@ namespace REBORN.Module.DMCModule
{ {
TransportServices.Add(new TransportServiceItem() TransportServices.Add(new TransportServiceItem()
{ {
//服务类型 1接送机单程 2接送机往返 99其他
Time = item.UseTime, Time = item.UseTime,
Model = item.BusType, Model = item.BusType,
Cost = item.BusPrice, Cost = item.BusPrice,
PassengerNumber = Convert.ToInt32(item.UseNum), PassengerNumber = Convert.ToInt32(item.UseNum),
ServiceType = Convert.ToInt32(item.UseBusType), ServiceType = item.UseBusType == "接送机单程" ? 1 : item.UseBusType == "接送机往返" ? 2 : 99,
Source = new City() Source = new City()
{ {
Description = item.StartPlace, Description = item.StartPlace,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment