Beispiel #1
0
        public virtual PicklistItemStateRemovedDto NewPicklistItemStateRemoved(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
        {
            var e   = new PicklistItemStateRemovedDto();
            var eId = NewPicklistItemEventId(picklistItemOrderShipGrpInvId);

            e.PicklistItemEventId = eId;
            return(e);
        }
Beispiel #2
0
        private PicklistItemEventId NewPicklistItemEventId(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
        {
            var eId = new PicklistItemEventId();

            eId.PicklistBinId = this.PicklistBinEventId.PicklistBinId;
            eId.PicklistItemOrderShipGrpInvId = picklistItemOrderShipGrpInvId;
            eId.PicklistBinVersion            = this.PicklistBinEventId.Version;
            return(eId);
        }
Beispiel #3
0
        public virtual IPicklistItemState Get(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId, bool forCreation, bool nullAllowed)
        {
            PicklistBinPicklistItemId globalId = new PicklistBinPicklistItemId(_picklistBinState.PicklistBinId, picklistItemOrderShipGrpInvId);

            if (_loadedPicklistItemStates.ContainsKey(globalId))
            {
                var state = _loadedPicklistItemStates[globalId];
                if (this._picklistBinState != null && this._picklistBinState.ReadOnly == false)
                {
                    ((IPicklistItemState)state).ReadOnly = false;
                }
                return(state);
            }
            if (forCreation || ForReapplying)
            {
                var state = new PicklistItemState(ForReapplying);
                state.PicklistBinPicklistItemId = globalId;
                _loadedPicklistItemStates.Add(globalId, state);
                if (this._picklistBinState != null && this._picklistBinState.ReadOnly == false)
                {
                    ((IPicklistItemState)state).ReadOnly = false;
                }
                return(state);
            }
            else
            {
                var state = PicklistItemStateDao.Get(globalId, nullAllowed);
                if (state != null)
                {
                    _loadedPicklistItemStates.Add(globalId, state);
                }
                if (this._picklistBinState != null && this._picklistBinState.ReadOnly == false)
                {
                    ((IPicklistItemState)state).ReadOnly = false;
                }
                return(state);
            }
        }
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            PicklistItemOrderShipGrpInvId other = obj as PicklistItemOrderShipGrpInvId;

            if (other == null)
            {
                return(false);
            }

            return(true &&
                   Object.Equals(this.OrderId, other.OrderId) &&
                   Object.Equals(this.OrderItemSeqId, other.OrderItemSeqId) &&
                   Object.Equals(this.ShipGroupSeqId, other.ShipGroupSeqId) &&
                   Object.Equals(this.ProductId, other.ProductId) &&
                   Object.Equals(this.LocatorId, other.LocatorId) &&
                   Object.Equals(this.AttributeSetInstanceId, other.AttributeSetInstanceId)
                   );
        }
Beispiel #5
0
 public PicklistBinPicklistItemId(string picklistBinId, PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
 {
     this._picklistBinId = picklistBinId;
     this._picklistItemOrderShipGrpInvId = picklistItemOrderShipGrpInvId;
 }
Beispiel #6
0
 public virtual IPicklistItemState GetPicklistItem(string picklistBinId, PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
 {
     return(StateQueryRepository.GetPicklistItem(picklistBinId, picklistItemOrderShipGrpInvId));
 }
Beispiel #7
0
        protected PicklistItemEventId NewPicklistItemEventId(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
        {
            var stateEventId = new PicklistItemEventId(this.PicklistBinEventId.PicklistBinId, picklistItemOrderShipGrpInvId, this.PicklistBinEventId.Version);

            return(stateEventId);
        }
Beispiel #8
0
        public virtual IPicklistItemStateRemoved NewPicklistItemStateRemoved(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
        {
            var stateEvent = new PicklistItemStateRemoved(NewPicklistItemEventId(picklistItemOrderShipGrpInvId));

            return(stateEvent);
        }
Beispiel #9
0
 public PicklistItemEventId(string picklistBinId, PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId, long picklistBinVersion)
 {
     this._picklistBinId = picklistBinId;
     this._picklistItemOrderShipGrpInvId = picklistItemOrderShipGrpInvId;
     this._picklistBinVersion            = picklistBinVersion;
 }
 public IPicklistItemState Get(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId, bool forCreation, bool nullAllowed)
 {
     throw new NotSupportedException();
 }
 public IPicklistItemState Get(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
 {
     throw new NotSupportedException();
 }
Beispiel #12
0
 IPicklistItemStateRemoved IPicklistBinStateDeleted.NewPicklistItemStateRemoved(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
 {
     return(NewPicklistItemStateRemoved(picklistItemOrderShipGrpInvId));
 }
Beispiel #13
0
 IPicklistItemStateRemoved IPicklistBinStateMergePatched.NewPicklistItemStateRemoved(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
 {
     return(NewPicklistItemStateRemoved(picklistItemOrderShipGrpInvId));
 }
Beispiel #14
0
 IPicklistItemStateCreated IPicklistBinStateCreated.NewPicklistItemStateCreated(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
 {
     return(NewPicklistItemStateCreated(picklistItemOrderShipGrpInvId));
 }
Beispiel #15
0
 public virtual IPicklistItemState Get(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId, bool forCreation)
 {
     return(Get(picklistItemOrderShipGrpInvId, forCreation, false));
 }
Beispiel #16
0
 public virtual IPicklistItemState Get(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
 {
     return(Get(picklistItemOrderShipGrpInvId, false, false));
 }