Esempio n. 1
0
        public void OnUpdateClick()
        {
            Size size = _graphControl.GraphSize;

            _contr.SetGraph(_graphControl.GraphType, _graphControl.GraphTheme,
                            (short)size.Width, (short)size.Height, _graphControl.GraphPieColumns, _graphControl.GraphMixedLinePos,
                            _graphControl.ShowValues, _graphControl.ShowSeries, _graphControl.ShowCat,
                            _graphControl.SetScalingBySeries, _graphControl.SetPivot, _graphControl.SetPercentByCategories);
        }
Esempio n. 2
0
        private void ExecuteCommands()
        {
            try
            {
                for (int i = 0; i < Request.Form.Count; i++)
                {
                    string key = Request.Form.Keys[i];
                    string val = Request.Form[i];

                    if (key.StartsWith(_tabView.UniqueID + ":"))                    // TABVIEW
                    {
                        int    index  = key.LastIndexOf(":") + 1;
                        string tabCmd = key.Substring(index, key.Length - index);

                        _contr.Transfer(tabCmd);
                        break;
                    }
                    else if (key == _graphControl.UniqueID + ":btnPivot")
                    {
                        _contr.Pivot();
                        break;
                    }
                    else if (key == _graphControl.UniqueID + ":btnUpdate")
                    {
                        Size size = _graphControl.GraphSize;
                        _contr.SetGraph(_graphControl.GraphType, _graphControl.GraphTheme,
                                        (short)size.Width, (short)size.Height, _graphControl.GraphPieColumns, _graphControl.GraphMixedLinePos,
                                        _graphControl.ShowValues, _graphControl.ShowSeries, _graphControl.ShowCat,
                                        _graphControl.SetScalingBySeries, _graphControl.SetPivot, _graphControl.SetPercentByCategories);
                        break;
                    }
                    else if (key.StartsWith(this._sliceControl.UniqueID + ":slc_del:"))
                    {
                        int    hierIndex = key.LastIndexOf(":") + 1;
                        string hierUn    = key.Substring(hierIndex, key.Length - hierIndex);

                        _contr.SetDefaultMember(hierUn);

                        break;
                    }
                }
            }
            catch (Exception exc)
            {
                this.ShowException(exc);
            }


            // save state
            _report.SaveState();
        }