Example #1
0
 public BearwareTrip(BearwareDS.BwareTripTableRow trip)
 {
     //Constructor
     try {
         if (trip != null)
         {
             this.mNumber = trip.Number.Trim();
             if (!trip.IsCartonCountNull())
             {
                 this.mCartonCount = trip.CartonCount;
             }
             if (!trip.IsCarrierNull())
             {
                 this.mCarrier = trip.Carrier;
             }
             if (!trip.IsTrailerNumberNull())
             {
                 this.mTrailerNumber = trip.TrailerNumber;
             }
             if (!trip.IsStartedNull())
             {
                 this.mStarted = trip.Started;
             }
             if (!trip.IsExportedNull())
             {
                 this.mExported = trip.Exported;
             }
             if (!trip.IsStoppedNull())
             {
                 this.mStopped = trip.Stopped;
             }
             if (!trip.IsImportedNull())
             {
                 this.mImported = trip.Imported;
             }
             if (!trip.IsScannedNull())
             {
                 this.mScanned = trip.Scanned;
             }
             if (!trip.IsOSDSendNull())
             {
                 this.mOSDSend = trip.OSDSend;
             }
             if (!trip.IsReceivedNull())
             {
                 this.mReceived = trip.Received;
             }
             if (!trip.IsCartonsExportedNull())
             {
                 this.mCartonsExported = trip.CartonsExported;
             }
         }
     }
     catch (Exception ex) { throw new ApplicationException("Unexpected error while creating new BearwareTrip instance.", ex); }
 }
Example #2
0
 public BearwareTrip(BearwareDS.BwareTripTableRow trip)
 {
     //Constructor
     if (trip != null)
     {
         this.mNumber = trip.Number.Trim();
         if (!trip.IsCartonCountNull())
         {
             this.mCartonCount = trip.CartonCount;
         }
         if (!trip.IsCarrierNull())
         {
             this.mCarrier = trip.Carrier;
         }
         if (!trip.IsTrailerNumberNull())
         {
             this.mTrailerNumber = trip.TrailerNumber;
         }
         if (!trip.IsStartedNull())
         {
             this.mStarted = trip.Started;
         }
         if (!trip.IsExportedNull())
         {
             this.mExported = trip.Exported;
         }
         if (!trip.IsStoppedNull())
         {
             this.mStopped = trip.Stopped;
         }
         if (!trip.IsImportedNull())
         {
             this.mImported = trip.Imported;
         }
         if (!trip.IsScannedNull())
         {
             this.mScanned = trip.Scanned;
         }
         if (!trip.IsOSDSendNull())
         {
             this.mOSDSend = trip.OSDSend;
         }
         if (!trip.IsReceivedNull())
         {
             this.mReceived = trip.Received;
         }
         if (!trip.IsCartonsExportedNull())
         {
             this.mCartonsExported = trip.CartonsExported;
         }
     }
 }