protected override bool RecordServiceHistory() { DefectHistory h = new DefectHistory(); AssignToDefectHistory(h); foreach (DefectDetail d in DefectDetails) { DefectHistoryDetail hd = new DefectHistoryDetail(); AssignDefectDetailsToDefectHistoryDetail(d, hd); hd.ServiceHistorySummary = h; ObjScope.Add(hd); } ObjScope.Add(h); return true; }
protected virtual void AssignToDefectHistory(DefectHistory t) { t.HistoryMainLine = this.HistoryMainLine; t.QtyInspected = this.QtyInspected; }