개정판 310aeb31
dev issue #000 : Instrument Lable 임시 모델링 개발 / Signal Run Branch 안되던 현상 수정
Change-Id: I245c21b40b7e9aa69731f69fb9fc7cc656691121
DTI_PID/BaseModel/Project_DB.cs | ||
---|---|---|
221 | 221 |
using (SQLiteCommand cmd = connection.CreateCommand()) |
222 | 222 |
{ |
223 | 223 |
cmd.CommandText = string.Format(@" |
224 |
SELECT sp.UID, s.Name, st.Type, sp.SPPID_SYMBOL_PATH FROM {1} as st, {0} as s
|
|
224 |
SELECT s.UID, s.Name, st.Type, sp.SPPID_SYMBOL_PATH FROM {1} as st, {0} as s |
|
225 | 225 |
LEFT OUTER JOIN {2} as sp |
226 | 226 |
ON s.UID = SP.UID |
227 | 227 |
WHERE s.SymbolType_UID = st.UID |
228 | 228 |
ORDER BY st.TYPE ASC;", Symbol_TABLE, SymbolType_TABLE, SPPID_SYMBOL_MAPPING_TABLE); |
229 | 229 |
using (SQLiteDataReader dr = cmd.ExecuteReader()) |
230 | 230 |
dt.Load(dr); |
231 |
|
|
232 |
DataTable dtClone = dt.Clone(); |
|
233 |
dtClone.Columns["UID"].DataType = typeof(string); |
|
234 |
foreach (DataRow row in dt.Rows) |
|
235 |
{ |
|
236 |
dtClone.ImportRow(row); |
|
237 |
} |
|
238 |
dt.Dispose(); |
|
239 |
dt = dtClone; |
|
231 | 240 |
} |
232 | 241 |
connection.Close(); |
233 | 242 |
} |
내보내기 Unified diff