개정판 a1cc6e1f
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