개정판 ea80efaa
dev issue #000 : Association Text Item 모델링 안하고 특정 Item으로 Modeling
Change-Id: Ia9a61a4d319c60a53f04abc9e33e11c791f65ea6
DTI_PID/BaseModel/Model/Document.cs | ||
---|---|---|
64 | 64 |
DWGNAME = xml.Element("DWGNAME").Value; |
65 | 65 |
SIZE = xml.Element("SIZE").Value; |
66 | 66 |
|
67 |
SetText(xml.Element("TEXTINFOS")); |
|
68 |
SetNote(xml.Element("NOTES")); |
|
67 | 69 |
SetSymbol(xml.Element("SYMBOLS")); |
68 | 70 |
SetLine(xml.Element("LINEINFOS")); |
69 | 71 |
SetLineNumber(xml.Element("LINENOS")); |
70 |
SetText(xml.Element("TEXTINFOS")); |
|
71 |
SetNote(xml.Element("NOTES")); |
|
72 | 72 |
SetTrimLine(xml.Element("TRIMLINENOS")); |
73 | 73 |
|
74 | 74 |
_Enable = true; |
... | ... | |
234 | 234 |
Text text = new Text() |
235 | 235 |
{ |
236 | 236 |
UID = item.Element("UID").Value, |
237 |
OWNER = item.Element("OWNER").Value, |
|
237 | 238 |
ATTRIBUTEVALUE = item.Element("ATTRIBUTEVALUE").Value, |
238 | 239 |
NAME = item.Element("NAME").Value, |
239 | 240 |
LOCATION = item.Element("LOCATION").Value, |
... | ... | |
286 | 287 |
{ |
287 | 288 |
foreach (XElement item in node.Elements("ASSOCIATION")) |
288 | 289 |
{ |
289 |
associations.Add(new Association()
|
|
290 |
Association association = new Association()
|
|
290 | 291 |
{ |
291 | 292 |
TYPE = item.Attribute("TYPE").Value, |
292 | 293 |
VALUE = item.Value |
293 |
}); |
|
294 |
}; |
|
295 |
|
|
296 |
Text text = _TEXTINFOS.Find(x => x.UID == association.VALUE); |
|
297 |
if (text != null) |
|
298 |
text.ASSOCIATION = true; |
|
299 |
|
|
300 |
associations.Add(association); |
|
294 | 301 |
} |
295 | 302 |
} |
296 | 303 |
|
내보내기 Unified diff