Esempio 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);
     }
 }
Esempio 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);
     }
 }
Esempio 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);
     }
 }
Esempio 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);
        }
Esempio 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);
        }
Esempio 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);
        }