markus / KCOM / Events / Load.cs @ 762737cd
이력 | 보기 | 이력해설 | 다운로드 (2.09 KB)
1 | 787a4489 | KangIngu | 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 | 86bff326 | taeseongkim | using System.Threading.Tasks; |
13 | 787a4489 | KangIngu | //강인구 추가 |
14 | namespace KCOM.Event |
||
15 | { |
||
16 | public class Load |
||
17 | { |
||
18 | |||
19 | a9a82876 | taeseongkim | |
20 | 787a4489 | KangIngu | public string document_id |
21 | { |
||
22 | get; |
||
23 | set; |
||
24 | } |
||
25 | public int Page_No |
||
26 | { |
||
27 | get; |
||
28 | set; |
||
29 | } |
||
30 | public string User_Id |
||
31 | { |
||
32 | get; |
||
33 | set; |
||
34 | } |
||
35 | public string DisplayColor |
||
36 | { |
||
37 | get; |
||
38 | set; |
||
39 | } |
||
40 | public string Markupinfoid |
||
41 | { |
||
42 | get; |
||
43 | set; |
||
44 | } |
||
45 | |||
46 | //마크업 불러오기 |
||
47 | 4f017ed3 | taeseongkim | public async Task<bool> Markup_LoadAsync(Canvas printCanvas,double pageAngle) |
48 | 787a4489 | KangIngu | { |
49 | e1c892f7 | taeseongkim | bool result = false; |
50 | |||
51 | 6c781c0c | djkim | List<string> markupdata = new List<string>(); |
52 | 0f065e57 | ljiyeon | |
53 | 664ea2e1 | taeseongkim | //Logger.sendReqLog("GetMarkupDataListperPage: ", App.ViewInfo.ProjectNO + "," + Markupinfoid + "," + Page_No, 1); |
54 | 86bff326 | taeseongkim | markupdata = await Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseTaskClient.GetMarkupDataListperPageAsync(App.ViewInfo.ProjectNO, Markupinfoid, Page_No); |
55 | 0f065e57 | ljiyeon | |
56 | 762737cd | taeseongkim | if (markupdata?.Count() > 0) |
57 | 0f065e57 | ljiyeon | { |
58 | 664ea2e1 | taeseongkim | //Logger.sendResLog("GetMarkupDataListperPage", "TRUE", 1); |
59 | 0f065e57 | ljiyeon | } |
60 | else |
||
61 | { |
||
62 | 664ea2e1 | taeseongkim | //Logger.sendResLog("GetMarkupDataListperPage", "FALSE", 1); |
63 | 0f065e57 | ljiyeon | } |
64 | |||
65 | 762737cd | taeseongkim | if (markupdata != null) |
66 | e1c892f7 | taeseongkim | { |
67 | 762737cd | taeseongkim | foreach (string data in markupdata) |
68 | e1c892f7 | taeseongkim | { |
69 | 762737cd | taeseongkim | result = await MarkupParser.ParseAsync(App.BaseAddress, App.ViewInfo.ProjectNO, data, printCanvas, pageAngle, DisplayColor, "", null, |
70 | STAMP_Contents: App.SystemInfo.STAMP_CONTENTS); |
||
71 | |||
72 | if (!result) |
||
73 | { |
||
74 | break; |
||
75 | } |
||
76 | e1c892f7 | taeseongkim | } |
77 | 787a4489 | KangIngu | } |
78 | e1c892f7 | taeseongkim | |
79 | return result; |
||
80 | 787a4489 | KangIngu | } |
81 | } |
||
82 | } |