개정판 cb33ad14
issue #999: add GetMarkupData() to CommentUserInfo class
Change-Id: I03b06eb325c7cd19a08d3d9cab66dd2328b2a374
MarkupToPDF/Common/CommentUserInfo.cs | ||
---|---|---|
1 |
using MarkupToPDF.Controls.Common; |
|
1 |
using KCOMDataModel.DataModel; |
|
2 |
using MarkupToPDF.Controls.Common; |
|
3 |
using MarkupToPDF.Controls.Parsing; |
|
2 | 4 |
using System; |
3 | 5 |
using System.Collections.Generic; |
4 | 6 |
using System.Linq; |
... | ... | |
75 | 77 |
/// </summary> |
76 | 78 |
/// <returns>serialized string</returns> |
77 | 79 |
public virtual string Serialize() { return string.Empty; } |
80 |
|
|
81 |
/// <summary> |
|
82 |
/// return MARKUP_DATA |
|
83 |
/// </summary> |
|
84 |
/// <param name="sUserID"></param> |
|
85 |
/// <param name="iPageNo"></param> |
|
86 |
/// <returns></returns> |
|
87 |
public virtual MARKUP_DATA GetMarkupData(string sUserID, int iPageNo, string sMarkupVersionID) |
|
88 |
{ |
|
89 |
var root = MarkupParser.MarkupToString(this, sUserID); |
|
90 |
return new MARKUP_DATA |
|
91 |
{ |
|
92 |
ID = this.CommentID, |
|
93 |
DATA = root.ConvertData, |
|
94 |
DATA_TYPE = root.DATA_TYPE, |
|
95 |
PAGENUMBER = iPageNo, |
|
96 |
MARKUPINFO_VERSION_ID = sMarkupVersionID, |
|
97 |
SYMBOL_ID = this.SymbolID, |
|
98 |
GROUP_ID = this.GroupID |
|
99 |
}; |
|
100 |
} |
|
78 | 101 |
} |
79 | 102 |
} |
80 |
|
내보내기 Unified diff