/// <summary> /// 子目取费计算 /// </summary> public override void SubheadingsFeeCurrent() { //工料机计算(没经过子目取费) _Entity_SubInfo info = null; DataRow row = null; _Methods met = null; _Subheadings_Statistics stat = new _Subheadings_Statistics(this.Current, this.Unit); stat.FBegin(); //计算子目经过子目取费 _ResultSubheadings_Statictics sta = new _ResultSubheadings_Statictics(this.Current, this.Unit); sta.DataSource = this.GetDataSource; sta.Begin(); //计算子目所属清单 info = new _Entity_SubInfo(); row = this.Unit.StructSource.ModelSubSegments.GetRowByOther(this.Current.PID.ToString()); _ObjectSource.GetObject(info, row); met = new _Methods_Fixed(this.CurrentBusiness, this.Unit, info); met.Begin(null); }
/// <summary> /// 计算子目 /// </summary> 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; if (Current.LB != "子目-增加费") { _Subheadings_Statistics stat = new _Subheadings_Statistics(this.Current, this.Unit); stat.Begin(); //计算子目经过子目取费 _ResultSubheadings_Statictics sta = new _ResultSubheadings_Statictics(this.Current, this.Unit); sta.DataSource = this.GetDataSource; sta.Begin(); } //计算子目所属清单 info = new _Entity_SubInfo(); row = this.Unit.StructSource.ModelSubSegments.GetRowByOther(this.Current.PID.ToString()); var fix = _Entity_SubInfo.Parse(row); //var increase = new _Methods_IncreaseInfo(Current, new _Entity_IncreaseCosts()); _ObjectSource.GetObject(info, row); met = new _Methods_Fixed(this.CurrentBusiness, this.Unit, info); met.Begin(session); }