markus / ConvertService / ServiceBase / Markus.Service.WcfService / IStationService.cs @ 1d79913e
이력 | 보기 | 이력해설 | 다운로드 (3.17 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}&ConvertID={ConvertID}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] |
21 |
string ConvertAdd(string ProjectNo,string ConvertID); |
22 |
|
23 |
[OperationContract] |
24 |
[WebGet(UriTemplate = "PassConvert?ProjectNo={ProjectNo}&ConvertID={ConvertID}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] |
25 |
string PassConvert(string ProjectNo, string ConvertID); |
26 |
|
27 |
// [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 |
bool ReleaseConvertItems(); |
46 |
|
47 |
[OperationContract] |
48 |
List<ConvertItem> WaitConvertList(); |
49 |
|
50 |
[OperationContract] |
51 |
List<ConvertItem> AliveConvertList(); |
52 |
} |
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 |
} |