개정판 731c84b8
issue #00000 postgresql 테스트 추가
Change-Id: I554bf424488db8d89aa865f3b0bb3eb997427cd1
ConvertService/ServiceBase/Markus.Service.Station/StationService/ServiceStationWCF.cs | ||
---|---|---|
63 | 63 |
|
64 | 64 |
try |
65 | 65 |
{ |
66 |
using (ConvertDocRepository database = new ConvertDocRepository(MarkusDBConnectionString)) |
|
66 |
using (ConvertDocRepository database = new ConvertDocRepository(MarkusDBConnectionString,DBMSType))
|
|
67 | 67 |
{ |
68 | 68 |
var convertItem = database.GetConvertDocSingleAsync(ProjectNo:ProjectNo,ConvertID:ConvertDocID).GetAwaiter().GetResult(); |
69 | 69 |
|
... | ... | |
105 | 105 |
|
106 | 106 |
try |
107 | 107 |
{ |
108 |
using (ConvertDocRepository database = new ConvertDocRepository(MarkusDBConnectionString)) |
|
108 |
using (ConvertDocRepository database = new ConvertDocRepository(MarkusDBConnectionString,DBMSType))
|
|
109 | 109 |
{ |
110 | 110 |
//var convertItem = database.GetConvertDocSingleAsync(ProjectNo: ProjectNo, DocumentID: DocumentID).GetAwaiter().GetResult(); |
111 | 111 |
|
... | ... | |
156 | 156 |
|
157 | 157 |
try |
158 | 158 |
{ |
159 |
using (ConvertDocRepository database = new ConvertDocRepository(MarkusDBConnectionString)) |
|
159 |
using (ConvertDocRepository database = new ConvertDocRepository(MarkusDBConnectionString,DBMSType))
|
|
160 | 160 |
{ |
161 | 161 |
|
162 | 162 |
var convertItem = database.GetConvertDocSingleAsync(ProjectNo: ProjectNo, DocumentID: DocumentID).GetAwaiter().GetResult(); |
... | ... | |
165 | 165 |
{ |
166 | 166 |
string baseStoragePath = null; |
167 | 167 |
|
168 |
using(PROPERTIESRepository repository = new PROPERTIESRepository(MarkusDBConnectionString)) |
|
168 |
using(PROPERTIESRepository repository = new PROPERTIESRepository(MarkusDBConnectionString,DBMSType))
|
|
169 | 169 |
{ |
170 | 170 |
var propeties = repository.GetFirstAsync(ProjectNo, PropertiesTypeDefine.TILE_SOURCE_STORAGE).GetAwaiter().GetResult(); |
171 | 171 |
|
... | ... | |
215 | 215 |
string result = false.ToString(); |
216 | 216 |
logger.Warn($"WCF ConvertProcessAdd Call ProjectNo:{ProjectNo} convertID:{convertID} "); |
217 | 217 |
|
218 |
using (ConvertDocRepository database = new ConvertDocRepository(MarkusDBConnectionString)) |
|
218 |
using (ConvertDocRepository database = new ConvertDocRepository(MarkusDBConnectionString,DBMSType))
|
|
219 | 219 |
{ |
220 | 220 |
var convertItem = database.GetConvertDocSingleAsync(ProjectNo:ProjectNo,ConvertID:convertID).GetAwaiter().GetResult(); |
221 | 221 |
|
... | ... | |
305 | 305 |
|
306 | 306 |
if (isStatusChange || CurrentPage % SaveStatusInterval == 0 || !Error.IsNullOrEmpty()) |
307 | 307 |
{ |
308 |
using (ConvertDocRepository database = new ConvertDocRepository(MarkusDBConnectionString)) |
|
308 |
using (ConvertDocRepository database = new ConvertDocRepository(MarkusDBConnectionString,DBMSType))
|
|
309 | 309 |
{ |
310 | 310 |
var result = database.UpdateStatusAsync(this.ServiceID, ConvertDocID, status, CurrentPage, TotalPage, Error).GetAwaiter().GetResult(); |
311 | 311 |
|
... | ... | |
330 | 330 |
/// <returns></returns> |
331 | 331 |
public bool ConvertFinish(string ConvertDocID, int status, int CurrentPage, int TotalPage, string Error) |
332 | 332 |
{ |
333 |
using (ConvertDocRepository database = new ConvertDocRepository(MarkusDBConnectionString)) |
|
333 |
using (ConvertDocRepository database = new ConvertDocRepository(MarkusDBConnectionString,DBMSType))
|
|
334 | 334 |
{ |
335 | 335 |
var result = database.UpdateStatusAsync(this.ServiceID, ConvertDocID, status, CurrentPage, TotalPage, Error).GetAwaiter().GetResult(); |
336 | 336 |
|
... | ... | |
358 | 358 |
{ |
359 | 359 |
List<ConvertDoc> result = new List<ConvertDoc>(); |
360 | 360 |
|
361 |
using (ConvertDocRepository database = new ConvertDocRepository(MarkusDBConnectionString)) |
|
361 |
using (ConvertDocRepository database = new ConvertDocRepository(MarkusDBConnectionString,DBMSType))
|
|
362 | 362 |
{ |
363 | 363 |
result = database.GetConvertDocAsync((int)Message.StatusCodeType.Wait).GetAwaiter().GetResult().ToList(); |
364 | 364 |
} |
내보내기 Unified diff