|
|
|
@ -37,6 +37,7 @@ using SparkClient.Model.Attributes; |
|
|
|
using SparkClient.Model.Common; |
|
|
|
using SparkClient.Model.Common; |
|
|
|
using PaperSize = System.Drawing.Printing.PaperSize; |
|
|
|
using PaperSize = System.Drawing.Printing.PaperSize; |
|
|
|
using SharpDX.Direct2D1.Effects; |
|
|
|
using SharpDX.Direct2D1.Effects; |
|
|
|
|
|
|
|
using SparkDotNetCore.DiamondScanner.Entity.Child; |
|
|
|
using Exception = System.Exception; |
|
|
|
using Exception = System.Exception; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -201,7 +202,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
IsEnabled = false; |
|
|
|
IsEnabled = false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (algorithmResult.status.Equals(StatusCodes.Recheck)) IsEnabled = false; |
|
|
|
if (algorithmResult.Status.Equals(StatusCodes.Recheck)) IsEnabled = false; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -287,7 +288,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
{ |
|
|
|
{ |
|
|
|
string strBaseUrl = AppDomain.CurrentDomain.BaseDirectory; |
|
|
|
string strBaseUrl = AppDomain.CurrentDomain.BaseDirectory; |
|
|
|
string filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "csv", "histroy.csv"); |
|
|
|
string filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "csv", "histroy.csv"); |
|
|
|
Measurements info = algorithmResult.measurements; |
|
|
|
var info = algorithmResult.Measurements; |
|
|
|
string line = |
|
|
|
string line = |
|
|
|
$"{DiamondCode}," + |
|
|
|
$"{DiamondCode}," + |
|
|
|
$"{Wight}(ct)," + |
|
|
|
$"{Wight}(ct)," + |
|
|
|
@ -426,7 +427,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
} |
|
|
|
} |
|
|
|
else if (ruleId.StartsWith("GB")) |
|
|
|
else if (ruleId.StartsWith("GB")) |
|
|
|
{ |
|
|
|
{ |
|
|
|
double ta = algorithmResult.measurements.TABLE * 100; |
|
|
|
double ta = algorithmResult.Measurements.TABLE * 100; |
|
|
|
ta = (RoundFiveDownSixUp(ta * 2) / 2); |
|
|
|
ta = (RoundFiveDownSixUp(ta * 2) / 2); |
|
|
|
if (ta < 49) |
|
|
|
if (ta < 49) |
|
|
|
{ |
|
|
|
{ |
|
|
|
@ -715,12 +716,12 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "DIAMETER"; |
|
|
|
info.TestItemId = "DIAMETER"; |
|
|
|
info.TestItemName = GetName("DIAMETER"); |
|
|
|
info.TestItemName = GetName("DIAMETER"); |
|
|
|
info.Avg = FormatDouble_D(result.measurements.DIAMETER); |
|
|
|
info.Avg = FormatDouble_D(result.Measurements.DIAMETER); |
|
|
|
info.Dev = result.measurements.DIAMETER_DEV.ToString(digitsFormat); |
|
|
|
info.Dev = result.Measurements.DIAMETER_DEV.ToString(digitsFormat); |
|
|
|
info.Min = FormatDouble_D(result.measurements.M1); |
|
|
|
info.Min = FormatDouble_D(result.Measurements.M1); |
|
|
|
info.Max = FormatDouble_D(result.measurements.M2); |
|
|
|
info.Max = FormatDouble_D(result.Measurements.M2); |
|
|
|
info.Dev = calDev(info.Max, info.Min); |
|
|
|
info.Dev = calDev(info.Max, info.Min); |
|
|
|
var data = result.measurements; |
|
|
|
var data = result.Measurements; |
|
|
|
if (data.DIAMETER_DETAIL != null) |
|
|
|
if (data.DIAMETER_DETAIL != null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
info.Dtl1 = FormatDouble_D(data.DIAMETER_DETAIL.DIAMETER_1); |
|
|
|
info.Dtl1 = FormatDouble_D(data.DIAMETER_DETAIL.DIAMETER_1); |
|
|
|
@ -741,8 +742,8 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "TOTAL_DEPTH"; |
|
|
|
info.TestItemId = "TOTAL_DEPTH"; |
|
|
|
info.TestItemName = GetName("TOTAL_DEPTH"); |
|
|
|
info.TestItemName = GetName("TOTAL_DEPTH"); |
|
|
|
info.Avg = FormatDouble_Avg(result.measurements.TOTAL_DEPTH*100,Accuracy.ZD1); |
|
|
|
info.Avg = FormatDouble_Avg(result.Measurements.TOTAL_DEPTH*100,Accuracy.ZD1); |
|
|
|
info.CutLevel = calGrade_TOTAL_DEPTH(result.measurements.TOTAL_DEPTH); |
|
|
|
info.CutLevel = calGrade_TOTAL_DEPTH(result.Measurements.TOTAL_DEPTH); |
|
|
|
info.isEnabled = false; |
|
|
|
info.isEnabled = false; |
|
|
|
return info; |
|
|
|
return info; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -753,12 +754,12 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "TABLE"; |
|
|
|
info.TestItemId = "TABLE"; |
|
|
|
info.TestItemName = GetName("TABLE"); |
|
|
|
info.TestItemName = GetName("TABLE"); |
|
|
|
info.Avg = FormatDouble_Avg(result.measurements.TABLE*100, Accuracy.ZD5); |
|
|
|
info.Avg = FormatDouble_Avg(result.Measurements.TABLE*100, Accuracy.ZD5); |
|
|
|
info.Min = FormatDouble_P(result.measurements.TABLE_MIN); |
|
|
|
info.Min = FormatDouble_P(result.Measurements.TABLE_MIN); |
|
|
|
info.Max = FormatDouble_P(result.measurements.TABLE_MAX); |
|
|
|
info.Max = FormatDouble_P(result.Measurements.TABLE_MAX); |
|
|
|
info.CutLevel = calGrade_TABLE(result.measurements.TABLE_MIN, result.measurements.TABLE_MAX); |
|
|
|
info.CutLevel = calGrade_TABLE(result.Measurements.TABLE_MIN, result.Measurements.TABLE_MAX); |
|
|
|
info.isEnabled = false; |
|
|
|
info.isEnabled = false; |
|
|
|
var data = result.measurements; |
|
|
|
var data = result.Measurements; |
|
|
|
if (data.TABLE_DETAIL != null) |
|
|
|
if (data.TABLE_DETAIL != null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
info.Dtl1 = FormatDouble_P(data.TABLE_DETAIL.TABLE_1); |
|
|
|
info.Dtl1 = FormatDouble_P(data.TABLE_DETAIL.TABLE_1); |
|
|
|
@ -775,13 +776,13 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "CROWN_ANGLE"; |
|
|
|
info.TestItemId = "CROWN_ANGLE"; |
|
|
|
info.TestItemName = GetName("CROWN_ANGLE"); |
|
|
|
info.TestItemName = GetName("CROWN_ANGLE"); |
|
|
|
info.Avg = FormatDouble_Avg(result.measurements.CROWN_ANGLE, Accuracy.ZD5); |
|
|
|
info.Avg = FormatDouble_Avg(result.Measurements.CROWN_ANGLE, Accuracy.ZD5); |
|
|
|
info.Dev = FormatDouble_A(result.measurements.CROWN_ANGLE_DEV); |
|
|
|
info.Dev = FormatDouble_A(result.Measurements.CROWN_ANGLE_DEV); |
|
|
|
info.Min = FormatDouble_A(result.measurements.CROWN_ANGLE_MIN); |
|
|
|
info.Min = FormatDouble_A(result.Measurements.CROWN_ANGLE_MIN); |
|
|
|
info.Max = FormatDouble_A(result.measurements.CROWN_ANGLE_MAX); |
|
|
|
info.Max = FormatDouble_A(result.Measurements.CROWN_ANGLE_MAX); |
|
|
|
info.CutLevel = calGrade_CROWN_ANGLE(result.measurements.CROWN_ANGLE_MIN, result.measurements.CROWN_ANGLE_MAX); |
|
|
|
info.CutLevel = calGrade_CROWN_ANGLE(result.Measurements.CROWN_ANGLE_MIN, result.Measurements.CROWN_ANGLE_MAX); |
|
|
|
info.Dev = calDev(info.Max, info.Min); |
|
|
|
info.Dev = calDev(info.Max, info.Min); |
|
|
|
var data = result.measurements; |
|
|
|
var data = result.Measurements; |
|
|
|
if (data.CROWN_ANGLE_DETAIL != null) |
|
|
|
if (data.CROWN_ANGLE_DETAIL != null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
info.Dtl1 = FormatDouble_A(data.CROWN_ANGLE_DETAIL.CROWN_ANGLE_1); |
|
|
|
info.Dtl1 = FormatDouble_A(data.CROWN_ANGLE_DETAIL.CROWN_ANGLE_1); |
|
|
|
@ -803,13 +804,13 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "CROWN_HEIGHT"; |
|
|
|
info.TestItemId = "CROWN_HEIGHT"; |
|
|
|
info.TestItemName = GetName("CROWN_HEIGHT"); |
|
|
|
info.TestItemName = GetName("CROWN_HEIGHT"); |
|
|
|
info.Avg = FormatDouble_Avg(result.measurements.CROWN_HEIGHT * 100, Accuracy.ZD5); |
|
|
|
info.Avg = FormatDouble_Avg(result.Measurements.CROWN_HEIGHT * 100, Accuracy.ZD5); |
|
|
|
info.Dev = FormatDouble_P(result.measurements.CROWN_H_DEV); |
|
|
|
info.Dev = FormatDouble_P(result.Measurements.CROWN_H_DEV); |
|
|
|
info.Min = FormatDouble_P(result.measurements.CROWN_H_MIN); |
|
|
|
info.Min = FormatDouble_P(result.Measurements.CROWN_H_MIN); |
|
|
|
info.Max = FormatDouble_P(result.measurements.CROWN_H_MAX); |
|
|
|
info.Max = FormatDouble_P(result.Measurements.CROWN_H_MAX); |
|
|
|
info.CutLevel = calGrade_CROWN_HEIGHT(result.measurements.CROWN_H_MIN, result.measurements.CROWN_H_MAX); |
|
|
|
info.CutLevel = calGrade_CROWN_HEIGHT(result.Measurements.CROWN_H_MIN, result.Measurements.CROWN_H_MAX); |
|
|
|
info.Dev = calDev(info.Max, info.Min); |
|
|
|
info.Dev = calDev(info.Max, info.Min); |
|
|
|
var data = result.measurements; |
|
|
|
var data = result.Measurements; |
|
|
|
if (data.CROWN_HEIGHT_DETAIL != null) |
|
|
|
if (data.CROWN_HEIGHT_DETAIL != null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
info.Dtl1 = FormatDouble_P(data.CROWN_HEIGHT_DETAIL.CROWN_HEIGHT_1); |
|
|
|
info.Dtl1 = FormatDouble_P(data.CROWN_HEIGHT_DETAIL.CROWN_HEIGHT_1); |
|
|
|
@ -831,12 +832,12 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "GIRDLE_BEZEL"; |
|
|
|
info.TestItemId = "GIRDLE_BEZEL"; |
|
|
|
info.TestItemName = GetName("GIRDLE_BEZEL"); |
|
|
|
info.TestItemName = GetName("GIRDLE_BEZEL"); |
|
|
|
info.Avg = FormatDouble_Avg(result.measurements.GIRDLE_BEZEL * 100, Accuracy.ZD1); |
|
|
|
info.Avg = FormatDouble_Avg(result.Measurements.GIRDLE_BEZEL * 100, Accuracy.ZD1); |
|
|
|
info.Dev = FormatDouble_P(result.measurements.GIRDLE_BEZEL_DEV); |
|
|
|
info.Dev = FormatDouble_P(result.Measurements.GIRDLE_BEZEL_DEV); |
|
|
|
info.Min = FormatDouble_P(result.measurements.GIRDLE_BEZEL_MIN); |
|
|
|
info.Min = FormatDouble_P(result.Measurements.GIRDLE_BEZEL_MIN); |
|
|
|
info.Max = FormatDouble_P(result.measurements.GIRDLE_BEZEL_MAX); |
|
|
|
info.Max = FormatDouble_P(result.Measurements.GIRDLE_BEZEL_MAX); |
|
|
|
info.Dev = calDev(info.Max, info.Min); |
|
|
|
info.Dev = calDev(info.Max, info.Min); |
|
|
|
var data = result.measurements; |
|
|
|
var data = result.Measurements; |
|
|
|
if (data.GIRDLE_BEZEL_DETAIL != null) |
|
|
|
if (data.GIRDLE_BEZEL_DETAIL != null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
info.Dtl1 = FormatDouble_P(data.GIRDLE_BEZEL_DETAIL.GIRDLE_BEZEL_1); |
|
|
|
info.Dtl1 = FormatDouble_P(data.GIRDLE_BEZEL_DETAIL.GIRDLE_BEZEL_1); |
|
|
|
@ -858,11 +859,11 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "GIRDLE_BONE"; |
|
|
|
info.TestItemId = "GIRDLE_BONE"; |
|
|
|
info.TestItemName = GetName("GIRDLE_BONE"); |
|
|
|
info.TestItemName = GetName("GIRDLE_BONE"); |
|
|
|
info.Avg = FormatDouble_Avg(result.measurements.GIRDLE_BONE * 100, Accuracy.ZD1); |
|
|
|
info.Avg = FormatDouble_Avg(result.Measurements.GIRDLE_BONE * 100, Accuracy.ZD1); |
|
|
|
info.Min = FormatDouble_P(result.measurements.GIRDLE_BONE_MIN); |
|
|
|
info.Min = FormatDouble_P(result.Measurements.GIRDLE_BONE_MIN); |
|
|
|
info.Max = FormatDouble_P(result.measurements.GIRDLE_BONE_MAX); |
|
|
|
info.Max = FormatDouble_P(result.Measurements.GIRDLE_BONE_MAX); |
|
|
|
info.isEnabled = false; |
|
|
|
info.isEnabled = false; |
|
|
|
var data = result.measurements; |
|
|
|
var data = result.Measurements; |
|
|
|
if (data.GIRDLE_BONE_DETAIL != null) |
|
|
|
if (data.GIRDLE_BONE_DETAIL != null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
info.Dtl1 = FormatDouble_P(data.GIRDLE_BONE_DETAIL.GIRDLE_BONE_1); |
|
|
|
info.Dtl1 = FormatDouble_P(data.GIRDLE_BONE_DETAIL.GIRDLE_BONE_1); |
|
|
|
@ -885,13 +886,13 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "GIRDLE"; |
|
|
|
info.TestItemId = "GIRDLE"; |
|
|
|
info.TestItemName = GetName("GIRDLE"); |
|
|
|
info.TestItemName = GetName("GIRDLE"); |
|
|
|
info.Avg = FormatDouble_Avg(result.measurements.GIRDLE_VALLEY * 100, Accuracy.ZD1); |
|
|
|
info.Avg = FormatDouble_Avg(result.Measurements.GIRDLE_VALLEY * 100, Accuracy.ZD1); |
|
|
|
info.Dev = FormatDouble_P(result.measurements.GIRDLE_VALLEY_DEV); |
|
|
|
info.Dev = FormatDouble_P(result.Measurements.GIRDLE_VALLEY_DEV); |
|
|
|
info.Min = FormatDouble_P(result.measurements.GIRDLE_VALLEY_MIN); |
|
|
|
info.Min = FormatDouble_P(result.Measurements.GIRDLE_VALLEY_MIN); |
|
|
|
info.Max = FormatDouble_P(result.measurements.GIRDLE_VALLEY_MAX); |
|
|
|
info.Max = FormatDouble_P(result.Measurements.GIRDLE_VALLEY_MAX); |
|
|
|
info.CutLevel = calGrade_GIRDLE(result.measurements.GIRDLE_VALLEY_MIN, result.measurements.GIRDLE_VALLEY_MAX); |
|
|
|
info.CutLevel = calGrade_GIRDLE(result.Measurements.GIRDLE_VALLEY_MIN, result.Measurements.GIRDLE_VALLEY_MAX); |
|
|
|
info.Dev = calDev(info.Max, info.Min); |
|
|
|
info.Dev = calDev(info.Max, info.Min); |
|
|
|
var data = result.measurements; |
|
|
|
var data = result.Measurements; |
|
|
|
|
|
|
|
|
|
|
|
var girdleValleyDetail = data.GIRDLE_VALLEY_DETAIL; |
|
|
|
var girdleValleyDetail = data.GIRDLE_VALLEY_DETAIL; |
|
|
|
if (girdleValleyDetail != null) |
|
|
|
if (girdleValleyDetail != null) |
|
|
|
@ -935,13 +936,13 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "PAV_ANGLE"; |
|
|
|
info.TestItemId = "PAV_ANGLE"; |
|
|
|
info.TestItemName = GetName("PAV_ANGLE"); |
|
|
|
info.TestItemName = GetName("PAV_ANGLE"); |
|
|
|
info.Avg = FormatDouble_Avg(result.measurements.PAV_ANGLE, Accuracy.ZD1); |
|
|
|
info.Avg = FormatDouble_Avg(result.Measurements.PAV_ANGLE, Accuracy.ZD1); |
|
|
|
info.Dev = FormatDouble_A(result.measurements.PAV_ANGLE_DEV); |
|
|
|
info.Dev = FormatDouble_A(result.Measurements.PAV_ANGLE_DEV); |
|
|
|
info.Min = FormatDouble_A(result.measurements.PAV_ANGLE_MIN); |
|
|
|
info.Min = FormatDouble_A(result.Measurements.PAV_ANGLE_MIN); |
|
|
|
info.Max = FormatDouble_A(result.measurements.PAV_ANGLE_MAX); |
|
|
|
info.Max = FormatDouble_A(result.Measurements.PAV_ANGLE_MAX); |
|
|
|
info.CutLevel = calGrade_PAV_ANGLE(result.measurements.PAV_ANGLE_MIN, result.measurements.PAV_ANGLE_MAX); |
|
|
|
info.CutLevel = calGrade_PAV_ANGLE(result.Measurements.PAV_ANGLE_MIN, result.Measurements.PAV_ANGLE_MAX); |
|
|
|
info.Dev = calDev(info.Max, info.Min); |
|
|
|
info.Dev = calDev(info.Max, info.Min); |
|
|
|
var data = result.measurements; |
|
|
|
var data = result.Measurements; |
|
|
|
if (data.PAV_ANGLE_DETAIL != null) |
|
|
|
if (data.PAV_ANGLE_DETAIL != null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
info.Dtl1 = FormatDouble_A(data.PAV_ANGLE_DETAIL.PAV_ANGLE_1); |
|
|
|
info.Dtl1 = FormatDouble_A(data.PAV_ANGLE_DETAIL.PAV_ANGLE_1); |
|
|
|
@ -963,13 +964,13 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "PAV_DEPTH"; |
|
|
|
info.TestItemId = "PAV_DEPTH"; |
|
|
|
info.TestItemName = GetName("PAV_DEPTH"); |
|
|
|
info.TestItemName = GetName("PAV_DEPTH"); |
|
|
|
info.Avg = FormatDouble_Avg(result.measurements.PAV_DEPTH*100, Accuracy.ZD5); |
|
|
|
info.Avg = FormatDouble_Avg(result.Measurements.PAV_DEPTH*100, Accuracy.ZD5); |
|
|
|
info.Dev = FormatDouble_P(result.measurements.PAV_DEPTH_DEV); |
|
|
|
info.Dev = FormatDouble_P(result.Measurements.PAV_DEPTH_DEV); |
|
|
|
info.Min = FormatDouble_P(result.measurements.PAV_DEPTH_MIN); |
|
|
|
info.Min = FormatDouble_P(result.Measurements.PAV_DEPTH_MIN); |
|
|
|
info.Max = FormatDouble_P(result.measurements.PAV_DEPTH_MAX); |
|
|
|
info.Max = FormatDouble_P(result.Measurements.PAV_DEPTH_MAX); |
|
|
|
info.CutLevel = calGrade_PAV_DEPTH(result.measurements.PAV_DEPTH_MIN, result.measurements.PAV_DEPTH_MAX); |
|
|
|
info.CutLevel = calGrade_PAV_DEPTH(result.Measurements.PAV_DEPTH_MIN, result.Measurements.PAV_DEPTH_MAX); |
|
|
|
info.Dev = calDev(info.Max, info.Min); |
|
|
|
info.Dev = calDev(info.Max, info.Min); |
|
|
|
var data = result.measurements; |
|
|
|
var data = result.Measurements; |
|
|
|
if (data.PAV_DEPTH_DETAIL != null) |
|
|
|
if (data.PAV_DEPTH_DETAIL != null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
info.Dtl1 = FormatDouble_P(data.PAV_DEPTH_DETAIL.PAV_DEPTH_1); |
|
|
|
info.Dtl1 = FormatDouble_P(data.PAV_DEPTH_DETAIL.PAV_DEPTH_1); |
|
|
|
@ -992,12 +993,12 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "STAR"; |
|
|
|
info.TestItemId = "STAR"; |
|
|
|
info.TestItemName = GetName("STAR"); |
|
|
|
info.TestItemName = GetName("STAR"); |
|
|
|
info.Avg = FormatDouble_Avg(result.measurements.STAR*100, Accuracy.Z5); |
|
|
|
info.Avg = FormatDouble_Avg(result.Measurements.STAR*100, Accuracy.Z5); |
|
|
|
info.Min = FormatDouble_P(result.measurements.STAR_MIN); |
|
|
|
info.Min = FormatDouble_P(result.Measurements.STAR_MIN); |
|
|
|
info.Max = FormatDouble_P(result.measurements.STAR_MAX); |
|
|
|
info.Max = FormatDouble_P(result.Measurements.STAR_MAX); |
|
|
|
info.CutLevel = calGrade_STAR(result.measurements.STAR_MIN, result.measurements.STAR_MAX); |
|
|
|
info.CutLevel = calGrade_STAR(result.Measurements.STAR_MIN, result.Measurements.STAR_MAX); |
|
|
|
info.isEnabled = false; |
|
|
|
info.isEnabled = false; |
|
|
|
var data = result.measurements; |
|
|
|
var data = result.Measurements; |
|
|
|
if (data.STAR_DETAIL != null) |
|
|
|
if (data.STAR_DETAIL != null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
info.Dtl1 = FormatDouble_P(data.STAR_DETAIL.STAR_1); |
|
|
|
info.Dtl1 = FormatDouble_P(data.STAR_DETAIL.STAR_1); |
|
|
|
@ -1018,12 +1019,12 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "LOWER_HALVES_RATIO"; |
|
|
|
info.TestItemId = "LOWER_HALVES_RATIO"; |
|
|
|
info.TestItemName = GetName("LOWER_HALVES_RATIO"); |
|
|
|
info.TestItemName = GetName("LOWER_HALVES_RATIO"); |
|
|
|
info.Avg = FormatDouble_Avg(result.measurements.LOWER_HALVES_RATIO*100, Accuracy.Z5); |
|
|
|
info.Avg = FormatDouble_Avg(result.Measurements.LOWER_HALVES_RATIO*100, Accuracy.Z5); |
|
|
|
info.Min = FormatDouble_P(result.measurements.LOWER_HALVES_RATIO_MIN); |
|
|
|
info.Min = FormatDouble_P(result.Measurements.LOWER_HALVES_RATIO_MIN); |
|
|
|
info.Max = FormatDouble_P(result.measurements.LOWER_HALVES_RATIO_MAX); |
|
|
|
info.Max = FormatDouble_P(result.Measurements.LOWER_HALVES_RATIO_MAX); |
|
|
|
info.CutLevel = calGrade_LOWER_HALVES_RATIO(result.measurements.LOWER_HALVES_RATIO_MIN, result.measurements.LOWER_HALVES_RATIO_MAX); |
|
|
|
info.CutLevel = calGrade_LOWER_HALVES_RATIO(result.Measurements.LOWER_HALVES_RATIO_MIN, result.Measurements.LOWER_HALVES_RATIO_MAX); |
|
|
|
info.isEnabled = false; |
|
|
|
info.isEnabled = false; |
|
|
|
var data = result.measurements; |
|
|
|
var data = result.Measurements; |
|
|
|
if (data.LOWER_HALVES_RATIO_DETAIL != null) |
|
|
|
if (data.LOWER_HALVES_RATIO_DETAIL != null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
info.Dtl1 = FormatDouble_P(data.LOWER_HALVES_RATIO_DETAIL.LOWER_HALVES_RATIO_1); |
|
|
|
info.Dtl1 = FormatDouble_P(data.LOWER_HALVES_RATIO_DETAIL.LOWER_HALVES_RATIO_1); |
|
|
|
@ -1044,8 +1045,8 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "CULET"; |
|
|
|
info.TestItemId = "CULET"; |
|
|
|
info.TestItemName = GetName("CULET"); |
|
|
|
info.TestItemName = GetName("CULET"); |
|
|
|
info.Avg = FormatDouble_Avg(result.measurements.CULET * 100, Accuracy.ZD1); |
|
|
|
info.Avg = FormatDouble_Avg(result.Measurements.CULET * 100, Accuracy.ZD1); |
|
|
|
info.CutLevel = calGrade_CULET(result.measurements.CULET); |
|
|
|
info.CutLevel = calGrade_CULET(result.Measurements.CULET); |
|
|
|
info.isEnabled = false; |
|
|
|
info.isEnabled = false; |
|
|
|
|
|
|
|
|
|
|
|
return info; |
|
|
|
return info; |
|
|
|
@ -1057,8 +1058,8 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "TOC"; |
|
|
|
info.TestItemId = "TOC"; |
|
|
|
info.TestItemName = GetName("TOC"); |
|
|
|
info.TestItemName = GetName("TOC"); |
|
|
|
info.Avg = FormatDouble_Avg(result.measurements.TOC * 100, Accuracy.ZD1); |
|
|
|
info.Avg = FormatDouble_Avg(result.Measurements.TOC * 100, Accuracy.ZD1); |
|
|
|
var data = result.measurements; |
|
|
|
var data = result.Measurements; |
|
|
|
info.SymLevel = calGradeSym(info.TestItemId, data.TOC * 100); |
|
|
|
info.SymLevel = calGradeSym(info.TestItemId, data.TOC * 100); |
|
|
|
|
|
|
|
|
|
|
|
return info; |
|
|
|
return info; |
|
|
|
@ -1070,8 +1071,8 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "COC"; |
|
|
|
info.TestItemId = "COC"; |
|
|
|
info.TestItemName = GetName("COC"); |
|
|
|
info.TestItemName = GetName("COC"); |
|
|
|
info.Avg = FormatDouble_Avg(result.measurements.COC*100, Accuracy.ZD1); |
|
|
|
info.Avg = FormatDouble_Avg(result.Measurements.COC*100, Accuracy.ZD1); |
|
|
|
var data = result.measurements; |
|
|
|
var data = result.Measurements; |
|
|
|
info.SymLevel = calGradeSym(info.TestItemId, data.COC * 100); |
|
|
|
info.SymLevel = calGradeSym(info.TestItemId, data.COC * 100); |
|
|
|
return info; |
|
|
|
return info; |
|
|
|
|
|
|
|
|
|
|
|
@ -1083,12 +1084,12 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "TWIST"; |
|
|
|
info.TestItemId = "TWIST"; |
|
|
|
info.TestItemName = GetName("TWIST"); |
|
|
|
info.TestItemName = GetName("TWIST"); |
|
|
|
info.Avg = FormatDouble_Avg(result.measurements.TWIST, Accuracy.ZD1); |
|
|
|
info.Avg = FormatDouble_Avg(result.Measurements.TWIST, Accuracy.ZD1); |
|
|
|
info.Dev = FormatDouble_A(result.measurements.TWIST_DEV); |
|
|
|
info.Dev = FormatDouble_A(result.Measurements.TWIST_DEV); |
|
|
|
info.Min = FormatDouble_A(result.measurements.TWIST_MIN); |
|
|
|
info.Min = FormatDouble_A(result.Measurements.TWIST_MIN); |
|
|
|
info.Max = FormatDouble_A(result.measurements.TWIST_MAX); |
|
|
|
info.Max = FormatDouble_A(result.Measurements.TWIST_MAX); |
|
|
|
info.Dev = calDev(info.Max, info.Min); |
|
|
|
info.Dev = calDev(info.Max, info.Min); |
|
|
|
var data = result.measurements; |
|
|
|
var data = result.Measurements; |
|
|
|
if (data.TWIST_DETAIL != null) |
|
|
|
if (data.TWIST_DETAIL != null) |
|
|
|
{ |
|
|
|
{ |
|
|
|
info.Dtl1 = FormatDouble_A(data.TWIST_DETAIL.TWIST_1); |
|
|
|
info.Dtl1 = FormatDouble_A(data.TWIST_DETAIL.TWIST_1); |
|
|
|
@ -1110,8 +1111,8 @@ public class GradingResultVM : BaseViewModel |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
DataInfo info = new DataInfo(); |
|
|
|
info.TestItemId = "CULET_TO_TABLE"; |
|
|
|
info.TestItemId = "CULET_TO_TABLE"; |
|
|
|
info.TestItemName = GetName("CULET_TO_TABLE"); |
|
|
|
info.TestItemName = GetName("CULET_TO_TABLE"); |
|
|
|
info.Avg = FormatDouble_Avg(result.measurements.CULET_TO_TABLE*100,Accuracy.ZD1); |
|
|
|
info.Avg = FormatDouble_Avg(result.Measurements.CULET_TO_TABLE*100,Accuracy.ZD1); |
|
|
|
var data = result.measurements; |
|
|
|
var data = result.Measurements; |
|
|
|
info.SymLevel = calGradeSym(info.TestItemId, data.CULET_TO_TABLE * 100); |
|
|
|
info.SymLevel = calGradeSym(info.TestItemId, data.CULET_TO_TABLE * 100); |
|
|
|
return info; |
|
|
|
return info; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1119,11 +1120,11 @@ public class GradingResultVM : BaseViewModel |
|
|
|
[Log] |
|
|
|
[Log] |
|
|
|
private double CalWight(AlgorithmResultEntity result) |
|
|
|
private double CalWight(AlgorithmResultEntity result) |
|
|
|
{ |
|
|
|
{ |
|
|
|
// var M1 = result.measurements.M1; |
|
|
|
// var M1 = result.Measurements.M1; |
|
|
|
// var M2 = result.measurements.M2; |
|
|
|
// var M2 = result.Measurements.M2; |
|
|
|
// var M3 = result.measurements.M3; |
|
|
|
// var M3 = result.Measurements.M3; |
|
|
|
// var wight = Square((M1+M2)/2)*M3*0.0061; |
|
|
|
// var wight = Square((M1+M2)/2)*M3*0.0061; |
|
|
|
var VOLUME = result.measurements.VOLUME; |
|
|
|
var VOLUME = result.Measurements.VOLUME; |
|
|
|
var wight = VOLUME/57; |
|
|
|
var wight = VOLUME/57; |
|
|
|
Wight = wight.ToString("f3"); |
|
|
|
Wight = wight.ToString("f3"); |
|
|
|
return wight; |
|
|
|
return wight; |
|
|
|
@ -1379,7 +1380,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
|
|
|
|
|
|
|
|
using (var file = File.Create(fileName)) |
|
|
|
using (var file = File.Create(fileName)) |
|
|
|
{ |
|
|
|
{ |
|
|
|
Measurements info = algorithmResult.measurements; |
|
|
|
Measurements info = algorithmResult.Measurements; |
|
|
|
StreamWriter stream = new StreamWriter(file); |
|
|
|
StreamWriter stream = new StreamWriter(file); |
|
|
|
stream.WriteLine($"IGI REPORT NUMBER={DiamondCode}"); |
|
|
|
stream.WriteLine($"IGI REPORT NUMBER={DiamondCode}"); |
|
|
|
stream.WriteLine($"SARIN WEIGHT={Double.Parse(Wight).ToString("f3")}"); |
|
|
|
stream.WriteLine($"SARIN WEIGHT={Double.Parse(Wight).ToString("f3")}"); |
|
|
|
@ -1471,7 +1472,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
row++; |
|
|
|
row++; |
|
|
|
col = 0; |
|
|
|
col = 0; |
|
|
|
dataRow = sheet.CreateRow(row); |
|
|
|
dataRow = sheet.CreateRow(row); |
|
|
|
Measurements info = algorithmResult.measurements; |
|
|
|
Measurements info = algorithmResult.Measurements; |
|
|
|
dataRow.CreateCell(col++).SetCellValue($"{FormatDouble_A2(info.M1)}(mm)"); |
|
|
|
dataRow.CreateCell(col++).SetCellValue($"{FormatDouble_A2(info.M1)}(mm)"); |
|
|
|
dataRow.CreateCell(col++).SetCellValue($"{FormatDouble_A2(info.M2)}(mm)"); |
|
|
|
dataRow.CreateCell(col++).SetCellValue($"{FormatDouble_A2(info.M2)}(mm)"); |
|
|
|
dataRow.CreateCell(col++).SetCellValue($"{FormatDouble_A2(info.M3)}(mm)"); |
|
|
|
dataRow.CreateCell(col++).SetCellValue($"{FormatDouble_A2(info.M3)}(mm)"); |
|
|
|
@ -1947,7 +1948,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
[Log] |
|
|
|
[Log] |
|
|
|
private void setDIAMETER_DETAIL(RowDetail row) |
|
|
|
private void setDIAMETER_DETAIL(RowDetail row) |
|
|
|
{ |
|
|
|
{ |
|
|
|
DiameterDetail diameterDetail = algorithmResult.measurements.DIAMETER_DETAIL; |
|
|
|
DiameterDetail diameterDetail = algorithmResult.Measurements.DIAMETER_DETAIL; |
|
|
|
row.item1 = FormatDouble_D(diameterDetail.DIAMETER_1); |
|
|
|
row.item1 = FormatDouble_D(diameterDetail.DIAMETER_1); |
|
|
|
row.item2 = FormatDouble_D(diameterDetail.DIAMETER_2); |
|
|
|
row.item2 = FormatDouble_D(diameterDetail.DIAMETER_2); |
|
|
|
row.item3 = FormatDouble_D(diameterDetail.DIAMETER_3); |
|
|
|
row.item3 = FormatDouble_D(diameterDetail.DIAMETER_3); |
|
|
|
@ -1961,7 +1962,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
[Log] |
|
|
|
[Log] |
|
|
|
private void setTABLE_DETAIL(RowDetail row) |
|
|
|
private void setTABLE_DETAIL(RowDetail row) |
|
|
|
{ |
|
|
|
{ |
|
|
|
TableDetail diameterDetail = algorithmResult.measurements.TABLE_DETAIL; |
|
|
|
TableDetail diameterDetail = algorithmResult.Measurements.TABLE_DETAIL; |
|
|
|
row.item1 = FormatDouble_P(diameterDetail.TABLE_1); |
|
|
|
row.item1 = FormatDouble_P(diameterDetail.TABLE_1); |
|
|
|
row.item2 = FormatDouble_P(diameterDetail.TABLE_2); |
|
|
|
row.item2 = FormatDouble_P(diameterDetail.TABLE_2); |
|
|
|
row.item3 = FormatDouble_P(diameterDetail.TABLE_3); |
|
|
|
row.item3 = FormatDouble_P(diameterDetail.TABLE_3); |
|
|
|
@ -1971,7 +1972,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
[Log] |
|
|
|
[Log] |
|
|
|
private void setCROWN_HEIGHT_DETAIL(RowDetail row) |
|
|
|
private void setCROWN_HEIGHT_DETAIL(RowDetail row) |
|
|
|
{ |
|
|
|
{ |
|
|
|
CrownHeightDetail crownHeightDetail = algorithmResult.measurements.CROWN_HEIGHT_DETAIL; |
|
|
|
CrownHeightDetail crownHeightDetail = algorithmResult.Measurements.CROWN_HEIGHT_DETAIL; |
|
|
|
row.item1 = FormatDouble_P(crownHeightDetail.CROWN_HEIGHT_1); |
|
|
|
row.item1 = FormatDouble_P(crownHeightDetail.CROWN_HEIGHT_1); |
|
|
|
row.item2 = FormatDouble_P(crownHeightDetail.CROWN_HEIGHT_2); |
|
|
|
row.item2 = FormatDouble_P(crownHeightDetail.CROWN_HEIGHT_2); |
|
|
|
row.item3 = FormatDouble_P(crownHeightDetail.CROWN_HEIGHT_3); |
|
|
|
row.item3 = FormatDouble_P(crownHeightDetail.CROWN_HEIGHT_3); |
|
|
|
@ -1985,7 +1986,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
[Log] |
|
|
|
[Log] |
|
|
|
private void setCROWN_ANGLE_DETAIL(RowDetail row) |
|
|
|
private void setCROWN_ANGLE_DETAIL(RowDetail row) |
|
|
|
{ |
|
|
|
{ |
|
|
|
CrownAngleDetail crownAngleDetail = algorithmResult.measurements.CROWN_ANGLE_DETAIL; |
|
|
|
CrownAngleDetail crownAngleDetail = algorithmResult.Measurements.CROWN_ANGLE_DETAIL; |
|
|
|
row.item1 = FormatDouble_A(crownAngleDetail.CROWN_ANGLE_1); |
|
|
|
row.item1 = FormatDouble_A(crownAngleDetail.CROWN_ANGLE_1); |
|
|
|
row.item2 = FormatDouble_A(crownAngleDetail.CROWN_ANGLE_2); |
|
|
|
row.item2 = FormatDouble_A(crownAngleDetail.CROWN_ANGLE_2); |
|
|
|
row.item3 = FormatDouble_A(crownAngleDetail.CROWN_ANGLE_3); |
|
|
|
row.item3 = FormatDouble_A(crownAngleDetail.CROWN_ANGLE_3); |
|
|
|
@ -1999,7 +2000,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
[Log] |
|
|
|
[Log] |
|
|
|
private void setPAV_DEPTH_DETAIL(RowDetail row) |
|
|
|
private void setPAV_DEPTH_DETAIL(RowDetail row) |
|
|
|
{ |
|
|
|
{ |
|
|
|
PavDepthDetail pavDepthDetail = algorithmResult.measurements.PAV_DEPTH_DETAIL; |
|
|
|
PavDepthDetail pavDepthDetail = algorithmResult.Measurements.PAV_DEPTH_DETAIL; |
|
|
|
row.item1 = FormatDouble_P(pavDepthDetail.PAV_DEPTH_1); |
|
|
|
row.item1 = FormatDouble_P(pavDepthDetail.PAV_DEPTH_1); |
|
|
|
row.item2 = FormatDouble_P(pavDepthDetail.PAV_DEPTH_2); |
|
|
|
row.item2 = FormatDouble_P(pavDepthDetail.PAV_DEPTH_2); |
|
|
|
row.item3 = FormatDouble_P(pavDepthDetail.PAV_DEPTH_3); |
|
|
|
row.item3 = FormatDouble_P(pavDepthDetail.PAV_DEPTH_3); |
|
|
|
@ -2013,7 +2014,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
[Log] |
|
|
|
[Log] |
|
|
|
private void setPAV_ANGLE_DETAIL(RowDetail row) |
|
|
|
private void setPAV_ANGLE_DETAIL(RowDetail row) |
|
|
|
{ |
|
|
|
{ |
|
|
|
PavAngleDetail pavAngleDetail = algorithmResult.measurements.PAV_ANGLE_DETAIL; |
|
|
|
PavAngleDetail pavAngleDetail = algorithmResult.Measurements.PAV_ANGLE_DETAIL; |
|
|
|
row.item1 = FormatDouble_A(pavAngleDetail.PAV_ANGLE_1); |
|
|
|
row.item1 = FormatDouble_A(pavAngleDetail.PAV_ANGLE_1); |
|
|
|
row.item2 = FormatDouble_A(pavAngleDetail.PAV_ANGLE_2); |
|
|
|
row.item2 = FormatDouble_A(pavAngleDetail.PAV_ANGLE_2); |
|
|
|
row.item3 = FormatDouble_A(pavAngleDetail.PAV_ANGLE_3); |
|
|
|
row.item3 = FormatDouble_A(pavAngleDetail.PAV_ANGLE_3); |
|
|
|
@ -2027,7 +2028,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
[Log] |
|
|
|
[Log] |
|
|
|
private void setGIRDLE_BEZEL_DETAIL(RowDetail row) |
|
|
|
private void setGIRDLE_BEZEL_DETAIL(RowDetail row) |
|
|
|
{ |
|
|
|
{ |
|
|
|
GirdleBezelDetail girdleBezelDetail = algorithmResult.measurements.GIRDLE_BEZEL_DETAIL; |
|
|
|
GirdleBezelDetail girdleBezelDetail = algorithmResult.Measurements.GIRDLE_BEZEL_DETAIL; |
|
|
|
row.item1 = FormatDouble_P(girdleBezelDetail.GIRDLE_BEZEL_1); |
|
|
|
row.item1 = FormatDouble_P(girdleBezelDetail.GIRDLE_BEZEL_1); |
|
|
|
row.item2 = FormatDouble_P(girdleBezelDetail.GIRDLE_BEZEL_2); |
|
|
|
row.item2 = FormatDouble_P(girdleBezelDetail.GIRDLE_BEZEL_2); |
|
|
|
row.item3 = FormatDouble_P(girdleBezelDetail.GIRDLE_BEZEL_3); |
|
|
|
row.item3 = FormatDouble_P(girdleBezelDetail.GIRDLE_BEZEL_3); |
|
|
|
@ -2041,7 +2042,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
[Log] |
|
|
|
[Log] |
|
|
|
private void setGIRDLE_BONE_DETAIL(RowDetail row) |
|
|
|
private void setGIRDLE_BONE_DETAIL(RowDetail row) |
|
|
|
{ |
|
|
|
{ |
|
|
|
GirdleBoneDetail girdleBoneDetail = algorithmResult.measurements.GIRDLE_BONE_DETAIL; |
|
|
|
GirdleBoneDetail girdleBoneDetail = algorithmResult.Measurements.GIRDLE_BONE_DETAIL; |
|
|
|
row.item1 = FormatDouble_P(girdleBoneDetail.GIRDLE_BONE_1); |
|
|
|
row.item1 = FormatDouble_P(girdleBoneDetail.GIRDLE_BONE_1); |
|
|
|
row.item2 = FormatDouble_P(girdleBoneDetail.GIRDLE_BONE_2); |
|
|
|
row.item2 = FormatDouble_P(girdleBoneDetail.GIRDLE_BONE_2); |
|
|
|
row.item3 = FormatDouble_P(girdleBoneDetail.GIRDLE_BONE_3); |
|
|
|
row.item3 = FormatDouble_P(girdleBoneDetail.GIRDLE_BONE_3); |
|
|
|
@ -2056,7 +2057,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
[Log] |
|
|
|
[Log] |
|
|
|
private void setGIRDLE_VALLEY_DETAIL(RowDetail row) |
|
|
|
private void setGIRDLE_VALLEY_DETAIL(RowDetail row) |
|
|
|
{ |
|
|
|
{ |
|
|
|
GirdleValleyDetail girdleValleyDetail = algorithmResult.measurements.GIRDLE_VALLEY_DETAIL; |
|
|
|
GirdleValleyDetail girdleValleyDetail = algorithmResult.Measurements.GIRDLE_VALLEY_DETAIL; |
|
|
|
List<double> doubles = new List<double>(); |
|
|
|
List<double> doubles = new List<double>(); |
|
|
|
doubles.Add(girdleValleyDetail.GIRDLE_VALLEY_1); |
|
|
|
doubles.Add(girdleValleyDetail.GIRDLE_VALLEY_1); |
|
|
|
doubles.Add(girdleValleyDetail.GIRDLE_VALLEY_2); |
|
|
|
doubles.Add(girdleValleyDetail.GIRDLE_VALLEY_2); |
|
|
|
@ -2088,7 +2089,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
[Log] |
|
|
|
[Log] |
|
|
|
private void setSTAR_DETAIL(RowDetail row) |
|
|
|
private void setSTAR_DETAIL(RowDetail row) |
|
|
|
{ |
|
|
|
{ |
|
|
|
StarDetail starDetail = algorithmResult.measurements.STAR_DETAIL; |
|
|
|
StarDetail starDetail = algorithmResult.Measurements.STAR_DETAIL; |
|
|
|
row.item1 = FormatDouble_P(starDetail.STAR_1); |
|
|
|
row.item1 = FormatDouble_P(starDetail.STAR_1); |
|
|
|
row.item2 = FormatDouble_P(starDetail.STAR_2); |
|
|
|
row.item2 = FormatDouble_P(starDetail.STAR_2); |
|
|
|
row.item3 = FormatDouble_P(starDetail.STAR_3); |
|
|
|
row.item3 = FormatDouble_P(starDetail.STAR_3); |
|
|
|
@ -2102,7 +2103,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
[Log] |
|
|
|
[Log] |
|
|
|
private void setLOWER_HALVES_RATIO_DETAIL(RowDetail row) |
|
|
|
private void setLOWER_HALVES_RATIO_DETAIL(RowDetail row) |
|
|
|
{ |
|
|
|
{ |
|
|
|
LowerHalvesRatioDetail lowerHalvesRatioDetail = algorithmResult.measurements.LOWER_HALVES_RATIO_DETAIL; |
|
|
|
LowerHalvesRatioDetail lowerHalvesRatioDetail = algorithmResult.Measurements.LOWER_HALVES_RATIO_DETAIL; |
|
|
|
row.item1 = FormatDouble_P(lowerHalvesRatioDetail.LOWER_HALVES_RATIO_1); |
|
|
|
row.item1 = FormatDouble_P(lowerHalvesRatioDetail.LOWER_HALVES_RATIO_1); |
|
|
|
row.item2 = FormatDouble_P(lowerHalvesRatioDetail.LOWER_HALVES_RATIO_2); |
|
|
|
row.item2 = FormatDouble_P(lowerHalvesRatioDetail.LOWER_HALVES_RATIO_2); |
|
|
|
row.item3 = FormatDouble_P(lowerHalvesRatioDetail.LOWER_HALVES_RATIO_3); |
|
|
|
row.item3 = FormatDouble_P(lowerHalvesRatioDetail.LOWER_HALVES_RATIO_3); |
|
|
|
@ -2116,7 +2117,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
[Log] |
|
|
|
[Log] |
|
|
|
private void setTWIST_DETAIL(RowDetail row) |
|
|
|
private void setTWIST_DETAIL(RowDetail row) |
|
|
|
{ |
|
|
|
{ |
|
|
|
TwistDetail twistDetail = algorithmResult.measurements.TWIST_DETAIL; |
|
|
|
TwistDetail twistDetail = algorithmResult.Measurements.TWIST_DETAIL; |
|
|
|
row.item1 = FormatDouble_A(twistDetail.TWIST_1); |
|
|
|
row.item1 = FormatDouble_A(twistDetail.TWIST_1); |
|
|
|
row.item2 = FormatDouble_A(twistDetail.TWIST_2); |
|
|
|
row.item2 = FormatDouble_A(twistDetail.TWIST_2); |
|
|
|
row.item3 = FormatDouble_A(twistDetail.TWIST_3); |
|
|
|
row.item3 = FormatDouble_A(twistDetail.TWIST_3); |
|
|
|
@ -2365,7 +2366,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
int width = e.PageSettings.PaperSize.Width; |
|
|
|
int width = e.PageSettings.PaperSize.Width; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var result = algorithmResult.measurements; |
|
|
|
var result = algorithmResult.Measurements; |
|
|
|
int startX = 3; |
|
|
|
int startX = 3; |
|
|
|
int startY = 3; |
|
|
|
int startY = 3; |
|
|
|
var col2X = startX + (width * 0.2f); |
|
|
|
var col2X = startX + (width * 0.2f); |
|
|
|
@ -2614,7 +2615,7 @@ public class GradingResultVM : BaseViewModel |
|
|
|
[Log] |
|
|
|
[Log] |
|
|
|
private void PrintPageHandler(object sender, PrintPageEventArgs e) |
|
|
|
private void PrintPageHandler(object sender, PrintPageEventArgs e) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var result = algorithmResult.measurements; |
|
|
|
var result = algorithmResult.Measurements; |
|
|
|
int startX = 10; |
|
|
|
int startX = 10; |
|
|
|
int startY = 10; |
|
|
|
int startY = 10; |
|
|
|
var col2X = startX + 90; |
|
|
|
var col2X = startX + 90; |
|
|
|
|