Exemplo n.º 1
0
 //Interface
 public Zone(ZoneDS.ZoneTableRow zone)
 {
     //Constructor
     try {
         if (zone != null)
         {
             this._zone = zone.Zone;
             if (!zone.Is_TL_Null())
             {
                 this._tl = zone._TL_;
             }
             if (!zone.IsClientNumberNull())
             {
                 this._clientnumber = zone.ClientNumber;
             }
             if (!zone.IsClientNameNull())
             {
                 this._clientname = zone.ClientName;
             }
             if (!zone.IsNewLaneNull())
             {
                 this._newlane = zone.NewLane;
             }
             if (!zone.IsLaneNull())
             {
                 this._lane = zone.Lane;
             }
             if (!zone.IsNewSmallSortLaneNull())
             {
                 this._newsmallsortlane = zone.NewSmallSortLane;
             }
             if (!zone.IsSmallSortLaneNull())
             {
                 this._smallsortlane = zone.SmallSortLane;
             }
             if (!zone.IsDescriptionNull())
             {
                 this._description = zone.Description;
             }
             if (!zone.IsTypeNull())
             {
                 this._type = zone.Type;
             }
             if (!zone.IsTypeIDNull())
             {
                 this._typeid = zone.TypeID;
             }
             if (!zone.IsStatusNull())
             {
                 this._status = zone.Status;
             }
             if (!zone.Is_RollbackTL_Null())
             {
                 this._rollbacktl = zone._RollbackTL_;
             }
             if (!zone.IsIsExclusiveNull())
             {
                 this._isexclusive = zone.IsExclusive;
             }
             if (!zone.IsCAN_BE_CLOSEDNull())
             {
                 this._can_be_closed = zone.CAN_BE_CLOSED;
             }
             if (!zone.IsAssignedToShipScdeNull())
             {
                 this._assignedtoshipscde = zone.AssignedToShipScde;
             }
         }
     }
     catch (Exception ex) { throw new ApplicationException("Could not create a new zone.", ex); }
 }