개정판 dcff9cd4
issue #000: DB 직접 엑세스로 수정.
Change-Id: I12987207e0f56f5b405fd738dc2a416d2a731419
FinalService/KCOM_FinalService/ConsoleApp1/Program.cs | ||
---|---|---|
48 | 48 |
Console.WriteLine("Test Process..."); |
49 | 49 |
Console.WriteLine("Insert Final PDF id :"); |
50 | 50 |
string inputstr = Console.ReadLine(); |
51 |
using (DataController dc = new DataController())
|
|
51 |
using (KCOMEntities _entity = new KCOMEntities(KCOMDataModel.Common.ConnectStringBuilder.KCOMConnectionString().ToString()))
|
|
52 | 52 |
{ |
53 |
var finals = dc.GetFinalpdfs(inputstr); |
|
54 |
if(finals.Count > 0) |
|
53 |
//FINAL_PDF item = _entity.FINAL_PDF.Where(d => d.ID == "ngKwBgMotw8d56dea3839120d").FirstOrDefault(); |
|
54 |
FINAL_PDF item = _entity.FINAL_PDF.Where(d => d.ID == inputstr).FirstOrDefault(); |
|
55 |
if (item != null) |
|
55 | 56 |
{ |
56 | 57 |
Console.WriteLine("final pdf start"); |
57 | 58 |
MarkupToPDF.MarkupToPDF pdf = new MarkupToPDF.MarkupToPDF(); |
58 | 59 |
pdf.EndFinal += Pdf_EndFinal; |
59 |
pdf.FinalMakeError += Pdf_FinalMakeError; |
|
60 |
pdf.MakeFinalPDF(finals[0]); |
|
60 |
pdf.FinalMakeError += Pdf_FinalMakeError; |
|
61 |
//pdf.MakeFinalPDF(_entity.FINAL_PDF.FirstOrDefault()); |
|
62 |
pdf.MakeFinalPDF(item); |
|
63 |
//_Thread.Add(item); |
|
61 | 64 |
} |
62 | 65 |
else |
63 | 66 |
{ |
64 | 67 |
Console.WriteLine("item is null"); |
65 | 68 |
} |
66 |
} |
|
69 |
|
|
70 |
} |
|
67 | 71 |
|
68 | 72 |
} |
69 | 73 |
catch (Exception ex) |
내보내기 Unified diff