프로젝트

일반

사용자정보

개정판 0585d5cc

ID0585d5cce61f9968e2d980d7b3a21001157281c8
상위 0cd6d4c9
하위 c9f98e3b

김태성이(가) 약 5년 전에 추가함

markus Api 오류 출력 되도록 수정

Change-Id: I7318ee5da1ec9b8dbfd4450a1ab7117b6b2713ea

차이점 보기:

KCOM_API/ServiceDeepView.svc.cs
25 25
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
26 26
    public partial class ServiceDeepView : System.Web.Services.WebService
27 27
    {
28
        public ServiceDeepView()
29
        {
30
            System.Diagnostics.Debug.WriteLine(OperationContext.Current.RequestContext.RequestMessage.Headers.Action.ToString());
31
        }
32

  
28 33
        /// <summary>
29 34
        /// Client Version 과 Server Version 을 비교하여 Server Version 이 최신이면 다운로드 url 리턴.
30 35
        /// </summary>
......
65 70
                    url = dbvalue.VALUE;
66 71
                }
67 72
            }
68
            catch (Exception)
73
            catch (Exception ex)
69 74
            {
75
                System.Diagnostics.Debug.WriteLine("KCOM_API - GetVersionData : " + ex.ToString());
76

  
70 77
                url = null;
71 78
            }
72 79
            return url;
......
107 114
            }
108 115
            catch (Exception ex)
109 116
            {
117
                System.Diagnostics.Debug.WriteLine("KCOM_API - GetSystemData : " + ex.ToString());
118

  
110 119
            }
111 120
            return null;
112 121
            GC.Collect(2);
......
150 159
                return favoriteListSet;
151 160
            }
152 161
        }
162

  
153 163
        [OperationContract]
154 164
        public bool EditFavoriteVP(string prjNo, string userID, string docID, int state, string description)
155 165
        {
......
179 189
                        return false;
180 190
                    }
181 191
                }
182
                catch (Exception)
192
                catch (Exception ex)
183 193
                {
194
                    System.Diagnostics.Debug.WriteLine("KCOM_API - EditFavoriteVP : " + ex.ToString());
195

  
184 196
                    return false;
185 197
                }
186 198
            }
......
209 221
                        return false;
210 222
                    }
211 223
                }
212
                catch (Exception)
224
                catch (Exception ex)
213 225
                {
226
                    System.Diagnostics.Debug.WriteLine("KCOM_API - DelFavoriteVP : " + ex.ToString());
227

  
214 228
                    return false;
215 229
                }
216 230
            }
......
257 271
            }
258 272
            catch (Exception ex)
259 273
            {
274
                System.Diagnostics.Debug.WriteLine("KCOM_API - GetCompareRect : " + ex.ToString());
260 275
                //throw new FaultException(ex.ToString() + " Inner Exception : " + ex.InnerException?.ToString());
261 276
            }
262
      
277

  
263 278

  
264 279
            return result;
265 280
        }
......
390 405
            }
391 406
            catch (Exception ex)
392 407
            {
408
                System.Diagnostics.Debug.WriteLine("KCOM_API - SetFinalPDF : " + ex.ToString());
409

  
393 410
                _result.Status = FinalStatus.Error;
394 411

  
395 412
                if (ex.GetType() == typeof(System.Net.Sockets.SocketException))
......
456 473
                using (CIEntities entity = new CIEntities(sCIConnString))
457 474
                {
458 475
                    var _vpList = (from docitem in entity.DOCUMENT_ITEM
459
                                   where docitem.DOCUMENT_NO == vpNo
476
                                   where docitem.PROJECT_NO == ProjectNo && docitem.DOCUMENT_NO == vpNo
460 477
                                   select new VPRevision
461 478
                                   {
462 479
                                       RevNo = docitem.REVISION,
......
484 501
            }
485 502
            catch (Exception ex)
486 503
            {
487

  
488
                throw ex;
504
                System.Diagnostics.Debug.WriteLine("KCOM_API - GetVPRevisionHistory : " + ex.ToString());
489 505
            }
490 506
            finally
491 507
            {
492 508
                GC.Collect(2);
493 509
            }
510

  
494 511
            return _result;
495 512
        }
496 513

  
......
504 521
                using (CIEntities entity = new CIEntities(sCIConnString))
505 522
                {
506 523
                    _result = (from docitem in entity.DOCUMENT_ITEM
507
                     where docitem.DOCUMENT_ID == DocumentId
524
                     where docitem.PROJECT_NO == ProjectNo && docitem.DOCUMENT_ID == DocumentId
508 525
                     select new VPRevision
509 526
                     {
510 527
                         RevNo = docitem.REVISION,
......
516 533
                     }).FirstOrDefault();
517 534
                }
518 535
            }
519
            catch (Exception)
536
            catch (Exception ex)
520 537
            {
521
                throw;
538
                System.Diagnostics.Debug.WriteLine("KCOM_API - GetVPRevisionFirstOrDefault : " + ex.ToString());
522 539
            }
523 540
            finally
524 541
            {
......
550 567
            }
551 568
            catch (Exception ex)
552 569
            {
553
                System.Diagnostics.Trace.WriteLine("GetDocInfo Error : " + ex);
570
                System.Diagnostics.Debug.WriteLine("KCOM_API - GetDocInfo : " + ex.ToString());
554 571
            }
555 572
            finally
556 573
            {
......
589 606
                string sCIConnString = ConfigurationManager.ConnectionStrings["CIConnectionString"].ConnectionString;
590 607
                CIEntities entity = new CIEntities(sCIConnString);
591 608
               
592
                var _items = entity.DOCUMENT_ITEM.Where(data => data.DOCUMENT_ID == param.documentID);
609
                var _items = entity.DOCUMENT_ITEM.Where(data => data.PROJECT_NO == param.projectNo && data.DOCUMENT_ID == param.documentID);
593 610

  
594 611
                if (_items.Count() > 0)
595 612
                {
......
604 621
            }
605 622
            catch (Exception ex)
606 623
            {
607
                System.Diagnostics.Trace.WriteLine("GetDocumentItemInfo Error : " + ex);
624
                System.Diagnostics.Debug.WriteLine("KCOM_API - GetDocumentItemInfo : " + ex.ToString());
608 625

  
609 626
                new FaultException("GetDocumentItemInfo Error - "  + ex.ToString());
610 627
                //throw new FaultException(ex.ToString());
......
637 654
            }
638 655
            catch (Exception ex)
639 656
            {
657
                System.Diagnostics.Debug.WriteLine("KCOM_API - GetDocItemID : " + ex.ToString());
640 658
                //System.Diagnostics.Trace.WriteLine("GetVendorItemInfo Error : " + ex);
641 659
                //Common.Helper.SystemErrorNotify(SERVICE_NAME.API, LEVEL.MEDIUM, ERROR_TYPE.CONVERT, "GetDocumentItemInfo / " + ex.Message, param.documentID, param.projectNo);
642 660
            }
......
737 755
                    }
738 756
                }
739 757
            }
740
            catch (Exception EX)
758
            catch (Exception ex)
741 759
            {
742
                System.Diagnostics.Debug.WriteLine(this.GetType().ToString() + " " + EX);
760
                System.Diagnostics.Debug.WriteLine("KCOM_API - GetMarkupInfoItems : " + ex.ToString());
761

  
743 762
                return _result;
744 763
            }
745 764
            finally
......
852 871
                    }
853 872
                }
854 873
            }
855
            catch (Exception EX)
874
            catch (Exception ex)
856 875
            {
857
                System.Diagnostics.Debug.WriteLine(this.GetType().ToString() + " " + EX);
876
                System.Diagnostics.Debug.WriteLine("KCOM_API - GetSyncMarkupInfoItems : " + ex.ToString());
858 877
                return _result;
859 878
            }
860 879
            finally
......
927 946
            }
928 947
            catch (Exception ex)
929 948
            {
930
                System.Diagnostics.Debug.WriteLine(ex.Message);
949
                System.Diagnostics.Debug.WriteLine("KCOM_API - GetDeptData : " + ex.ToString());
931 950
            }
932 951
            finally
933 952
            {
......
972 991
            }
973 992
            catch (Exception ex)
974 993
            {
975
                System.Diagnostics.Trace.WriteLine(ex, "SaveMarkup");
994
                System.Diagnostics.Debug.WriteLine("KCOM_API - DeleteMarkup : " + ex.ToString());
976 995
            }
977 996
            finally
978 997
            {
......
1006 1025
                    });
1007 1026
                    entity.SaveChanges();
1008 1027
                }
1009
                catch (Exception)
1028
                catch (Exception ex)
1010 1029
                {
1030
                    System.Diagnostics.Debug.WriteLine("KCOM_API - SetFavoriteVP : " + ex.ToString());
1011 1031
                    return false;
1012 1032
                }
1013 1033

  
......
1121 1141
                                   where info.ID == UserState.MarkupInfoID && info.USER_ID == user_id
1122 1142
                                   select info).FirstOrDefault();
1123 1143
                }
1124
                catch (Exception)
1144
                catch (Exception ex)
1125 1145
                {
1146
                    System.Diagnostics.Debug.WriteLine("KCOM_API - SaveMarkupData Get markup_info: " + ex.ToString());
1126 1147
                    markup_info = null;
1127 1148
                }
1128 1149

  
......
1162 1183
                                           where info.MARKUPINFO_ID == markup_info.ID
1163 1184
                                           select info).FirstOrDefault();
1164 1185
                }
1165
                catch (Exception)
1186
                catch (Exception ex)
1166 1187
                {
1188
                    System.Diagnostics.Debug.WriteLine("KCOM_API - SaveMarkupData  Get markup_info_version : " + ex.ToString());
1167 1189
                    markup_info_version = null;
1168 1190
                }
1169 1191

  
......
1206 1228
                    });
1207 1229
                    Entity.SaveChanges();
1208 1230
                }
1209
                catch (Exception)
1231
                catch (Exception ex)
1210 1232
                {
1233
                    System.Diagnostics.Debug.WriteLine("KCOM_API - SaveMarkupData  set mlmarkup_data : " + ex.ToString());
1211 1234
                    return false;
1212 1235
                }
1213 1236
            }
......
1239 1262
                                   where info.ID == UserState.MarkupInfoID && info.USER_ID == user_id
1240 1263
                                   select info).FirstOrDefault();
1241 1264
                }
1242
                catch (Exception)
1265
                catch (Exception ex)
1243 1266
                {
1267
                    System.Diagnostics.Debug.WriteLine("KCOM_API - SavePageMarkupData : " + ex.ToString());
1268

  
1244 1269
                    markup_info = null;
1245 1270
                }
1246 1271

  
......
1280 1305
                                           where info.MARKUPINFO_ID == markup_info.ID
1281 1306
                                           select info).FirstOrDefault();
1282 1307
                }
1283
                catch (Exception)
1308
                catch (Exception ex)
1284 1309
                {
1310
                    System.Diagnostics.Debug.WriteLine("KCOM_API - SavePageMarkupData get markup_info_version : " + ex.ToString());
1285 1311
                    markup_info_version = null;
1286 1312
                }
1287 1313

  
......
1324 1350
                    });
1325 1351
                    Entity.SaveChanges();
1326 1352
                }
1327
                catch (Exception)
1353
                catch (Exception ex)
1328 1354
                {
1355
                    System.Diagnostics.Debug.WriteLine("KCOM_API - SavePageMarkupData set mlmarkup_data : " + ex.ToString());
1329 1356
                    return false;
1330 1357
                }
1331 1358
            }
......
1382 1409
                    Entity.SaveChanges();
1383 1410
                }
1384 1411
            }
1385
            catch (Exception)
1412
            catch (Exception ex)
1386 1413
            {
1414
                System.Diagnostics.Debug.WriteLine("KCOM_API - UpdateMarkupData: " + ex.ToString());
1387 1415
                return false;
1388 1416
            }
1389 1417
            return true;
......
1401 1429
                    uc.SaveChanges();
1402 1430
                }
1403 1431
            }
1404
            catch(Exception)
1432
            catch (Exception ex)
1405 1433
            {
1434
                System.Diagnostics.Debug.WriteLine("KCOM_API - SaveSymbol: " + ex.ToString());
1406 1435
                return false;
1407 1436
            }
1408 1437
            return true;
......
1419 1448
                    uc.SaveChanges();
1420 1449
                }
1421 1450
            }
1422
            catch (Exception)
1451
            catch (Exception ex)
1423 1452
            {
1453
                System.Diagnostics.Debug.WriteLine("KCOM_API - AddPublicSymbol: " + ex.ToString());
1424 1454
                return false;
1425 1455
            }
1426 1456
            return true;
......
1449 1479
                    }
1450 1480
                }
1451 1481
            }
1452
            catch(Exception)
1482
            catch (Exception ex)
1453 1483
            {
1484
                System.Diagnostics.Debug.WriteLine("KCOM_API - DeleteSymbol : " + ex.ToString());
1485

  
1454 1486
                return false;
1455 1487
            }
1456 1488
            return true;
......
1478 1510
                    }
1479 1511
                }
1480 1512
            }
1481
            catch (Exception)
1513
            catch (Exception ex)
1482 1514
            {
1515
                System.Diagnostics.Debug.WriteLine("KCOM_API - RenameSymbol: " + ex.ToString());
1483 1516
                return false;
1484 1517
            }
1485 1518
            return true;
......
1497 1530
                    Entity.SaveChanges();  
1498 1531
                }
1499 1532
            }
1500
            catch (Exception)
1533
            catch (Exception ex)
1501 1534
            {
1535
                System.Diagnostics.Debug.WriteLine("KCOM_API - AddCheckListHistory: " + ex.ToString());
1502 1536
                return false;
1503 1537
            }
1504 1538
            return true;
......
1516 1550
                    Entity.SaveChanges();
1517 1551
                }
1518 1552
            }
1519
            catch (Exception)
1553
            catch (Exception ex)
1520 1554
            {
1555
                System.Diagnostics.Debug.WriteLine("KCOM_API - SaveCheckListHistory: " + ex.ToString());
1521 1556
                return false;
1522 1557
            }
1523 1558
            return true;
......
2494 2529
                        {
2495 2530
                            displaycolor = _markupInfoList.Where(info => info.MarkupInfoID == markinfo.ID).First().DisplayColor;
2496 2531
                        }
2497
                        catch(Exception)
2532
                        catch (Exception ex)
2498 2533
                        {
2534
                            System.Diagnostics.Debug.WriteLine("KCOM_API - GetPrintDocItemList displaycolor : " + ex.ToString());
2535

  
2499 2536
                            displaycolor = "#FFFFFF";
2500 2537
                        }
2501 2538
                        
......
2677 2714
                string sCIConnString = ConfigurationManager.ConnectionStrings["CIConnectionString"].ConnectionString;
2678 2715
                using (CIEntities _entity = new CIEntities(sCIConnString))
2679 2716
                {
2680
                    var doc = _entity.DOCUMENT_ITEM.Where(x => x.DOCUMENT_ID == document_id).FirstOrDefault();
2717
                    var doc = _entity.DOCUMENT_ITEM.Where(x => x.PROJECT_NO == project_no &&  x.DOCUMENT_ID == document_id).FirstOrDefault();
2681 2718
                    if(doc != null)
2682 2719
                    {
2683 2720
                        item = new DOCUMENT_ITEM()
......
2977 3014
                string sCIConnString = ConfigurationManager.ConnectionStrings["CIConnectionString"].ConnectionString;
2978 3015
                using (CIEntities _entity = new CIEntities(sCIConnString))
2979 3016
                {
2980
                    var item = _entity.DOCUMENT_ITEM.Where(d => d.DOCUMENT_ID == document_id).FirstOrDefault();
3017
                    var item = _entity.DOCUMENT_ITEM.Where(d =>d.PROJECT_NO == project_no && d.DOCUMENT_ID == document_id).FirstOrDefault();
2981 3018
                    if (item != null)
2982 3019
                    {
2983 3020
                        item.RESULT_FILE = url;

내보내기 Unified diff

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