public ProductReservation(ProductInstance rank, int quantity) { this.ProductInstance = rank; this.Rank = rank.Name; this.ProductName = (rank.InventoryItem != null) ? rank.InventoryItem.Name : "Error"; this.LotNumber = rank.LotNumber; this.PoNumber = rank.SupplierPoNumber; this.Quantity = quantity; this.TimeStamp = DateTime.Now; }
public ProductReservation(ProductInstance rank) { this.TimeStamp = DateTime.Now; this.ProductInstance = rank; this.Rank = rank.Name; this.ProductName = (rank.InventoryItem != null) ? rank.InventoryItem.Name : "Error"; this.LotNumber = rank.LotNumber; this.PoNumber = rank.SupplierPoNumber; this.Quantity = 0; this.Customer = ""; this.BuyerPoNumber = ""; this.RMANumber = ""; this.Note = ""; }
public ProductReservation(ProductInstance rank, DateTime expiration, int quantity, string customer, string buyerPo, string rma, string note) { this.ProductInstance = rank; this.Rank = rank.Name; this.ProductName = (rank.InventoryItem != null) ? rank.InventoryItem.Name : "Error"; this.LotNumber = rank.LotNumber; this.PoNumber = rank.SupplierPoNumber; this.Quantity = quantity; this.Customer = customer; this.BuyerPoNumber = buyerPo; this.RMANumber = rma; this.Expiration = expiration; this.TimeStamp = DateTime.Now; this.Note = note; }
public ProductTransaction(ProductInstance instance, int quantity) { this.Quantity = quantity; this.Instance = instance; this.ProductName = instance.InventoryItem.Name; }