Пример #1
0
 //Interface
 public Zone(FreightDataset.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(ex.Message, ex); }
 }
Пример #2
0
        public static Zone NewZone(FreightDataset.ZoneTableRow zone)
        {
            //Constructor
            Zone newZone = new Zone();

            try {
                if (zone != null)
                {
                    newZone.ZoneCode = zone.Zone;
                    if (!zone.Is_TL_Null())
                    {
                        newZone.TL = zone._TL_;
                    }
                    if (!zone.IsClientNumberNull())
                    {
                        newZone.ClientNumber = zone.ClientNumber;
                    }
                    if (!zone.IsClientNameNull())
                    {
                        newZone.ClientName = zone.ClientName;
                    }
                    if (!zone.IsNewLaneNull())
                    {
                        newZone.NewLane = zone.NewLane;
                    }
                    if (!zone.IsLaneNull())
                    {
                        newZone.Lane = zone.Lane;
                    }
                    if (!zone.IsNewSmallSortLaneNull())
                    {
                        newZone.NewSmallSortLane = zone.NewSmallSortLane;
                    }
                    if (!zone.IsSmallSortLaneNull())
                    {
                        newZone.SmallSortLane = zone.SmallSortLane;
                    }
                    if (!zone.IsDescriptionNull())
                    {
                        newZone.Description = zone.Description;
                    }
                    if (!zone.IsTypeNull())
                    {
                        newZone.Type = zone.Type;
                    }
                    if (!zone.IsTypeIDNull())
                    {
                        newZone.TypeID = zone.TypeID;
                    }
                    if (!zone.IsStatusNull())
                    {
                        newZone.Status = zone.Status;
                    }
                    if (!zone.Is_RollbackTL_Null())
                    {
                        newZone.RollbackTL = zone._RollbackTL_;
                    }
                    if (!zone.IsIsExclusiveNull())
                    {
                        newZone.IsExclusive = zone.IsExclusive;
                    }
                    if (!zone.IsCAN_BE_CLOSEDNull())
                    {
                        newZone.CanBeClosed = zone.CAN_BE_CLOSED;
                    }
                    if (!zone.IsAssignedToShipScdeNull())
                    {
                        newZone.AssignedToShipScde = zone.AssignedToShipScde;
                    }
                }
            }
            catch (Exception ex) { throw new ApplicationException(ex.Message, ex); }
            return(newZone);
        }