示例#1
0
 /// <summary>
 /// Obtiene un indicador producto calidad
 /// </summary>
 /// <param name="indicadorID"></param>
 /// <returns></returns>
 internal List <ProductoInfo> ObtenerProductosPorIndicador(int indicadorID)
 {
     try
     {
         Logger.Info();
         Dictionary <string, object> parameters =
             AuxIndicadorProductoCalidadDAL.ObtenerProductoPorInidicador(indicadorID);
         DataSet             ds     = Retrieve("IndicadorProductoCalidad_ObtenerProductosPorIndicador", parameters);
         List <ProductoInfo> result = null;
         if (ValidateDataSet(ds))
         {
             result = MapIndicadorProductoCalidadDAL.ObtenerProductosPorIndicador(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);
     }
 }