コード例 #1
0
        /// <summary>
        /// Obtiene almaceninventariolote por folio
        /// </summary>
        /// <param name="almacenInventarioLote"></param>
        /// <returns></returns>
        internal AlmacenInventarioLoteInfo ObtenerAlmacenInventarioLotePorLote(AlmacenInventarioLoteInfo almacenInventarioLote)
        {
            try
            {
                var almacenDAL = new AlmacenInventarioLoteDAL();
                almacenInventarioLote = almacenDAL.ObtenerAlmacenInventarioLotePorLote(almacenInventarioLote);

                if (almacenInventarioLote != null)
                {
                    if (almacenInventarioLote.AlmacenInventario.AlmacenInventarioID > 0)
                    {
                        var almacenInventarioBl = new AlmacenInventarioBL();
                        almacenInventarioLote.AlmacenInventario =
                            almacenInventarioBl.ObtenerAlmacenInventarioPorId(
                                almacenInventarioLote.AlmacenInventario.AlmacenInventarioID);
                    }
                }
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }

            return(almacenInventarioLote);
        }
コード例 #2
0
        /// <summary>
        /// Obtiene una lista de Almacen Inventario Lote
        /// </summary>
        /// <param name="filtroAyudaLote"></param>
        /// <returns></returns>
        public IList <AlmacenInventarioLoteInfo> ObtenerAlmacenInventarioLotePorLote(FiltroAyudaLotes filtroAyudaLote)
        {
            IList <AlmacenInventarioLoteInfo> result;

            try
            {
                Logger.Info();
                var almacenInventarioLoteDal = new AlmacenInventarioLoteDAL();
                result = almacenInventarioLoteDal.ObtenerAlmacenInventarioLotePorLote(filtroAyudaLote);
            }
            catch (ExcepcionGenerica)
            {
                throw;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }
            return(result);
        }