markus / KCOM / Events / Load.cs @ 86bff326
이력 | 보기 | 이력해설 | 다운로드 (1.72 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 Markup_LoadAsync(Canvas printCanvas) |
47 |
{ |
48 |
List<string> markupdata = new List<string>(); |
49 |
|
50 |
Logger.sendReqLog("GetMarkupDataListperPage: ", App.ViewInfo.ProjectNO + "," + Markupinfoid + "," + Page_No, 1); |
51 |
markupdata = await Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseTaskClient.GetMarkupDataListperPageAsync(App.ViewInfo.ProjectNO, Markupinfoid, Page_No); |
52 |
|
53 |
if (markupdata.Count() > 0) |
54 |
{ |
55 |
Logger.sendResLog("GetMarkupDataListperPage", "TRUE", 1); |
56 |
} |
57 |
else |
58 |
{ |
59 |
Logger.sendResLog("GetMarkupDataListperPage", "FALSE", 1); |
60 |
} |
61 |
|
62 |
foreach (string data in markupdata) |
63 |
{ |
64 |
await MarkupParser.ParseAsync(App.ViewInfo.ProjectNO, data, printCanvas, DisplayColor, ""); |
65 |
} |
66 |
} |
67 |
} |
68 |
} |