public override void BeginCurrent() { _SubSegment_Statistics sta = new _SubSegment_Statistics(this.Current, this.Unit); sta.DataSource = this.GetDataSource; sta.Begin(); _Project_Statistics stat = new _Project_Statistics(this.Unit, this.CurrentBusiness); stat.Begin();//单位工程计算 }
public override void Begin(List <int> session) { if (session != null) { if (session.Contains(Current.ID)) { return; } else { session.Add(Current.ID); } } this.Unit.IsCalculated = true; _SubSegment_Statistics sta = new _SubSegment_Statistics(this.Current, this.Unit); sta.DataSource = this.GetDataSource; sta.Begin(); _Project_Statistics stat = new _Project_Statistics(this.Unit, this.CurrentBusiness); stat.Begin();//单位工程计算 }