예제 #1
0
            public ShipmentCommands.ReceiveItem ToReceiveItem()
            {
                var cmd = new ShipmentCommands.ReceiveItem();

                cmd.ShipmentItemSeqId    = this.ShipmentItemSeqId;
                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);
            }
예제 #2
0
 public virtual void When(ShipmentCommands.ReceiveItem c)
 {
     Update(c, ar => ar.ReceiveItem(c.ShipmentItemSeqId, c.AttributeSetInstance, c.RejectionReasonId, c.DamageStatusIds, c.DamageReasonId, c.AcceptedQuantity, c.RejectedQuantity, c.DamagedQuantity, c.ItemDescription, c.Version, c.CommandId, c.RequesterId));
 }