개정판 5ba8f2d5
issue #0000 상단 Text Option 변경시 finalPDF에서 적용 안 되는 묹제 수정
Change-Id: I953cbd54dda6c80c893168df8ef36eb03f770f5f
FinalService/KCOM_FinalService/FinalProcess/Program.cs | ||
---|---|---|
13 | 13 |
{ |
14 | 14 |
class Program |
15 | 15 |
{ |
16 |
public static bool IsEndFinal = false; |
|
16 | 17 |
protected static ILog logger; |
17 | 18 |
public static FINAL_PDF finalPdf = null; |
18 | 19 |
public static string RemoteAddress = null; |
... | ... | |
33 | 34 |
MarkupToPDF.MarkupToPDF _markuptoPDF = new MarkupToPDF.MarkupToPDF(); |
34 | 35 |
_markuptoPDF.FinalMakeError += new EventHandler<MarkupToPDF.MakeFinalErrorArgs>(_markuptoPDF_FinalMakeError); |
35 | 36 |
_markuptoPDF.StatusChanged += new EventHandler<MarkupToPDF.StatusChangedEventArgs>(_markuptoPDF_StatusChange); |
36 |
|
|
37 |
_markuptoPDF.EndFinal += _markuptoPDF_EndFinal; |
|
37 | 38 |
using (KCOMDataModel.DataModel.KCOMEntities _entity = new KCOMDataModel.DataModel.KCOMEntities(KCOMDataModel.Common.ConnectStringBuilder.KCOMConnectionString().ToString())) |
38 | 39 |
{ |
39 | 40 |
var items = _entity.FINAL_PDF.Where(x => x.ID == finalID); |
... | ... | |
46 | 47 |
|
47 | 48 |
if (finalPdf != null) |
48 | 49 |
{ |
49 |
var result = _markuptoPDF.MakeFinalPDF(finalPdf);
|
|
50 |
_markuptoPDF.MakeFinalPDF(finalPdf); |
|
50 | 51 |
|
51 |
using (KCOMDataModel.DataModel.KCOMEntities _entity = new KCOMDataModel.DataModel.KCOMEntities(KCOMDataModel.Common.ConnectStringBuilder.KCOMConnectionString().ToString())) |
|
52 |
{ |
|
53 |
var items = _entity.FINAL_PDF.Where(x => x.ID == finalID); |
|
54 |
|
|
55 |
if (items.Count() > 0) |
|
56 |
{ |
|
57 |
if (result.Error == null) |
|
58 |
{ |
|
59 |
items.First().STATUS = 4; |
|
60 |
items.First().END_DATETIME = DateTime.Now; |
|
61 |
} |
|
62 |
} |
|
63 |
} |
|
64 | 52 |
} |
65 | 53 |
} |
66 | 54 |
} |
... | ... | |
78 | 66 |
} |
79 | 67 |
} |
80 | 68 |
|
69 |
private static void _markuptoPDF_EndFinal(object sender, EndFinalEventArgs e) |
|
70 |
{ |
|
71 |
using (KCOMDataModel.DataModel.KCOMEntities _entity = new KCOMDataModel.DataModel.KCOMEntities(KCOMDataModel.Common.ConnectStringBuilder.KCOMConnectionString().ToString())) |
|
72 |
{ |
|
73 |
var items = _entity.FINAL_PDF.Where(x => x.ID == e.FinalPDF.ID); |
|
74 |
|
|
75 |
if (items.Count() > 0) |
|
76 |
{ |
|
77 |
if (e.Error == null) |
|
78 |
{ |
|
79 |
items.First().STATUS = 4; |
|
80 |
items.First().END_DATETIME = DateTime.Now; |
|
81 |
} |
|
82 |
} |
|
83 |
} |
|
84 |
|
|
85 |
IsEndFinal = true; |
|
86 |
} |
|
87 |
|
|
81 | 88 |
public static void StatusChange(FinalStatus status,string ex) |
82 | 89 |
{ |
83 | 90 |
using (KCOMDataModel.DataModel.KCOMEntities _entity = new KCOMDataModel.DataModel.KCOMEntities(KCOMDataModel.Common.ConnectStringBuilder.KCOMConnectionString().ToString())) |
내보내기 Unified diff