void ctrlCriteria_Submit(object sender, EventArgs e) { try { SearchCriteria.FillControls(); //save selected criteria values: FundsSearchSelectedValues = SearchCriteria.Criteria; ShowResults(); } catch (Exception ex) { AddError(ex); } finally { //if (Errors.Count > 0) // lblError.Text = GetErrors(); } }
protected void btnNewSearch_Click(object sender, EventArgs e) { btns.Visible = mgRezult.Visible = false; SearchCriteria.Visible = true; SearchCriteria.FillControls(); }
protected override void PageLoadEvent(object sender, System.EventArgs e) { try { if (!Page.ClientScript.IsClientScriptBlockRegistered(Page.GetType(), "JS")) { Page.ClientScript.RegisterClientScriptBlock(Page.GetType(), "JS", "<script language='javascript' src='include/FundSearch.js'></script>"); } if (!IsPostBack) { btns.Visible = mgRezult.Visible = false; SearchCriteria.FillControls(); if (Request.QueryString["vm"] != null) { SearchCriteria.ViewMode = Convert.ToInt32(Request.QueryString["vm"]); if (Request.QueryString["bl"] != null) { SearchCriteria.BusinessLine = Request.QueryString["bl"]; } if (Request.QueryString["org"] != null) { if (!(SearchCriteria.BusinessLine != "" && Request.QueryString["org"] == "")) { SearchCriteria.Organization = Request.QueryString["org"]; } } if (Request.QueryString["fy"] != null) { SearchCriteria.FiscalYear = Request.QueryString["fy"]; } if (Request.QueryString["ba"] != null) { SearchCriteria.BudgetActivity = Request.QueryString["ba"]; } if (Request.QueryString["bm"] != null) { SearchCriteria.BookMonth = Request.QueryString["bm"]; } if (Request.QueryString["gcd"] != null) { SearchCriteria.GroupCD = Request.QueryString["gcd"]; } if (Request.QueryString["sf"] != null) { SearchCriteria.SummaryFunction = Request.QueryString["sf"]; } if (Request.QueryString["oc"] != null) { SearchCriteria.ObjClassCode = Request.QueryString["oc"]; } FundsSearchSelectedValues = SearchCriteria.Criteria; //btnBack.Visible = true; ShowResults(); } } } catch (Exception ex) { AddError(ex); } finally { //if (Errors.Count > 0) // lblError.Text = GetErrors(); } }