markus / KCOM / Events / Load.cs @ 58dd9e89
이력 | 보기 | 이력해설 | 다운로드 (2.04 KB)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.IO; |
4 |
using System.Linq; |
5 |
using System.Text; |
6 |
//using MarkupToPDF.Service; |
7 |
using IKCOM; |
8 |
using KCOMDataModel.DataModel; |
9 |
using KCOMDataModel.Common; |
10 |
using System.Windows.Controls; |
11 |
using MarkupToPDF.Controls.Parsing; |
12 |
using System.Threading.Tasks; |
13 |
//강인구 추가 |
14 |
namespace KCOM.Event |
15 |
{ |
16 |
public class Load |
17 |
{ |
18 |
|
19 |
public string document_id |
20 |
{ |
21 |
get; |
22 |
set; |
23 |
} |
24 |
public int Page_No |
25 |
{ |
26 |
get; |
27 |
set; |
28 |
} |
29 |
public string User_Id |
30 |
{ |
31 |
get; |
32 |
set; |
33 |
} |
34 |
public string DisplayColor |
35 |
{ |
36 |
get; |
37 |
set; |
38 |
} |
39 |
public string Markupinfoid |
40 |
{ |
41 |
get; |
42 |
set; |
43 |
} |
44 |
|
45 |
//마크업 불러오기 |
46 |
public async Task<bool> Markup_LoadAsync(Canvas printCanvas,double pageAngle) |
47 |
{ |
48 |
bool result = false; |
49 |
|
50 |
List<string> markupdata = new List<string>(); |
51 |
|
52 |
//Logger.sendReqLog("GetMarkupDataListperPage: ", App.ViewInfo.ProjectNO + "," + Markupinfoid + "," + Page_No, 1); |
53 |
markupdata = await Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseTaskClient.GetMarkupDataListperPageAsync(App.ViewInfo.ProjectNO, Markupinfoid, Page_No); |
54 |
|
55 |
if (markupdata.Count() > 0) |
56 |
{ |
57 |
//Logger.sendResLog("GetMarkupDataListperPage", "TRUE", 1); |
58 |
} |
59 |
else |
60 |
{ |
61 |
//Logger.sendResLog("GetMarkupDataListperPage", "FALSE", 1); |
62 |
} |
63 |
|
64 |
foreach (string data in markupdata) |
65 |
{ |
66 |
result = await MarkupParser.ParseAsync(App.BaseAddress, App.ViewInfo.ProjectNO, data, printCanvas, pageAngle, DisplayColor, "",Common.ViewerDataModel.Instance.NewMarkupCancelToken(), |
67 |
STAMP_Contents: App.SystemInfo.STAMP_CONTENTS); |
68 |
|
69 |
if(!result) |
70 |
{ |
71 |
break; |
72 |
} |
73 |
} |
74 |
|
75 |
return result; |
76 |
} |
77 |
} |
78 |
} |