개정판 f6cecf63
issue #000 final service test
Change-Id: I91143397366d8521df7cec3ffb1986c1567ffcff
FinalService/KCOM_FinalService/KCOM_FinalService/Remoting/RemFinalPDFStation.cs | ||
---|---|---|
211 | 211 |
using (KCOMDataModel.DataModel.KCOMEntities _systemEntity = new KCOMDataModel.DataModel.KCOMEntities(KCOMDataModel.Common.ConnectStringBuilder.KCOMConnectionString().ToString())) |
212 | 212 |
{ |
213 | 213 |
var item = _systemEntity.PROPERTIES.Where(data => data.TYPE == "UpLoadServiceUrl").FirstOrDefault(); |
214 |
soapurl = item.VALUE; |
|
214 |
if(item != null) soapurl = item.VALUE;
|
|
215 | 215 |
} |
216 | 216 |
if(!string.IsNullOrEmpty(soapurl)) |
217 | 217 |
{ |
... | ... | |
231 | 231 |
else |
232 | 232 |
{ |
233 | 233 |
///TODO: 저장할 폴더 위치를 configuration으로 빼주세요 |
234 |
string saveFolder = String.Format(Properties.Settings.Default.saveFileFolder, _item.PROJECT_NO, Convert.ToInt32(_item.DOCUMENT_ID) / 100, _item.DOCUMENT_ID); |
|
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); |
|
235 | 240 |
if (!System.IO.Directory.Exists(saveFolder)) |
236 | 241 |
{ |
237 | 242 |
System.IO.Directory.CreateDirectory(saveFolder); |
... | ... | |
244 | 249 |
{ |
245 | 250 |
var item = _entity.DOCUMENT_ITEM.Where(d => d.DOCUMENT_ID == _item.DOCUMENT_ID).FirstOrDefault(); |
246 | 251 |
///TODO: RESULT FILE 경로 위치를 configuration으로 빼주세요 |
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}" |
|
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 |
|
|
249 | 257 |
sendReqLog("RESULT_FILE_PATH", item.RESULT_FILE); |
250 | 258 |
_entity.SaveChanges(); |
251 | 259 |
SetFinalState(_item.ID, FinalStatus.Success); |
내보내기 Unified diff