Esempio n. 1
0
        //ctor
        public MatrixGroupView(MatrixGroupControl i_Control) : base(i_Control as ExControl)
        {
            this._RootGroupInfo = new Webb.Reports.ExControls.Data.FieldGroupInfo(Webb.Data.PublicDBFieldConverter.AvialableFields[0].ToString());
            this._RootGroupInfo.ColumnHeading = "New Group";
            this._Fitler = new Webb.Data.DBFilter();
            this._Styles = new ExControlStyles();
            this._Styles.LoadDefaultStyle();                //08-14-2008@Scott
            this._ShowRowIndicators    = false;
            this._CellSizeAutoAdapting = CellSizeAutoAdaptingTypes.OneLine;

            this._HaveHeader = true;

            this._HeightPerPage = 0;
            this._SectionRoot   = false;
        }
 //ctor
 public SimpleGroupView(SimpleGroupingControl i_Control) : base(i_Control as ExControl)
 {
     this._RootGroupInfo = new Webb.Reports.ExControls.Data.FieldGroupInfo(Webb.Data.PublicDBFieldConverter.AvialableFields[0].ToString());
     this._RootGroupInfo.ColumnHeading = "New Group";
     this._Fitler = new Webb.Data.DBFilter();
     this._Styles = new ExControlStyles();
     this._Styles.LoadDefaultStyle();    //08-14-2008@Scott
     this._ShowRowIndicators    = false;
     this._CellSizeAutoAdapting = CellSizeAutoAdaptingTypes.WordWrap;
     this._OneValuePerPage      = false;
     this._HaveHeader           = true;
     this._SizeSelfAdapting     = false;
     this._TopCount             = 0;
     this._Total           = false;
     this._TotalTitle      = "Total";
     this._SectionTitle    = string.Empty;
     this._SectionInOneRow = true;
     this._TotalColumns    = new Int32Collection();
     this._HeightPerPage   = 0;
 }
Esempio n. 3
0
        public GradingView(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            try
            {
                _GradingSectionCollection = (Webb.Reports.ExControls.Data.GradingSectionCollection)info.GetValue("_GradingSectionCollection", typeof(Webb.Reports.ExControls.Data.GradingSectionCollection));
            }
            catch
            {
                _GradingSectionCollection = new GradingSectionCollection();
            }
            try
            {
                _RootGroupInfo = (Webb.Reports.ExControls.Data.GroupInfo)info.GetValue("_RootGroupInfo", typeof(Webb.Reports.ExControls.Data.GroupInfo));
            }
            catch
            {
                _RootGroupInfo = new FieldGradingInfo();
            }
            try
            {
                _CellSizeAutoAdapting = (Webb.Reports.ExControls.Views.CellSizeAutoAdaptingTypes)info.GetValue("_CellSizeAutoAdapting", typeof(Webb.Reports.ExControls.Views.CellSizeAutoAdaptingTypes));
            }
            catch
            {
                _CellSizeAutoAdapting = CellSizeAutoAdaptingTypes.NotUse;
            }
            try
            {
                _Filter = (Webb.Data.DBFilter)info.GetValue("_Filter", typeof(Webb.Data.DBFilter));
            }
            catch
            {
                _Filter = new Webb.Data.DBFilter();
            }
            try
            {
                _TopCount = info.GetInt32("_TopCount");
            }
            catch
            {
                _TopCount = 0;
            }
            try
            {
                _ShowRowIndicators = info.GetBoolean("_ShowRowIndicators");
            }
            catch
            {
                _ShowRowIndicators = false;
            }
            try
            {
                _HaveHeader = info.GetBoolean("_HaveHeader");
            }
            catch
            {
                _HaveHeader = true;
            }
            try
            {
                _SectionInOneRow = info.GetBoolean("_SectionInOneRow");
            }
            catch
            {
                _SectionInOneRow = true;
            }
            try
            {
                _HeaderRows = (Webb.Collections.Int32Collection)info.GetValue("_HeaderRows", typeof(Webb.Collections.Int32Collection));
            }
            catch
            {
                _HeaderRows = new Int32Collection();
            }
            try
            {
                _SectionRows = (Webb.Collections.Int32Collection)info.GetValue("_SectionRows", typeof(Webb.Collections.Int32Collection));
            }
            catch
            {
                _SectionRows = new Int32Collection();
            }
            try
            {
                _TotalRows = (Webb.Collections.Int32Collection)info.GetValue("_TotalRows", typeof(Webb.Collections.Int32Collection));
            }
            catch
            {
                _TotalRows = new Int32Collection();
            }

            try
            {
                _ColumnsWidth = (Webb.Collections.Int32Collection)info.GetValue("_ColumnsWidth", typeof(Webb.Collections.Int32Collection));
            }
            catch
            {
                _ColumnsWidth = new Int32Collection();
            }
            try
            {
                _RowsHight = (Webb.Collections.Int32Collection)info.GetValue("_RowsHight", typeof(Webb.Collections.Int32Collection));
            }
            catch
            {
                _RowsHight = new Int32Collection();
            }
            try
            {
                _Styles = (Webb.Reports.ExControls.Styles.ExControlStyles)info.GetValue("_Styles", typeof(Webb.Reports.ExControls.Styles.ExControlStyles));
            }
            catch
            {
                _Styles = new ExControlStyles();
            }
            try
            {
                _HeadersData = (HeadersData)info.GetValue("_HeadersData", typeof(Webb.Reports.ExControls.Data.HeadersData));
            }
            catch
            {
                _HeadersData = null;
            }
            try
            {
                _OurBordersSetting = (Webb.Reports.ExControls.Views.OurBordersSetting)info.GetValue("_OurBordersSetting", typeof(Webb.Reports.ExControls.Views.OurBordersSetting));
            }
            catch
            {
                _OurBordersSetting = new OurBordersSetting();
            }
        }