개정판 762737cd
issue #0000 comment없는 user가 export시 오류 발생에 대한 수정
Change-Id: I8c9bdc8619b63a615960575b8eab7b5f304dc21f
KCOM/Controls/PrintControl.xaml.cs | ||
---|---|---|
231 | 231 |
{ |
232 | 232 |
info.UserName = "Consolidation"; |
233 | 233 |
} |
234 |
info.MarkupList.ForEach(makup => |
|
235 |
{ |
|
236 |
var _pageMarkup = _PageMarkupList.Where(item => item.PageNumber == makup.PageNumber); |
|
237 |
var _SetMarkupItem = new SetColorMarkupItem { markupID = makup.ID, DisplayColor = info.DisplayColor }; |
|
238 | 234 |
|
239 |
if (_pageMarkup.Count() > 0) |
|
240 |
_pageMarkup.First().DisplayColorItems.Add(_SetMarkupItem); |
|
241 |
else |
|
242 |
_PageMarkupList.Add(new MarkupPageItem |
|
243 |
{ |
|
244 |
PageNumber = makup.PageNumber, |
|
245 |
DisplayColorItems = new List<SetColorMarkupItem> { _SetMarkupItem } |
|
246 |
}); |
|
247 |
}); |
|
248 | 235 |
|
249 |
colorList.Add(new DisplayColorInfo |
|
250 |
{ |
|
251 |
UserID = info.UserID, |
|
252 |
DisplayColor = info.DisplayColor, |
|
253 |
Department = info.Depatment, |
|
254 |
UserName = info.UserName, |
|
255 |
}); |
|
236 |
if((info.MarkupList != null)) |
|
237 |
{ |
|
238 |
info.MarkupList.ForEach(makup => |
|
239 |
{ |
|
240 |
var _pageMarkup = _PageMarkupList.Where(item => item.PageNumber == makup.PageNumber); |
|
241 |
var _SetMarkupItem = new SetColorMarkupItem { markupID = makup.ID, DisplayColor = info.DisplayColor }; |
|
242 |
|
|
243 |
if (_pageMarkup.Count() > 0) |
|
244 |
_pageMarkup.First().DisplayColorItems.Add(_SetMarkupItem); |
|
245 |
else |
|
246 |
_PageMarkupList.Add(new MarkupPageItem |
|
247 |
{ |
|
248 |
PageNumber = makup.PageNumber, |
|
249 |
DisplayColorItems = new List<SetColorMarkupItem> { _SetMarkupItem } |
|
250 |
}); |
|
251 |
}); |
|
252 |
|
|
253 |
colorList.Add(new DisplayColorInfo |
|
254 |
{ |
|
255 |
UserID = info.UserID, |
|
256 |
DisplayColor = info.DisplayColor, |
|
257 |
Department = info.Depatment, |
|
258 |
UserName = info.UserName, |
|
259 |
}); |
|
260 |
} |
|
256 | 261 |
} |
257 | 262 |
|
258 | 263 |
gridViewMarkup.ItemsSource = this._markupInfo; |
... | ... | |
504 | 509 |
printCanvas.Width = Convert.ToDouble(currentPage.PAGE_WIDTH); |
505 | 510 |
printCanvas.Height = Convert.ToDouble(currentPage.PAGE_HEIGHT); |
506 | 511 |
printCanvas.Background = new ImageBrush{ ImageSource = new BitmapImage(uri)}; |
507 |
printCanvas.SnapsToDevicePixels = false; |
|
508 |
printCanvas.UseLayoutRounding = false; |
|
509 |
printCanvas.CacheMode = new BitmapCache(50); |
|
512 |
//printCanvas.SnapsToDevicePixels = false;
|
|
513 |
//printCanvas.UseLayoutRounding = false;
|
|
514 |
//printCanvas.CacheMode = new BitmapCache(50);
|
|
510 | 515 |
RenderOptions.SetBitmapScalingMode(printCanvas, BitmapScalingMode.HighQuality); |
511 | 516 |
//printCanvas.RenderTransformOrigin = new Point(0.5, 0.5); |
512 | 517 |
//printCanvas.RenderTransform = new RotateTransform(currentPage.PAGE_ANGLE); |
... | ... | |
515 | 520 |
//printCanvas.Background = new SolidColorBrush(Colors.Transparent); |
516 | 521 |
|
517 | 522 |
Canvas canvas = new Canvas(); |
518 |
canvas.CacheMode = new BitmapCache(50); |
|
519 |
canvas.SnapsToDevicePixels = false; |
|
523 |
//canvas.CacheMode = new BitmapCache(50);
|
|
524 |
//canvas.SnapsToDevicePixels = false;
|
|
520 | 525 |
RenderOptions.SetBitmapScalingMode(canvas, BitmapScalingMode.HighQuality); |
521 | 526 |
//foreach (var info in gridViewMarkup.SelectedItems.Cast<IKCOM.MarkupInfoItem>()) |
522 | 527 |
//{ |
내보내기 Unified diff