개정판 7a56b228
dev issue #1227 : add attribute mapping ui and function
Change-Id: Ia0c59476dc563bc7fd62588bbce706bd18b7f72a
DTI_PID/APIDConverter/Utils/APIDUtils.cs | ||
---|---|---|
147 | 147 |
dt.Columns.Add("Name"); |
148 | 148 |
dt.Columns.Add("DisplayType"); |
149 | 149 |
dt.Columns.Add("Type"); |
150 |
|
|
150 |
dt.Columns.Add("Value"); |
|
151 |
dt.Columns.Add("DisplayMember"); |
|
152 |
|
|
151 | 153 |
#region UDA |
152 | 154 |
DataTable udaDT = Project_DB.SelectUDADetails(); |
153 |
DataRow[] rows = udaDT.Select("LovDescription != 'Project Symbol' AND LovDescription != 'Standard Symbol'");
|
|
155 |
DataRow[] rows = udaDT.Select("LovDescription <> 'Project Symbol' AND LovDescription <> 'Standard Symbol'");
|
|
154 | 156 |
foreach (DataRow item in rows) |
155 | 157 |
udaDT.Rows.Remove(item); |
156 | 158 |
udaDT = udaDT.DefaultView.ToTable(true, "UDAName"); |
157 |
|
|
159 |
string udaDisplay = "User Defined Attribute"; |
|
158 | 160 |
foreach (DataRow item in udaDT.Rows) |
159 |
dt.Rows.Add(item["UDAName"], "User Defined Attribute", "UDA");
|
|
161 |
dt.Rows.Add(item["UDAName"], udaDisplay, "UDA", item["UDAName"] + "|UDA", item["UDAName"] + " | " + udaDisplay);
|
|
160 | 162 |
#endregion |
161 | 163 |
|
162 | 164 |
return dt; |
내보내기 Unified diff