프로젝트

일반

사용자정보

개정판 710a49f1

ID710a49f1328ca806f09012978a639d17da7faec3
상위 2ada3be8
하위 02a2c496

gaqhf 이(가) 약 3년 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)