프로젝트

일반

사용자정보

개정판 f6cecf63

IDf6cecf633d60e68a244520e11a0ba219f6e91536
상위 fab13da5
하위 17eeb1d3

김동진이(가) 5년 이상 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)