Exemple #1
0
        /// <summary>
        /// Obtiene una coleccion de gastos por inventario
        /// </summary>
        /// <param name="organizacionID"></param>
        /// <param name="fechaInicial"></param>
        /// <param name="fechaFinal"></param>
        /// <returns></returns>
        public IEnumerable <GastoInventarioInfo> ObtenerGastosInventarioPorFechaConciliacion(int organizacionID, DateTime fechaInicial, DateTime fechaFinal)
        {
            IEnumerable <GastoInventarioInfo> gastosInventario;

            try
            {
                Logger.Info();
                var gastoInventarioBL = new GastoInventarioBL();
                gastosInventario = gastoInventarioBL.ObtenerGastosInventarioPorFechaConciliacion(organizacionID,
                                                                                                 fechaInicial,
                                                                                                 fechaFinal);
            }
            catch (ExcepcionServicio)
            {
                throw;
            }
            catch (ExcepcionGenerica)
            {
                throw;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }
            return(gastosInventario);
        }
Exemple #2
0
        /// <summary>
        /// Guarda la informacion del gasto al inventario
        /// </summary>
        /// <param name="gasto"></param>
        /// <returns></returns>
        public long Guardar(GastoInventarioInfo gasto)
        {
            long retValue;

            try
            {
                Logger.Info();
                var gastoInventarioBL = new GastoInventarioBL();
                retValue = gastoInventarioBL.Guardar(gasto);
            }
            catch (ExcepcionServicio)
            {
                throw;
            }
            catch (ExcepcionGenerica)
            {
                throw;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }
            return(retValue);
        }