프로젝트

일반

사용자정보

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

markus / KCOM / Events / Load.cs @ 664ea2e1

이력 | 보기 | 이력해설 | 다운로드 (1.93 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 e1c892f7 taeseongkim
        public async Task<bool> Markup_LoadAsync(Canvas printCanvas)
47 787a4489 KangIngu
        {
48 e1c892f7 taeseongkim
            bool result = false;
49
50 6c781c0c djkim
            List<string> markupdata = new List<string>();
51 0f065e57 ljiyeon
52 664ea2e1 taeseongkim
            //Logger.sendReqLog("GetMarkupDataListperPage: ", App.ViewInfo.ProjectNO + "," + Markupinfoid + "," + Page_No, 1);       
53 86bff326 taeseongkim
            markupdata = await Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseTaskClient.GetMarkupDataListperPageAsync(App.ViewInfo.ProjectNO, Markupinfoid, Page_No);
54 0f065e57 ljiyeon
55
            if (markupdata.Count() > 0)
56
            {
57 664ea2e1 taeseongkim
                //Logger.sendResLog("GetMarkupDataListperPage", "TRUE", 1);
58 0f065e57 ljiyeon
            }
59
            else
60
            {
61 664ea2e1 taeseongkim
                //Logger.sendResLog("GetMarkupDataListperPage", "FALSE", 1);
62 0f065e57 ljiyeon
            }
63
64 6c781c0c djkim
            foreach (string data in markupdata)
65 e1c892f7 taeseongkim
            {
66 24c5e56c taeseongkim
                result = await MarkupParser.ParseAsync(App.ViewInfo.ProjectNO, data, printCanvas, DisplayColor, "",Common.ViewerDataModel.Instance.CancellationToken());
67 e1c892f7 taeseongkim
68
                if(!result)
69
                {
70
                    break;
71
                }
72 787a4489 KangIngu
            }
73 e1c892f7 taeseongkim
74
            return result;
75 787a4489 KangIngu
        }
76
    }
77
}
클립보드 이미지 추가 (최대 크기: 500 MB)