protected override bool RecordServiceHistory() { StartHistory h = new StartHistory(); AssignToStartHistory(h); foreach (StartDetail sd in Details) { StartHistoryDetail hd = new StartHistoryDetail(); AssignStartDetailToStartHistoryDetail(sd, hd); hd.ServiceHistorySummary = h; ObjScope.Add(hd); } ObjScope.Add(h); return true; }
protected virtual void AssignToStartHistory(StartHistory t) { t.HistoryMainLine = this.HistoryMainLine; t.MfgOrder = this.MfgOrder; t.Workflow = this.Workflow; t.WorkflowStep = this.WorkflowStep; t.StartReason = this.StartReason; }