public ItemFulfillmentEventArgs(EquipmentType equipType, int originalQuantity, int currentQuantity, int numberScanned)
 {
     Item = new ItemFulfillmentTracker() {
         EquipmentTypeId = equipType.EquipmentTypeId,
         OriginalQuantity = originalQuantity,
         CurrentQuantity = currentQuantity,
         NumberFulfilled = numberScanned
     };
 }
Exemplo n.º 2
0
 /// <summary>
 /// Accepts an incoming NonSerializedSimplItem and returns the appropriate Return mailer size and spec
 /// </summary>
 public EquipmentType GetReturnMailer(EquipmentType equipType)
 {
     if (equipType != null && equipType.ReturnMailer != null)
         return DBCache.EquipmentTypes.FirstOrDefault(e => e.EquipmentTypeId == equipType.ReturnMailer.EquipmentTypeId);
     return null;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Create a new EquipmentType object.
 /// </summary>
 /// <param name="equipmentTypeId">Initial value of the EquipmentTypeId property.</param>
 /// <param name="itemNumber">Initial value of the ItemNumber property.</param>
 /// <param name="modelNumber">Initial value of the ModelNumber property.</param>
 /// <param name="equipName">Initial value of the EquipName property.</param>
 /// <param name="price">Initial value of the Price property.</param>
 /// <param name="equipmentCategoryId">Initial value of the EquipmentCategoryId property.</param>
 public static EquipmentType CreateEquipmentType(global::System.Int32 equipmentTypeId, global::System.Int32 itemNumber, global::System.String modelNumber, global::System.String equipName, global::System.Int32 price, global::System.Int32 equipmentCategoryId)
 {
     EquipmentType equipmentType = new EquipmentType();
     equipmentType.EquipmentTypeId = equipmentTypeId;
     equipmentType.ItemNumber = itemNumber;
     equipmentType.ModelNumber = modelNumber;
     equipmentType.EquipName = equipName;
     equipmentType.Price = price;
     equipmentType.EquipmentCategoryId = equipmentCategoryId;
     return equipmentType;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Deprecated Method for adding a new object to the EquipmentTypes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToEquipmentTypes(EquipmentType equipmentType)
 {
     base.AddObject("EquipmentTypes", equipmentType);
 }