예제 #1
0
 public void FillFreightInfo(FreightReservationOrder freight, DataRow row)
 {
     if (row != null)
     {
         System.TimeSpan?freightDepartureTime = row.ReadNullableUnspecifiedTime("stime");
         FreightPoint    freightPoint         = new FreightPoint();
         FreightPoint    arg_5C_0             = freightPoint;
         System.DateTime dateTime             = row.ReadUnspecifiedDateTime("sdate");
         dateTime          = dateTime.Date;
         arg_5C_0.date     = dateTime.Add(freightDepartureTime ?? System.TimeSpan.FromTicks(0L));
         freightPoint.port = new Airport
         {
             id    = row.ReadInt("sport$inc"),
             alias = row.ReadNullableTrimmedString("sport$alias"),
             name  = row.ReadNullableTrimmedString("sport$name"),
             town  = new Town
             {
                 id   = row.ReadInt("stown$inc"),
                 name = row.ReadNullableString("stown$name")
             }
         };
         freight.departure = freightPoint;
         System.TimeSpan?freightArrivalTime = row.ReadNullableUnspecifiedTime("dtime");
         FreightPoint    freightPoint2      = new FreightPoint();
         FreightPoint    arg_147_0          = freightPoint2;
         dateTime           = freight.departure.date;
         dateTime           = dateTime.Date;
         dateTime           = dateTime.AddDays((double)row.ReadInt("daysinway"));
         arg_147_0.date     = dateTime.Add(freightArrivalTime ?? System.TimeSpan.FromTicks(0L));
         freightPoint2.port = new Airport
         {
             id    = row.ReadInt("dport$inc"),
             alias = row.ReadNullableTrimmedString("dport$alias"),
             name  = row.ReadNullableTrimmedString("dport$name"),
             town  = new Town
             {
                 id   = row.ReadInt("dtown$inc"),
                 name = row.ReadNullableString("dtown$name")
             }
         };
         freight.arrival = freightPoint2;
     }
 }
 public void FillFreightInfo(FreightReservationOrder freight, DataRow row)
 {
     if (row != null)
     {
         System.TimeSpan? freightDepartureTime = row.ReadNullableUnspecifiedTime("stime");
         FreightPoint freightPoint = new FreightPoint();
         FreightPoint arg_5C_0 = freightPoint;
         System.DateTime dateTime = row.ReadUnspecifiedDateTime("sdate");
         dateTime = dateTime.Date;
         arg_5C_0.date = dateTime.Add(freightDepartureTime ?? System.TimeSpan.FromTicks(0L));
         freightPoint.port = new Airport
         {
             id = row.ReadInt("sport$inc"),
             alias = row.ReadNullableTrimmedString("sport$alias"),
             name = row.ReadNullableTrimmedString("sport$name"),
             town = new Town
             {
                 id = row.ReadInt("stown$inc"),
                 name = row.ReadNullableString("stown$name")
             }
         };
         freight.departure = freightPoint;
         System.TimeSpan? freightArrivalTime = row.ReadNullableUnspecifiedTime("dtime");
         FreightPoint freightPoint2 = new FreightPoint();
         FreightPoint arg_147_0 = freightPoint2;
         dateTime = freight.departure.date;
         dateTime = dateTime.Date;
         dateTime = dateTime.AddDays((double)row.ReadInt("daysinway"));
         arg_147_0.date = dateTime.Add(freightArrivalTime ?? System.TimeSpan.FromTicks(0L));
         freightPoint2.port = new Airport
         {
             id = row.ReadInt("dport$inc"),
             alias = row.ReadNullableTrimmedString("dport$alias"),
             name = row.ReadNullableTrimmedString("dport$name"),
             town = new Town
             {
                 id = row.ReadInt("dtown$inc"),
                 name = row.ReadNullableString("dtown$name")
             }
         };
         freight.arrival = freightPoint2;
     }
 }