public virtual PicklistItemStateRemovedDto NewPicklistItemStateRemoved(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId) { var e = new PicklistItemStateRemovedDto(); var eId = NewPicklistItemEventId(picklistItemOrderShipGrpInvId); e.PicklistItemEventId = eId; return(e); }
private PicklistItemEventId NewPicklistItemEventId(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId) { var eId = new PicklistItemEventId(); eId.PicklistBinId = this.PicklistBinEventId.PicklistBinId; eId.PicklistItemOrderShipGrpInvId = picklistItemOrderShipGrpInvId; eId.PicklistBinVersion = this.PicklistBinEventId.Version; return(eId); }
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) ); }
public PicklistBinPicklistItemId(string picklistBinId, PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId) { this._picklistBinId = picklistBinId; this._picklistItemOrderShipGrpInvId = picklistItemOrderShipGrpInvId; }
public virtual IPicklistItemState GetPicklistItem(string picklistBinId, PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId) { return(StateQueryRepository.GetPicklistItem(picklistBinId, picklistItemOrderShipGrpInvId)); }
protected PicklistItemEventId NewPicklistItemEventId(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId) { var stateEventId = new PicklistItemEventId(this.PicklistBinEventId.PicklistBinId, picklistItemOrderShipGrpInvId, this.PicklistBinEventId.Version); return(stateEventId); }
public virtual IPicklistItemStateRemoved NewPicklistItemStateRemoved(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId) { var stateEvent = new PicklistItemStateRemoved(NewPicklistItemEventId(picklistItemOrderShipGrpInvId)); return(stateEvent); }
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(); }
IPicklistItemStateRemoved IPicklistBinStateDeleted.NewPicklistItemStateRemoved(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId) { return(NewPicklistItemStateRemoved(picklistItemOrderShipGrpInvId)); }
IPicklistItemStateRemoved IPicklistBinStateMergePatched.NewPicklistItemStateRemoved(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId) { return(NewPicklistItemStateRemoved(picklistItemOrderShipGrpInvId)); }
IPicklistItemStateCreated IPicklistBinStateCreated.NewPicklistItemStateCreated(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId) { return(NewPicklistItemStateCreated(picklistItemOrderShipGrpInvId)); }
public virtual IPicklistItemState Get(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId, bool forCreation) { return(Get(picklistItemOrderShipGrpInvId, forCreation, false)); }
public virtual IPicklistItemState Get(PicklistItemOrderShipGrpInvId picklistItemOrderShipGrpInvId) { return(Get(picklistItemOrderShipGrpInvId, false, false)); }