コード例 #1
0
        /// <summary>
        /// Almacena la orden de reimplante programada
        /// </summary>
        /// <param name="orden">Orden de reimplante</param>
        /// <returns>Retorna true cuando se ha ejecutado correctamente el proceso</returns>
        public bool GuardarProgramacionReimplante(IList <OrdenReimplanteInfo> orden)
        {
            bool retValue = true;

            try
            {
                Logger.Info();
                var pReimplanteBl = new ProgramacionReimplanteBL();
                retValue = pReimplanteBl.GuardarProgramacionReimplante(orden);
            }
            catch (ExcepcionGenerica)
            {
                throw;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }
            return(retValue);
        }
コード例 #2
0
        /// <summary>
        /// descuenta la cantidad de ganado
        /// </summary>
        /// <param name="folioProgReimplante">Folio del Reimplante Programado</param>
        /// <returns>Retorna true cuando ejecuta la eliminacion del reimplante programado</returns>
        public bool EliminarProgramacionReimplante(int folioProgReimplante)
        {
            bool respuesta = false;

            try
            {
                Logger.Info();
                var reimplannte = new ProgramacionReimplanteBL();
                respuesta = reimplannte.EliminarProgramacionReimplante(folioProgReimplante);
            }
            catch (ExcepcionGenerica)
            {
                throw;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }
            return(respuesta);
        }
コード例 #3
0
        /// <summary>
        /// Validar que el reimplante sea de corral a corral
        /// </summary>
        /// <param name="loteIDOrigen"></param>
        /// <param name="corralIDDestino"></param>
        /// <returns></returns>
        public bool ValidarReimplanteCorralACorral(int loteIDOrigen, int corralIDDestino)
        {
            var regresa = false;

            try
            {
                Logger.Info();
                var reimplante = new ProgramacionReimplanteBL();
                regresa = reimplante.ValidarReimplanteCorralACorral(loteIDOrigen, corralIDDestino);
            }
            catch (ExcepcionGenerica)
            {
                throw;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }

            return(regresa);
        }
コード例 #4
0
        public bool ExisteProgramacionReimplante(int organizacionId, DateTime selectedDate)
        {
            var regresa = false;

            try
            {
                Logger.Info();
                var reimplannte = new ProgramacionReimplanteBL();
                regresa = reimplannte.ExisteProgramacionReimplante(organizacionId, selectedDate);
            }
            catch (ExcepcionGenerica)
            {
                throw;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }

            return(regresa);
        }
コード例 #5
0
        public bool GuardarFechaReal(String fechaReal, LoteReimplanteInfo loteReimplante)
        {
            var regresa = false;

            try
            {
                Logger.Info();
                var reimplannte = new ProgramacionReimplanteBL();
                regresa = reimplannte.GuardarFechaReal(fechaReal, loteReimplante);
            }
            catch (ExcepcionGenerica)
            {
                throw;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }

            return(regresa);
        }
コード例 #6
0
        /// <summary>
        /// Obtiene la lista de lotes disponibles para programar el reimplante
        /// </summary>
        /// <param name="organizacionId">Id de la Organizacion</param>
        /// <returns></returns>
        public ResultadoInfo <OrdenReimplanteInfo> ObtenerLotesDisponiblesReimplante(int organizacionId)
        {
            ResultadoInfo <OrdenReimplanteInfo> lista = null;

            try
            {
                Logger.Info();
                var pReimplanteBl = new ProgramacionReimplanteBL();
                lista = pReimplanteBl.ObtenerLotesDisponiblesReimplante(organizacionId);
            }
            catch (ExcepcionGenerica)
            {
                throw;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }


            return(lista);
        }
コード例 #7
0
        public List <ProgramacionReinplanteInfo> ObtenerProgramacionReimplantePorLoteID(LoteInfo lote)
        {
            List <ProgramacionReinplanteInfo> lista = null;

            try
            {
                Logger.Info();
                var pReimplanteBl = new ProgramacionReimplanteBL();
                lista = pReimplanteBl.ObtenerProgramacionReimplantePorLoteID(lote);
            }
            catch (ExcepcionGenerica)
            {
                throw;
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
                throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
            }


            return(lista);
        }