Example #1
0
        protected InOutLineMvoStateDeleted NewInOutLineMvoStateDeleted(long version, string commandId, string requesterId)
        {
            var stateEventId = new InOutLineMvoEventId(_state.InOutLineId, version);
            var e            = NewInOutLineMvoStateDeleted(stateEventId);

            e.CommandId = commandId;

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

            return(e);
        }
Example #2
0
        protected virtual IInOutLineMvoStateDeleted Map(IDeleteInOutLineMvo c)
        {
            var stateEventId            = new InOutLineMvoEventId(c.InOutLineId, c.InOutVersion);
            IInOutLineMvoStateDeleted e = NewInOutLineMvoStateDeleted(stateEventId);

            e.CommandId = c.CommandId;


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


            return(e);
        }
Example #3
0
        public override bool Equals(object obj)
        {
            if (Object.ReferenceEquals(this, obj))
            {
                return(true);
            }

            InOutLineMvoEventId other = obj as InOutLineMvoEventId;

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

            return(true &&
                   Object.Equals(this.InOutLineId, other.InOutLineId) &&
                   Object.Equals(this.InOutVersion, other.InOutVersion)
                   );
        }
 protected InOutLineMvoStateEventDtoBase(InOutLineMvoEventId stateEventId)
 {
     this.InOutLineMvoEventId = stateEventId;
 }
Example #5
0
 private InOutLineMvoStateDeleted NewInOutLineMvoStateDeleted(InOutLineMvoEventId stateEventId)
 {
     return(new InOutLineMvoStateDeleted(stateEventId));
 }
Example #6
0
 private InOutLineMvoStateMergePatched NewInOutLineMvoStateMergePatched(InOutLineMvoEventId stateEventId)
 {
     return(new InOutLineMvoStateMergePatched(stateEventId));
 }
Example #7
0
        protected virtual IInOutLineMvoStateMergePatched Map(IMergePatchInOutLineMvo c)
        {
            var stateEventId = new InOutLineMvoEventId(c.InOutLineId, c.InOutVersion);
            IInOutLineMvoStateMergePatched e = NewInOutLineMvoStateMergePatched(stateEventId);

            e.LocatorId = c.LocatorId;
            e.ProductId = c.ProductId;
            e.AttributeSetInstanceId = c.AttributeSetInstanceId;
            e.Description            = c.Description;
            e.QuantityUomId          = c.QuantityUomId;
            e.MovementQuantity       = c.MovementQuantity;
            e.PickedQuantity         = c.PickedQuantity;
            e.IsInvoiced             = c.IsInvoiced;
            e.Processed                                    = c.Processed;
            e.RmaLineNumber                                = c.RmaLineNumber;
            e.ReversalLineNumber                           = c.ReversalLineNumber;
            e.Version                                      = c.Version;
            e.Active                                       = c.Active;
            e.InOutDocumentStatusId                        = c.InOutDocumentStatusId;
            e.InOutPosted                                  = c.InOutPosted;
            e.InOutProcessed                               = c.InOutProcessed;
            e.InOutProcessing                              = c.InOutProcessing;
            e.InOutDocumentTypeId                          = c.InOutDocumentTypeId;
            e.InOutDescription                             = c.InOutDescription;
            e.InOutOrderId                                 = c.InOutOrderId;
            e.InOutDateOrdered                             = c.InOutDateOrdered;
            e.InOutIsPrinted                               = c.InOutIsPrinted;
            e.InOutMovementTypeId                          = c.InOutMovementTypeId;
            e.InOutMovementDate                            = c.InOutMovementDate;
            e.InOutBusinessPartnerId                       = c.InOutBusinessPartnerId;
            e.InOutWarehouseId                             = c.InOutWarehouseId;
            e.InOutPOReference                             = c.InOutPOReference;
            e.InOutFreightAmount                           = c.InOutFreightAmount;
            e.InOutShipperId                               = c.InOutShipperId;
            e.InOutChargeAmount                            = c.InOutChargeAmount;
            e.InOutDatePrinted                             = c.InOutDatePrinted;
            e.InOutCreatedFrom                             = c.InOutCreatedFrom;
            e.InOutSalesRepresentativeId                   = c.InOutSalesRepresentativeId;
            e.InOutNumberOfPackages                        = c.InOutNumberOfPackages;
            e.InOutPickDate                                = c.InOutPickDate;
            e.InOutShipDate                                = c.InOutShipDate;
            e.InOutTrackingNumber                          = c.InOutTrackingNumber;
            e.InOutDateReceived                            = c.InOutDateReceived;
            e.InOutIsInTransit                             = c.InOutIsInTransit;
            e.InOutIsApproved                              = c.InOutIsApproved;
            e.InOutIsInDispute                             = c.InOutIsInDispute;
            e.InOutRmaDocumentNumber                       = c.InOutRmaDocumentNumber;
            e.InOutReversalDocumentNumber                  = c.InOutReversalDocumentNumber;
            e.InOutCreatedBy                               = c.InOutCreatedBy;
            e.InOutCreatedAt                               = c.InOutCreatedAt;
            e.InOutUpdatedBy                               = c.InOutUpdatedBy;
            e.InOutUpdatedAt                               = c.InOutUpdatedAt;
            e.InOutActive                                  = c.InOutActive;
            e.IsPropertyLocatorIdRemoved                   = c.IsPropertyLocatorIdRemoved;
            e.IsPropertyProductIdRemoved                   = c.IsPropertyProductIdRemoved;
            e.IsPropertyAttributeSetInstanceIdRemoved      = c.IsPropertyAttributeSetInstanceIdRemoved;
            e.IsPropertyDescriptionRemoved                 = c.IsPropertyDescriptionRemoved;
            e.IsPropertyQuantityUomIdRemoved               = c.IsPropertyQuantityUomIdRemoved;
            e.IsPropertyMovementQuantityRemoved            = c.IsPropertyMovementQuantityRemoved;
            e.IsPropertyPickedQuantityRemoved              = c.IsPropertyPickedQuantityRemoved;
            e.IsPropertyIsInvoicedRemoved                  = c.IsPropertyIsInvoicedRemoved;
            e.IsPropertyProcessedRemoved                   = c.IsPropertyProcessedRemoved;
            e.IsPropertyRmaLineNumberRemoved               = c.IsPropertyRmaLineNumberRemoved;
            e.IsPropertyReversalLineNumberRemoved          = c.IsPropertyReversalLineNumberRemoved;
            e.IsPropertyVersionRemoved                     = c.IsPropertyVersionRemoved;
            e.IsPropertyActiveRemoved                      = c.IsPropertyActiveRemoved;
            e.IsPropertyInOutDocumentStatusIdRemoved       = c.IsPropertyInOutDocumentStatusIdRemoved;
            e.IsPropertyInOutPostedRemoved                 = c.IsPropertyInOutPostedRemoved;
            e.IsPropertyInOutProcessedRemoved              = c.IsPropertyInOutProcessedRemoved;
            e.IsPropertyInOutProcessingRemoved             = c.IsPropertyInOutProcessingRemoved;
            e.IsPropertyInOutDocumentTypeIdRemoved         = c.IsPropertyInOutDocumentTypeIdRemoved;
            e.IsPropertyInOutDescriptionRemoved            = c.IsPropertyInOutDescriptionRemoved;
            e.IsPropertyInOutOrderIdRemoved                = c.IsPropertyInOutOrderIdRemoved;
            e.IsPropertyInOutDateOrderedRemoved            = c.IsPropertyInOutDateOrderedRemoved;
            e.IsPropertyInOutIsPrintedRemoved              = c.IsPropertyInOutIsPrintedRemoved;
            e.IsPropertyInOutMovementTypeIdRemoved         = c.IsPropertyInOutMovementTypeIdRemoved;
            e.IsPropertyInOutMovementDateRemoved           = c.IsPropertyInOutMovementDateRemoved;
            e.IsPropertyInOutBusinessPartnerIdRemoved      = c.IsPropertyInOutBusinessPartnerIdRemoved;
            e.IsPropertyInOutWarehouseIdRemoved            = c.IsPropertyInOutWarehouseIdRemoved;
            e.IsPropertyInOutPOReferenceRemoved            = c.IsPropertyInOutPOReferenceRemoved;
            e.IsPropertyInOutFreightAmountRemoved          = c.IsPropertyInOutFreightAmountRemoved;
            e.IsPropertyInOutShipperIdRemoved              = c.IsPropertyInOutShipperIdRemoved;
            e.IsPropertyInOutChargeAmountRemoved           = c.IsPropertyInOutChargeAmountRemoved;
            e.IsPropertyInOutDatePrintedRemoved            = c.IsPropertyInOutDatePrintedRemoved;
            e.IsPropertyInOutCreatedFromRemoved            = c.IsPropertyInOutCreatedFromRemoved;
            e.IsPropertyInOutSalesRepresentativeIdRemoved  = c.IsPropertyInOutSalesRepresentativeIdRemoved;
            e.IsPropertyInOutNumberOfPackagesRemoved       = c.IsPropertyInOutNumberOfPackagesRemoved;
            e.IsPropertyInOutPickDateRemoved               = c.IsPropertyInOutPickDateRemoved;
            e.IsPropertyInOutShipDateRemoved               = c.IsPropertyInOutShipDateRemoved;
            e.IsPropertyInOutTrackingNumberRemoved         = c.IsPropertyInOutTrackingNumberRemoved;
            e.IsPropertyInOutDateReceivedRemoved           = c.IsPropertyInOutDateReceivedRemoved;
            e.IsPropertyInOutIsInTransitRemoved            = c.IsPropertyInOutIsInTransitRemoved;
            e.IsPropertyInOutIsApprovedRemoved             = c.IsPropertyInOutIsApprovedRemoved;
            e.IsPropertyInOutIsInDisputeRemoved            = c.IsPropertyInOutIsInDisputeRemoved;
            e.IsPropertyInOutRmaDocumentNumberRemoved      = c.IsPropertyInOutRmaDocumentNumberRemoved;
            e.IsPropertyInOutReversalDocumentNumberRemoved = c.IsPropertyInOutReversalDocumentNumberRemoved;
            e.IsPropertyInOutCreatedByRemoved              = c.IsPropertyInOutCreatedByRemoved;
            e.IsPropertyInOutCreatedAtRemoved              = c.IsPropertyInOutCreatedAtRemoved;
            e.IsPropertyInOutUpdatedByRemoved              = c.IsPropertyInOutUpdatedByRemoved;
            e.IsPropertyInOutUpdatedAtRemoved              = c.IsPropertyInOutUpdatedAtRemoved;
            e.IsPropertyInOutActiveRemoved                 = c.IsPropertyInOutActiveRemoved;

            e.CommandId = c.CommandId;


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

            var inOutVersion = c.InOutVersion;


            return(e);
        }
Example #8
0
 public InOutLineMvoStateDeleted(InOutLineMvoEventId stateEventId) : base(stateEventId)
 {
 }
Example #9
0
 public InOutLineMvoStateMergePatched(InOutLineMvoEventId stateEventId) : base(stateEventId)
 {
 }
Example #10
0
 protected InOutLineMvoStateEventBase(InOutLineMvoEventId stateEventId) : base(stateEventId)
 {
 }