프로젝트

일반

사용자정보

개정판 9294fed6

ID9294fed62d6ef94a3f38beb4dbd6b36c83249fa7
상위 5a6493ad
하위 df33d20a

백흠경이(가) 약 5년 전에 추가함

issue #932: [SNI] 페이지 경로를 구하는 부분에서 오류 발생하여 수정

Change-Id: If8d7684a31ec7da1f18501f83f10d0c7ccf90215

차이점 보기:

KCOM_API/ServiceDeepView.svc.cs
217 217
            }
218 218
        }
219 219

  
220

  
220
        /// <summary>
221
        /// 두 페이지를 비교하여 결과를 리턴한다
222
        /// </summary>
223
        /// <param name="projectNo"></param>
224
        /// <param name="originDocItem_ID"></param>
225
        /// <param name="targetDocItem_ID"></param>
226
        /// <param name="originPageNo"></param>
227
        /// <param name="targetPageNo"></param>
228
        /// <param name="isInternalAddress"></param>
229
        /// <returns></returns>
221 230
        [OperationContract]
222 231
        public List<Rect> GetCompareRect(string projectNo, string originDocItem_ID, string targetDocItem_ID, string originPageNo, string targetPageNo, string isInternalAddress)
223 232
        {
224
            //string originFile = String.Format(@"http://cloud.devdoftech.co.kr:5977/TileSource/{0}_Tile/{1}/{2}/{3}.cmp", projectNo, (Convert.ToInt32(originDocItem_ID) / 100).ToString(), originDocItem_ID, originPageNo);
225
            //string targetFile = String.Format(@"http://cloud.devdoftech.co.kr:5977/TileSource/{0}_Tile/{1}/{2}/{3}.cmp", projectNo, (Convert.ToInt32(targetDocItem_ID) / 100).ToString(), targetDocItem_ID, targetPageNo);
226

  
227 233
            string originFile = "";
228 234
            string targetFile = "";
229 235

  
236
            string sFolder = originDocItem_ID.All(char.IsDigit) ? (Convert.ToUInt32(originDocItem_ID) / 100).ToString() : (originDocItem_ID.Length >= 5 ? originDocItem_ID.Substring(0, 5) : originDocItem_ID);
230 237
            if (Boolean.Parse(isInternalAddress))
231 238
            {
232
                originFile = String.Format(KCOM_API.Properties.Settings.Default.TileSoucePath, projectNo, (Convert.ToUInt32(originDocItem_ID) / 100).ToString(), originDocItem_ID, originPageNo);
233
                targetFile = String.Format(KCOM_API.Properties.Settings.Default.TileSoucePath, projectNo, (Convert.ToUInt32(targetDocItem_ID) / 100).ToString(), targetDocItem_ID, targetPageNo);
239
                originFile = String.Format(KCOM_API.Properties.Settings.Default.TileSoucePath, projectNo, sFolder, originDocItem_ID, originPageNo);
240
                targetFile = String.Format(KCOM_API.Properties.Settings.Default.TileSoucePath, projectNo, sFolder, targetDocItem_ID, targetPageNo);
234 241
            }
235 242
            else
236 243
            {
......
239 246
            }
240 247

  
241 248
            CompareLib compareLib = new CompareLib();
242
            //System.IO.Stream resultOrigin = compareLib.ChangeCmpUrlToPng(originFile);
243
            //System.IO.Stream resultTarget = compareLib.ChangeCmpUrlToPng(targetFile);
244 249

  
245 250
            var resultOrigin = compareLib.ChangeCmpUrlToPng_File(originFile);
246 251
            var resultTarget = compareLib.ChangeCmpUrlToPng_File(targetFile);
......
252 257
        }
253 258

  
254 259

  
255

  
256 260
        #region Final PDF
257 261
        private string _ChanID = null;
258 262
        TcpChannel chan = null;

내보내기 Unified diff

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