개정판 315ae55e
UniqueColorGenerator.cs 추가
색상 자동 설정 수정
Change-Id: I7de4657758710c88f9d4b8bb30e53429cf1f76d1
KCOM/Services/BaseServices.cs | ||
---|---|---|
408 | 408 |
if (currentUser == null) |
409 | 409 |
{ |
410 | 410 |
/// create a new markupinfo to do comments |
411 |
var infoId = Commons.shortGuid(); |
|
412 |
PreviewUserMarkupInfoItem = new MarkupInfoItem |
|
413 |
{ |
|
414 |
CreateTime = DateTime.Now, |
|
415 |
UpdateTime = DateTime.Now, |
|
416 |
Depatment = userData.DEPARTMENT, |
|
417 |
DisplayColor = "#FFFF0000", |
|
418 |
UserID = userData.ID, |
|
419 |
UserName = userData.NAME, |
|
420 |
PageCount = 1, |
|
421 |
Description = "", |
|
422 |
MarkupInfoID = infoId, |
|
423 |
MarkupList = null, |
|
424 |
MarkupVersionID = Commons.shortGuid(), |
|
425 |
Consolidate = 0, |
|
426 |
PartConsolidate = 0, |
|
427 |
userDelete = true, |
|
428 |
AvoidConsolidate = 0, |
|
429 |
IsPreviewUser = false |
|
430 |
}; |
|
431 |
|
|
432 |
App.Custom_ViewInfoId = infoId; |
|
433 |
|
|
434 |
ViewerDataModel.Instance._markupInfoList.Insert(0, PreviewUserMarkupInfoItem); |
|
411 |
//var infoId = Commons.shortGuid();
|
|
412 |
//PreviewUserMarkupInfoItem = new MarkupInfoItem
|
|
413 |
//{
|
|
414 |
// CreateTime = DateTime.Now,
|
|
415 |
// UpdateTime = DateTime.Now,
|
|
416 |
// Depatment = userData.DEPARTMENT,
|
|
417 |
// DisplayColor = "#FFFF0000",
|
|
418 |
// UserID = userData.ID,
|
|
419 |
// UserName = userData.NAME,
|
|
420 |
// PageCount = 1,
|
|
421 |
// Description = "",
|
|
422 |
// MarkupInfoID = infoId,
|
|
423 |
// MarkupList = null,
|
|
424 |
// MarkupVersionID = Commons.shortGuid(),
|
|
425 |
// Consolidate = 0,
|
|
426 |
// PartConsolidate = 0,
|
|
427 |
// userDelete = true,
|
|
428 |
// AvoidConsolidate = 0,
|
|
429 |
// IsPreviewUser = false
|
|
430 |
//};
|
|
431 |
|
|
432 |
//App.Custom_ViewInfoId = infoId;
|
|
433 |
|
|
434 |
//ViewerDataModel.Instance._markupInfoList.Insert(0, PreviewUserMarkupInfoItem);
|
|
435 | 435 |
} |
436 | 436 |
else |
437 | 437 |
{ |
내보내기 Unified diff