개정판 9219206d
issue #937: get FinalPDFRootUrl from ini file
Change-Id: I73cc8054b745aa91f218da991f6d2b912cae1831
FinalService/KCOM_FinalService/KCOM_FinalService/Remoting/RemFinalPDFStation.cs | ||
---|---|---|
215 | 215 |
try |
216 | 216 |
{ |
217 | 217 |
string soapurl = CommonLib.Common.GetConfigString("UpLoadServiceUrl", "URL", ""); |
218 |
string finalpdfroot = CommonLib.Common.GetConfigString("FinalPDFRootUrl", "URL", ""); |
|
218 | 219 |
string filename = Path.GetFileName(e.FinalPDFPath); |
220 |
string pdfpath = !string.IsNullOrEmpty(finalpdfroot) ? finalpdfroot + filename : filename; |
|
219 | 221 |
if (!string.IsNullOrEmpty(soapurl)) |
220 | 222 |
{ |
221 | 223 |
//Legacy IF |
222 |
KeyValuePair<bool, string> result = UploadFinal.UploadFinal.UploadFinalPDF(filename, e.OriginPDFName, e.FinalPDF, soapurl);
|
|
224 |
KeyValuePair<bool, string> result = UploadFinal.UploadFinal.UploadFinalPDF(pdfpath, e.OriginPDFName, e.FinalPDF, soapurl);
|
|
223 | 225 |
if (result.Key) |
224 | 226 |
{ |
225 | 227 |
SetFinalState(_item.ID, FinalStatus.Success); |
내보내기 Unified diff