/// <summary>
        /// Desplegar mensaje de Error con detalle
        /// </summary>
        /// <param name="mensaje">Descripción del mensaje</param>
        /// <param name="tipo">EMensaje tipo de mensaje a desplegar</param>
        /// <param name="detalle">Detalle del mensaje a desplegar</param>
        public void MostrarMensaje(string mensaje, ETipoMensajeIU tipo, string msjDetalle = null)
        {
            if (tipo.Equals(ETipoMensajeIU.CONFIRMACION))
            {
                ((HiddenField)this.Parent.FindControl("hdnTipoMensaje")).Value = ((int)tipo).ToString();
                ((HiddenField)this.Parent.FindControl("hdnMensaje")).Value     = mensaje;

                string botonID = "";
                switch (msjDetalle)
                {
                case "AGREGARLLANTA":
                    botonID = this.btnAgregar.UniqueID;
                    break;
                }
                this.RegistrarScript("Confirm", "abrirConfirmacion('" + mensaje + "', '" + botonID + "');");
            }
            else
            {
                Site masterMsj = (Site)this.Parent.Page.Master;
                if (tipo == ETipoMensajeIU.ERROR)
                {
                    masterMsj.MostrarMensaje(mensaje, tipo, msjDetalle);
                }
                else
                {
                    masterMsj.MostrarMensaje(mensaje, tipo);
                }
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Desplegar mensaje de Error con detalle
        /// </summary>
        /// <param name="mensaje">Descripción del mensaje</param>
        /// <param name="tipo">EMensaje tipo de mensaje a desplegar</param>
        /// <param name="detalle">Detalle del mensaje a desplegar</param>
        public void MostrarMensaje(string mensaje, ETipoMensajeIU tipo, string msjDetalle = null)
        {
            if (tipo.Equals(ETipoMensajeIU.CONFIRMACION))
            {
                this.hdnTipoMensaje.Value = ((int)tipo).ToString();
                this.hdnMensaje.Value     = mensaje;

                string botonID = "";
                botonID = this.btnConfirmarEnviarNoFacturado.UniqueID;

                this.RegistrarScript("Confirm", "abrirConfirmacion('" + mensaje + "', '" + botonID + "');");
            }
            else
            {
                Site masterMsj = (Site)Page.Master;
                if (tipo == ETipoMensajeIU.ERROR)
                {
                    masterMsj.MostrarMensaje(mensaje, tipo, msjDetalle);
                }
                else
                {
                    masterMsj.MostrarMensaje(mensaje, tipo);
                }
            }
        }
Esempio n. 3
0
 public void MostrarMensaje(string mensaje, ETipoMensajeIU tipo, string msjDetalle = null)
 {
     if (tipo.Equals(ETipoMensajeIU.CONFIRMACION))
     {
         this.hdnTipoMensaje.Value = ((int)tipo).ToString();
         this.hdnMensaje.Value     = mensaje;
     }
     else
     {
         Site masterMsj = (Site)Page.Master;
         if (tipo == ETipoMensajeIU.ERROR)
         {
             masterMsj.MostrarMensaje(mensaje, tipo, msjDetalle);
         }
         else
         {
             masterMsj.MostrarMensaje(mensaje, tipo);
         }
     }
 }
 public void MostrarMensaje(string mensaje, ETipoMensajeIU tipo, string detalle = null)
 {
     if (tipo.Equals(ETipoMensajeIU.CONFIRMACION))
     {
         ((HiddenField)this.Parent.FindControl("hdnTipoMensaje")).Value = ((int)tipo).ToString();
         ((HiddenField)this.Parent.FindControl("hdnMensaje")).Value     = mensaje;
     }
     else
     {
         Site master = (Site)this.Parent.Page.Master;
         if (tipo == ETipoMensajeIU.ERROR)
         {
             master.MostrarMensaje(mensaje, tipo, detalle);
         }
         else
         {
             master.MostrarMensaje(mensaje, tipo);
         }
     }
 }