개정판 1efc25a3
dev issue #000 : associate => attribute
Change-Id: I2bf842031c85571f2539b2cd0b1433bff0a29d0c
DTI_PID/SPPIDConverter/ConverterForm.cs | ||
---|---|---|
36 | 36 |
|
37 | 37 |
private DataTable _ID2SymbolDT = new DataTable(); |
38 | 38 |
private DataTable _ID2LineDT = new DataTable(); |
39 |
private DataTable _ID2AssociationDT = new DataTable();
|
|
39 |
private DataTable _ID2AttributeDT = new DataTable();
|
|
40 | 40 |
private DataTable _ID2LinePropertyDT = new DataTable(); |
41 | 41 |
private DataTable _ID2SymbolTypeDT = new DataTable(); |
42 | 42 |
|
... | ... | |
44 | 44 |
private List<SymbolMapping> symbolMappings = new List<SymbolMapping>(); |
45 | 45 |
private List<LineMapping> lineMappings = new List<LineMapping>(); |
46 | 46 |
private List<LineNumberMapping> lineNumberMappings = new List<LineNumberMapping>(); |
47 |
private List<AssociationMapping> associationMappings = new List<AssociationMapping>();
|
|
47 |
private List<AttributeMapping> attributeMappings = new List<AttributeMapping>();
|
|
48 | 48 |
|
49 | 49 |
public ConverterForm() |
50 | 50 |
{ |
... | ... | |
285 | 285 |
InitID2Symbol(); |
286 | 286 |
InitID2Line(); |
287 | 287 |
InitID2LineNumber(); |
288 |
InitID2Association();
|
|
288 |
InitID2Attribute();
|
|
289 | 289 |
|
290 | 290 |
InitETCSetting(); |
291 | 291 |
} |
... | ... | |
370 | 370 |
} |
371 | 371 |
} |
372 | 372 |
|
373 |
private void InitID2Association()
|
|
373 |
private void InitID2Attribute()
|
|
374 | 374 |
{ |
375 |
using (DataTable associationDT = Project_DB.SelectProjectAssociation())
|
|
375 |
using (DataTable attributeDT = Project_DB.SelectProjectAttribute())
|
|
376 | 376 |
{ |
377 |
associationMappings.Clear();
|
|
378 |
_ID2AssociationDT = associationDT;
|
|
379 |
_ID2AssociationDT.Columns.Add("Clear");
|
|
380 |
_ID2AssociationDT.Columns["Clear"].Caption = "";
|
|
381 |
foreach (DataRow row in associationDT.Rows)
|
|
377 |
attributeMappings.Clear();
|
|
378 |
_ID2AttributeDT = attributeDT;
|
|
379 |
_ID2AttributeDT.Columns.Add("Clear");
|
|
380 |
_ID2AttributeDT.Columns["Clear"].Caption = "";
|
|
381 |
foreach (DataRow row in attributeDT.Rows)
|
|
382 | 382 |
{ |
383 |
associationMappings.Add(new AssociationMapping()
|
|
383 |
attributeMappings.Add(new AttributeMapping()
|
|
384 | 384 |
{ |
385 | 385 |
UID = row["UID"] == null ? "" : row["UID"].ToString(), |
386 | 386 |
DisplayAttribute = row["DisplayAttribute"] == null ? "" : row["DisplayAttribute"].ToString(), |
... | ... | |
520 | 520 |
document.SymbolMappings = symbolMappings; |
521 | 521 |
document.LineMappings = lineMappings; |
522 | 522 |
document.LineNumberMappings = lineNumberMappings; |
523 |
document.AssociationMappings = associationMappings;
|
|
523 |
document.AttributeMappings = attributeMappings;
|
|
524 | 524 |
document.ETCSetting = ETCSetting.GetInstance(); |
525 | 525 |
|
526 | 526 |
document.SetSPPIDInfo(); |
... | ... | |
570 | 570 |
return; |
571 | 571 |
} |
572 | 572 |
|
573 |
MappingForm form = new MappingForm(_ID2SymbolDT,_SPPIDSymbolPathDT, _ID2LineDT, _ID2LinePropertyDT, _ID2AssociationDT);
|
|
573 |
MappingForm form = new MappingForm(_ID2SymbolDT,_SPPIDSymbolPathDT, _ID2LineDT, _ID2LinePropertyDT, _ID2AttributeDT);
|
|
574 | 574 |
form.ShowDialog(); |
575 | 575 |
InitMapping(); |
576 | 576 |
} |
내보내기 Unified diff