Пример #1
0
 /// <summary>
 /// Obtiene una lista de lotes reimplante
 /// </summary>
 /// <param name="organizacionId"> </param>
 /// <param name="lotes"></param>
 /// <returns></returns>
 internal IList <LoteReimplanteInfo> ObtenerPorLoteXML(int organizacionId, IList <LoteInfo> lotes)
 {
     try
     {
         Logger.Info();
         Dictionary <string, object> parameters = AuxLoteReimplanteDAL.ObtenerParametrosPorLoteXML(
             organizacionId, lotes);
         var ds = Retrieve("LoteReimplante_ObtenerPorLoteXML", parameters);
         IList <LoteReimplanteInfo> result = null;
         if (ValidateDataSet(ds))
         {
             result = MapLoteReimplanteDAL.ObtenerPorloteXML(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);
     }
 }