개정판 f7a2b3e1
issue #1187: fixed FileSave project
Change-Id: I0a384761408535168154dca37fc67ad0181e57e7
FileSave/FileUploadWevService/FileUpload.asmx.cs | ||
---|---|---|
25 | 25 |
{ |
26 | 26 |
KCOMDataModel.DataModel.KCOMEntities entity = new KCOMDataModel.DataModel.KCOMEntities(KCOMDataModel.Common.ConnectStringBuilder.KCOMConnectionString().ToString()); |
27 | 27 |
|
28 |
/// 사용자가 Comment한 이미지 URL를 생성한다. |
|
29 |
|
|
28 | 30 |
var item = entity.PROPERTIES.Where(data => data.TYPE == "SystemInfo" && data.PROPERTY == "Url").FirstOrDefault(); |
29 | 31 |
string result = ""; |
30 | 32 |
if (item!=null) |
... | ... | |
33 | 35 |
} |
34 | 36 |
else |
35 | 37 |
{ |
36 |
result = string.Format("http://165.244.178.145:5977/UserData/{0}/{1}/{2}", ProjectNo, UserID, FileName);
|
|
38 |
throw new Exception("SystemInfo 정보가 없습니다.");
|
|
37 | 39 |
} |
38 | 40 |
|
39 | 41 |
try |
40 | 42 |
{ |
41 |
string DirectoryPath = string.Format(@"D:\TileSource\UserData\{0}\{1}", ProjectNo, UserID); |
|
43 |
var TileSourceProperty = entity.PROPERTIES.Where(data => data.TYPE == "TileSorceStorage" && data.PROPERTY == ProjectNo).FirstOrDefault(); |
|
44 |
if(TileSourceProperty == null) |
|
45 |
{ |
|
46 |
throw new Exception("TileSourceStorage 정보가 없습니다."); |
|
47 |
} |
|
48 |
/// 실제 이미지를 저장할 위치 |
|
49 |
string DirectoryPath = string.Format(Path.Combine(TileSourceProperty.VALUE , "UserData", ProjectNo, UserID)); |
|
42 | 50 |
DirectoryInfo directoryInfo_ = new DirectoryInfo(DirectoryPath); |
43 | 51 |
|
44 | 52 |
if (!directoryInfo_.Exists) |
내보내기 Unified diff