markus / ConvertService / ServiceBase / Markus.Service.WcfService / IStationService.cs @ f2c3d74c
이력 | 보기 | 이력해설 | 다운로드 (2.92 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 |
// [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 ConvertProcessState(string ConvertID, int status, int CurrentPage, int TotalPage, string Error); |
31 |
|
32 |
[OperationContract] |
33 |
[WebGet(UriTemplate = "ConvertMenualAdd?ProjectNo={ProjectNo}&originfilePath={originfilePath}&DocumentID={DocumentID}", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] |
34 |
//[WebInvoke(Method = "POST", UriTemplate = "/ConvertMenualAdd/{ProjectNo}/{originfilePath}/{DocumentID}", BodyStyle = WebMessageBodyStyle.Wrapped, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)] |
35 |
string ConvertMenualAdd(string ProjectNo, string originfilePath, string DocumentID); |
36 |
|
37 |
[OperationContract] |
38 |
bool ConvertFinish(string ConvertID, int status, int TotalPage, int CurrentPage, string Error); |
39 |
|
40 |
[OperationContract] |
41 |
bool ReleaseConvertItems(); |
42 |
|
43 |
[OperationContract] |
44 |
List<ConvertItem> WaitConvertList(); |
45 |
|
46 |
[OperationContract] |
47 |
List<ConvertItem> AliveConvertList(); |
48 |
} |
49 |
|
50 |
[DataContract] |
51 |
public class Item |
52 |
{ |
53 |
[DataMember] |
54 |
public string DocumentID { get; set; } |
55 |
|
56 |
[DataMember] |
57 |
public string Status { get; set; } |
58 |
|
59 |
[DataMember] |
60 |
public string ProjectNo { get; set; } |
61 |
|
62 |
[DataMember] |
63 |
public string PdfPath { get; set; } |
64 |
|
65 |
[DataMember] |
66 |
public string ConvertPath { get; set; } |
67 |
|
68 |
[DataMember] |
69 |
public string ProjectNumber { get; set; } |
70 |
|
71 |
[DataMember] |
72 |
public int TotalPage { get; set; } |
73 |
|
74 |
[DataMember] |
75 |
public int CurrentPageNo { get; set; } |
76 |
|
77 |
[DataMember] |
78 |
public string Exception { get; set; } |
79 |
} |
80 |
} |