프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / KCOM / Events / Load.cs @ 86bff326

이력 | 보기 | 이력해설 | 다운로드 (1.72 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
        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 86bff326 taeseongkim
        public async Task Markup_LoadAsync(Canvas printCanvas)
47 787a4489 KangIngu
        {
48 6c781c0c djkim
            List<string> markupdata = new List<string>();
49 0f065e57 ljiyeon
50
            Logger.sendReqLog("GetMarkupDataListperPage: ", App.ViewInfo.ProjectNO + "," + Markupinfoid + "," + Page_No, 1);       
51 86bff326 taeseongkim
            markupdata = await Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseTaskClient.GetMarkupDataListperPageAsync(App.ViewInfo.ProjectNO, Markupinfoid, Page_No);
52 0f065e57 ljiyeon
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 6c781c0c djkim
            foreach (string data in markupdata)
63
            {                
64 ac4f1e13 taeseongkim
                await MarkupParser.ParseAsync(App.ViewInfo.ProjectNO, data, printCanvas, DisplayColor, "");
65 787a4489 KangIngu
            }
66
        }
67
    }
68
}
클립보드 이미지 추가 (최대 크기: 500 MB)