예제 #1
0
        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... ////////////////////////////
예제 #2
0
 public void Remove(ICreateShipmentReceipt c)
 {
     _innerCommands.Remove(c);
 }
예제 #3
0
 public void Add(ICreateShipmentReceipt c)
 {
     _innerCommands.Add(c);
 }
예제 #4
0
 void ICreateShipmentReceiptCommands.Remove(ICreateShipmentReceipt c)
 {
     _innerCommands.Remove((CreateShipmentReceiptDto)c);
 }
예제 #5
0
 void ICreateShipmentReceiptCommands.Add(ICreateShipmentReceipt c)
 {
     _innerCommands.Add((CreateShipmentReceiptDto)c);
 }