protected virtual void AssignToCollectResourceDataHistory(CollectResDataHistory t) { t.HistoryMainLine = this.HistoryMainLine; t.CollectDate = this.HistoryMainLine.TxnDate; }
protected override bool RecordServiceHistory() { CollectResDataHistory h = new CollectResDataHistory(); AssignToCollectResourceDataHistory(h); foreach (ParametricDataDetail sd in Details) { CollectResDataHistoryDetail hd = new CollectResDataHistoryDetail(); AssignDetailsToHistoryDetail(sd, hd); hd.ServiceHistorySummary = h; ObjScope.Add(hd); } ObjScope.Add(h); return true; }