protected virtual void AssignDetailsToHistoryDetail(RemoveDetail s, ComponentRemoveHistoryDetail t) { t.IssueControl = s.IssueControl; t.Product = ResolveCDO("Product", s.Product_Name) as Product; t.DestinationContainer = ResolveContainer(s.DestinationContainer_Name); t.QtyRemoved = s.QtyRemoved; t.RemoveReason = ResolveCDO("RemoveReason", s.RemoveReason_Name) as RemoveReason; }
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); }