protected virtual IShipmentReceiptStateCreated MapCreate(ICreateShipmentReceipt c, IShipmentCommand outerCommand, long version, IShipmentState outerState) { c.RequesterId = outerCommand.RequesterId; var stateEventId = new ShipmentReceiptEventId(c.ShipmentId, c.ReceiptSeqId, version); IShipmentReceiptStateCreated e = NewShipmentReceiptStateCreated(stateEventId); var s = outerState.ShipmentReceipts.Get(c.ReceiptSeqId, true); e.ProductId = c.ProductId; e.AttributeSetInstanceId = c.AttributeSetInstanceId; e.LocatorId = c.LocatorId; e.ShipmentItemSeqId = c.ShipmentItemSeqId; e.ShipmentPackageSeqId = c.ShipmentPackageSeqId; e.OrderId = c.OrderId; e.OrderItemSeqId = c.OrderItemSeqId; e.ReturnId = c.ReturnId; e.ReturnItemSeqId = c.ReturnItemSeqId; e.RejectionReasonId = c.RejectionReasonId; e.DamageStatusId = c.DamageStatusId; e.DamageReasonId = c.DamageReasonId; e.ReceivedBy = c.ReceivedBy; e.DatetimeReceived = c.DatetimeReceived; e.ItemDescription = c.ItemDescription; e.AcceptedQuantity = c.AcceptedQuantity; e.RejectedQuantity = c.RejectedQuantity; e.DamagedQuantity = c.DamagedQuantity; e.Active = c.Active; e.CreatedBy = (string)c.RequesterId; e.CreatedAt = ApplicationContext.Current.TimestampService.Now <DateTime>(); return(e); }// END Map(ICreate... ////////////////////////////
public void Remove(ICreateShipmentReceipt c) { _innerCommands.Remove(c); }
public void Add(ICreateShipmentReceipt c) { _innerCommands.Add(c); }
void ICreateShipmentReceiptCommands.Remove(ICreateShipmentReceipt c) { _innerCommands.Remove((CreateShipmentReceiptDto)c); }
void ICreateShipmentReceiptCommands.Add(ICreateShipmentReceipt c) { _innerCommands.Add((CreateShipmentReceiptDto)c); }