개정판 6c45db59
autoupdate setup 수정
Change-Id: Ib142366f183244e817361d5a39a1973a63f7d756
FinalService/KCOM_FinalService/UploadTest/MainWindow.xaml.cs | ||
---|---|---|
32 | 32 |
{ |
33 | 33 |
try |
34 | 34 |
{ |
35 |
|
|
35 |
UploadCall2(); |
|
36 | 36 |
UploadCall(); |
37 | 37 |
} |
38 | 38 |
catch (Exception ex) |
... | ... | |
46 | 46 |
} |
47 | 47 |
} |
48 | 48 |
|
49 |
private void UploadCall2() |
|
50 |
{ |
|
51 |
var final = new FINAL_PDF(); |
|
52 |
final.DOCUMENT_ID = "2278058250"; |
|
53 |
final.PROJECT_NO = "150128"; |
|
54 |
|
|
55 |
var result = UploadFinal.UploadFinal.UploadFinalPDF(@"\\172.20.121.220\comment3\finalPDF\tmp776A.pdf", "ONPZ-ORG-PR-8121-0412.002-0000-DDD-001_R0.pdf", final, ""); |
|
56 |
} |
|
57 |
|
|
49 | 58 |
private void UploadCall() |
50 | 59 |
{ |
51 | 60 |
if(string.IsNullOrEmpty(tbFinalPDFID.Text)) |
... | ... | |
87 | 96 |
{ |
88 | 97 |
var file = _docInfoList.First().ORIGINAL_FILE; |
89 | 98 |
|
99 |
LogWrite("ORIGINAL_FILE Full Url : " + file); |
|
100 |
|
|
101 |
|
|
90 | 102 |
var decodeFile = System.Web.HttpUtility.UrlDecode(file); |
91 | 103 |
|
92 |
if (System.Web.HttpUtility.ParseQueryString(decodeFile).AllKeys.Count(x => x.ToLower() == ("filename").ToLower()) > 0) |
|
93 |
{ |
|
94 |
filename = System.Web.HttpUtility.ParseQueryString(decodeFile).Get("filename"); |
|
95 |
} |
|
96 |
else |
|
97 |
{ |
|
104 |
//if (System.Web.HttpUtility.ParseQueryString(decodeFile).AllKeys.Count(x => x.ToLower() == ("filename").ToLower()) > 0)
|
|
105 |
//{
|
|
106 |
// filename = System.Web.HttpUtility.ParseQueryString(decodeFile).Get("filename");
|
|
107 |
//}
|
|
108 |
//else
|
|
109 |
//{
|
|
98 | 110 |
filename = decodeFile.Split('/').Last(); |
99 |
} |
|
111 |
//}
|
|
100 | 112 |
} |
101 | 113 |
} |
102 | 114 |
|
내보내기 Unified diff