コード例 #1
0
        public override void UpdateView(ExControlView i_View)
        {
            #region Modify this property here for Excluding numbers not bigger than 0 at 2008-11-27 14:39:35@Simon
            for (int i = 0; i < _LayOut.ColumnsEachRow.Count; i++)
            {
                if (i >= _LayOut.ColumnsEachRow.Count)
                {
                    break;
                }
                if (_LayOut.ColumnsEachRow[i] <= 0)
                {
                    _LayOut.ColumnsEachRow.RemoveAt(i);
                    i--;
                }
            }
            #endregion                    //End Modify

            this.RefreshLayout();

            FieldPanelView mainView = i_View as FieldPanelView;

            this.UpdateLayout(this._LayOut);

            this.UpdateSectionFilters(mainView.SectionFilters);

            mainView.LayOut.Apply(this._LayOut);
        }
コード例 #2
0
        public override void SetView(Webb.Reports.ExControls.Views.ExControlView i_View)
        {
            this.C_GroupInfoTree.Nodes.Clear();

            GroupInfo m_GroupInfo = null;

            _ExControlView = i_View;

            HorizonGroupView mHorizonGroupView = i_View as HorizonGroupView;

            m_GroupInfo = mHorizonGroupView.RootGroupInfo;

            this.SetView(m_GroupInfo, null);
        }
コード例 #3
0
        public override void UpdateView(ExControlView i_View)
        {
            if (i_View == null)
            {
                return;
            }

            IMultiHeader mainView = i_View as IMultiHeader;

            if (this.Headers != null)
            {
                mainView.HeadersData = this.Headers.Copy();
            }
        }
コード例 #4
0
        public override void SetView(ExControlView i_View)
        {
            FieldPanelView mainView = i_View as FieldPanelView;

            this._LayOut.Apply(mainView.LayOut);

            this._SectionFilters.Apply(mainView.SectionFilters);

            this.C_PropertyGrid.SelectedObject = this._LayOut;

            this.LoadButtons(true);

            //this.AdjustButtons(this.LayoutRect,this._LayOut);
        }
コード例 #5
0
        public override void UpdateView(ExControlView i_View)
        {
            if (!(i_View is GradingView))
            {
                return;                             //Added this code at 2008-11-20 15:24:38@Simon
            }
            this._GradingSectionCollection = new GradingSectionCollection();

            foreach (GradingSection playerPostionSection in this.lstGradingSections.Items)
            {
                this._GradingSectionCollection.Add(playerPostionSection);
            }

            (i_View as GradingView).GradingSectionCollection = this._GradingSectionCollection;
        }
コード例 #6
0
        public override void UpdateView(ExControlView i_View)
        {
            if (!(i_View is GridView || i_View is HorizontalGridView || i_View is FieldPanelView || i_View is CompactGroupView || i_View is MatrixGroupView))
            {
                return;                                                                                                                                                 //Added this code at 2008-11-20 15:24:38@Simon
            }
            this._GridInfo.Columns.Clear();

            foreach (object value in this.C_LBSelFields.Items)
            {
                if (value is GridColumn)
                {
                    this._GridInfo.Columns.Add(value as GridColumn);
                }
            }
            if (i_View is GridView)
            {
                int Start = (i_View as GridView).ResolveIndentStartCol();

                (i_View as GridView).UpdateVirtualGroupInfoWidth(ref Start, (i_View as GridView).RootGroupInfo, (i_View as GridView).ColumnsWidth);

                this._GridInfo.UpdateColumnsWidth((i_View as GridView).ColumnsWidth, Start);    //06-30-2008@Scott

                (i_View as GridView).GridInfo.Apply(this._GridInfo);
            }
            else if (i_View is HorizontalGridView)
            {//10-11-2011@Scott
                int Start = (i_View as HorizontalGridView).ResolveIndentStartCol();

                (i_View as HorizontalGridView).UpdateVirtualGroupInfoWidth(ref Start, (i_View as HorizontalGridView).RootGroupInfo, (i_View as HorizontalGridView).ColumnsWidth);

                this._GridInfo.UpdateColumnsWidth((i_View as HorizontalGridView).ColumnsWidth, Start);  //06-30-2008@Scott

                (i_View as HorizontalGridView).GridInfo.Apply(this._GridInfo);
            }
            else if (i_View is FieldPanelView)
            {
                (i_View as FieldPanelView).FieldGridInfo.Apply(this._GridInfo);                   //Added this code at 2008-11-20 15:24:44@Simon
            }
            else if (i_View is CompactGroupView)
            {
                (i_View as CompactGroupView).GridInfo.Apply(this._GridInfo);                   //Added this code at 2008-11-20 15:24:44@Simon
            }
            else if (i_View is MatrixGroupView)
            {
                (i_View as MatrixGroupView).GridInfo.Apply(this._GridInfo);                   //Added this code at 2008-11-20 15:24:44@Simon
            }
        }
コード例 #7
0
        public override void SetView(ExControlView i_View)
        {
            this.Headers.txtEdit = this.txtCell;

            if (i_View == null || !(i_View is IMultiHeader))
            {
                return;
            }

            _ExControlView = i_View;

            IMultiHeader mainView = i_View as IMultiHeader;

            if (i_View.PrintingTable == null)
            {
                return;
            }

            int colcount = i_View.PrintingTable.GetColumns();

            colcount = colcount <= 0?0:colcount;

            if (mainView.HeadersData == null)
            {
                this.Headers = new HeadersData(0, colcount);
            }
            else
            {
                this.Headers = mainView.HeadersData.Copy();

                int count = colcount - this.Headers.ColCount;

                for (int i = 0; i < count; i++)
                {
                    this.Headers.AddCol();
                }
                for (int i = count; i < 0; i++)
                {
                    this.Headers.RemoveCol();
                }
            }

            this.LayoutHeaders();
        }
コード例 #8
0
        public override void SetView(ExControlView i_View)
        {
            if (!(i_View is GradingView))
            {
                return;                             //Added this code at 2008-11-20 15:24:38@Simon
            }
            this._GradingSectionCollection = (i_View as GradingView).GradingSectionCollection;

            this.lstGradingSections.Items.Clear();

            this.lstPostions.Items.Clear();

            foreach (GradingSection gradingSection in this._GradingSectionCollection)
            {
                this.lstGradingSections.Items.Add(gradingSection);
            }

            if (this.lstGradingSections.Items.Count > 0)
            {
                this.lstGradingSections.SelectedIndex = 0;
            }
        }
コード例 #9
0
 public virtual void UpdateView(ExControlView i_View)
 {
     // TODO: implement
 }
コード例 #10
0
        public override void SetView(ExControlView i_View)
        {
            if (!(i_View is GridView || i_View is HorizontalGridView || i_View is FieldPanelView || i_View is CompactGroupView || i_View is MatrixGroupView))
            {
                return;
            }

            if (i_View is GridView)
            {
                this._GridInfo.Apply((i_View as GridView).GridInfo);

                int Start = (i_View as GridView).ResolveIndentStartCol();

                (i_View as GridView).ApplyVirtualGroupInfoWidth(ref Start, (i_View as GridView).RootGroupInfo, (i_View as GridView).ColumnsWidth);

                this._GridInfo.ApplyColumnsWidth((i_View as GridView).ColumnsWidth, Start);                     //06-30-2008@Scott
            }
            else if (i_View is HorizontalGridView)
            {//10-11-2011@Scott
                this._GridInfo.Apply((i_View as HorizontalGridView).GridInfo);

                int Start = (i_View as HorizontalGridView).ResolveIndentStartCol();

                (i_View as HorizontalGridView).ApplyVirtualGroupInfoWidth(ref Start, (i_View as HorizontalGridView).RootGroupInfo, (i_View as HorizontalGridView).ColumnsWidth);

                this._GridInfo.ApplyColumnsWidth((i_View as HorizontalGridView).ColumnsWidth, Start);   //06-30-2008@Scott
            }
            else if (i_View is FieldPanelView)
            {
                this._GridInfo.Apply((i_View as FieldPanelView).FieldGridInfo);                   //Added this code at 2008-11-20 15:24:44@Simon
            }
            else if (i_View is CompactGroupView)
            {
                this._GridInfo.Apply((i_View as CompactGroupView).GridInfo);
            }
            else if (i_View is MatrixGroupView)
            {
                this._GridInfo.Apply((i_View as MatrixGroupView).GridInfo);
            }

            this.C_LBSelFields.Items.Clear();

            this.C_LBFields.Items.Clear();

            //foreach(object value in Webb.Data.PublicDBFieldConverter.AvialableFields)
            //{
            //    GridColumn column = new GridColumn(value.ToString());

            //    this.C_LBFields.Items.Add(column);
            //}

            this.SetALLList(this._GridInfo);  //Add this code at 2011-5-3 15:01:38@simon

            foreach (GridColumn column in this._GridInfo.Columns)
            {
                this.C_LBSelFields.Items.Add(column);

                object value = this.GetItemByName(this.C_LBFields, column.ToString());

                if (value != null && value.ToString() != string.Empty)
                {
                    this.C_LBFields.Items.Remove(value);
                }
            }

            this.C_PropertyGrid.SelectedObject = this._GridInfo;
        }
コード例 #11
0
 public virtual void UpdateView(ExControlView i_View)
 {
     // TODO: implement
     this._ExControlStyleControl.UpdateView(i_View);
 }
コード例 #12
0
 public virtual void SetView(ExControlView i_View)
 {
     // TODO: implement
     this._ExControlView = i_View;
 }