개정판 de72e600
dev issue #1230 : edit attribute
Change-Id: Ia9b1e825faca3cfea02d57ea404ecafeddb0f816
DTI_PID/APIDConverter/AvevaInfo.cs | ||
---|---|---|
59 | 59 |
AttributeInfo info = new AttributeInfo(); |
60 | 60 |
info.UID = DBNull.Value.Equals(row["UID"]) ? string.Empty : row["UID"].ToString(); |
61 | 61 |
info.APID_ATTRIBUTE = DBNull.Value.Equals(row["APID_ATTRIBUTE"]) ? string.Empty : row["APID_ATTRIBUTE"].ToString(); |
62 |
//string sType = DBNull.Value.Equals(row["APID_ATTRIBUTE_TYPE"]) ? string.Empty : row["APID_ATTRIBUTE_TYPE"].ToString(); |
|
63 |
//if (!string.IsNullOrEmpty(info.APID_ATTRIBUTE) && !string.IsNullOrEmpty(sType)) |
|
64 |
//{ |
|
65 |
// string sRemove = "|" + sType; |
|
66 |
// info.APID_ATTRIBUTE = info.APID_ATTRIBUTE.Remove(info.APID_ATTRIBUTE.LastIndexOf(sRemove), sRemove.Length); |
|
67 |
// AvevaAttributeType type; |
|
68 |
// if (Enum.TryParse(sType, out type)) |
|
69 |
// info.APID_ATTRIBUTE_TYPE = type; |
|
70 |
//} |
|
71 | 62 |
avevaInfo.AttributeInfo.Add(info); |
72 | 63 |
} |
73 | 64 |
dt.Dispose(); |
내보내기 Unified diff