protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsCallback) { PXGrid grid = this.tab.FindControl("grdFilter") as PX.Web.UI.PXGrid; if (grid != null) this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "gridFilterID", "var grdFilterID=\"" + grid.ClientID + "\";", true); grid = this.tab.FindControl("grdResults") as PX.Web.UI.PXGrid; if (grid != null) this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "gridResultsID", "var grdResultsID=\"" + grid.ClientID + "\";", true); grid = this.tab.FindControl("grdSorts") as PX.Web.UI.PXGrid; if (grid != null) this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "gridSortsID", "var grdSortsID=\"" + grid.ClientID + "\";", true); grid = this.tab.FindControl("grdWheres") as PX.Web.UI.PXGrid; if (grid != null) this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "grdWheres", "var grdWheresID=\"" + grid.ClientID + "\";", true); grid = this.tab.FindControl("grdGroupBy") as PX.Web.UI.PXGrid; if (grid != null) this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "grdGroupBy", "var grdGroupByID=\"" + grid.ClientID + "\";", true); PXSplitContainer sp1 = this.tab.FindControl("sp1") as PXSplitContainer; grid = sp1.FindControl("grdJoins") as PX.Web.UI.PXGrid; if (grid != null) this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "grdJoins", "var grdJoinsID=\"" + grid.ClientID + "\";", true); grid = sp1.FindControl("grdOns") as PX.Web.UI.PXGrid; if (grid != null) this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "grdOns", "var grdOnsID=\"" + grid.ClientID + "\";", true); this.ClientScript.RegisterArrayDeclaration("relativeDatesVariables", String.Join(",", RelativeDatesManager.AllVariables.Select(v => String.Concat("\"", v, "\"")))); } }
protected void Page_Load(object sender, EventArgs e) { if (!this.Page.IsCallback) { PXGrid grid = this.tab.FindControl("grdFilter") as PX.Web.UI.PXGrid; if (grid != null) { this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "gridFilterID", "var grdFilterID=\"" + grid.ClientID + "\";", true); } grid = this.tab.FindControl("grdResults") as PX.Web.UI.PXGrid; if (grid != null) { this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "gridResultsID", "var grdResultsID=\"" + grid.ClientID + "\";", true); } grid = this.tab.FindControl("grdSorts") as PX.Web.UI.PXGrid; if (grid != null) { this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "gridSortsID", "var grdSortsID=\"" + grid.ClientID + "\";", true); } grid = this.tab.FindControl("grdWheres") as PX.Web.UI.PXGrid; if (grid != null) { this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "grdWheres", "var grdWheresID=\"" + grid.ClientID + "\";", true); } grid = this.tab.FindControl("grdGroupBy") as PX.Web.UI.PXGrid; if (grid != null) { this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "grdGroupBy", "var grdGroupByID=\"" + grid.ClientID + "\";", true); } PXSplitContainer sp1 = this.tab.FindControl("sp1") as PXSplitContainer; grid = sp1.FindControl("grdJoins") as PX.Web.UI.PXGrid; if (grid != null) { this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "grdJoins", "var grdJoinsID=\"" + grid.ClientID + "\";", true); } grid = sp1.FindControl("grdOns") as PX.Web.UI.PXGrid; if (grid != null) { this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "grdOns", "var grdOnsID=\"" + grid.ClientID + "\";", true); } } }
protected PXGrid GetExceptionalObsoleteValueGrid() { PXGrid gridExceptionalObsoleteValue = null; PXSplitContainer container = tab.FindControl("sp2") as PXSplitContainer; if (container != null) { gridExceptionalObsoleteValue = container.FindControl("gridValueExceptionalObsolete") as PXGrid; } return(gridExceptionalObsoleteValue); }
protected PXGrid GetExceptionalValueGrid() { PXGrid gridValueExceptional = null; PXSplitContainer container = tab.FindControl("sp1") as PXSplitContainer; if (container != null) { gridValueExceptional = container.FindControl("gridValueExceptional") as PXGrid; } return(gridValueExceptional); }
protected PXGrid GetValueGrid() { PXGrid gridValue = null; PXSplitContainer container = tab.FindControl("sp1") as PXSplitContainer; if (container != null) { gridValue = container.FindControl("gridValue") as PXGrid; } return(gridValue); }