개정판 4fb0f8d5
dev issue #498 : OPC 모델링 준비
Change-Id: Icf7f1608f28725a2a916cc3c1306adeafe305bc6
DTI_PID/SPPIDConverter/DB/Project_DB.cs | ||
---|---|---|
506 | 506 |
return dt; |
507 | 507 |
} |
508 | 508 |
|
509 |
public static DataTable SelectDrawingInfo() |
|
510 |
{ |
|
511 |
DataTable dt = new DataTable(); |
|
512 |
Project_Info projectInfo = Project_Info.GetInstance(); |
|
513 |
using (SQLiteConnection connection = new SQLiteConnection(string.Format(CultureInfo.CurrentCulture, "Data Source = {0}", projectInfo.DBFilePath))) |
|
514 |
{ |
|
515 |
try |
|
516 |
{ |
|
517 |
connection.Open(); |
|
518 |
using (SQLiteCommand cmd = connection.CreateCommand()) |
|
519 |
{ |
|
520 |
cmd.CommandText = string.Format("SELECT * FROM {0}",SPPID_DRAWING_INFO); |
|
521 |
using (SQLiteDataReader dr = cmd.ExecuteReader()) |
|
522 |
dt.Load(dr); |
|
523 |
} |
|
524 |
connection.Close(); |
|
525 |
} |
|
526 |
catch (Exception ex) |
|
527 |
{ |
|
528 |
|
|
529 |
} |
|
530 |
finally |
|
531 |
{ |
|
532 |
connection.Dispose(); |
|
533 |
} |
|
534 |
} |
|
535 |
|
|
536 |
return dt; |
|
537 |
} |
|
538 |
|
|
509 | 539 |
public static bool InsertSymbolMapping(List<Tuple<string, string, string, bool>> datas) |
510 | 540 |
{ |
511 | 541 |
Project_Info projectInfo = Project_Info.GetInstance(); |
내보내기 Unified diff