private OrderItemShipGroupAssociationEventId NewOrderItemShipGroupAssociationEventId(string orderItemSeqId)
        {
            var eId = new OrderItemShipGroupAssociationEventId();

            eId.OrderId = this.OrderShipGroupEventId.OrderId;
            eId.OrderShipGroupShipGroupSeqId = this.OrderShipGroupEventId.ShipGroupSeqId;
            eId.OrderItemSeqId = orderItemSeqId;
            eId.OrderVersion   = this.OrderShipGroupEventId.OrderVersion;
            return(eId);
        }
Example #2
0
        }// END Map(IMergePatch... ////////////////////////////

        protected virtual IOrderItemShipGroupAssociationStateRemoved MapRemove(IRemoveOrderItemShipGroupAssociation c, IOrderShipGroupCommand outerCommand, long version)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new OrderItemShipGroupAssociationEventId(c.OrderId, c.OrderShipGroupShipGroupSeqId, c.OrderItemSeqId, version);
            IOrderItemShipGroupAssociationStateRemoved e = NewOrderItemShipGroupAssociationStateRemoved(stateEventId);


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

            return(e);
        }// END Map(IRemove... ////////////////////////////
Example #3
0
        protected virtual IOrderItemShipGroupAssociationStateCreated MapCreate(ICreateOrderItemShipGroupAssociation c, IOrderShipGroupCommand outerCommand, long version, IOrderShipGroupState outerState)
        {
            c.RequesterId = outerCommand.RequesterId;
            var stateEventId = new OrderItemShipGroupAssociationEventId(c.OrderId, c.OrderShipGroupShipGroupSeqId, c.OrderItemSeqId, version);
            IOrderItemShipGroupAssociationStateCreated e = NewOrderItemShipGroupAssociationStateCreated(stateEventId);
            var s = outerState.OrderItemShipGroupAssociations.Get(c.OrderItemSeqId, true);

            e.Quantity       = c.Quantity;
            e.CancelQuantity = c.CancelQuantity;
            e.Active         = c.Active;

            e.CreatedBy = (string)c.RequesterId;
            e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>();
            return(e);
        }// END Map(ICreate... ////////////////////////////
Example #4
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            OrderItemShipGroupAssociationEventId other = obj as OrderItemShipGroupAssociationEventId;

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

            return(true &&
                   Object.Equals(this.OrderId, other.OrderId) &&
                   Object.Equals(this.OrderShipGroupShipGroupSeqId, other.OrderShipGroupShipGroupSeqId) &&
                   Object.Equals(this.OrderItemSeqId, other.OrderItemSeqId) &&
                   Object.Equals(this.OrderVersion, other.OrderVersion)
                   );
        }
Example #5
0
        protected OrderItemShipGroupAssociationEventId NewOrderItemShipGroupAssociationEventId(string orderItemSeqId)
        {
            var stateEventId = new OrderItemShipGroupAssociationEventId(this.OrderShipGroupEventId.OrderId, this.OrderShipGroupEventId.ShipGroupSeqId, orderItemSeqId, this.OrderShipGroupEventId.OrderVersion);

            return(stateEventId);
        }
Example #6
0
 private OrderItemShipGroupAssociationStateRemoved NewOrderItemShipGroupAssociationStateRemoved(OrderItemShipGroupAssociationEventId stateEventId)
 {
     return(new OrderItemShipGroupAssociationStateRemoved(stateEventId));
 }
Example #7
0
 private OrderItemShipGroupAssociationStateMergePatched NewOrderItemShipGroupAssociationStateMergePatched(OrderItemShipGroupAssociationEventId stateEventId)
 {
     return(new OrderItemShipGroupAssociationStateMergePatched(stateEventId));
 }
Example #8
0
 protected OrderItemShipGroupAssociationStateEventDtoBase(OrderItemShipGroupAssociationEventId stateEventId)
 {
     this.OrderItemShipGroupAssociationEventId = stateEventId;
 }
Example #9
0
 public OrderItemShipGroupAssociationStateRemoved(OrderItemShipGroupAssociationEventId stateEventId) : base(stateEventId)
 {
 }
Example #10
0
 public OrderItemShipGroupAssociationStateMergePatched(OrderItemShipGroupAssociationEventId stateEventId) : base(stateEventId)
 {
 }
Example #11
0
 protected OrderItemShipGroupAssociationStateEventBase(OrderItemShipGroupAssociationEventId stateEventId) : base(stateEventId)
 {
 }