프로젝트

일반

사용자정보

개정판 128c844f

ID128c844f8fd081044e26e55a94dfa2c494b9215d
상위 2d09df82
하위 41c7e549, 5e0ecbf8

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

dev issue #1240 : get drawing list

Change-Id: Ia856ca0ce242ee081dcc536296934b8ad2ead609

차이점 보기:

DTI_PID/APIDConverter/DB/Project_DB.cs
584 584

  
585 585
            return strConn;
586 586
        }
587

  
588 587
        public static string GetAvevaConnectionString_Reports()
589 588
        {
590 589
            string strConn = string.Empty;
......
600 599

  
601 600
            return strConn;
602 601
        }
603

  
604 602
        public static string GetAvevaConnectionString_Admin()
605 603
        {
606 604
            string strConn = string.Empty;
......
616 614

  
617 615
            return strConn;
618 616
        }
619

  
620 617
        public static string GetDirectiveValue(string name)
621 618
        {
622 619
            string result = null;
......
639 636

  
640 637
            return result;
641 638
        }
642

  
643 639
        public static DataTable GetDrawingTemplate()
644 640
        {
645 641
            DataTable dt = new DataTable();
......
659 655

  
660 656
            return dt;
661 657
        }
662

  
663 658
        public static DataTable SelectStandardSymbolTable()
664 659
        {
665 660
            DataTable dt = new DataTable();
......
732 727

  
733 728
            return dt;
734 729
        }
730
        public static DataTable SelectDrawingTable()
731
        {
732
            DataTable dt = new DataTable();
735 733

  
734
            using (SqlConnection connection = new SqlConnection())
735
            {
736
                connection.ConnectionString = GetAvevaConnectionString_Reports();
737
                connection.Open();
738
                using (SqlCommand cmd = connection.CreateCommand())
739
                {
740
                    cmd.CommandText = string.Format(@"
741
                    SELECT DrawingId, XDNLABEL, XDSLABEL FROM {0}
742
                    ;", "SynchroniseDetails");
743

  
744
                    using (SqlDataReader dr = cmd.ExecuteReader())
745
                        dt.Load(dr);
746
                }
747
                connection.Close();
748
            }
749

  
750
            return dt;
751
        }
736 752
        #endregion
737 753

  
738 754
    }

내보내기 Unified diff

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