개정판 7459b663
issue #00000 markus image create 수정
Change-Id: Iadf0c79ef51726a1645f4343a4174c29c80095ce
ID2.Manager/MarkusImageCreate/Program.cs | ||
---|---|---|
197 | 197 |
|
198 | 198 |
foreach (var item in convertItems) |
199 | 199 |
{ |
200 |
string dwgFile = null; |
|
201 |
|
|
200 | 202 |
try |
201 | 203 |
{ |
202 | 204 |
var orgFile = Path.Combine(sourcePath, item.DOCUMENT_ID + ".dwg"); |
203 |
var dwgFile = Path.Combine(targetPath, item.DOCUMENT_ID + ".dwg");
|
|
205 |
dwgFile = System.IO.Path.GetTempFileName().Replace(".tmp",".dwg");
|
|
204 | 206 |
|
205 | 207 |
|
206 | 208 |
File.Copy(orgFile, dwgFile,true); |
... | ... | |
257 | 259 |
Console.WriteLine($"Error. {item.DOCUMENT_ID} {ex.ToString()}"); |
258 | 260 |
rep.UpdateStatusAsync(item.SERVICE_ID, item.ID,50, 1, 1, ex.ToString()); |
259 | 261 |
} |
262 |
finally |
|
263 |
{ |
|
264 |
if(dwgFile != null) |
|
265 |
{ |
|
266 |
if(File.Exists(dwgFile)) |
|
267 |
{ |
|
268 |
File.Delete(dwgFile); |
|
269 |
} |
|
270 |
} |
|
271 |
} |
|
260 | 272 |
} |
261 | 273 |
} |
262 | 274 |
} |
내보내기 Unified diff