개정판 c3d2e266
dev issue #000 : edit converter
Change-Id: Ib6f22a0d9b994efae4c840aab8d0d574d22a10b2
DTI_PID/BaseModel/Model/Document.cs | ||
---|---|---|
381 | 381 |
{ |
382 | 382 |
if (element.Name == "SYMBOL") |
383 | 383 |
{ |
384 |
run.RUNITEMS.Add(GetSymbolByUID(element.Element("UID").Value)); |
|
384 |
Symbol symbol = GetSymbolByUID(element.Element("UID").Value); |
|
385 |
if (symbol == null) |
|
386 |
throw new Exception(element.Element("UID").Value); |
|
387 |
run.RUNITEMS.Add(symbol); |
|
385 | 388 |
} |
386 | 389 |
else if (element.Name == "LINE") |
387 | 390 |
{ |
388 |
run.RUNITEMS.Add(GetLineByUID(element.Element("UID").Value)); |
|
391 |
Line line = GetLineByUID(element.Element("UID").Value); |
|
392 |
if (line == null) |
|
393 |
throw new Exception(element.Element("UID").Value); |
|
394 |
run.RUNITEMS.Add(line); |
|
389 | 395 |
} |
390 | 396 |
} |
391 | 397 |
lineNumberRuns.Add(run); |
내보내기 Unified diff