protected virtual void AssignCombineDetailsToCombineHistoryDetail(CombineFromDetail s, CombineHistoryDetail t) { t.CloseWhenEmpty = s.CloseWhenEmpty; t.CombineAllQty = s.CombineAllQty; t.FromContainerName = s.FromContainerName; t.Qty = s.Qty; }
protected override bool RecordServiceHistory() { CombineHistory h = new CombineHistory(); AssignToCombineHistory(h); foreach (CombineFromDetail hd in FromContainerDetails) { CombineHistoryDetail shd = new CombineHistoryDetail(); AssignCombineDetailsToCombineHistoryDetail(hd, shd); shd.ServiceHistorySummary = h; ObjScope.Add(shd); } ObjScope.Add(h); return true; }