protected virtual void AssignToSerializeHistory(SerializeHistory t) { t.HistoryMainLine = this.HistoryMainLine; t.ChildContainerLevel = this.ChildContainerLevel; t.ChildUOM = this.ChildUOM; t.Product = this.Product; }
protected override bool RecordServiceHistory() { SerializeHistory h = new SerializeHistory(); AssignToSerializeHistory(h); foreach (SerializeDetail d in SerializeDetails) { SerializeHistoryDetail hd = new SerializeHistoryDetail(); AssignSerializeDetailsToSerializeHistoryDetail(d, hd); hd.ServiceHistorySummary = h; ObjScope.Add(hd); } ObjScope.Add(h); return(true); }