프로젝트

일반

사용자정보

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

markus / PemssApiTest / MainWindow.xaml.cs @ 0b75c341

이력 | 보기 | 이력해설 | 다운로드 (2.83 KB)

1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Threading.Tasks;
6
using System.Windows;
7
using System.Windows.Controls;
8
using System.Windows.Data;
9
using System.Windows.Documents;
10
using System.Windows.Input;
11
using System.Windows.Media;
12
using System.Windows.Media.Imaging;
13
using System.Windows.Navigation;
14
using System.Windows.Shapes;
15

    
16
namespace PemssApiTest
17
{
18
    /// <summary>
19
    /// MainWindow.xaml에 대한 상호 작용 논리
20
    /// </summary>
21
    public partial class MainWindow : Window
22
    {
23
        public MainWindow()
24
        {
25
            InitializeComponent();
26
        }
27

    
28
        private void requirementCall_Click(object sender, RoutedEventArgs e)
29
        {
30
            //http://pemss.i-on.net/rest/ext/list/requirement?pId=P00000000001&dId=D0000000008B
31

    
32
            KCOM_API.PemssApi api = new KCOM_API.PemssApi("http://pemss.i-on.net");
33
            var items = api.GetRequirementItems("P00000000001", "D0000000008B");
34

    
35
            foreach (var item in items)
36
            {
37
                System.Diagnostics.Debug.WriteLine(item.mdText);
38
            }
39
        }
40

    
41
        private void DocumentInfoCall_Click(object sender, RoutedEventArgs e)
42
        {
43
            KCOM_API.PemssApi api = new KCOM_API.PemssApi("http://pemss.i-on.net");
44
            var items = api.GetDocumentInfo("111111", "116");
45

    
46
            System.Diagnostics.Debug.WriteLine(items.slipNo);
47
        }
48

    
49
        private void GetSymbolList_Click(object sender, RoutedEventArgs e)
50
        {
51
            ServiceDeepView.ServiceDeepViewClient client = new ServiceDeepView.ServiceDeepViewClient();
52
            var result = client.GetSymbolList("admin");
53

    
54
            if(result != null)
55
            {
56

    
57
            }
58
        }
59

    
60
        private void GetCompareRectCall_Click(object sender, RoutedEventArgs e)
61
        {
62
            ServiceDeepView.ServiceDeepViewClient client = new ServiceDeepView.ServiceDeepViewClient();
63
            var result = client.GetCompareRect("111111", "116", "116", "1", "1", "true");
64

    
65
            if (result != null)
66
            {
67

    
68
            }
69
        }
70

    
71
        private void CommentAddCall_Click(object sender, RoutedEventArgs e)
72
        {
73
            KCOM_API.PemssApi api = new KCOM_API.PemssApi("http://pemss.i-on.net");
74
            //var items = api.SetRequirementComment("P00000000001", "D0000000008B");
75

    
76
            //foreach (var item in items)
77
            //{
78
            //    System.Diagnostics.Debug.WriteLine(item.mdText);
79
            //}
80
        }
81

    
82
        private void GetMarkupDataForPageCall_Click(object sender, RoutedEventArgs e)
83
        {
84
            ServiceDeepView.ServiceDeepViewClient client = new ServiceDeepView.ServiceDeepViewClient();
85
            var result = client.GetMarkupDataForPage("111111", "AuUZwSlog68d714c36d38b0ca", 1);
86

    
87
            if (result != null)
88
            {
89

    
90
            }
91
        }
92
    }
93
}
클립보드 이미지 추가 (최대 크기: 500 MB)