protected void Page_Load(object sender, EventArgs e) { util = new Utilerias(); mpMenu = (System.Web.UI.WebControls.Menu)Master.FindControl("ChildrenMenu"); mpMenu.MenuItemClick += new MenuEventHandler(menuReporte_MenuItemClick); try { if (!Page.IsPostBack) { wndRequerimiento.NavigateUrl = "Mobile/Requerimiento.aspx?ex=" + Request.QueryString["ex"] + "&mod=" + Master.Page.Request.Url.Segments[ Master.Page.Request.Url.Segments.Length - 1]; MenuSelected(Request.QueryString["mod"]); var ex = new DS.SAI.Business.ExchangeManager(); gvExchange.DataSource = ex.GetExchangePDF(string.Empty, string.Empty, string.Empty, dtOpR1.SelectedDate, dtOpR2.SelectedDate); gvExchange.DataBind(); } } catch (ArgumentNullException ex) { Alert.Denegado(this.Page); } catch (Exception ex) { //Response.Redirect("Services/Logout.ashx"); } }
private void Busqueda() { var ex = new DS.SAI.Business.ExchangeManager(); gvExchange.DataSource = ex.GetExchangePDF(txtOpPreFolio.Text, txtOpFolio.Text, cbActivate.Checked ? ddlClient.SelectedValue : string.Empty, dtOpR1.SelectedDate, dtOpR1.SelectedDate); gvExchange.DataBind(); }