Exemple #1
0
            public ShipmentCommands.AddItemAndReceipt ToAddItemAndReceipt()
            {
                var cmd = new ShipmentCommands.AddItemAndReceipt();

                cmd.ReceiptSeqId         = this.ReceiptSeqId;
                cmd.ProductId            = this.ProductId;
                cmd.AttributeSetInstance = this.AttributeSetInstance;
                cmd.RejectionReasonId    = this.RejectionReasonId;
                cmd.DamageStatusIds      = this.DamageStatusIds == null ? null : new HashSet <string>(this.DamageStatusIds);
                cmd.DamageReasonId       = this.DamageReasonId;
                cmd.AcceptedQuantity     = this.AcceptedQuantity;
                cmd.RejectedQuantity     = this.RejectedQuantity;
                cmd.DamagedQuantity      = this.DamagedQuantity;
                cmd.ItemDescription      = this.ItemDescription;
                cmd.ShipmentId           = this.ShipmentId;
                cmd.Version     = this.Version;
                cmd.CommandId   = this.CommandId;
                cmd.RequesterId = this.RequesterId;
                return(cmd);
            }
Exemple #2
0
 public virtual void When(ShipmentCommands.AddItemAndReceipt c)
 {
     Update(c, ar => ar.AddItemAndReceipt(c.ReceiptSeqId, c.ProductId, c.AttributeSetInstance, c.RejectionReasonId, c.DamageStatusIds, c.DamageReasonId, c.AcceptedQuantity, c.RejectedQuantity, c.DamagedQuantity, c.ItemDescription, c.Version, c.CommandId, c.RequesterId));
 }