Beispiel #1
0
        public DataSet ToDataSet()
        {
            //Return a dataset containing values for this object
            ZoneDS ds = null;

            try {
                ds = new ZoneDS();
                ZoneDS.ZoneTableRow zone = ds.ZoneTable.NewZoneTableRow();
                zone.CODE             = this._code;
                zone.TYPE             = this._type;
                zone.TRAILER_LOAD_NUM = this._trailer_load_num;
                zone.LABEL_TYPE       = this._label_type;
                zone.LANE             = this._lane;
                zone.STATUS           = this._status;
                zone.RB_TL_NUMBER     = this._rb_tl_number;
                zone.AgentID          = this._agentid;
                zone.AGENT_NUMBER     = this._agent_number;
                zone.DESCRIPTION      = this._description;
                zone.LOCATION         = this._location;
                zone.SortCenterID     = this._sortcenterid;
                zone.SHIP_DATE        = this._ship_date;
                zone.CAN_BE_CLOSED    = this._can_be_closed;
                zone.OSDStatus        = this._osdstatus;
                zone.LABELTYPE        = this._labeltype;
                zone.LANE_SMALL_SORT  = this._lane_small_sort;
                zone.IsMain           = this._ismain;
                zone.ShipScdeToClose  = this._shipscdetoclose;
                zone.LastUpdated      = this._lastupdated;
                zone.UserID           = this._userid;
                ds.ZoneTable.AddZoneTableRow(zone);
            }
            catch (Exception) { }
            return(ds);
        }
Beispiel #2
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); }
 }
Beispiel #3
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); }
 }