コード例 #1
0
        public void SetGraph(string GraphType, string GraphTheme, short GraphWidth, short GraphHeight,
                             bool ShowValues, bool ShowSeries, bool ShowCat, bool SetScal, bool RotateAxes)
        {
            FI.BusinessObjects.OlapReport.GraphTypeEnum graphType = (FI.BusinessObjects.OlapReport.GraphTypeEnum)Enum.Parse(typeof(FI.BusinessObjects.OlapReport.GraphTypeEnum), GraphType, true);
            _report.GraphType = graphType;

            _report.GraphTheme  = GraphTheme;
            _report.GraphWidth  = GraphWidth;
            _report.GraphHeight = GraphHeight;

            FI.BusinessObjects.OlapReport.GraphOptionsEnum graphOptions = FI.BusinessObjects.OlapReport.GraphOptionsEnum.None;
            if (ShowValues)
            {
                graphOptions = (graphOptions | FI.BusinessObjects.OlapReport.GraphOptionsEnum.ShowValues);
            }
            if (ShowSeries)
            {
                graphOptions = (graphOptions | FI.BusinessObjects.OlapReport.GraphOptionsEnum.ShowSeries);
            }
            if (ShowCat)
            {
                graphOptions = (graphOptions | FI.BusinessObjects.OlapReport.GraphOptionsEnum.ShowCategories);
            }
            if (SetScal)
            {
                graphOptions = (graphOptions | FI.BusinessObjects.OlapReport.GraphOptionsEnum.SetScaling);
            }
            if (RotateAxes)
            {
                graphOptions = (graphOptions | FI.BusinessObjects.OlapReport.GraphOptionsEnum.RotateAxes);
            }
            _report.GraphOptions = graphOptions;

            _report.SaveHeader();
        }
コード例 #2
0
        public void SetGraph(string GraphType, bool ShowCat, bool ShowSer, bool ShowVal, bool SetScal)
        {
            FI.BusinessObjects.OlapReport.GraphTypeEnum graphType = (FI.BusinessObjects.OlapReport.GraphTypeEnum)Enum.Parse(typeof(FI.BusinessObjects.OlapReport.GraphTypeEnum), GraphType, true);
            _report.GraphType = graphType;

            FI.BusinessObjects.OlapReport.GraphOptionsEnum graphOptions = FI.BusinessObjects.OlapReport.GraphOptionsEnum.None;
            if (ShowCat)
            {
                graphOptions = (graphOptions | FI.BusinessObjects.OlapReport.GraphOptionsEnum.ShowCategories);
            }
            if (ShowSer)
            {
                graphOptions = (graphOptions | FI.BusinessObjects.OlapReport.GraphOptionsEnum.ShowSeries);
            }
            if (ShowVal)
            {
                graphOptions = (graphOptions | FI.BusinessObjects.OlapReport.GraphOptionsEnum.ShowValues);
            }
            if (SetScal)
            {
                graphOptions = (graphOptions | FI.BusinessObjects.OlapReport.GraphOptionsEnum.SetScaling);
            }
            _report.GraphOptions = graphOptions;

            _report.SaveHeader();
        }
コード例 #3
0
        private void RedirectToReport()
        {
            if (_report.IsSelected == false)
            {
                _report.IsSelected = true;
                _report.SaveHeader();
            }

            Session["Report"] = _report;

            // edit or run
            if (_action == "Open" && FI.Common.AppConfig.ReportRunOnClick)
            {
                Response.Redirect(Request.ApplicationPath + "/OlapReport/Table.aspx", true);
            }
            else
            {
                Response.Redirect(Request.ApplicationPath + "/OlapReport/Design.aspx", true);
            }
        }
コード例 #4
0
        public void SetGraph(string GraphType, string GraphTheme, short GraphWidth, short GraphHeight, byte GraphPieColumns, byte GraphMixedLinePos,
                             bool ShowValues, bool ShowSeries, bool ShowCat, bool SetScal, bool Pivot, bool SetValAsPercent)
        {
            FI.BusinessObjects.OlapReport.GraphTypeEnum graphType = (FI.BusinessObjects.OlapReport.GraphTypeEnum)Enum.Parse(typeof(FI.BusinessObjects.OlapReport.GraphTypeEnum), GraphType, true);
            _report.GraphType = graphType;

            _report.GraphTheme             = GraphTheme;
            _report.GraphWidth             = GraphWidth;
            _report.GraphHeight            = GraphHeight;
            _report.GraphPieColumns        = GraphPieColumns;
            _report.GraphMixedLinePosition = GraphMixedLinePos;

            FI.BusinessObjects.OlapReport.GraphOptionsEnum graphOptions = FI.BusinessObjects.OlapReport.GraphOptionsEnum.None;
            if (ShowValues)
            {
                graphOptions = (graphOptions | FI.BusinessObjects.OlapReport.GraphOptionsEnum.ShowValues);
            }
            if (ShowSeries)
            {
                graphOptions = (graphOptions | FI.BusinessObjects.OlapReport.GraphOptionsEnum.ShowSeries);
            }
            if (ShowCat)
            {
                graphOptions = (graphOptions | FI.BusinessObjects.OlapReport.GraphOptionsEnum.ShowCategories);
            }
            if (SetScal)
            {
                graphOptions = (graphOptions | FI.BusinessObjects.OlapReport.GraphOptionsEnum.ScalingBySeries);
            }
            if (Pivot)
            {
                graphOptions = (graphOptions | FI.BusinessObjects.OlapReport.GraphOptionsEnum.Pivot);
            }
            if (SetValAsPercent)
            {
                graphOptions = (graphOptions | FI.BusinessObjects.OlapReport.GraphOptionsEnum.PercentByCategories);
            }
            _report.GraphOptions = graphOptions;

            _report.SaveHeader();
        }