Ejemplo n.º 1
0
        protected virtual IPicklistItemMvoStateCreated Map(ICreatePicklistItemMvo c)
        {
            var stateEventId = new PicklistItemMvoEventId(c.PicklistBinPicklistItemId, c.PicklistBinVersion);
            IPicklistItemMvoStateCreated e = NewPicklistItemMvoStateCreated(stateEventId);

            e.ItemStatusId                     = c.ItemStatusId;
            e.Quantity                         = c.Quantity;
            e.Version                          = c.Version;
            e.Active                           = c.Active;
            e.PicklistBinPicklistId            = c.PicklistBinPicklistId;
            e.PicklistBinBinLocationNumber     = c.PicklistBinBinLocationNumber;
            e.PicklistBinPrimaryOrderId        = c.PicklistBinPrimaryOrderId;
            e.PicklistBinPrimaryShipGroupSeqId = c.PicklistBinPrimaryShipGroupSeqId;
            e.PicklistBinCreatedBy             = c.PicklistBinCreatedBy;
            e.PicklistBinCreatedAt             = c.PicklistBinCreatedAt;
            e.PicklistBinUpdatedBy             = c.PicklistBinUpdatedBy;
            e.PicklistBinUpdatedAt             = c.PicklistBinUpdatedAt;
            e.PicklistBinActive                = c.PicklistBinActive;
            e.PicklistBinDeleted               = c.PicklistBinDeleted;
            e.CommandId                        = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            var picklistBinVersion = c.PicklistBinVersion;


            return(e);
        }
Ejemplo n.º 2
0
        protected PicklistItemMvoStateDeleted NewPicklistItemMvoStateDeleted(long version, string commandId, string requesterId)
        {
            var stateEventId = new PicklistItemMvoEventId(_state.PicklistBinPicklistItemId, version);
            var e            = NewPicklistItemMvoStateDeleted(stateEventId);

            e.CommandId = commandId;

            e.CreatedBy = (string)requesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();

            return(e);
        }
Ejemplo n.º 3
0
        protected virtual IPicklistItemMvoStateDeleted Map(IDeletePicklistItemMvo c)
        {
            var stateEventId = new PicklistItemMvoEventId(c.PicklistBinPicklistItemId, c.PicklistBinVersion);
            IPicklistItemMvoStateDeleted e = NewPicklistItemMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();


            return(e);
        }
Ejemplo n.º 4
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            PicklistItemMvoEventId other = obj as PicklistItemMvoEventId;

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

            return(true &&
                   Object.Equals(this.PicklistBinPicklistItemId, other.PicklistBinPicklistItemId) &&
                   Object.Equals(this.PicklistBinVersion, other.PicklistBinVersion)
                   );
        }
Ejemplo n.º 5
0
 private PicklistItemMvoStateDeleted NewPicklistItemMvoStateDeleted(PicklistItemMvoEventId stateEventId)
 {
     return(new PicklistItemMvoStateDeleted(stateEventId));
 }
Ejemplo n.º 6
0
 private PicklistItemMvoStateMergePatched NewPicklistItemMvoStateMergePatched(PicklistItemMvoEventId stateEventId)
 {
     return(new PicklistItemMvoStateMergePatched(stateEventId));
 }
Ejemplo n.º 7
0
 protected PicklistItemMvoStateEventDtoBase(PicklistItemMvoEventId stateEventId)
 {
     this.PicklistItemMvoEventId = stateEventId;
 }
Ejemplo n.º 8
0
 public PicklistItemMvoStateDeleted(PicklistItemMvoEventId stateEventId) : base(stateEventId)
 {
 }
Ejemplo n.º 9
0
 public PicklistItemMvoStateMergePatched(PicklistItemMvoEventId stateEventId) : base(stateEventId)
 {
 }
Ejemplo n.º 10
0
 protected PicklistItemMvoStateEventBase(PicklistItemMvoEventId stateEventId) : base(stateEventId)
 {
 }