프로젝트

일반

사용자정보

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

markus / KCOM / Events / Load.cs @ 51c6ce90

이력 | 보기 | 이력해설 | 다운로드 (2.04 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 4f017ed3 taeseongkim
        public async Task<bool> Markup_LoadAsync(Canvas printCanvas,double pageAngle)
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 58dd9e89 humkyung
                result = await MarkupParser.ParseAsync(App.BaseAddress, App.ViewInfo.ProjectNO, data, printCanvas, pageAngle, DisplayColor, "",Common.ViewerDataModel.Instance.NewMarkupCancelToken(),
67
                    STAMP_Contents: App.SystemInfo.STAMP_CONTENTS);
68 e1c892f7 taeseongkim
69
                if(!result)
70
                {
71
                    break;
72
                }
73 787a4489 KangIngu
            }
74 e1c892f7 taeseongkim
75
            return result;
76 787a4489 KangIngu
        }
77
    }
78
}
클립보드 이미지 추가 (최대 크기: 500 MB)