예제 #1
0
        public DBFilter Copy()
        {
            DBFilter newFilter = new DBFilter();

            foreach (DBCondition condition in this)
            {
                newFilter.Add(condition.Copy());
            }
            newFilter.PlayAfter = this.PlayAfter;

            newFilter._Name = this._Name;

            newFilter.IsCustomFilter = this.IsCustomFilter;

            return(newFilter);
        }
예제 #2
0
 public HitChartField(string name, string text, System.Drawing.PointF position, System.Drawing.SizeF size, Webb.Data.DBFilter filter, object tag, Webb.Reports.ExControls.ExControlCollection exControls, Webb.Reports.ExControls.Views.ExControlViewCollection exControlViews)
 {
     this.name           = name;
     this.text           = text;
     this.position       = position;
     this.size           = size;
     this.filter         = filter;
     this.tag            = tag;
     this.exControls     = exControls;
     this.exControlViews = exControlViews;
 }
예제 #3
0
        private Int32Collection GetFilteredRows(System.Data.DataTable i_Table, Webb.Collections.Int32Collection i_Rows, Webb.Data.DBFilter filter)
        {//06-04-2008@Scott
            if (filter == null || i_Table == null || i_Rows == null)
            {
                return(i_Rows);
            }

            return(filter.GetFilteredRows(i_Table, i_Rows));
        }
예제 #4
0
        public HorizonGroupView(SerializationInfo info, StreamingContext context) : base(info, context)
        {
            try
            {
                _RootGroupInfo = (Webb.Reports.ExControls.Data.GroupInfo)info.GetValue("_RootGroupInfo", typeof(Webb.Reports.ExControls.Data.GroupInfo));
            }
            catch
            {
            }
            try
            {
                _Fitler = (Webb.Data.DBFilter)info.GetValue("_Fitler", typeof(Webb.Data.DBFilter));
            }
            catch
            {
            }
            try
            {
                _ShowRowIndicators = info.GetBoolean("_ShowRowIndicators");
            }
            catch
            {
                _ShowRowIndicators = false;
            }
            try
            {
                _HaveHeader = info.GetBoolean("_HaveHeader");
            }
            catch
            {
                _HaveHeader = true;
            }
            try
            {
                _ColumnsWidth = (Webb.Collections.Int32Collection)info.GetValue("_ColumnsWidth", typeof(Webb.Collections.Int32Collection));
            }
            catch
            {
            }
            try
            {
                _RowsHight = (Webb.Collections.Int32Collection)info.GetValue("_RowsHight", typeof(Webb.Collections.Int32Collection));
            }
            catch
            {
            }
            try
            {
                _Total = info.GetBoolean("_Total");
            }
            catch
            {
                _Total = true;
            }
            try
            {
                _HorizonTopCount = info.GetInt32("_HorizonTopCount");
            }
            catch
            {
                _HorizonTopCount = 0;
            }
            try
            {
                _TotalOthers = info.GetBoolean("_TotalOthers");
            }
            catch
            {
                _TotalOthers = false;
            }
            try
            {
                _TotalOthersName = info.GetString("_TotalOthersName");
            }
            catch
            {
                _TotalOthersName = "Others";
            }
            try
            {
                _TotalStyle = (Webb.Reports.ExControls.BasicStyle)info.GetValue("_TotalStyle", typeof(Webb.Reports.ExControls.BasicStyle));
            }
            catch
            {
                _TotalStyle = new BasicStyle();
            }
            try
            {
                _HeaderRows = (Webb.Collections.Int32Collection)info.GetValue("_HeaderRows", typeof(Webb.Collections.Int32Collection));
            }
            catch
            {
                _HeaderRows = new Int32Collection();
            }
            try
            {
                TableHeaders = (Webb.Reports.ExControls.Data.HeadersData)info.GetValue("TableHeaders", typeof(Webb.Reports.ExControls.Data.HeadersData));
            }
            catch
            {
                TableHeaders = null;
            }
            try
            {
                _TotalPosition = (Webb.Data.TotalType)info.GetValue("_TotalPosition", typeof(Webb.Data.TotalType));
            }
            catch
            {
                if (_RootGroupInfo != null && _RootGroupInfo.AddTotal)
                {
                    _TotalPosition = TotalType.AllBefore;

                    _RootGroupInfo.AddTotal = false;
                }
                else
                {
                    _TotalPosition = TotalType.None;
                }
                if (RootGroupInfo != null)
                {
                    if (RootGroupInfo.SubGroupInfos.Count > 0 && RootGroupInfo.Summaries != null)
                    {
                        RootGroupInfo.SubGroupInfos[0].Summaries = RootGroupInfo.Summaries.CopyStructure();
                    }

                    RootGroupInfo.Summaries = new GroupSummaryCollection();

                    if (this.Total)
                    {
                        GroupSummary groupSummary = new GroupSummary();

                        groupSummary.ColorNeedChange = true;

                        groupSummary.Style.SetStyle(this.TotalStyle);

                        groupSummary.ShowZeros = true;

                        RootGroupInfo.Summaries.Add(groupSummary);
                    }
                }
            }
            try
            {
                _TotalOthersPosition = (Webb.Data.TotalType)info.GetValue("_TotalOthersPosition", typeof(Webb.Data.TotalType));
            }
            catch
            {
                if (this._TotalOthers)
                {
                    _TotalOthersPosition = TotalType.AllAfter;
                }
                else
                {
                    _TotalOthersPosition = TotalType.None;
                }
            }
            try
            {
                _SummaryForTotalGroup = (Webb.Reports.ExControls.Data.GroupSummary)info.GetValue("_SummaryForTotalGroup", typeof(Webb.Reports.ExControls.Data.GroupSummary));
            }
            catch
            {
                _SummaryForTotalGroup = new GroupSummary();
            }
            try
            {
                _SummaryForOthers = (Webb.Reports.ExControls.Data.GroupSummary)info.GetValue("_SummaryForOthers", typeof(Webb.Reports.ExControls.Data.GroupSummary));
            }
            catch
            {
                _SummaryForOthers = new GroupSummary();
            }
        }
예제 #5
0
 public void Remove(DBFilter i_Obj)
 {
     this.InnerList.Remove(i_Obj);
 }
예제 #6
0
 //Methods
 public int Add(DBFilter i_Object)
 {
     return(this.InnerList.Add(i_Object));
 }