개정판 6025ea51
dev issue #503 : fix validation
Change-Id: I6c1b3a25eb5508718415a252cc508aa60a42e9ff
DTI_PID/SPPIDConverter/BaseModel/Document.cs | ||
---|---|---|
850 | 850 |
List<string[]> flowDirectionCheck = new List<string[]>(); |
851 | 851 |
foreach (var line in LINES) |
852 | 852 |
{ |
853 |
if (line.TYPE != "Secondary" && line.TYPE != "Primary") |
|
854 |
continue; |
|
855 |
|
|
853 | 856 |
foreach (var connector in line.CONNECTORS) |
854 | 857 |
{ |
855 | 858 |
if (connector.ConnectedObject != null && |
... | ... | |
857 | 860 |
!SPPIDUtil.IsBranchLine(line, connector.ConnectedObject as Line)) |
858 | 861 |
{ |
859 | 862 |
Line connLine = connector.ConnectedObject as Line; |
863 |
if (connLine.TYPE != "Secondary" && connLine.TYPE != "Primary") |
|
864 |
continue; |
|
860 | 865 |
int lineIndex1 = line.CONNECTORS.IndexOf(connector); |
861 | 866 |
int lineIndex2 = connLine.CONNECTORS.IndexOf(connLine.CONNECTORS.Find(x => x.ConnectedObject == line)); |
862 | 867 |
if (lineIndex1 == lineIndex2 && flowDirectionCheck.Find(x => (x[0] == line.UID || x[1] == connLine.UID) || (x[1] == line.UID || x[0] == connLine.UID)) == null) |
내보내기 Unified diff