개정판 27cf69cd
- parameter의 NewCommentPermission가 true인 경우에만 하단 markup list에 추가 되도록 수정
Change-Id: I4e48ecc7a00ed21c51c29d800f4fa6eba9b7e0dd
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 |
/// |
|
412 |
if (App.ViewInfo.NewCommentPermission) |
|
413 |
{ |
|
414 |
var infoId = Commons.shortGuid(); |
|
415 |
PreviewUserMarkupInfoItem = new MarkupInfoItem |
|
416 |
{ |
|
417 |
CreateTime = DateTime.Now, |
|
418 |
UpdateTime = DateTime.Now, |
|
419 |
Depatment = userData.DEPARTMENT, |
|
420 |
DisplayColor = "#FFFF0000", |
|
421 |
UserID = userData.ID, |
|
422 |
UserName = userData.NAME, |
|
423 |
PageCount = 1, |
|
424 |
Description = "", |
|
425 |
MarkupInfoID = infoId, |
|
426 |
MarkupList = null, |
|
427 |
MarkupVersionID = Commons.shortGuid(), |
|
428 |
Consolidate = 0, |
|
429 |
PartConsolidate = 0, |
|
430 |
userDelete = true, |
|
431 |
AvoidConsolidate = 0, |
|
432 |
IsPreviewUser = false |
|
433 |
}; |
|
434 |
|
|
435 |
App.Custom_ViewInfoId = infoId; |
|
436 |
|
|
437 |
ViewerDataModel.Instance._markupInfoList.Insert(0, PreviewUserMarkupInfoItem); |
|
438 |
} |
|
435 | 439 |
} |
436 | 440 |
else |
437 | 441 |
{ |
내보내기 Unified diff