프로젝트

일반

사용자정보

개정판 f28a350a

IDf28a350ac026a09613d87b54a96424396189ec22
상위 5d2d88ca
하위 04f515d0, 360fd516

백흠경이(가) 5년 이상 전에 추가함

issue #663: setCurrentPidSource method 제거로 인한 오류 수정

Change-Id: Ia7c67a83ae51228dee1d13344dc300a3f10302bd

차이점 보기:

DTI_PID/SPPIDConverter/DB/Project_DB.cs
618 618

  
619 619
            return dt;
620 620
        }
621

  
622
        public static DataTable SelectSymbolType()
623
        {
624
            DataTable dt = new DataTable();
625
            Project_Info projectInfo = Project_Info.GetInstance();
626
            using (SQLiteConnection connection = new SQLiteConnection(string.Format(CultureInfo.CurrentCulture, "Data Source = {0}", projectInfo.DBFilePath)))
627
            {
628
                try
629
                {
630
                    connection.Open();
631
                    using (SQLiteCommand cmd = connection.CreateCommand())
632
                    {
633
                        cmd.CommandText = string.Format("SELECT * FROM {0}", SymbolType_TABLE);
634
                        using (SQLiteDataReader dr = cmd.ExecuteReader())
635
                            dt.Load(dr);
636
                    }
637
                    connection.Close();
638
                }
639
                catch (Exception ex)
640
                {
641

  
642
                }
643
                finally
644
                {
645
                    connection.Dispose();
646
                }
647
            }
648

  
649
            return dt;
650
        }
651

  
621 652
        public static DataTable SelectDrawingInfo()
622 653
        {
623 654
            DataTable dt = new DataTable();

내보내기 Unified diff

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