コード例 #1
0
 public PriceLog(PartInstance partInstance, Price price)
 {
     this.TimeStamp    = price.TimeStamp;
     this.IsCurrent    = true;
     this.PartInstance = partInstance;
     this.Price        = price;
 }
コード例 #2
0
 public void Set(PartInstance partInstance, Price price, DateTime timeStamp, bool isCurrent)
 {
     this.PartInstance = partInstance;
     this.Price        = price;
     this.TimeStamp    = timeStamp;
     this.IsCurrent    = isCurrent;
 }
コード例 #3
0
 public PriceLog(DateTime timeStamp, bool isCurrent, PartInstance partInstance, Price price)
 {
     this.TimeStamp    = timeStamp;
     this.IsCurrent    = isCurrent;
     this.PartInstance = partInstance;
     this.Price        = price;
 }
コード例 #4
0
 public BubblerParameter(PartInstance instance, double net, double gross, double tare)
 {
     this.GrossWeight  = gross;
     this.NetWeight    = net;
     this.Tare         = tare;
     this.PartInstance = instance;
     this.Measured     = 0;
     this.Weight       = 0;
 }
コード例 #5
0
 public void SetupCheckInStandard(PartInstance instance, InventoryAction inventoryAction, int locationId, DateTime timeStamp)
 {
     this.TimeStamp       = timeStamp;
     this.PartInstance    = instance;
     this.UnitCost        = instance.UnitCost;
     this.TotalCost       = instance.TotalCost;
     this.InventoryAction = inventoryAction;
     this.Quantity        = instance.Quantity;
     this.LocationId      = locationId;
 }
コード例 #6
0
 public void SetupCheckinBubbler(PartInstance instance, InventoryAction inventoryAction, int locationId, DateTime timeStamp)
 {
     this.TimeStamp       = timeStamp;
     this.PartInstance    = instance;
     this.Weight          = instance.BubblerParameter.Weight;
     this.MeasuredWeight  = instance.BubblerParameter.Measured;
     this.UnitCost        = instance.UnitCost;
     this.TotalCost       = instance.TotalCost;
     this.InventoryAction = inventoryAction;
     this.Quantity        = instance.Quantity;
     this.LocationId      = locationId;
 }
コード例 #7
0
 public Transaction(PartInstance instance, InventoryAction inventoryAction, double measured, double weight, Location location, DateTime timeStamp)
 {
     this.TimeStamp      = timeStamp;
     this.Weight         = weight;
     this.MeasuredWeight = measured;
     this.UnitCost       = instance.UnitCost;
     this.Quantity       = 1;
     //this.TotalCost = (instance.BubblerParameter.NetWeight * instance.UnitCost);
     this.TotalCost       = (instance.IsBubbler) ? (instance.UnitCost * instance.BubblerParameter.NetWeight) : (this.Quantity * this.UnitCost);
     this.InventoryAction = inventoryAction;
     this.LocationId      = location.Id;
     this.PartInstanceId  = instance.Id;
 }