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
 void IItemIssuanceMvoApplicationService.When(ICreateItemIssuanceMvo c)
 {
     this.When((CreateItemIssuanceMvoDto)c);
 }
 public virtual void When(ICreateItemIssuanceMvo c)
 {
     Update(c, ar => ar.Create(c));
 }
Esempio n. 4
0
        public virtual void Create(ICreateItemIssuanceMvo c)
        {
            IItemIssuanceMvoStateCreated e = Map(c);

            Apply(e);
        }