public virtual void When(ICreateOrderItemShipGroupAssociationMvo c)
 {
     Update(c, ar => ar.Create(c));
 }
Пример #2
0
        protected virtual IOrderItemShipGroupAssociationMvoStateCreated Map(ICreateOrderItemShipGroupAssociationMvo c)
        {
            var stateEventId = new OrderItemShipGroupAssociationMvoEventId(c.OrderItemShipGroupAssociationId, c.OrderVersion);
            IOrderItemShipGroupAssociationMvoStateCreated e = NewOrderItemShipGroupAssociationMvoStateCreated(stateEventId);

            e.Quantity       = c.Quantity;
            e.CancelQuantity = c.CancelQuantity;
            e.Version        = c.Version;
            e.Active         = c.Active;
            e.OrderShipGroupShipmentMethodTypeId = c.OrderShipGroupShipmentMethodTypeId;
            e.OrderShipGroupSupplierPartyId      = c.OrderShipGroupSupplierPartyId;
            e.OrderShipGroupVendorPartyId        = c.OrderShipGroupVendorPartyId;
            e.OrderShipGroupCarrierPartyId       = c.OrderShipGroupCarrierPartyId;
            e.OrderShipGroupCarrierRoleTypeId    = c.OrderShipGroupCarrierRoleTypeId;
            e.OrderShipGroupFacilityId           = c.OrderShipGroupFacilityId;
            e.OrderShipGroupContactMechId        = c.OrderShipGroupContactMechId;
            e.OrderShipGroupTelecomContactMechId = c.OrderShipGroupTelecomContactMechId;
            e.OrderShipGroupTrackingNumber       = c.OrderShipGroupTrackingNumber;
            e.OrderShipGroupShippingInstructions = c.OrderShipGroupShippingInstructions;
            e.OrderShipGroupMaySplit             = c.OrderShipGroupMaySplit;
            e.OrderShipGroupGiftMessage          = c.OrderShipGroupGiftMessage;
            e.OrderShipGroupIsGift                = c.OrderShipGroupIsGift;
            e.OrderShipGroupShipAfterDate         = c.OrderShipGroupShipAfterDate;
            e.OrderShipGroupShipByDate            = c.OrderShipGroupShipByDate;
            e.OrderShipGroupEstimatedShipDate     = c.OrderShipGroupEstimatedShipDate;
            e.OrderShipGroupEstimatedDeliveryDate = c.OrderShipGroupEstimatedDeliveryDate;
            e.OrderShipGroupPickwaveId            = c.OrderShipGroupPickwaveId;
            e.OrderShipGroupVersion               = c.OrderShipGroupVersion;
            e.OrderShipGroupCreatedBy             = c.OrderShipGroupCreatedBy;
            e.OrderShipGroupCreatedAt             = c.OrderShipGroupCreatedAt;
            e.OrderShipGroupUpdatedBy             = c.OrderShipGroupUpdatedBy;
            e.OrderShipGroupUpdatedAt             = c.OrderShipGroupUpdatedAt;
            e.OrderShipGroupActive                = c.OrderShipGroupActive;
            e.OrderShipGroupDeleted               = c.OrderShipGroupDeleted;
            e.OrderOrderTypeId             = c.OrderOrderTypeId;
            e.OrderOrderName               = c.OrderOrderName;
            e.OrderExternalId              = c.OrderExternalId;
            e.OrderSalesChannelEnumId      = c.OrderSalesChannelEnumId;
            e.OrderOrderDate               = c.OrderOrderDate;
            e.OrderPriority                = c.OrderPriority;
            e.OrderEntryDate               = c.OrderEntryDate;
            e.OrderPickSheetPrintedDate    = c.OrderPickSheetPrintedDate;
            e.OrderStatusId                = c.OrderStatusId;
            e.OrderCurrencyUom             = c.OrderCurrencyUom;
            e.OrderSyncStatusId            = c.OrderSyncStatusId;
            e.OrderBillingAccountId        = c.OrderBillingAccountId;
            e.OrderOriginFacilityId        = c.OrderOriginFacilityId;
            e.OrderWebSiteId               = c.OrderWebSiteId;
            e.OrderProductStoreId          = c.OrderProductStoreId;
            e.OrderTerminalId              = c.OrderTerminalId;
            e.OrderTransactionId           = c.OrderTransactionId;
            e.OrderAutoOrderShoppingListId = c.OrderAutoOrderShoppingListId;
            e.OrderNeedsInventoryIssuance  = c.OrderNeedsInventoryIssuance;
            e.OrderIsRushOrder             = c.OrderIsRushOrder;
            e.OrderInternalCode            = c.OrderInternalCode;
            e.OrderRemainingSubTotal       = c.OrderRemainingSubTotal;
            e.OrderGrandTotal              = c.OrderGrandTotal;
            e.OrderInvoicePerShipment      = c.OrderInvoicePerShipment;
            e.OrderCreatedBy               = c.OrderCreatedBy;
            e.OrderCreatedAt               = c.OrderCreatedAt;
            e.OrderUpdatedBy               = c.OrderUpdatedBy;
            e.OrderUpdatedAt               = c.OrderUpdatedAt;
            e.OrderActive = c.OrderActive;
            e.CommandId   = c.CommandId;


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


            return(e);
        }
Пример #3
0
        public virtual void Create(ICreateOrderItemShipGroupAssociationMvo c)
        {
            IOrderItemShipGroupAssociationMvoStateCreated e = Map(c);

            Apply(e);
        }
Пример #4
0
 void IOrderItemShipGroupAssociationMvoApplicationService.When(ICreateOrderItemShipGroupAssociationMvo c)
 {
     this.When((CreateOrderItemShipGroupAssociationMvoDto)c);
 }