コード例 #1
0
        protected OrderRoleMvoStateDeleted NewOrderRoleMvoStateDeleted(long version, string commandId, string requesterId)
        {
            var stateEventId = new OrderRoleMvoEventId(_state.OrderRoleId, version);
            var e            = NewOrderRoleMvoStateDeleted(stateEventId);

            e.CommandId = commandId;

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

            return(e);
        }
コード例 #2
0
        protected virtual IOrderRoleMvoStateDeleted Map(IDeleteOrderRoleMvo c)
        {
            var stateEventId            = new OrderRoleMvoEventId(c.OrderRoleId, c.OrderVersion);
            IOrderRoleMvoStateDeleted e = NewOrderRoleMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
コード例 #3
0
        protected virtual IOrderRoleMvoStateCreated Map(ICreateOrderRoleMvo c)
        {
            var stateEventId            = new OrderRoleMvoEventId(c.OrderRoleId, c.OrderVersion);
            IOrderRoleMvoStateCreated e = NewOrderRoleMvoStateCreated(stateEventId);

            e.Version                      = c.Version;
            e.Active                       = c.Active;
            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);
        }
コード例 #4
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            OrderRoleMvoEventId other = obj as OrderRoleMvoEventId;

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

            return(true &&
                   Object.Equals(this.OrderRoleId, other.OrderRoleId) &&
                   Object.Equals(this.OrderVersion, other.OrderVersion)
                   );
        }
コード例 #5
0
 protected OrderRoleMvoStateEventDtoBase(OrderRoleMvoEventId stateEventId)
 {
     this.OrderRoleMvoEventId = stateEventId;
 }
コード例 #6
0
 public OrderRoleMvoStateDeleted(OrderRoleMvoEventId stateEventId) : base(stateEventId)
 {
 }
コード例 #7
0
 public OrderRoleMvoStateMergePatched(OrderRoleMvoEventId stateEventId) : base(stateEventId)
 {
 }
コード例 #8
0
 protected OrderRoleMvoStateEventBase(OrderRoleMvoEventId stateEventId) : base(stateEventId)
 {
 }
コード例 #9
0
 private OrderRoleMvoStateDeleted NewOrderRoleMvoStateDeleted(OrderRoleMvoEventId stateEventId)
 {
     return(new OrderRoleMvoStateDeleted(stateEventId));
 }
コード例 #10
0
 private OrderRoleMvoStateMergePatched NewOrderRoleMvoStateMergePatched(OrderRoleMvoEventId stateEventId)
 {
     return(new OrderRoleMvoStateMergePatched(stateEventId));
 }