프로젝트

일반

사용자정보

개정판 a1cc6e1f

IDa1cc6e1fc85e2a501152c0ecc59a8623e45a087f
상위 e6c46927
하위 3e416e48

김태성이(가) 3달 전에 추가함

issue #00000 Export&Print에서 Markup이 동시에 출력 되도록 수정

Change-Id: I14b3c64123228dca90259d303139c744d55cd039

차이점 보기:

KCOM/Controls/PrintControl.xaml.cs
514 514
                    //printCanvas.Background = background;
515 515
                    //printCanvas.Background = new SolidColorBrush(Colors.Transparent);
516 516

  
517
                    Canvas canvas = new Canvas();
517 518

  
518
                    foreach (var info in gridViewMarkup.SelectedItems.Cast<IKCOM.MarkupInfoItem>())
519
                    {
520
                        load.User_Id = info.UserID;
521
                        load.document_id = _DocInfo.DOCUMENT_ID;
522
                        load.Page_No = PageNo;
519
                    //foreach (var info in gridViewMarkup.SelectedItems.Cast<IKCOM.MarkupInfoItem>())
520
                    //{
521
                    //    load.User_Id = info.UserID;
522
                    //    load.document_id = _DocInfo.DOCUMENT_ID;
523
                    //    load.Page_No = PageNo;
524

  
525
                    //    if (chkOnlyRedColor.IsChecked == true)
526
                    //    {
527
                    //        load.DisplayColor = "#FFFF0000";
528
                    //    }
529
                    //    else
530
                    //    {
531
                    //        load.DisplayColor = info.DisplayColor;
532
                    //    }
533

  
534
                    //    load.Markupinfoid = info.MarkupInfoID;
535
                    //    var IsLoad = await load.Markup_LoadAsync(canvas, 0);
536
                    //}
523 537

  
524
                        if (chkOnlyRedColor.IsChecked == true)
525
                        {
526
                            load.DisplayColor = "#FFFF0000";
527
                        }
528
                        else
529
                        {
530
                            load.DisplayColor = info.DisplayColor;
531
                        }
538
                    var tasks = gridViewMarkup.SelectedItems.Cast<IKCOM.MarkupInfoItem>()
539
                                        .Select(async info =>
540
                                        {
541
                                            load.User_Id = info.UserID;
542
                                            load.document_id = _DocInfo.DOCUMENT_ID;
543
                                            load.Page_No = PageNo;
544
                                            load.DisplayColor = chkOnlyRedColor.IsChecked == true ? "#FFFF0000" : info.DisplayColor;
545
                                            load.Markupinfoid = info.MarkupInfoID;
546
                                            return await load.Markup_LoadAsync(canvas, 0);
547
                                        });
548

  
549
                    var results = await System.Threading.Tasks.Task.WhenAll(tasks);
550

  
551
                    //printCanvas.Children.Add(canvas);
552

  
553
                    printCanvas.Children.Add(canvas);
532 554

  
533
                        load.Markupinfoid = info.MarkupInfoID;
534
                        var IsLoad = await load.Markup_LoadAsync(printCanvas, 0);
535
                    }
536 555
                    //await Dispatcher.InvokeAsync(() => {
537 556
                    //    printCanvas.UpdateLayout();
538 557
                    //});

내보내기 Unified diff

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