개정판 932933ed
dev issue #1230 : Linenumber modeling
Change-Id: I15a1e7458d6b0f76032dbad0e1d4a48aeba9bf15
DTI_PID/APIDConverter/Model/PlantItem/Document.cs | ||
---|---|---|
606 | 606 |
else |
607 | 607 |
result = false; |
608 | 608 |
} |
609 |
|
|
610 | 609 |
foreach (var item in SYMBOLS) |
611 | 610 |
{ |
612 | 611 |
DataRow[] rows = symbolMappingTable.Select(string.Format("UID = '{0}'", item.DBUID)); |
... | ... | |
628 | 627 |
else |
629 | 628 |
result = false; |
630 | 629 |
} |
631 |
|
|
632 | 630 |
foreach (var item in OPCs) |
633 | 631 |
{ |
634 | 632 |
DataRow[] rows = opcMappingTable.Select(string.Format("UID = '{0}'", item.DBUID)); |
... | ... | |
676 | 674 |
else |
677 | 675 |
result = false; |
678 | 676 |
} |
677 |
foreach (var item in LINENUMBERS) |
|
678 |
{ |
|
679 |
item.Aveva = new AvevaLabelInfo(); |
|
680 |
double x = (item.X1 + item.X2) / 2; |
|
681 |
double y = SIZE_HEIGHT - (item.Y1 + item.Y2) / 2; |
|
682 |
|
|
683 |
ConvertAvevaPoint(ref x, ref y); |
|
684 |
|
|
685 |
item.Aveva.X = x; |
|
686 |
item.Aveva.Y = y; |
|
687 |
item.Aveva.LabelType = LabelType.LineNumber; |
|
688 |
} |
|
679 | 689 |
|
680 | 690 |
return result; |
681 | 691 |
} |
내보내기 Unified diff