protected override bool RecordServiceHistory() { ComponentRemoveHistory h = new ComponentRemoveHistory(); AssignToComponentRemoveHistory(h); foreach (RemoveDetail sd in Details) { ComponentRemoveHistoryDetail hd = new ComponentRemoveHistoryDetail(); AssignDetailsToHistoryDetail(sd, hd); hd.ServiceHistorySummary = h; ObjScope.Add(hd); } ObjScope.Add(h); return(true); }
protected virtual void AssignToComponentRemoveHistory(ComponentRemoveHistory t) { t.HistoryMainLine = this.HistoryMainLine; t.ComponentRemoveDate = this.HistoryMainLine.TxnDate; }