public PhysicalInventoryCommands.CountItem ToCountItem() { var cmd = new PhysicalInventoryCommands.CountItem(); cmd.LocatorId = this.LocatorId; cmd.ProductId = this.ProductId; cmd.AttributeSetInstance = this.AttributeSetInstance; cmd.CountedQuantity = this.CountedQuantity; cmd.DocumentNumber = this.DocumentNumber; cmd.Version = this.Version; cmd.CommandId = this.CommandId; cmd.RequesterId = this.RequesterId; return(cmd); }
public virtual void When(PhysicalInventoryCommands.CountItem c) { Update(c, ar => ar.CountItem(c.LocatorId, c.ProductId, c.AttributeSetInstanceId, c.CountedQuantity, c.Version, c.CommandId, c.RequesterId)); }