示例#1
0
文件: zone.cs 项目: jpheary/Argix08
 //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); }
 }
示例#2
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); }
 }