프로젝트

일반

사용자정보

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

markus / ConvertService / ServiceBase / Markus.Service.WcfService / IStationService.cs @ 06f13e11

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

1
using Markus.Message;
2
using Markus.Service.Interface;
3
using System;
4
using System.Collections.Generic;
5
using System.Linq;
6
using System.Runtime.Serialization;
7
using System.ServiceModel;
8
using System.ServiceModel.Activation;
9
using System.ServiceModel.Web;
10
using System.Text;
11
using System.Web.Script.Services;
12
using System.Web.Services;
13

    
14
namespace Markus.Service.IWcfService
15
{
16
    [ServiceContract]
17
    public interface IStationService
18
    {
19
        [OperationContract]
20
        [WebGet(UriTemplate = "ConvertAdd?ProjectNo={ProjectNo}&DocumentID={ConvertID}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
21
        string ConvertAdd(string ProjectNo,string ConvertID);
22

    
23
        // [WebGet(UriTemplate = "GetConvertItem?ProjectNo={ProjectNo}&DocumentID={DocumentID}", ResponseFormat = WebMessageFormat.Json)]
24
        //[WebGet( RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json,  UriTemplate = "GetConvertItem?ProjectNo={ProjectNo}&DocumentID={DocumentID}")]
25
        [WebInvoke(Method  ="POST", UriTemplate = "GetConvertItem", RequestFormat = WebMessageFormat.Json,ResponseFormat = WebMessageFormat.Json)]
26
        [OperationContract]
27
        Item GetConvertItem(string ProjectNo, string DocumentID);
28

    
29
        [OperationContract]
30
        bool SettingMultiProcess(int Value);
31

    
32
        [OperationContract]
33
        bool ConvertProcessState(string ConvertID, int status, int CurrentPage, int TotalPage, string Error);
34

    
35
        [OperationContract]
36
        [WebGet(UriTemplate = "ConvertMenualAdd?ProjectNo={ProjectNo}&originfilePath={originfilePath}&DocumentID={DocumentID}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
37
        //[WebInvoke(Method = "POST", UriTemplate = "/ConvertMenualAdd/{ProjectNo}/{originfilePath}/{DocumentID}", BodyStyle = WebMessageBodyStyle.Wrapped, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
38
        string ConvertMenualAdd(string ProjectNo, string originfilePath, string DocumentID);
39

    
40
        [OperationContract]
41
        bool ConvertFinish(string ConvertID, int status, int TotalPage, int CurrentPage, string Error);
42

    
43
        [OperationContract]
44
        bool ReleaseConvertItems();
45

    
46
        [OperationContract]
47
        List<ConvertItem> WaitConvertList();
48

    
49
        [OperationContract]
50
        List<ConvertItem> AliveConvertList();
51
    }
52

    
53
    [DataContract]
54
    public class Item
55
    {
56
        [DataMember]
57
        public string DocumentID { get; set; }
58

    
59
        [DataMember]
60
        public string Status { get; set; }
61

    
62
        [DataMember]
63
        public string ProjectNo { get; set; }
64

    
65
        [DataMember]
66
        public string PdfPath { get; set; }
67

    
68
        [DataMember]
69
        public string ConvertPath { get; set; }
70

    
71
        [DataMember]
72
        public string ProjectNumber { get; set; }
73

    
74
        [DataMember]
75
        public int TotalPage { get; set; }
76

    
77
        [DataMember]
78
        public int CurrentPageNo { get; set; }
79

    
80
        [DataMember]
81
        public string Exception { get; set; }
82
    }
83
    }
클립보드 이미지 추가 (최대 크기: 500 MB)