Пример #1
0
 /// <summary>
 /// Obtiene el lote reimplante por lote id
 /// </summary>
 /// <param name="lote"></param>
 /// <returns></returns>
 internal List <LoteReimplanteInfo> ObtenerListaPorLote(LoteInfo lote)
 {
     try
     {
         Logger.Info();
         var parameters = AuxLoteReimplanteDAL.ObtenerParametrosPorLote(lote);
         var ds         = Retrieve("LoteReimplante_ObtenerPorLote", parameters);
         List <LoteReimplanteInfo> result = null;
         if (ValidateDataSet(ds))
         {
             result = MapLoteReimplanteDAL.ObtenerListaPorlote(ds);
         }
         return(result);
     }
     catch (SqlException ex)
     {
         Logger.Error(ex);
         throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex);
     }
     catch (DataException ex)
     {
         Logger.Error(ex);
         throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex);
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
     }
 }