Exemplo n.º 1
0
 internal ParametrosCheckListRoladoModel ObtenerGranoEnteroDieselCaldera(int organizacionID, DateTime fechaInicio)
 {
     try
     {
         Logger.Info();
         Dictionary <string, object> parameters = AuxCheckListRoladoraDAL.ObtenerPorGranoEnteroDieselCaldera(organizacionID, fechaInicio);
         DataSet ds = Retrieve("CheckListRoaldo_ObtenerGranoEnteroYDieselCalderas", parameters);
         ParametrosCheckListRoladoModel result = null;
         if (ValidateDataSet(ds))
         {
             result = MapCheckListRoladoraDAL.ObtenerPorGranoEnteroDieselCaldera(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);
     }
 }