コード例 #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
ファイル: ShipmentCommand.cs プロジェクト: windygu/wms-2
 public void Remove(ICreateShipmentReceipt c)
 {
     _innerCommands.Remove(c);
 }
コード例 #3
0
ファイル: ShipmentCommand.cs プロジェクト: windygu/wms-2
 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);
 }