개정판 a20d338f
issue #000: TempFile 폴더 변경, UriCheck Delete
Change-Id: I9c76ad959c9232ccd54a16d28d162acc5afb3b6a
KCOM/Common/TempFile.cs | ||
---|---|---|
36 | 36 |
|
37 | 37 |
MarkupToPDF.Controls.Parsing.LayerControl layerControl = new MarkupToPDF.Controls.Parsing.LayerControl(); |
38 | 38 |
|
39 |
public static string PathString = AppDomain.CurrentDomain.BaseDirectory + "Temp"; |
|
40 |
public static string FilePath = PathString + "\\" + App.ViewInfo.DocumentItemID + ".tmp"; |
|
39 |
//public static string PathString = AppDomain.CurrentDomain.BaseDirectory + "Temp"; |
|
40 |
public static string PathString = Path.GetTempPath() + "\\MARKUS"; |
|
41 |
public static string FilePath = PathString + "\\" + App.ViewInfo.DocumentItemID + ".tmp"; |
|
41 | 42 |
|
42 |
internal void WriteTemp(List<MainMenu.TempDt> tempDtList) |
|
43 |
internal static void WriteTemp(List<MainMenu.TempDt> tempDtList)
|
|
43 | 44 |
{ |
44 | 45 |
if (tempDtList.Count > 0) |
45 | 46 |
{ |
... | ... | |
213 | 214 |
xmlDoc = null; |
214 | 215 |
} |
215 | 216 |
|
216 |
public void Remove() |
|
217 |
public static void Remove()
|
|
217 | 218 |
{ |
218 | 219 |
FileInfo fileDel = new FileInfo(FilePath); |
219 | 220 |
if (fileDel.Exists) |
... | ... | |
222 | 223 |
} |
223 | 224 |
} |
224 | 225 |
|
225 |
internal void DelTemp(string CommentID, string PageNumber) //Control 삭제시 |
|
226 |
internal static void DelTemp(string CommentID, string PageNumber) //Control 삭제시
|
|
226 | 227 |
{ |
227 | 228 |
if ((System.IO.File.Exists(FilePath)) == false) |
228 | 229 |
{ |
내보내기 Unified diff