개정판 faba1fc7
dev issue #1230 : edit aveva AttributeInfo
Change-Id: If3a14f65dc236eb73a3af73b0d26104ca0f91aa6
DTI_PID/APIDConverter/AutoModeling.cs | ||
---|---|---|
356 | 356 |
{ |
357 | 357 |
AttributeInfo info = avevaInfo.AttributeInfo.Find(x => x.UID == attribute.UID); |
358 | 358 |
if (info != null && !string.IsNullOrEmpty(info.APID_ATTRIBUTE)) |
359 |
{ |
|
360 |
if (info.APID_ATTRIBUTE_TYPE == AvevaAttributeType.UDA) |
|
361 |
datas.Add(new Tuple<string, string>("UDA" + info.APID_ATTRIBUTE, attribute.VALUE)); |
|
362 |
else |
|
363 |
datas.Add(new Tuple<string, string>(info.APID_ATTRIBUTE, attribute.VALUE)); |
|
364 |
} |
|
359 |
datas.Add(new Tuple<string, string>(info.APID_ATTRIBUTE, attribute.VALUE)); |
|
365 | 360 |
} |
366 | 361 |
if (datas.Count > 0) |
367 | 362 |
{ |
... | ... | |
380 | 375 |
{ |
381 | 376 |
AttributeInfo info = avevaInfo.AttributeInfo.Find(x => x.UID == attribute.UID); |
382 | 377 |
if (info != null && !string.IsNullOrEmpty(info.APID_ATTRIBUTE)) |
383 |
{ |
|
384 |
if (info.APID_ATTRIBUTE_TYPE == AvevaAttributeType.UDA) |
|
385 |
datas.Add(new Tuple<string, string>("UDA" + info.APID_ATTRIBUTE, attribute.VALUE)); |
|
386 |
else |
|
387 |
datas.Add(new Tuple<string, string>(info.APID_ATTRIBUTE, attribute.VALUE)); |
|
388 |
} |
|
378 |
datas.Add(new Tuple<string, string>(info.APID_ATTRIBUTE, attribute.VALUE)); |
|
389 | 379 |
} |
390 | 380 |
if (datas.Count > 0) |
391 | 381 |
{ |
내보내기 Unified diff