개정판 036650a0
issue #999: Add serialize method to all of controls
Change-Id: I74e404885e8cd107b48ad1921e768137ed14a3da
KCOM/Common/TempFile.cs | ||
---|---|---|
2 | 2 |
using KCOM.Controls; |
3 | 3 |
using KCOM.Views; |
4 | 4 |
using MarkupToPDF.Common; |
5 |
using MarkupToPDF.Controls.Parsing; |
|
5 | 6 |
using Newtonsoft.Json; |
6 | 7 |
using Newtonsoft.Json.Converters; |
7 | 8 |
using Newtonsoft.Json.Linq; |
... | ... | |
27 | 28 |
{ |
28 | 29 |
public class TempFile |
29 | 30 |
{ |
30 |
public class MarkupReturn |
|
31 |
{ |
|
32 |
public string ConvertData { get; set; } |
|
33 |
public int DATA_TYPE { get; set; } |
|
34 |
public string CommentID { get; set; } |
|
35 |
} |
|
36 |
|
|
37 |
MarkupToPDF.Controls.Parsing.LayerControl layerControl = new MarkupToPDF.Controls.Parsing.LayerControl(); |
|
38 |
|
|
39 | 31 |
public static string PathString = AppDomain.CurrentDomain.BaseDirectory + "Temp"; |
40 | 32 |
public static string FilePath = PathString + "\\" + App.ViewInfo.DocumentItemID + ".tmp"; |
41 | 33 |
|
... | ... | |
159 | 151 |
var nodes = xmlDoc.SelectNodes("/Root/CommentID"); |
160 | 152 |
for (int i = 0; i < undoDataList.Markup_List.Count; i++) |
161 | 153 |
{ |
162 |
var root = layerControl.MarkupToString(undoDataList.Markup_List[i].Markup, App.ViewInfo.UserID);
|
|
154 |
var root = MarkupParser.MarkupToString(undoDataList.Markup_List[i].Markup, App.ViewInfo.UserID);
|
|
163 | 155 |
bool check = true; |
164 | 156 |
|
165 | 157 |
foreach (XmlNode e in xmlDoc.GetElementsByTagName("CommentID")) |
내보내기 Unified diff