Example #1
0
        public override void BeginCurrent()
        {
            _FixedList_Statistics sta = new _FixedList_Statistics(this.Current, this.Unit);

            sta.DataSource = this.GetDataSource;
            sta.Begin(GetDataSource.Select("PID = " + Current.ID));
        }
Example #2
0
        public override void Begin(List <int> session)
        {
            if (session != null)
            {
                if (session.Contains(Current.ID))
                {
                    return;
                }
                else
                {
                    session.Add(Current.ID);
                }
            }


            _Entity_SubInfo info = null;
            DataRow         row  = null;
            _Methods        met  = null;

            _FixedList_Statistics sta = new _FixedList_Statistics(this.Current, this.Unit);

            sta.DataSource = this.GetDataSource;
            sta.Begin(GetDataSource.Select("PID = " + Current.ID));


            //计算子目所属节
            info = new _Entity_SubInfo();
            row  = this.Unit.StructSource.ModelSubSegments.GetRowByOther(this.Current.PID.ToString());
            _ObjectSource.GetObject(info, row);
            met = new _Method_Fest(this.CurrentBusiness, this.Unit, info);
            met.Begin(session);
        }
Example #3
0
        public override void BeginCurrent()
        {
            _FixedList_Statistics sta = new _FixedList_Statistics(this.Current, this.Unit);

            sta.DataSource = this.GetDataSource;
            sta.Begin(GetDataSource.Select("PID = '" + Current.ID + "' AND LB <> '子目-增加费'"));

            if (BeginExtension())
            {
                sta.Begin(GetDataSource.Select("PID = '" + Current.ID + "'"));
            }
        }
Example #4
0
        public override void Calculate()
        {
            DataRow[] rows = this.GetDataSource.Select(string.Format("PID={0}", this.Current.ID), "", DataViewRowState.CurrentRows);
            foreach (DataRow item in rows)
            {
                _Entity_SubInfo info = new _Entity_SubInfo();
                _ObjectSource.GetObject(info, item);
                _Mothods_MSubheadings met = new _Mothods_MSubheadings(this.CurrentBusiness, this.Unit, info);
                met.Calculate();
            }
            _FixedList_Statistics sta = new _FixedList_Statistics(this.Current, this.Unit);

            sta.DataSource = this.GetDataSource;
            sta.Begin(GetDataSource.Select("PID = '" + Current.ID + "'"));
        }