Ejemplo n.º 1
0
 internal int Guardar(ChequeraInfo info)
 {
     try
     {
         Logger.Info();
         var chequeraDAL = new ChequeraDAL();
         return(chequeraDAL.Guardar(info));
     }
     catch (ExcepcionGenerica)
     {
         throw;
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
     }
 }
Ejemplo n.º 2
0
 internal bool ValidarChequesGirados(int organizacionId, int chequeraId)
 {
     try
     {
         Logger.Info();
         var chequeraDAL = new ChequeraDAL();
         return(chequeraDAL.ValidarChequesGirados(organizacionId, chequeraId));
     }
     catch (ExcepcionGenerica)
     {
         throw;
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
     }
 }
Ejemplo n.º 3
0
 internal bool ValidarSiExisteChequeraActiva(int organizacionId, int estatusId)
 {
     try
     {
         Logger.Info();
         var chequeraDAL = new ChequeraDAL();
         return(chequeraDAL.ValidarSiExisteChequeraActiva(organizacionId, estatusId));
     }
     catch (ExcepcionGenerica)
     {
         throw;
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
     }
 }
Ejemplo n.º 4
0
        internal ChequeraInfo ObtenerDetalleChequera(int chequera, int organizacion)
        {
            ChequeraInfo lista;

            try
            {
                Logger.Info();
                var chequeraDAL = new ChequeraDAL();
                lista = chequeraDAL.ObtenerDetalleChequera(chequera, organizacion);
            }
            catch (ExcepcionGenerica)
            {
                throw;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }
            return(lista);
        }
Ejemplo n.º 5
0
        internal IList <ChequeraInfo> ObtenerPorFiltro(ChequeraInfo info)
        {
            IList <ChequeraInfo> lista;

            try
            {
                Logger.Info();
                var chequeraDAL = new ChequeraDAL();
                lista = chequeraDAL.ObtenerPorFiltro(info);
            }
            catch (ExcepcionGenerica)
            {
                throw;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }
            return(lista);
        }
Ejemplo n.º 6
0
        internal int ObtenerConsecutivo(int OrganizacionId)
        {
            int chequera;

            try
            {
                Logger.Info();
                var chequeraDAL = new ChequeraDAL();
                chequera = chequeraDAL.ObtenerConsecutivo(OrganizacionId);
            }
            catch (ExcepcionGenerica)
            {
                throw;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }

            return(chequera);
        }