프로젝트

일반

사용자정보

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

markus / ConvertService / ServiceBase / Markus.Service.WcfService / IStationService.cs @ 30d84e1a

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

1 53c9637d taeseongkim
using Markus.Message;
2 a5e5fff6 taeseongkim
using Markus.Service.DataBase.Entities;
3 53c9637d taeseongkim
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 f2c3d74c taeseongkim
        [WebGet(UriTemplate = "ConvertAdd?ProjectNo={ProjectNo}&ConvertID={ConvertID}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
21 53c9637d taeseongkim
        string ConvertAdd(string ProjectNo,string ConvertID);
22
23 1d79913e taeseongkim
        [OperationContract]
24
        [WebGet(UriTemplate = "PassConvert?ProjectNo={ProjectNo}&ConvertID={ConvertID}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
25
        string PassConvert(string ProjectNo, string ConvertID);
26
27 53c9637d taeseongkim
        // [WebGet(UriTemplate = "GetConvertItem?ProjectNo={ProjectNo}&DocumentID={DocumentID}", ResponseFormat = WebMessageFormat.Json)]
28
        //[WebGet( RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json,  UriTemplate = "GetConvertItem?ProjectNo={ProjectNo}&DocumentID={DocumentID}")]
29
        [WebInvoke(Method  ="POST", UriTemplate = "GetConvertItem", RequestFormat = WebMessageFormat.Json,ResponseFormat = WebMessageFormat.Json)]
30
        [OperationContract]
31
        Item GetConvertItem(string ProjectNo, string DocumentID);
32
33
        [OperationContract]
34
        bool ConvertProcessState(string ConvertID, int status, int CurrentPage, int TotalPage, string Error);
35
36
        [OperationContract]
37
        [WebGet(UriTemplate = "ConvertMenualAdd?ProjectNo={ProjectNo}&originfilePath={originfilePath}&DocumentID={DocumentID}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
38
        //[WebInvoke(Method = "POST", UriTemplate = "/ConvertMenualAdd/{ProjectNo}/{originfilePath}/{DocumentID}", BodyStyle = WebMessageBodyStyle.Wrapped, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
39
        string ConvertMenualAdd(string ProjectNo, string originfilePath, string DocumentID);
40
41
        [OperationContract]
42
        bool ConvertFinish(string ConvertID, int status, int TotalPage, int CurrentPage, string Error);
43
44
        [OperationContract]
45 06f13e11 taeseongkim
        bool ReleaseConvertItems();
46
47
        [OperationContract]
48 0a64fa85 taeseongkim
        List<ConvertDoc> WaitConvertList();
49 53c9637d taeseongkim
50
        [OperationContract]
51 0a64fa85 taeseongkim
        List<ConvertDoc> AliveConvertList();
52 53c9637d taeseongkim
    }
53
54
    [DataContract]
55
    public class Item
56
    {
57
        [DataMember]
58
        public string DocumentID { get; set; }
59
60
        [DataMember]
61
        public string Status { get; set; }
62
63
        [DataMember]
64
        public string ProjectNo { get; set; }
65
66
        [DataMember]
67
        public string PdfPath { get; set; }
68
69
        [DataMember]
70
        public string ConvertPath { get; set; }
71
72
        [DataMember]
73
        public string ProjectNumber { get; set; }
74
75
        [DataMember]
76
        public int TotalPage { get; set; }
77
78
        [DataMember]
79
        public int CurrentPageNo { get; set; }
80
81
        [DataMember]
82
        public string Exception { get; set; }
83
    }
84 a5e5fff6 taeseongkim
}
클립보드 이미지 추가 (최대 크기: 500 MB)