개정판 710a49f1
dev issue #000 : add
Change-Id: I0324925039d261f2a9894a3eac033df4c13a3fc3
DTI_PID/ID2PSN/Object/Item.cs | ||
---|---|---|
89 | 89 |
public string UID { get; set; } |
90 | 90 |
public string Name { get; set; } |
91 | 91 |
public List<Attribute> Attributes { get; set; } |
92 |
public bool IsCopy { get; set; } |
|
93 |
|
|
94 |
public LineNumber Copy() |
|
95 |
{ |
|
96 |
LineNumber copy = new LineNumber(); |
|
97 |
copy.IsCopy = true; |
|
98 |
copy.UID = Guid.NewGuid().ToString(); |
|
99 |
copy.Name = Name; |
|
100 |
foreach (Attribute attribute in Attributes) |
|
101 |
{ |
|
102 |
copy.Attributes.Add(new Attribute() |
|
103 |
{ |
|
104 |
UID = attribute.UID, |
|
105 |
Name = attribute.Name, |
|
106 |
DisplayName = attribute.DisplayName, |
|
107 |
Value = attribute.Value, |
|
108 |
}); |
|
109 |
} |
|
110 |
Attribute seqAttr = copy.Attributes.Find(x => x.Name == "Tag Seq No"); |
|
111 |
if (seqAttr != null) |
|
112 |
{ |
|
113 |
copy.Name = copy.Name.Replace(seqAttr.Value, seqAttr.Value + "V"); |
|
114 |
seqAttr.Value += "V"; |
|
115 |
} |
|
116 |
else |
|
117 |
copy.Name += "V"; |
|
118 |
|
|
119 |
return copy; |
|
120 |
} |
|
92 | 121 |
} |
93 | 122 |
|
94 | 123 |
public class RunInfo |
내보내기 Unified diff