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); }
protected virtual void AssignDetailsToHistoryDetail(ParametricDataDetail s, CollectResDataHistoryDetail t) { t.DataCollectionDef = ResolveCDO("DataCollectionDef", s.DataCollectionDef_Name) as DataCollectionDef; t.DataCollectionValue = s.DataCollectionValue; }