Пример #1
0
        public override TestResult CreateActualTestResult(CustomerEventScreeningTestsEntity customerEventScreeningTestEntity)
        {
            var testResult = new HearingTestResult(customerEventScreeningTestEntity.CustomerEventScreeningTestId);
            var customerEventReadingEntities = customerEventScreeningTestEntity.CustomerEventReading.ToList();

            testResult.HearingSummary = CreateResultReadingforNullableBool((int)ReadingLabels.HearingSummary, customerEventReadingEntities);

            testResult.RightEar500Hz = CreateResultReadingforNullableInt((int)ReadingLabels.RightEar500Hz, customerEventReadingEntities);
            testResult.LeftEar500Hz  = CreateResultReadingforNullableInt((int)ReadingLabels.LeftEar500Hz, customerEventReadingEntities);

            testResult.RightEar1000Hz = CreateResultReadingforNullableInt((int)ReadingLabels.RightEar1000Hz, customerEventReadingEntities);
            testResult.LeftEar1000Hz  = CreateResultReadingforNullableInt((int)ReadingLabels.LeftEar1000Hz, customerEventReadingEntities);

            testResult.RightEar2000Hz = CreateResultReadingforNullableInt((int)ReadingLabels.RightEar2000Hz, customerEventReadingEntities);
            testResult.LeftEar2000Hz  = CreateResultReadingforNullableInt((int)ReadingLabels.LeftEar2000Hz, customerEventReadingEntities);

            testResult.RightEar3000Hz = CreateResultReadingforNullableInt((int)ReadingLabels.RightEar3000Hz, customerEventReadingEntities);
            testResult.LeftEar3000Hz  = CreateResultReadingforNullableInt((int)ReadingLabels.LeftEar3000Hz, customerEventReadingEntities);

            testResult.RightEar4000Hz = CreateResultReadingforNullableInt((int)ReadingLabels.RightEar4000Hz, customerEventReadingEntities);
            testResult.LeftEar4000Hz  = CreateResultReadingforNullableInt((int)ReadingLabels.LeftEar4000Hz, customerEventReadingEntities);

            testResult.RightEar6000Hz = CreateResultReadingforNullableInt((int)ReadingLabels.RightEar6000Hz, customerEventReadingEntities);
            testResult.LeftEar6000Hz  = CreateResultReadingforNullableInt((int)ReadingLabels.LeftEar6000Hz, customerEventReadingEntities);

            testResult.RightEar8000Hz = CreateResultReadingforNullableInt((int)ReadingLabels.RightEar8000Hz, customerEventReadingEntities);
            testResult.LeftEar8000Hz  = CreateResultReadingforNullableInt((int)ReadingLabels.LeftEar8000Hz, customerEventReadingEntities);

            return(testResult);
        }
Пример #2
0
        public async Task CreateFromAsync(string plotDataFilePath)
        {
            LastUsedPath = plotDataFilePath;
            xmlFileManager.FileName = plotDataFilePath;
            
            TestResult = await xmlFileManager.Get<HearingTestResult>();

            Update();
        }
Пример #3
0
        public async Task CreateFromAsync(string plotDataFilePath)
        {
            LastUsedPath            = plotDataFilePath;
            xmlFileManager.FileName = plotDataFilePath;

            TestResult = await xmlFileManager.Get <HearingTestResult>();

            Update();
        }