프로젝트

일반

사용자정보

개정판 0f26a9aa

ID0f26a9aacba018a5ca55dabf440940fe87ecca95
상위 223975f7
하위 6af42ff0

김태성이(가) 5년 이상 전에 추가함

ISSUE #0002 pdf 다운로드 외부사용자 적용 부분 Merge

Change-Id: Iad58982ef6bc62752766575b7923ca0fac2c4c38

차이점 보기:

KCOM/Views/MainMenu.xaml.cs
42 42
using Telerik.Windows.Data;
43 43
using System.ComponentModel;
44 44
using static KCOM.Controls.Sample;
45
using System.Web;
45 46

  
46 47
namespace KCOM.Views
47 48
{
......
282 283
            return uri;
283 284
        }
284 285

  
286
        /// <summary>
287
        /// 외부망에서의 Original PDF Download 를 위한 리소스 web path 경로로 치환
288
        /// </summary>
289
        /// <returns></returns>
290
        public string GetOriginalPDFURL()
291
        {
292
            string uri = string.Empty;
293
            string sDocumentID = this._DocItem.DOCUMENT_ID;
294
            string filename = string.Empty;
295
            if (this._DocInfo.ORIGINAL_FILE.Contains("fileName"))
296
            {
297
                filename = HttpUtility.ParseQueryString(this._DocInfo.ORIGINAL_FILE).Get("fileName");
298
            }
299
            else
300
            {
301
                filename = System.IO.Path.GetFileName(this._DocInfo.ORIGINAL_FILE);
302
            }
303

  
304
            string sFolder = sDocumentID.All(char.IsDigit) ? (Convert.ToUInt32(sDocumentID) / 100).ToString() : (sDocumentID.Length >= 5 ? sDocumentID.Substring(0, 5) : sDocumentID);
305
            if (userData.COMPANY != "EXT")
306
            {
307
                uri = String.Format(CommonLib.Common.GetConfigString("mainServerImageWebPath", "URL", "", App.isExternal), _ViewInfo.ProjectNO, sFolder, sDocumentID, filename);
308
            }
309
            else
310
            {
311
                uri = String.Format(CommonLib.Common.GetConfigString("subServerImageWebPath", "URL", "", App.isExternal), _ViewInfo.ProjectNO, sDocumentID, filename);
312
            }
313
            uri = uri.Replace(".png", "");
314
            return uri;
315
        }
316

  
285 317
        private bool IsDrawingEnable(Point _canvasZoomPanningMouseDownPoint)
286 318
        {
287 319
            if ((_canvasZoomPanningMouseDownPoint.X > 0 &&

내보내기 Unified diff

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