Esempio n. 1
0
        protected virtual IItemIssuanceMvoStateCreated Map(ICreateItemIssuanceMvo c)
        {
            var stateEventId = new ItemIssuanceMvoEventId(c.ShipmentItemIssuanceId, c.ShipmentVersion);
            IItemIssuanceMvoStateCreated e = NewItemIssuanceMvoStateCreated(stateEventId);

            e.OrderId                = c.OrderId;
            e.OrderItemSeqId         = c.OrderItemSeqId;
            e.ShipGroupSeqId         = c.ShipGroupSeqId;
            e.ProductId              = c.ProductId;
            e.LocatorId              = c.LocatorId;
            e.AttributeSetInstanceId = c.AttributeSetInstanceId;
            e.ShipmentItemSeqId      = c.ShipmentItemSeqId;
            e.FixedAssetId           = c.FixedAssetId;
            e.MaintHistSeqId         = c.MaintHistSeqId;
            e.IssuedDateTime         = c.IssuedDateTime;
            e.IssuedByUserLoginId    = c.IssuedByUserLoginId;
            e.Quantity               = c.Quantity;
            e.CancelQuantity         = c.CancelQuantity;
            e.Version                = c.Version;
            e.Active = c.Active;
            e.ShipmentShipmentTypeId             = c.ShipmentShipmentTypeId;
            e.ShipmentStatusId                   = c.ShipmentStatusId;
            e.ShipmentPrimaryOrderId             = c.ShipmentPrimaryOrderId;
            e.ShipmentPrimaryReturnId            = c.ShipmentPrimaryReturnId;
            e.ShipmentPrimaryShipGroupSeqId      = c.ShipmentPrimaryShipGroupSeqId;
            e.ShipmentPicklistBinId              = c.ShipmentPicklistBinId;
            e.ShipmentEstimatedReadyDate         = c.ShipmentEstimatedReadyDate;
            e.ShipmentEstimatedShipDate          = c.ShipmentEstimatedShipDate;
            e.ShipmentEstimatedShipWorkEffId     = c.ShipmentEstimatedShipWorkEffId;
            e.ShipmentEstimatedArrivalDate       = c.ShipmentEstimatedArrivalDate;
            e.ShipmentEstimatedArrivalWorkEffId  = c.ShipmentEstimatedArrivalWorkEffId;
            e.ShipmentLatestCancelDate           = c.ShipmentLatestCancelDate;
            e.ShipmentEstimatedShipCost          = c.ShipmentEstimatedShipCost;
            e.ShipmentCurrencyUomId              = c.ShipmentCurrencyUomId;
            e.ShipmentHandlingInstructions       = c.ShipmentHandlingInstructions;
            e.ShipmentOriginFacilityId           = c.ShipmentOriginFacilityId;
            e.ShipmentDestinationFacilityId      = c.ShipmentDestinationFacilityId;
            e.ShipmentOriginContactMechId        = c.ShipmentOriginContactMechId;
            e.ShipmentOriginTelecomNumberId      = c.ShipmentOriginTelecomNumberId;
            e.ShipmentDestinationContactMechId   = c.ShipmentDestinationContactMechId;
            e.ShipmentDestinationTelecomNumberId = c.ShipmentDestinationTelecomNumberId;
            e.ShipmentPartyIdTo                  = c.ShipmentPartyIdTo;
            e.ShipmentPartyIdFrom                = c.ShipmentPartyIdFrom;
            e.ShipmentAdditionalShippingCharge   = c.ShipmentAdditionalShippingCharge;
            e.ShipmentAddtlShippingChargeDesc    = c.ShipmentAddtlShippingChargeDesc;
            e.ShipmentCreatedBy                  = c.ShipmentCreatedBy;
            e.ShipmentCreatedAt                  = c.ShipmentCreatedAt;
            e.ShipmentUpdatedBy                  = c.ShipmentUpdatedBy;
            e.ShipmentUpdatedAt                  = c.ShipmentUpdatedAt;
            e.ShipmentActive = c.ShipmentActive;
            e.CommandId      = c.CommandId;


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


            return(e);
        }
Esempio n. 2
0
        protected ItemIssuanceMvoStateDeleted NewItemIssuanceMvoStateDeleted(long version, string commandId, string requesterId)
        {
            var stateEventId = new ItemIssuanceMvoEventId(_state.ShipmentItemIssuanceId, version);
            var e            = NewItemIssuanceMvoStateDeleted(stateEventId);

            e.CommandId = commandId;

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

            return(e);
        }
Esempio n. 3
0
        protected virtual IItemIssuanceMvoStateDeleted Map(IDeleteItemIssuanceMvo c)
        {
            var stateEventId = new ItemIssuanceMvoEventId(c.ShipmentItemIssuanceId, c.ShipmentVersion);
            IItemIssuanceMvoStateDeleted e = NewItemIssuanceMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


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

            ItemIssuanceMvoEventId other = obj as ItemIssuanceMvoEventId;

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

            return(true &&
                   Object.Equals(this.ShipmentItemIssuanceId, other.ShipmentItemIssuanceId) &&
                   Object.Equals(this.ShipmentVersion, other.ShipmentVersion)
                   );
        }
Esempio n. 5
0
 protected ItemIssuanceMvoEventBase(ItemIssuanceMvoEventId stateEventId)
 {
     this.ItemIssuanceMvoEventId = stateEventId;
 }
Esempio n. 6
0
 public ItemIssuanceMvoStateDeleted(ItemIssuanceMvoEventId stateEventId) : base(stateEventId)
 {
 }
Esempio n. 7
0
 public ItemIssuanceMvoStateMergePatched(ItemIssuanceMvoEventId stateEventId) : base(stateEventId)
 {
 }
Esempio n. 8
0
 protected ItemIssuanceMvoStateEventBase(ItemIssuanceMvoEventId stateEventId) : base(stateEventId)
 {
 }
Esempio n. 9
0
 private ItemIssuanceMvoStateDeleted NewItemIssuanceMvoStateDeleted(ItemIssuanceMvoEventId stateEventId)
 {
     return(new ItemIssuanceMvoStateDeleted(stateEventId));
 }
Esempio n. 10
0
 private ItemIssuanceMvoStateMergePatched NewItemIssuanceMvoStateMergePatched(ItemIssuanceMvoEventId stateEventId)
 {
     return(new ItemIssuanceMvoStateMergePatched(stateEventId));
 }