개정판 809a7640
dev issue #000 : Edit LineNumber Run Modeling - 처음과 시작아이템이 심볼일경우 먼저 그리고 Run Item들 모델링 // Equipment 먼저 Modeling
Change-Id: I59ba51beba5334e9c4653f51cfc9ed3b81dd8bbe
DTI_PID/SPPIDConverter/Model/SPPID_Document.cs | ||
---|---|---|
63 | 63 |
item.SPPID.END_X = x; |
64 | 64 |
item.SPPID.END_Y = y; |
65 | 65 |
} |
66 |
|
|
67 |
foreach (var item in Equipments) |
|
68 |
{ |
|
69 |
if (item.SPPID == null) |
|
70 |
item.SPPID = new SPPIDSymbolInfo(); |
|
71 |
double x = double.NaN; |
|
72 |
double y = double.NaN; |
|
73 |
SPPIDUtil.ConvertPointBystring(item.ORIGINALPOINT, ref x, ref y); |
|
74 |
SPPIDUtil.ConvertSPPIDPoint(ref x, ref y, SIZE_WIDTH, SIZE_HEIGHT, testX, testY); |
|
75 |
item.SPPID.ORIGINAL_X = x; |
|
76 |
item.SPPID.ORIGINAL_Y = y; |
|
77 |
} |
|
66 | 78 |
} |
67 | 79 |
|
68 | 80 |
public bool SetSPPIDMapping() |
... | ... | |
83 | 95 |
return false; |
84 | 96 |
} |
85 | 97 |
|
98 |
foreach (var item in Equipments) |
|
99 |
{ |
|
100 |
SymbolMapping mapping = SymbolMappings.Find(x => x.UID == item.DBUID); |
|
101 |
item.SPPID.MAPPINGNAME = mapping != null ? mapping.SPPIDSYMBOLNAME : null; |
|
102 |
if (string.IsNullOrEmpty(item.SPPID.MAPPINGNAME)) |
|
103 |
return false; |
|
104 |
} |
|
105 |
|
|
86 | 106 |
return true; |
87 | 107 |
} |
88 | 108 |
|
내보내기 Unified diff