Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                imgTimeWarning.ImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(BreadcrumbCodebehind), "PCAxis.Web.Controls.spacer.gif");
                FillDropDownlist();

                lblResultAs.Text = LocalizationManager.GetLocalizedString(SAVE_AS_CAPTION);
                lnkCancelSaveQuery.NavigateUrl = PanelLink.BuildLink("");
                lnkBack.NavigateUrl            = PanelLink.BuildLink("savequery1");
            }
            SetDisplayModeOnPanels();
        }
Ejemplo n.º 2
0
        private void SetDisplayModeOnPanels()
        {
            if (!string.IsNullOrEmpty(QuerystringManager.GetQuerystringParameter(PanelLink.DISPLAY_PANEL)))
            {
                if (QuerystringManager.GetQuerystringParameter(PanelLink.DISPLAY_PANEL).Equals("chartsettings"))
                {
                    pnlSettings.Style.Add("display", "inline-block");
                    lnkShowChartSettings.NavigateUrl = PanelLink.BuildLink("");
                    imgSettingsExpander.CssClass     = "px-settings-collapseimage";
                    return;
                }
            }

            pnlSettings.Style.Add("display", "none");
            lnkShowChartSettings.NavigateUrl = PanelLink.BuildLink("chartsettings");
            imgSettingsExpander.CssClass     = "px-settings-expandimage";
        }
Ejemplo n.º 3
0
 private void SetSaveQueryLinks()
 {
     if (this.Visible)
     {
         if (!string.IsNullOrEmpty(QuerystringManager.GetQuerystringParameter(PanelLink.DISPLAY_PANEL)))
         {
             if (QuerystringManager.GetQuerystringParameter(PanelLink.DISPLAY_PANEL).Equals("savequery1"))
             {
                 lnkSaveQueryInformation.NavigateUrl = PanelLink.BuildLink("");
                 imgShowSaveQueryExpander.CssClass   = "px-settings-collapseimage";
                 return;
             }
         }
         lnkSaveQueryInformation.NavigateUrl = PanelLink.BuildLink("savequery1");
         imgShowSaveQueryExpander.CssClass   = "px-settings-expandimage";
     }
 }
Ejemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            PCAxis.Web.Core.Management.PaxiomManager.PaxiomModelBuilder = null;

            if (!IsPostBack)
            {
                imgSettingsExpander.ImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(BreadcrumbCodebehind), "PCAxis.Web.Controls.spacer.gif");
                InitializeChart();

                if (PCAxis.Web.Core.Management.PaxiomManager.PaxiomModel != null)
                {
                    InitializeCommandBar();
                }
                //lnkShowChartSettings.NavigateUrl = PanelLink.BuildLink("chartsettings");
                //lnkHideChartSettings.NavigateUrl = PanelLink.BuildLink("");
                SetDisplayModeOnPanels();
            }
            PCAxis.Web.Core.Management.PaxiomManager.RegisterPaxiomModelChanged(PaxoimModelChanged);
            IsLanguageChanged();
            lnkCancelSettings.NavigateUrl = PanelLink.BuildLink("");
        }
Ejemplo n.º 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            PCAxis.Web.Core.Management.PaxiomManager.PaxiomModelBuilder = null;

            if (!IsPostBack)
            {
                imgSettingsExpander.ImageUrl = Page.ClientScript.GetWebResourceUrl(typeof(BreadcrumbCodebehind), "PCAxis.Web.Controls.spacer.gif");
                imgTableCropped.ImageUrl     = Page.ClientScript.GetWebResourceUrl(typeof(BreadcrumbCodebehind), "PCAxis.Web.Controls.spacer.gif");
                if (PCAxis.Web.Core.Management.PaxiomManager.PaxiomModel != null)
                {
                    InitializeCommandBar();
                    InitializeTableInformation();
                    InitializeTable();
                }
                //lnkShowTblSettings.NavigateUrl = PanelLink.BuildLink("tablesettings");
                //lnkHideTblSettings.NavigateUrl = PanelLink.BuildLink("");
            }
            SetDisplayModeOnPanels();
            Table1.PxTableCroppedEvent += new EventHandler(HandlePxTableCroppedEvent);

            lblTableCropped.Visible       = false;
            imgTableCropped.Visible       = false;
            lnkCancelSettings.NavigateUrl = PanelLink.BuildLink("");
        }