protected virtual void AssignToThruputHistory(ThruputHistory t) { t.HistoryMainLine = this.HistoryMainLine; t.Container = this.Container; t.Resource = this.Resource; t.ThruputAllQty = this.ThruputAllQty; t.Qty = this.Qty; t.CycleTime = (this.TxnDate - this.Container.LastMoveDate).TotalHours; }
protected override bool RecordServiceHistory() { ThruputHistory h = new ThruputHistory(); AssignToThruputHistory(h); ObjScope.Add(h); return true; }