프로젝트

일반

사용자정보

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

markus / KCOM_API / MarkusService.svc.cs @ c517099d

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

1 c517099d taeseongkim
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Runtime.Serialization;
5
using System.ServiceModel;
6
using System.ServiceModel.Activation;
7
using System.ServiceModel.Web;
8
using System.Text;
9
10
namespace KCOM_API
11
{
12
    [ServiceContract(Namespace = "")]
13
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
14
    public class MarkusService : System.Web.Services.WebService
15
    {
16
        [WebInvoke(Method = "POST", UriTemplate = "GetAdjustList", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
17
        [OperationContract]
18
        public Item GetAdjustList(string projectNo, string DocumentId)
19
        {
20
            return GetTestData();
21
        }
22
23
        [WebInvoke(Method = "POST", UriTemplate = "GetAdjustCommantList", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
24
        [OperationContract]
25
        public Item GetAdjustCommantList(string projectNo, string DocumentId)
26
        {
27
            return GetTestData();
28
        }
29
30
        //[WebInvoke(Method = "POST", UriTemplate = "GetAdjustCommantList", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
31
        //[OperationContract]
32
        //public Item GetAdjustCommantList(string projectNo, string DocumentId)
33
        //{
34
        //    return GetTestData();
35
        //}
36
37
        private Item GetTestData()
38
        {
39
            return new Item
40
            {
41
                ProjectNo = "111111",
42
                DocumentID = Guid.NewGuid().ToString(),
43
                aId = Guid.NewGuid().ToString(),
44
                Condition = true.ToString(),
45
                mdId = Guid.NewGuid().ToString(),
46
                rId = Guid.NewGuid().ToString(),
47
                mrComments = new List<Commant>
48
                {
49
                    new Commant{comment = "test",created = "Test" ,createdBy ="ff",createdByName = "test",modified = "aa",modifiedBy = "test",modifiedByName = "aa",id ="aa"},
50
                    new Commant{comment = "test",created = "Test" ,createdBy ="ff",createdByName = "test",modified = "aa",modifiedBy = "test",modifiedByName = "aa",id ="aa"},
51
                    new Commant{comment = "test",created = "Test" ,createdBy ="ff",createdByName = "test",modified = "aa",modifiedBy = "test",modifiedByName = "aa",id ="aa"},
52
                    new Commant{comment = "test",created = "Test" ,createdBy ="ff",createdByName = "test",modified = "aa",modifiedBy = "test",modifiedByName = "aa",id ="aa"}
53
                }
54
55
            };
56
        }
57
58
    }
59
}
클립보드 이미지 추가 (최대 크기: 500 MB)