Exemple #1
0
        private void TabSelected(PXTab pxTab)
        {
            Title = pxTab.Text;


            if (ToolbarItems.Count > 0)
            {
                for (int i = 0; i < ToolbarItems.Count; i++)
                {
                    this.ToolbarItems.Remove(ToolbarItems[i]);
                }
            }
            if (pxTab.ToolBarItems != null)
            {
                foreach (var item in pxTab.ToolBarItems)
                {
                    this.ToolbarItems.Add(item);
                }
            }
        }
Exemple #2
0
    protected virtual void Page_Init(object sender, EventArgs e)
    {
        this.ds  = this.DataSource;
        this.tab = this.TabView;
        T graph = (T)ds.DataGraph;

        /*T graph = Activator.CreateInstance(typeof(T)) as T;
         * if (graph == null) return;
         * ds.DataGraph = graph;*/

        /*if(string.IsNullOrEmpty(this.Request.QueryString["wiki"]))
         * {
         *  WikiPage current = (WikiPage)graph.Caches[typeof(WikiPage)].Current;
         *  if (current != null)
         *  {
         *      wiki = current.WikiID.ToString();
         *      if (!this.Page.IsCallback && !this.Page.IsPostBack && !string.IsNullOrEmpty(wiki))
         *      {
         *          graph.InitNew(PX.Common.GUID.CreateGuid(wiki), PX.Common.GUID.CreateGuid(current.ParentUID.ToString()), current.Name);
         *          ds.PageLoadBehavior = PXPageLoadBehavior.PopulateSavedValues;
         *          this.hasQueryParams = true;
         *      }
         *  }
         * }
         * else
         * {
         */
        if (!this.Page.IsCallback && !this.Page.IsPostBack && !string.IsNullOrEmpty(Request.QueryString["wiki"]))
        {
            graph.InitNew(PX.Common.GUID.CreateGuid(this.Request.QueryString["wiki"]), PX.Common.GUID.CreateGuid(this.Request.QueryString["parent"]), this.Request.QueryString["name"]);
            graph.Caches[typeof(PX.SM.WikiArticle)].IsDirty = false;
            ds.PageLoadBehavior = PXPageLoadBehavior.PopulateSavedValues;
            this.hasQueryParams = true;
        }
        //}
    }
Exemple #3
0
 private void TabSelected(PXTab pxTab)
 {
     Title = pxTab.Text;
 }
Exemple #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        PXTab tab = this.PXTab1;

        this.Page.ClientScript.RegisterClientScriptBlock(GetType(), "tab1ID", "var tab1ID=\"" + tab.ClientID + "\";", true);
    }