Esempio n. 1
0
 public Zone(ZoneDS.ZoneTableRow zone)
 {
     //Constructor
     try {
         if (zone != null)
         {
             this._code = zone.CODE;
             this._type = zone.TYPE;
             if (!zone.IsTRAILER_LOAD_NUMNull())
             {
                 this._trailer_load_num = zone.TRAILER_LOAD_NUM;
             }
             if (!zone.IsLABEL_TYPENull())
             {
                 this._label_type = zone.LABEL_TYPE;
             }
             if (!zone.IsLANENull())
             {
                 this._lane = zone.LANE;
             }
             if (!zone.IsSTATUSNull())
             {
                 this._status = zone.STATUS;
             }
             if (!zone.IsRB_TL_NUMBERNull())
             {
                 this._rb_tl_number = zone.RB_TL_NUMBER;
             }
             if (!zone.IsAgentIDNull())
             {
                 this._agentid = zone.AgentID;
             }
             if (!zone.IsAGENT_NUMBERNull())
             {
                 this._agent_number = zone.AGENT_NUMBER;
             }
             if (!zone.IsDESCRIPTIONNull())
             {
                 this._description = zone.DESCRIPTION;
             }
             if (!zone.IsLOCATIONNull())
             {
                 this._location = zone.LOCATION;
             }
             if (!zone.IsSortCenterIDNull())
             {
                 this._sortcenterid = zone.SortCenterID;
             }
             if (!zone.IsSHIP_DATENull())
             {
                 this._ship_date = zone.SHIP_DATE;
             }
             if (!zone.IsCAN_BE_CLOSEDNull())
             {
                 this._can_be_closed = zone.CAN_BE_CLOSED;
             }
             if (!zone.IsOSDStatusNull())
             {
                 this._osdstatus = zone.OSDStatus;
             }
             if (!zone.IsLABELTYPENull())
             {
                 this._labeltype = zone.LABELTYPE;
             }
             if (!zone.IsLANE_SMALL_SORTNull())
             {
                 this._lane_small_sort = zone.LANE_SMALL_SORT;
             }
             if (!zone.IsIsMainNull())
             {
                 this._ismain = zone.IsMain;
             }
             if (!zone.IsShipScdeToCloseNull())
             {
                 this._shipscdetoclose = zone.ShipScdeToClose;
             }
             if (!zone.IsLastUpdatedNull())
             {
                 this._lastupdated = zone.LastUpdated;
             }
             if (!zone.IsUserIDNull())
             {
                 this._userid = zone.UserID;
             }
         }
     }
     catch (Exception ex) { throw new ApplicationException("Unexpected exception creating new zone instance.", ex); }
 }