protected override bool RecordServiceHistory() { ComponentIssueHistory h = new ComponentIssueHistory(); AssignToComponentIssueHistory(h); foreach (ComponentIssueDetail sd in Details) { ComponentIssueHistoryDetail hd = new ComponentIssueHistoryDetail(); AssignDetailsToHistoryDetail(sd, hd); hd.ServiceHistorySummary = h; ObjScope.Add(hd); } ObjScope.Add(h); return true; }
protected virtual void AssignToComponentIssueHistory(ComponentIssueHistory t) { t.HistoryMainLine = this.HistoryMainLine; t.ComponentIssueDate = this.HistoryMainLine.TxnDate; }