private static void SaveReportHelper(TranscriptionStep step, Dictionary<string, string> reportPartExtendedProperties, Staff supervisor) { var op = new TranscriptionOperations.SaveTranscription(); op.Execute(step, reportPartExtendedProperties, supervisor); }
/// <summary> /// Get the supervisor, using the new supervisor if supplied, otherwise using an existing supervisor if found. /// </summary> /// <param name="step"></param> /// <param name="newSupervisorRef"></param> /// <returns></returns> private Staff ResolveSupervisor(TranscriptionStep step, EntityRef newSupervisorRef) { var supervisor = newSupervisorRef == null ? null : this.PersistenceContext.Load<Staff>(newSupervisorRef, EntityLoadFlags.Proxy); if (supervisor == null && step.ReportPart != null) supervisor = step.ReportPart.TranscriptionSupervisor; return supervisor; }
private static void SaveReportHelper(TranscriptionStep step, Dictionary<string, string> reportPartExtendedProperties) { if (reportPartExtendedProperties == null) return; var op = new TranscriptionOperations.SaveTranscription(); op.Execute(step, reportPartExtendedProperties); }