프로젝트

일반

사용자정보

개정판 4fb0f8d5

ID4fb0f8d533e55b9a31b67bb2ec149dc2822e6790
상위 87f02fc0
하위 8f34b603

gaqhf 이(가) 5년 이상 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)