개정판 f947c634
dev issue #000 : 정리후 다시 개발
Change-Id: I45771e7307f15e5b2e77fee28de5d9f0f9565e35
DTI_PID/SPPIDConverter/ConverterForm.cs | ||
---|---|---|
397 | 397 |
foreach (string fileName in xtraOpenFileDialog.FileNames) |
398 | 398 |
{ |
399 | 399 |
SPPID_Document document = new SPPID_Document(fileName); |
400 |
document.SymbolMappings = symbolMappings; |
|
401 |
document.LineMappings = lineMappings; |
|
402 |
document.LineNumberMappings = lineNumberMappings; |
|
403 |
document.AssociationMappings = associationMappings; |
|
404 | 400 |
|
405 | 401 |
DataRow[] rows = _ConverterDT.Select(string.Format("colDrawingFilePath = '{0}'", fileName)); |
406 | 402 |
DataRow row; |
... | ... | |
457 | 453 |
|
458 | 454 |
private void btnItemMapping_Click(object sender, EventArgs e) |
459 | 455 |
{ |
456 |
#if DEBUG |
|
457 |
SPPID_Document document = new SPPID_Document(@"Z:\HanKyouHo\temp\Isocynates\Temp\zIsocynates-325_Page75.xml"); |
|
458 |
AutoModeling modeling = new AutoModeling(document); |
|
459 |
modeling.Run(); |
|
460 |
return; |
|
461 |
#endif |
|
462 |
|
|
460 | 463 |
Project_Info _ProjectInfo = Project_Info.GetInstance(); |
461 | 464 |
if (!_ProjectInfo.Enable) |
462 | 465 |
{ |
DTI_PID/SPPIDConverter/Model/SPPID_Document.cs | ||
---|---|---|
15 | 15 |
|
16 | 16 |
} |
17 | 17 |
|
18 |
public List<SymbolMapping> SymbolMappings { get; set; } |
|
19 |
public List<LineMapping> LineMappings { get; set; } |
|
20 |
public List<LineNumberMapping> LineNumberMappings { get; set; } |
|
21 |
public List<AssociationMapping> AssociationMappings { get; set; } |
|
22 |
|
|
23 | 18 |
public string DrawingName { get; set; } |
24 | 19 |
public string DrawingNumber { get; set; } |
25 | 20 |
public string Unit { get; set; } |
26 | 21 |
public string Template { get; set; } |
22 |
|
|
23 |
public void SetSPPIDInfo() |
|
24 |
{ |
|
25 |
foreach (var item in SYMBOLS) |
|
26 |
{ |
|
27 |
//item.SPPID.MAPPINGNAME = |
|
28 |
} |
|
29 |
|
|
30 |
} |
|
27 | 31 |
} |
28 | 32 |
} |
DTI_PID/SPPIDConverter/Util/SPPIDUtil.cs | ||
---|---|---|
66 | 66 |
|
67 | 67 |
public static string GetSPPIDMappingPath(SPPID_Document document, object itemObj) |
68 | 68 |
{ |
69 |
if (itemObj.GetType() == typeof(Symbol)) |
|
70 |
{ |
|
71 |
Symbol item = itemObj as Symbol; |
|
72 |
return document.SymbolMappings.Find(x => x.SYMBOLNAME == item.NAME).SPPIDSYMBOLNAME; |
|
73 |
} |
|
74 |
else if (itemObj.GetType() == typeof(Line)) |
|
75 |
{ |
|
76 |
Line item = itemObj as Line; |
|
77 |
return document.LineMappings.Find(x => x.LINENAME == item.TYPE).SPPIDSYMBOLNAME; |
|
78 |
} |
|
79 |
else if (itemObj.GetType() == typeof(Text)) |
|
80 |
{ |
|
81 |
|
|
82 |
} |
|
83 |
else if (itemObj.GetType() == typeof(Note)) |
|
84 |
{ |
|
85 |
|
|
86 |
} |
|
87 | 69 |
|
88 | 70 |
return null; |
89 | 71 |
} |
내보내기 Unified diff