프로젝트

일반

사용자정보

개정판 0585d5cc

ID0585d5cce61f9968e2d980d7b3a21001157281c8
상위 0cd6d4c9
하위 c9f98e3b

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

markus Api 오류 출력 되도록 수정

Change-Id: I7318ee5da1ec9b8dbfd4450a1ab7117b6b2713ea

차이점 보기:

KCOM/Events/Implementation/TopMenuEvent.cs
362 362
            }
363 363
            catch (Exception ex)
364 364
            {
365
               
365
                System.Diagnostics.Debug.WriteLine("_SaveEvent Error : " + ex.ToString());
366 366
            }
367 367
            finally
368 368
            {
......
388 388
        /// <param name="menu"></param>
389 389
		private void ExecuteSaveCommand(MainMenu menu)
390 390
        {
391
            SaveCommand.Instance.Project_No = App.ViewInfo.ProjectNO;
392
            SaveCommand.Instance.document_id = App.ViewInfo.DocumentItemID;
393
            SaveCommand.Instance.user_id = App.ViewInfo.UserID;
394
            SaveCommand.Instance.page_no = menu.pageNavigator.CurrentPage.PageNumber;
395

  
396
            try
391
            if (menu.pageNavigator.CurrentPage != null)
397 392
            {
398
                if (ViewerDataModel.Instance.UndoDataList.Count > 0)
393
                SaveCommand.Instance.Project_No = App.ViewInfo.ProjectNO;
394
                SaveCommand.Instance.document_id = App.ViewInfo.DocumentItemID;
395
                SaveCommand.Instance.user_id = App.ViewInfo.UserID;
396
                SaveCommand.Instance.page_no = menu.pageNavigator.CurrentPage.PageNumber;
397

  
398
                try
399 399
                {
400
                    List<IKCOM.MarkupInfoItem> SelectedMarkupInfos = new List<IKCOM.MarkupInfoItem>();
401
                    foreach (var item in menu.gridViewMarkup.SelectedItems)
400
                    if (ViewerDataModel.Instance.UndoDataList.Count > 0)
402 401
                    {
403
                        if ((item as IKCOM.MarkupInfoItem).UserID == App.ViewInfo.UserID)
402
                        List<IKCOM.MarkupInfoItem> SelectedMarkupInfos = new List<IKCOM.MarkupInfoItem>();
403
                        foreach (var item in menu.gridViewMarkup.SelectedItems)
404 404
                        {
405
                            SelectedMarkupInfos.Add(item as IKCOM.MarkupInfoItem);
405
                            if ((item as IKCOM.MarkupInfoItem).UserID == App.ViewInfo.UserID)
406
                            {
407
                                SelectedMarkupInfos.Add(item as IKCOM.MarkupInfoItem);
408
                            }
406 409
                        }
410

  
411
                        SaveCommand.Instance.Execute(SelectedMarkupInfos);
407 412
                    }
408 413

  
409
                    SaveCommand.Instance.Execute(SelectedMarkupInfos);
414
                    if (ViewerDataModel.Instance.RotationDocs.Count > 0)
415
                    {
416
                        SaveCommand.Instance.PageAngleSave(App.ViewInfo.ProjectNO, ViewerDataModel.Instance.RotationDocs);
417
                    }
410 418
                }
411

  
412
                if (ViewerDataModel.Instance.RotationDocs.Count > 0)
419
                catch (Exception ex)
413 420
                {
414
                    SaveCommand.Instance.PageAngleSave(App.ViewInfo.ProjectNO, ViewerDataModel.Instance.RotationDocs);
421
                    this.ParentOfType<MainWindow>().dzMainMenu.DialogMessage_Alert(string.Format("세이브 실패:{0}", ex.Message), "Alert");
422
                    throw ex;
415 423
                }
416 424
            }
417
            catch (Exception ex)
425
            else
418 426
            {
419
                this.ParentOfType<MainWindow>().dzMainMenu.DialogMessage_Alert(string.Format("세이브 실패:{0}", ex.Message), "Alert");
420
                throw ex;
427
                System.Diagnostics.Debug.WriteLine("ExecuteSaveCommand Error - pageNavigator.CurrentPage null");
421 428
            }
422 429
        }
423 430

  

내보내기 Unified diff

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