コード例 #1
0
 internal void CopyContentTo(DataRecording target, Func <String, bool> onFixedValueChangingCallback = null)
 {
     if (!Equals(target.TaskGuid, this.TaskGuid))
     {
         if (onFixedValueChangingCallback == null || onFixedValueChangingCallback.Invoke(nameof(TaskGuid)))
         {
             target.TaskGuid = this.TaskGuid;
         }
     }
     target.VisitGuid             = this.VisitGuid;
     target.DataRecordingName     = this.DataRecordingName;
     target.TaskExecutionTitle    = this.TaskExecutionTitle;
     target.ScheduledDateTimeUtc  = this.ScheduledDateTimeUtc;
     target.ExecutionDateTimeUtc  = this.ExecutionDateTimeUtc;
     target.ExecutionState        = this.ExecutionState;
     target.DataSchemaUrl         = this.DataSchemaUrl;
     target.RecordedData          = this.RecordedData;
     target.NotesRegardingOutcome = this.NotesRegardingOutcome;
     target.ExtendedMetaData      = this.ExtendedMetaData;
     target.ExecutingPerson       = this.ExecutingPerson;
 }
コード例 #2
0
 internal void CopyContentFrom(DataRecording source, Func <String, bool> onFixedValueChangingCallback = null)
 {
     if (!Equals(source.TaskGuid, this.TaskGuid))
     {
         if (onFixedValueChangingCallback == null || onFixedValueChangingCallback.Invoke(nameof(TaskGuid)))
         {
             this.TaskGuid = source.TaskGuid;
         }
     }
     this.VisitGuid             = source.VisitGuid;
     this.DataRecordingName     = source.DataRecordingName;
     this.TaskExecutionTitle    = source.TaskExecutionTitle;
     this.ScheduledDateTimeUtc  = source.ScheduledDateTimeUtc;
     this.ExecutionDateTimeUtc  = source.ExecutionDateTimeUtc;
     this.ExecutionState        = source.ExecutionState;
     this.DataSchemaUrl         = source.DataSchemaUrl;
     this.RecordedData          = source.RecordedData;
     this.NotesRegardingOutcome = source.NotesRegardingOutcome;
     this.ExtendedMetaData      = source.ExtendedMetaData;
     this.ExecutingPerson       = source.ExecutingPerson;
 }