Beispiel #1
0
        /// <summary>
        /// Handles the Click event of the btnCargaTabBusqueda control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        public void btnCargaTabBusqueda_Click(Object sender, EventArgs e)
        {
            bool          isQuery = false;
            TDI_BUSQUEDAS info    = null;

            wsFiatube.FastResultset resultado             = null;
            wsFiatube.WebService_FIATubeSoapClient client = null;

            try
            {
                info   = (TDI_BUSQUEDAS)JsonConvert.DeserializeObject(hiddTabI.Value, typeof(TDI_BUSQUEDAS));
                client = new wsFiatube.WebService_FIATubeSoapClient();

                //Siempre se carga la posicion cero, porque cuando termine de cargarla es la posicion que se elimina y con esto se recorre la lista.
                if (isDate(info.TabNombre.Trim(), Convert.ToInt32(Session["numUsuario"])))
                {
                    isQuery = false;
                }
                else
                {
                    isQuery = true;
                }

                resultado = client.ConsultaRecuperacionBusquedas(isQuery, info.DetalleBusqueda, int.MaxValue);

                /*Se carga el nuevo tab*/
                this.creaNuevoTabInfoAcoplado(resultado, info.TabNombre);
            }
            catch (Exception ex)
            {
                ScriptManager.RegisterStartupScript(this, this.GetType(), "js", "alertModal('" + ex.Message + "');", true);
                this.logError(ex);
            }
        }
Beispiel #2
0
        public static bool saveSearch(TDI_BUSQUEDAS search)
        {
            bool resultado = false;

            recuperaVideo.WebService_RecuperaVideoSoapClient client = new WebService_RecuperaVideoSoapClient();

            search.DetalleBusqueda = new Azteca.Utility.Security.Rijndael().Transmute(search.DetalleBusqueda, Azteca.Utility.Security.enmTransformType.intDecrypt);

            resultado = client.GuardaBusquedas(search);
            return(resultado);
        }
Beispiel #3
0
 public bool BorraBusquedaByNombre(TDI_BUSQUEDAS oBusquedaToDelete)
 {
     ValidateUser();
     return(MngNegocioBusquedas.BorraBusquedaByNombre(oBusquedaToDelete));
 }
Beispiel #4
0
 public bool GuardaBusquedas(TDI_BUSQUEDAS oBusquedas)
 {
     ValidateUser();
     return(MngNegocioBusquedas.GuardaBusquedas(oBusquedas));
 }