markus / KCOM / Events / Load.cs @ df2e7646
이력 | 보기 | 이력해설 | 다운로드 (1.9 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 | //강인구 추가 |
||
13 | namespace KCOM.Event |
||
14 | { |
||
15 | public class Load |
||
16 | { |
||
17 | |||
18 | public string document_id |
||
19 | { |
||
20 | get; |
||
21 | set; |
||
22 | } |
||
23 | public int Page_No |
||
24 | { |
||
25 | get; |
||
26 | set; |
||
27 | } |
||
28 | public string User_Id |
||
29 | { |
||
30 | get; |
||
31 | set; |
||
32 | } |
||
33 | public string DisplayColor |
||
34 | { |
||
35 | get; |
||
36 | set; |
||
37 | } |
||
38 | public string Markupinfoid |
||
39 | { |
||
40 | get; |
||
41 | set; |
||
42 | } |
||
43 | |||
44 | //마크업 불러오기 |
||
45 | 0b75c341 | taeseongkim | public void Markup_Load(Canvas printCanvas,List<string> removeId) |
46 | 787a4489 | KangIngu | { |
47 | 0b75c341 | taeseongkim | if (removeId == null) |
48 | { |
||
49 | removeId = new List<string>(); |
||
50 | } |
||
51 | |||
52 | |||
53 | List<ServiceDeepView.MarkupKeyValue> markupdata = new List<ServiceDeepView.MarkupKeyValue>(); |
||
54 | 0f065e57 | ljiyeon | |
55 | Logger.sendReqLog("GetMarkupDataListperPage: ", App.ViewInfo.ProjectNO + "," + Markupinfoid + "," + Page_No, 1); |
||
56 | 0b75c341 | taeseongkim | markupdata = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetMarkupDataForPage(App.ViewInfo.ProjectNO, Markupinfoid, Page_No); |
57 | 0f065e57 | ljiyeon | |
58 | if (markupdata.Count() > 0) |
||
59 | { |
||
60 | Logger.sendResLog("GetMarkupDataListperPage", "TRUE", 1); |
||
61 | } |
||
62 | else |
||
63 | { |
||
64 | Logger.sendResLog("GetMarkupDataListperPage", "FALSE", 1); |
||
65 | } |
||
66 | |||
67 | 0b75c341 | taeseongkim | foreach (var data in markupdata) |
68 | { |
||
69 | if (!removeId.Contains(data.ID)) |
||
70 | { |
||
71 | MarkupParser.Parse(App.ViewInfo.ProjectNO, data.Data, printCanvas, DisplayColor, ""); |
||
72 | } |
||
73 | 787a4489 | KangIngu | } |
74 | } |
||
75 | } |
||
76 | } |