개정판 7e680366
dev issue #507 : fix JoinRun
Change-Id: I261087f9c65fa83b75a8b306486606a19a4eb0f4
DTI_PID/SPPIDConverter/BaseModel/Document.cs | ||
---|---|---|
7 | 7 |
using System.Xml.Linq; |
8 | 8 |
using System.Windows.Forms; |
9 | 9 |
using Converter.SPPID.Util; |
10 |
using System.Data; |
|
10 | 11 |
|
11 | 12 |
namespace Converter.BaseModel |
12 | 13 |
{ |
... | ... | |
31 | 32 |
private bool _MappingValidation; |
32 | 33 |
private string _ValidationMessage = string.Empty; |
33 | 34 |
bool validationResult = false; |
35 |
private DataTable ID2SymbolTypeDT; |
|
34 | 36 |
|
35 | 37 |
public string ValidationMessage { get => _ValidationMessage; set => _ValidationMessage = value; } |
36 | 38 |
|
... | ... | |
71 | 73 |
|
72 | 74 |
StringBuilder validationStringBuilder = new StringBuilder(); |
73 | 75 |
|
74 |
public Document(string xmlPath) |
|
76 |
public Document(string xmlPath, DataTable ID2SymbolTypeDT)
|
|
75 | 77 |
{ |
78 |
this.ID2SymbolTypeDT = ID2SymbolTypeDT; |
|
76 | 79 |
validationStringBuilder.AppendLine("Document Path : " + xmlPath); |
77 | 80 |
validationStringBuilder.AppendLine(""); |
78 | 81 |
try |
... | ... | |
112 | 115 |
foreach (XElement item in node.Elements("SYMBOL")) |
113 | 116 |
{ |
114 | 117 |
string sType = item.Element("TYPE").Value; |
118 |
|
|
119 |
DataRow[] rows = ID2SymbolTypeDT.Select(string.Format("Type = '{0}'", sType.Replace("'", "''"))); |
|
120 |
string sCategory = rows[0]["Category"].ToString(); |
|
121 |
|
|
115 | 122 |
if (sType == "Segment Breaks") |
116 | 123 |
{ |
117 | 124 |
SpecBreak specBreak = new SpecBreak() |
... | ... | |
169 | 176 |
|
170 | 177 |
EndBreaks.Add(endBreak); |
171 | 178 |
} |
172 |
else if (sType == "Black Box System" || |
|
173 |
sType == "GGO_Equipment" || |
|
174 |
sType == "Heat Transfer Equipment" || |
|
175 |
sType == "Mechanical" || |
|
176 |
sType == "Other Equipment" || |
|
177 |
sType == "Vessels") |
|
179 |
else if (sCategory == "Equipment" || |
|
180 |
sCategory == "Equipment Components") |
|
178 | 181 |
{ |
179 | 182 |
Equipment equipment = new Equipment() |
180 | 183 |
{ |
내보내기 Unified diff