프로젝트

일반

사용자정보

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

markus / KCOM / Events / Load.cs @ a9a82876

이력 | 보기 | 이력해설 | 다운로드 (1.99 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

    
20
        public string document_id
21
        {
22
            get;
23
            set;
24
        }
25
        public int Page_No
26
        {
27
            get;
28
            set;
29
        }
30
        public string User_Id
31
        {
32
            get;
33
            set;
34
        }
35
        public string DisplayColor
36
        {
37
            get;
38
            set;
39
        }
40
        public string Markupinfoid
41
        {
42
            get;
43
            set;
44
        }
45

    
46
        //마크업 불러오기
47
        public async Task<bool> Markup_LoadAsync(Canvas printCanvas,double pageAngle)
48
        {
49
            bool result = false;
50

    
51
            List<string> markupdata = new List<string>();
52

    
53
            //Logger.sendReqLog("GetMarkupDataListperPage: ", App.ViewInfo.ProjectNO + "," + Markupinfoid + "," + Page_No, 1);       
54
            markupdata = await Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseTaskClient.GetMarkupDataListperPageAsync(App.ViewInfo.ProjectNO, Markupinfoid, Page_No);
55

    
56
            if (markupdata.Count() > 0)
57
            {
58
                //Logger.sendResLog("GetMarkupDataListperPage", "TRUE", 1);
59
            }
60
            else
61
            {
62
                //Logger.sendResLog("GetMarkupDataListperPage", "FALSE", 1);
63
            }
64

    
65
            foreach (string data in markupdata)
66
            {
67
                result = await MarkupParser.ParseAsync(App.BaseAddress, App.ViewInfo.ProjectNO, data, printCanvas, pageAngle, DisplayColor, "",null,
68
                    STAMP_Contents: App.SystemInfo.STAMP_CONTENTS);
69

    
70
                if(!result)
71
                {
72
                    break;
73
                }
74
            }
75

    
76
            return result;
77
        }
78
    }
79
}
클립보드 이미지 추가 (최대 크기: 500 MB)