프로젝트

일반

사용자정보

개정판 a8c681f0

IDa8c681f019637d7bd119911da8287e094ab7553d
상위 371487f9
하위 e5045610

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

Fix: PDF 보기 기능 삭제, Log 경로를 ${LOCALAPPDATA}\ID2.Manager로 변경

Change-Id: Ie31fc5c9443e2877f5c341c38f43a79fdcdbb2ff

차이점 보기:

ID2.Manager/ID2.Manager/Log.config
5 5
	</configSections>
6 6
	<log4net>
7 7
    <appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender">
8
      <file type="log4net.Util.PatternString" value="${LOCALAPPDATA}\ID2Manager\.log"/>
8
      <file type="log4net.Util.PatternString" value="${LOCALAPPDATA}\ID2.Manager\.log"/>
9 9
      <appendToFile value="true" />
10 10
      <rollingStyle value="Composite" />
11 11
      <datePattern value="yyyyMMdd" />
ID2.Manager/ID2.Manager/Main.cs
353 353
                if (File.Exists(FilePath) && viewer != null) viewer.ReadDWG(FilePath);
354 354
            }
355 355

  
356
            void ShowPDFFile(string FilePath)
357
            {
358
                Controls.PDFViewer viewer = null;
359
                foreach (var control in this.radPageViewPagePDF.Controls)
360
                {
361
                    if (control is Controls.PDFViewer _viewer)
362
                    {
363
                        viewer = _viewer;
364
                        break;
365
                    }
366
                }
367

  
368
                if (viewer == null)
369
                {
370
                    viewer = new Controls.PDFViewer() { Dock = DockStyle.Fill };
371
                    this.radPageViewPagePDF.Controls.Add(viewer);
372
                }
373
                else
374
                {
375
                    viewer.Visible = true;
376
                }
377

  
378
                if (File.Exists(FilePath) && viewer != null) viewer.ReadPDF(FilePath);
379
            }
380

  
381
            if (this.radGridViewDocuments.SelectedRows.Count() > 0 && this.radGridViewDocuments.SelectedRows.First().DataBoundItem is Documents doc)
356
            if (this.radGridViewDocuments.SelectedRows.Any() && this.radGridViewDocuments.SelectedRows.First().DataBoundItem is Documents doc)
382 357
            {
383 358
                string dwgExtension = ".dwg";
384 359
                string dwgFilePath = Path.Combine(informations.FindID2LocalPath(doc.RefProjectCode), "drawings", "Native", $"{doc.DocumentNo}{dwgExtension}");
385 360
                ShowAutoCADFile(dwgFilePath);
386 361
      
387
                string pdfExtension = ".pdf";
388
                string pdfFilePath = Path.Combine(informations.FindID2LocalPath(doc.RefProjectCode), "drawings", $"{doc.DocumentNo}{pdfExtension}");
389
                ShowPDFFile(pdfFilePath);
390

  
391 362
                //if (informations.ActiveUser.ID != doc.PersonInCharge)
392 363
                //{
393 364
                //    var row = this.radGridViewDocuments.SelectedRows.First();

내보내기 Unified diff

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