개정판 fb2d9638
dev issue #1006 : VendorPackageModeling 완료
Change-Id: I20455e3c36c0cc0cfebc37932f6a5aa0ba8cca11
DTI_PID/SPPIDConverter/BaseModel/Document.cs | ||
---|---|---|
27 | 27 |
private List<EndBreak> _EndBreaks = new List<EndBreak>(); |
28 | 28 |
private List<SpecBreak> _SpecBreaks = new List<SpecBreak>(); |
29 | 29 |
private List<Equipment> _Equipments = new List<Equipment>(); |
30 |
private List<VendorPackage> _VendorPackages = new List<VendorPackage>(); |
|
30 | 31 |
private bool _Enable; |
31 | 32 |
private bool _Validation; |
32 | 33 |
private bool _MappingValidation; |
... | ... | |
44 | 45 |
public List<EndBreak> EndBreaks { get => _EndBreaks; set => _EndBreaks = value; } |
45 | 46 |
public List<SpecBreak> SpecBreaks { get => _SpecBreaks; set => _SpecBreaks = value; } |
46 | 47 |
public List<Equipment> Equipments { get => _Equipments; set => _Equipments = value; } |
48 |
public List<VendorPackage> VendorPackages { get => _VendorPackages; set => _VendorPackages = value; } |
|
47 | 49 |
public string DWGNAME { get => _DWGNAME; set => _DWGNAME = value; } |
48 | 50 |
public string SIZE |
49 | 51 |
{ |
... | ... | |
96 | 98 |
SetLine(xml.Element("LINEINFOS")); |
97 | 99 |
SetLineNumber(xml.Element("LINENOS")); |
98 | 100 |
SetTrimLine(xml.Element("TRIMLINENOS")); |
101 |
SetVendorPackage(xml.Element("VENDORS")); |
|
99 | 102 |
|
100 | 103 |
SetAllConnectors(); |
101 | 104 |
Enable = true; |
... | ... | |
359 | 362 |
} |
360 | 363 |
} |
361 | 364 |
|
365 |
private void SetVendorPackage(XElement node) |
|
366 |
{ |
|
367 |
foreach (XElement item in node.Elements("VENDOR")) |
|
368 |
{ |
|
369 |
VendorPackage vendorPackage = new VendorPackage() |
|
370 |
{ |
|
371 |
UID = item.Element("UID").Value, |
|
372 |
AREA = item.Element("AREA").Value, |
|
373 |
POINT = item.Element("POINT").Value |
|
374 |
}; |
|
375 |
_VendorPackages.Add(vendorPackage); |
|
376 |
} |
|
377 |
} |
|
378 |
|
|
362 | 379 |
private void SetAssociations(XElement node, List<Association> associations) |
363 | 380 |
{ |
364 | 381 |
foreach (XElement item in node.Elements("ASSOCIATION")) |
내보내기 Unified diff