프로젝트

일반

사용자정보

개정판 e5b7869f

IDe5b7869f3d9b9a71f4b310bd9e692f8d3af3edb1
상위 08fae8c9
하위 dfab02c3

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

Fix: AutoCAD, PDF 파일이 없을때 컨트롤 숨김

Change-Id: If64678695758b155f3ce6f2a56b4c2c869141cb9

차이점 보기:

ID2.Manager/ID2.Manager/Main.cs
116 116
                    viewer.Visible = true;
117 117
                }
118 118

  
119
                if (File.Exists(FilePath) && viewer != null) viewer.ReadDWG(FilePath);
119
                if (File.Exists(FilePath) && viewer != null)
120
                    viewer.ReadDWG(FilePath);
121
                else
122
                    viewer.Visible = false;
120 123
            }
121 124

  
122 125
            void ShowPDFFile(string FilePath)
......
141 144
                    viewer.Visible = true;
142 145
                }
143 146

  
144
                if (File.Exists(FilePath) && viewer != null) viewer.ReadPDF(FilePath);
145
            }
146
            
147
            Documents doc = this.radGridViewDocuments.SelectedRows.First().DataBoundItem as Documents;
148
            {
149
                string extension = ".dwg";
150
                string filePath = Path.Combine(informations.FindID2LocalPath(doc.RefProjectCode), "drawings", "Native", $"{doc.DocumentNo}{extension}");
151
                ShowAutoCADFile(filePath);
147
                if (File.Exists(FilePath) && viewer != null)
148
                    viewer.ReadPDF(FilePath);
149
                else
150
                    viewer.Visible = false;
152 151
            }
153 152

  
153
            if (this.radGridViewDocuments.SelectedRows.Any())
154 154
            {
155
                string extension = ".pdf";
156
                string filePath = Path.Combine(informations.FindID2LocalPath(doc.RefProjectCode), "drawings", $"{doc.DocumentNo}{extension}");
157
                ShowPDFFile(filePath);
155
                Documents doc = this.radGridViewDocuments.SelectedRows.First().DataBoundItem as Documents;
156
                {
157
                    string extension = ".dwg";
158
                    string filePath = Path.Combine(informations.FindID2LocalPath(doc.RefProjectCode), "drawings", "Native", $"{doc.DocumentNo}{extension}");
159
                    ShowAutoCADFile(filePath);
160
                }
161

  
162
                {
163
                    string extension = ".pdf";
164
                    string filePath = Path.Combine(informations.FindID2LocalPath(doc.RefProjectCode), "drawings", $"{doc.DocumentNo}{extension}");
165
                    ShowPDFFile(filePath);
166
                }
158 167
            }
159 168
        }
160 169

  

내보내기 Unified diff

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