Пример #1
0
 /// <summary>
 /// Obtiene el lote reimplante por lote id
 /// </summary>
 /// <param name="lote"></param>
 /// <returns></returns>
 internal LoteReimplanteInfo ObtenerPorLote(LoteInfo lote)
 {
     try
     {
         Logger.Info();
         var parameters            = AuxLoteReimplanteDAL.ObtenerParametrosPorLote(lote);
         var ds                    = Retrieve("LoteReimplante_ObtenerPorLote", parameters);
         LoteReimplanteInfo result = null;
         if (ValidateDataSet(ds))
         {
             result = MapLoteReimplanteDAL.ObtenerPorlote(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);
     }
 }