개정판 0f26a9aa
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