프로젝트

일반

사용자정보

개정판 4cc04425

ID4cc0442577ea614c5bf524ff3ec14851463e0774
상위 54796052
하위 995e75ec

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

Feature: Dwg 파일을 화면에 표시하는 기능 추가

Change-Id: If57fbceb86df14c915550e79362bcf51bc47648d

차이점 보기:

ID2.Manager/ID2.Manager/Controls/AutoCADViewer.cs
16 16
        {
17 17
            InitializeComponent();
18 18
        }
19

  
20
        /// <summary>
21
        /// dwg 파일을 읽어 화면에 표시합니다.
22
        /// </summary>
23
        /// <param name="DwgFilePath"></param>
24
        public void ReadDWG(string DwgFilePath)
25
        {
26
            if (System.IO.File.Exists(DwgFilePath))
27
            {
28
                devDept.Eyeshot.Translators.ReadAutodesk ra = new devDept.Eyeshot.Translators.ReadAutodesk(DwgFilePath);
29
                ra.DoWork();
30

  
31
                ra.AddToScene(this.myModelDWG);
32
                this.myModelDWG.ZoomFit();
33
            }
34
        }
19 35
    }
20 36
}
ID2.Manager/ID2.Manager/Main.cs
194 194
        #region Document List 조회
195 195
        public void GetDocList()
196 196
        {
197
            string projectId = this.radDropDownListProject.SelectedValue.ToString();
198
            string personIncharge = this.radDropDownListPersonInCharge.SelectedValue.ToString();
199
            string documentNo = this.radTextBoxDocumentNo.Text.Trim();
197
            if (this.radDropDownListProject.SelectedValue != null)
198
            {
199
                string projectId = this.radDropDownListProject.SelectedValue.ToString();
200
                string personIncharge = this.radDropDownListPersonInCharge.SelectedValue.ToString();
201
                string documentNo = this.radTextBoxDocumentNo.Text.Trim();
200 202

  
201
            this.documents = new DocumentController().GetAllDocuments(projectId, personIncharge, documentNo).ToList();
202
            this.orgDocuments = JsonConvert.DeserializeObject<List<Documents>>(JsonConvert.SerializeObject(this.documents));
203
                this.documents = new DocumentController().GetAllDocuments(projectId, personIncharge, documentNo).ToList();
204
                this.orgDocuments = JsonConvert.DeserializeObject<List<Documents>>(JsonConvert.SerializeObject(this.documents));
205
            }
203 206
        }
204 207

  
205 208
        public void DocumentListBinding()
......
323 326

  
324 327
                            if (e.Row.DataBoundItem is Documents doc)
325 328
                            {
326
                                int d = 1;
329
                                if (File.Exists(doc.DocFilePath) && viewer != null) viewer.ReadDWG(doc.DocFilePath);
327 330
                            }
328 331
                        }
329 332
                        break;
ID2.Manager/ID2.Manager/Program.cs
16 16
        [STAThread]
17 17
        static void Main()
18 18
        {
19
            devDept.LicenseManager.Unlock(typeof(devDept.Eyeshot.Workspace), "US22-CKTU9-RX12F-3SF6-R1X9");
20

  
19 21
            Application.EnableVisualStyles();
20 22
            Application.SetCompatibleTextRenderingDefault(false);
21 23

  

내보내기 Unified diff

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