示例#1
0
 public Record(List <MStorage> storageDetails)
 {
     foreach (MStorage storage in storageDetails)
     {
         storageMap[X_Ref_Quantity_Type.GetEnum(storage.GetQtyType())] = storage;
         refDetail = storage;
     }
 }
示例#2
0
            public Record(Ctx ctx, int M_Locator_ID, int M_Product_ID, int M_AttributeSetInstance_ID,
                          List <String> types, Trx trx)
            {
                if ((types == null) || types.Count < 1)
                {
                    throw new Exception("Quantity types must not be null or empty");
                }
                List <MStorage> storages = MStorage.GetMultipleForUpdate(ctx, M_Locator_ID, M_Product_ID, M_AttributeSetInstance_ID, types, trx);

                foreach (MStorage storage in storages)
                {
                    //storageMap.put(X_Ref_Quantity_Type.getEnum(storage.getQtyType()), storage);
                    storageMap[X_Ref_Quantity_Type.GetEnum(storage.GetQtyType())] = storage;
                    refDetail = storage;
                }
            }