Example #1
0
 protected virtual void AssignDetailsToHistoryDetail(CollectDataDetail s, CollectDataHistoryDetail t)
 {
     t.DataCollectionDef = ResolveCDO("DataCollectionDef", s.DataCollectionDef_Name) as DataCollectionDef;
     t.DataCollectionValue = s.DataCollectionValue;
 }
Example #2
0
 protected override bool RecordServiceHistory()
 {
     CollectDataHistory h = new CollectDataHistory();
     AssignToCollectDataHistory(h);
     foreach (CollectDataDetail sd in Details)
     {
         CollectDataHistoryDetail hd = new CollectDataHistoryDetail();
         AssignDetailsToHistoryDetail(sd, hd);
         hd.ServiceHistorySummary = h;
         ObjScope.Add(hd);
     }
     ObjScope.Add(h);
     return true;
 }