개정판 b360c7ed
issue #000 final station test
Change-Id: I6eb53907bc0b621cfca4d6e540910e916fb05b91
FinalService/KCOM_FinalService/KCOM_FinalService/Remoting/RemFinalPDFStation.cs | ||
---|---|---|
231 | 231 |
else |
232 | 232 |
{ |
233 | 233 |
///TODO: 저장할 폴더 위치를 configuration으로 빼주세요 |
234 |
///Local Test 용 저장 위치 |
|
235 |
System.Text.StringBuilder pdfsavepath = new System.Text.StringBuilder(512); |
|
236 |
CommonLib.Common.GetPrivateProfileString("DebugSavePath", "URL", "(NONE)", pdfsavepath, 512, Path.Combine(CommonLib.Common.AppDataFolder, "FinalService.ini")); |
|
237 |
|
|
238 |
|
|
239 |
string saveFolder = String.Format(pdfsavepath.ToString(), _item.PROJECT_NO, Convert.ToInt32(_item.DOCUMENT_ID) / 100, _item.DOCUMENT_ID); |
|
234 |
string saveFolder = String.Format(Properties.Settings.Default.saveFileFolder, _item.PROJECT_NO, Convert.ToInt32(_item.DOCUMENT_ID) / 100, _item.DOCUMENT_ID); |
|
240 | 235 |
if (!System.IO.Directory.Exists(saveFolder)) |
241 | 236 |
{ |
242 | 237 |
System.IO.Directory.CreateDirectory(saveFolder); |
... | ... | |
249 | 244 |
{ |
250 | 245 |
var item = _entity.DOCUMENT_ITEM.Where(d => d.DOCUMENT_ID == _item.DOCUMENT_ID).FirstOrDefault(); |
251 | 246 |
///TODO: RESULT FILE 경로 위치를 configuration으로 빼주세요 |
252 |
///Local Test 용 result url |
|
253 |
System.Text.StringBuilder resultFileFolder = new System.Text.StringBuilder(512); |
|
254 |
CommonLib.Common.GetPrivateProfileString("DebugResultUrlPath", "URL", "(NONE)", resultFileFolder, 512, Path.Combine(CommonLib.Common.AppDataFolder, "FinalService.ini")); |
|
255 |
item.RESULT_FILE = String.Format(resultFileFolder.ToString(), _item.PROJECT_NO, Convert.ToInt32(_item.DOCUMENT_ID) / 100, _item.DOCUMENT_ID, e.OriginPDFName); |
|
256 |
|
|
247 |
item.RESULT_FILE = String.Format(Properties.Settings.Default.resultFileFolder, _item.PROJECT_NO, Convert.ToInt32(_item.DOCUMENT_ID) / 100, _item.DOCUMENT_ID, e.OriginPDFName); |
|
248 |
//@"http://cloud.devdoftech.co.kr:5977/FinalPDF/{0}_app/VPCS_DOCLIB/{1}/{2}/ToVendor/{3}" |
|
257 | 249 |
sendReqLog("RESULT_FILE_PATH", item.RESULT_FILE); |
258 | 250 |
_entity.SaveChanges(); |
259 | 251 |
SetFinalState(_item.ID, FinalStatus.Success); |
내보내기 Unified diff