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

            e.PicklistItemEventId = eId;
            return(e);
        }
示例#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);
        }
示例#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)
                   );
        }
示例#5
0
 public PicklistBinPicklistItemId(string picklistBinId, PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
 {
     this._picklistBinId = picklistBinId;
     this._picklistItemOrderShipGrpInvId = picklistItemOrderShipGrpInvId;
 }
示例#6
0
 public virtual IPicklistItemState GetPicklistItem(string picklistBinId, PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
 {
     return(StateQueryRepository.GetPicklistItem(picklistBinId, picklistItemOrderShipGrpInvId));
 }
示例#7
0
        protected PicklistItemEventId NewPicklistItemEventId(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId)
        {
            var stateEventId = new PicklistItemEventId(this.PicklistBinEventId.PicklistBinId, picklistItemOrderShipGrpInvId, this.PicklistBinEventId.Version);

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

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