예제 #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
        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();
        }