internal bool ValidarChequesGirados(int organizacion, int chequeraId) { try { var result = false; Logger.Info(); var parameters = AuxChequeraEtapasDAL.ObtenerParametrosValidarChequesGirados(organizacion, chequeraId); var ds = Retrieve("Chequera_ValidarChequesGirados", parameters); if (ValidateDataSet(ds)) { result = true; } 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); } }
internal ChequeraInfo ObtenerDetalleChequera(int chequera, int organizacion) { ChequeraInfo result = null; try { Logger.Info(); var parameters = AuxChequeraEtapasDAL.ObtenerParametros(chequera, organizacion); DataSet ds = Retrieve("Chequera_ObtenerDetalle", parameters); if (ValidateDataSet(ds)) { result = MapChequeraDAL.ObtenerPorChequera(ds); } } 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); } return(result); }