public TestingProcessResultDto GetResult(SpreadsheetDocument document)
        {
            var result = new TestingProcessResultDto();
            var propertyDescriptions = PropertyInfoBulider <TestingProcessResultDto> .GetPropertyAttributes();

            propertyDescriptions.ForEach(propertyDescription =>
            {
                this.SetPropertyValue(result, document, propertyDescription);
            });

            this.SetStandardToolValues(result, document);
            if (result.ProductName == "精密辐射温度计")
            {
                this.SetPrecisionProduct(result, document);
            }
            else
            {
                this.SetStatsticsValues(result, document);
            }
            this.SetStatisticsNotes(result, document);
            this.SetFinallyNotes(result, document);


            return(result);
        }
예제 #2
0
        public TestingProcessResultDto GetResult(SpreadsheetDocument document)
        {
            var result = new TestingProcessResultDto();
            var propertyDescriptions = PropertyInfoBulider <TestingProcessResultDto> .GetPropertyAttributes();

            propertyDescriptions.ForEach(propertyDescription =>
            {
                this.SetPropertyValue(result, document, propertyDescription);
            });

            this.SetStatsticsValues(result, document);
            this.SetFinallyNotes(result, document);
            this.SetPointsValues(result, document);
            return(result);
        }