개정판 4b4dbca9
dev issue #000 : child Symbol Modeling
Change-Id: I26536f33fec33160b1efaf92f4fc5b45ccd48f9b
DTI_PID/SPPIDConverter/ConverterForm.cs | ||
---|---|---|
35 | 35 |
|
36 | 36 |
|
37 | 37 |
private DataTable _ID2SymbolDT = new DataTable(); |
38 |
private DataTable _ID2ChildSymbolDT = new DataTable(); |
|
38 | 39 |
private DataTable _ID2LineDT = new DataTable(); |
39 | 40 |
private DataTable _ID2AttributeDT = new DataTable(); |
40 | 41 |
private DataTable _ID2LinePropertyDT = new DataTable(); |
... | ... | |
42 | 43 |
|
43 | 44 |
|
44 | 45 |
private List<SymbolMapping> symbolMappings = new List<SymbolMapping>(); |
46 |
private List<ChildSymbolMapping> childSymbolMappings = new List<ChildSymbolMapping>(); |
|
45 | 47 |
private List<LineMapping> lineMappings = new List<LineMapping>(); |
46 | 48 |
private List<LineNumberMapping> lineNumberMappings = new List<LineNumberMapping>(); |
47 | 49 |
private List<AttributeMapping> attributeMappings = new List<AttributeMapping>(); |
... | ... | |
321 | 323 |
SPPIDSYMBOLNAME = row["SPPID_SYMBOL_PATH"] == null ? "" : row["SPPID_SYMBOL_PATH"].ToString(), |
322 | 324 |
}); |
323 | 325 |
} |
326 |
|
|
327 |
MergeID2ChildSymbol(); |
|
328 |
} |
|
329 |
} |
|
330 |
|
|
331 |
private void MergeID2ChildSymbol() |
|
332 |
{ |
|
333 |
using (DataTable childSymbolDT = Project_DB.SelectProjectChildSymbol()) |
|
334 |
{ |
|
335 |
childSymbolMappings.Clear(); |
|
336 |
_ID2ChildSymbolDT = childSymbolDT; |
|
337 |
_ID2ChildSymbolDT.Columns.Add("Clear"); |
|
338 |
_ID2ChildSymbolDT.Columns["Clear"].Caption = ""; |
|
339 |
foreach (DataRow row in childSymbolDT.Rows) |
|
340 |
{ |
|
341 |
childSymbolMappings.Add(new ChildSymbolMapping() |
|
342 |
{ |
|
343 |
UID = row["UID"] == null ? "" : row["UID"].ToString(), |
|
344 |
SYMBOLNAME = row["Name"] == null ? "" : row["Name"].ToString(), |
|
345 |
SPPIDSYMBOLNAME = row["SPPID_SYMBOL_PATH"] == null ? "" : row["SPPID_SYMBOL_PATH"].ToString(), |
|
346 |
}); |
|
347 |
} |
|
348 |
|
|
349 |
_ID2SymbolDT.Merge(_ID2ChildSymbolDT); |
|
324 | 350 |
} |
325 | 351 |
} |
326 | 352 |
|
... | ... | |
523 | 549 |
//SPPID_Document document = new SPPID_Document(@"Z:\HanKyouHo\temp\Isocynates\Temp\zIsocynates-325_Page75.xml"); |
524 | 550 |
SPPID_Document document = new SPPID_Document(@"Z:\HanKyouHo\temp\Isocynates\Temp\Isocynates-325_Page49.xml"); |
525 | 551 |
document.SymbolMappings = symbolMappings; |
552 |
document.ChildSymbolMappings = childSymbolMappings; |
|
526 | 553 |
document.LineMappings = lineMappings; |
527 | 554 |
document.LineNumberMappings = lineNumberMappings; |
528 | 555 |
document.AttributeMappings = attributeMappings; |
내보내기 Unified diff