コード例 #1
0
 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;
 }
コード例 #2
0
 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            = "";
 }
コード例 #3
0
 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;
 }
コード例 #4
0
 public ProductTransaction(ProductInstance instance, int quantity)
 {
     this.Quantity    = quantity;
     this.Instance    = instance;
     this.ProductName = instance.InventoryItem.Name;
 }