개정판 731c84b8
issue #00000 postgresql 테스트 추가
Change-Id: I554bf424488db8d89aa865f3b0bb3eb997427cd1
ConvertService/ServiceBase/Markus.Service.Convert/ConvertService.cs | ||
---|---|---|
15 | 15 |
using System.Web; |
16 | 16 |
using StatusCodeType = Markus.Message.StatusCodeType; |
17 | 17 |
using Microsoft.SqlServer.Server; |
18 |
using System.Web.UI; |
|
19 | 18 |
using Markus.Service.DataBase.Entities; |
20 | 19 |
using Markus.Service.DataBase.Repositories; |
21 | 20 |
|
... | ... | |
27 | 26 |
protected ILog logger; |
28 | 27 |
|
29 | 28 |
readonly ProcessContext ConvertProcessContext; |
29 |
Markus.Service.DataBase.DBMSType DbmsType; |
|
30 | 30 |
private Markus.SaveTask gSaveTask; |
31 | 31 |
private Markus.MarkusPDF gMarkusPDF; |
32 | 32 |
private string gFontsFolder; |
... | ... | |
47 | 47 |
logger = LogManager.GetLogger(typeof(ConvertService)); |
48 | 48 |
|
49 | 49 |
ConvertProcessContext = convertContext; |
50 |
|
|
50 |
|
|
51 |
DbmsType = (Markus.Service.DataBase.DBMSType)Enum.Parse(typeof(Markus.Service.DataBase.DBMSType), ConvertProcessContext.DbmsType); |
|
52 |
|
|
51 | 53 |
BasicHttpBinding myBinding = new BasicHttpBinding { TransferMode = TransferMode.Buffered }; |
52 | 54 |
|
53 | 55 |
myBinding.CloseTimeout = new TimeSpan(0, 10, 0); |
... | ... | |
371 | 373 |
{ |
372 | 374 |
string docinfoID = null; |
373 | 375 |
|
374 |
using (DOCINFORepository dOCINFORepository = new DOCINFORepository(ConvertProcessContext.ConnectionString)) |
|
376 |
using (DOCINFORepository dOCINFORepository = new DOCINFORepository(ConvertProcessContext.ConnectionString,DbmsType))
|
|
375 | 377 |
{ |
376 | 378 |
docinfoID = dOCINFORepository.CreateAsync(convertDocID: saveitem.Id, PageCount: result.PageInfoList.Count()).GetAwaiter().GetResult(); |
377 | 379 |
} |
378 | 380 |
|
379 | 381 |
if (docinfoID != null) |
380 | 382 |
{ |
381 |
using (DOCPAGERepository database = new DOCPAGERepository(ConvertProcessContext.ConnectionString)) |
|
383 |
using (DOCPAGERepository database = new DOCPAGERepository(ConvertProcessContext.ConnectionString, DbmsType))
|
|
382 | 384 |
{ |
383 | 385 |
var docPageList = result.PageInfoList.Select(f => new DOCPAGE |
384 | 386 |
{ |
내보내기 Unified diff