개정판 c6bf88fd
markus 호출 링크 Parameter 생성 추가
Change-Id: I516d5e1240a1dac6d80123c11ca5a7bd897de5b8
ConvertService/ServiceBase/Markus.Service.StationController/Data/ViewInfo.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Linq; |
|
4 |
using System.Text; |
|
5 |
using System.Threading.Tasks; |
|
6 |
|
|
7 |
namespace Markus.Service.StationController.Data |
|
8 |
{ |
|
9 |
public class ViewInfo |
|
10 |
{ |
|
11 |
public string DocumentItemID { get; set; } |
|
12 |
public bool bPartner { get; set; } |
|
13 |
public bool CreateFinalPDFPermission { get; set; } |
|
14 |
public bool NewCommentPermission { get; set; } |
|
15 |
public string ProjectNO { get; set; } |
|
16 |
public string UserID { get; set; } |
|
17 |
public int Mode { get; set; } |
|
18 |
|
|
19 |
|
|
20 |
/// <summary> |
|
21 |
/// 생성자 |
|
22 |
/// </summary> |
|
23 |
public ViewInfo() |
|
24 |
{ |
|
25 |
bPartner = false; |
|
26 |
CreateFinalPDFPermission = true; |
|
27 |
NewCommentPermission = true; |
|
28 |
Mode = 0; |
|
29 |
} |
|
30 |
|
|
31 |
} |
|
32 |
} |
ConvertService/ServiceBase/Markus.Service.StationController/Extensions/MarkusAPI.cs | ||
---|---|---|
1 |
using Markus.Service.StationController.Data; |
|
2 |
using Newtonsoft.Json; |
|
3 |
using System; |
|
4 |
using System.Collections.Generic; |
|
5 |
using System.Linq; |
|
6 |
using System.Text; |
|
7 |
using System.Threading.Tasks; |
|
8 |
|
|
9 |
namespace Markus.Service.StationController.Extensions |
|
10 |
{ |
|
11 |
//// userID는 관리자 계정인 doftech |
|
12 |
//string markusLink = "kcom://" + MarkusAPI.CreateMarkusParam(projectNo, documentID, userID); |
|
13 |
public class MarkusAPI |
|
14 |
{ |
|
15 |
public static string CreateMarkusParam(string projectNo, string documentID, string userID) |
|
16 |
{ |
|
17 |
ViewInfo viewInfo = new ViewInfo(); |
|
18 |
|
|
19 |
viewInfo.DocumentItemID = documentID; |
|
20 |
viewInfo.ProjectNO = projectNo; |
|
21 |
viewInfo.UserID = userID; |
|
22 |
|
|
23 |
return ParamEncoding(JsonConvert.SerializeObject(viewInfo)); |
|
24 |
|
|
25 |
} |
|
26 |
|
|
27 |
public static string ParamEncoding(string EncodingText, System.Text.Encoding oEncoding = null) |
|
28 |
{ |
|
29 |
|
|
30 |
if (oEncoding == null) |
|
31 |
oEncoding = System.Text.Encoding.UTF8; |
|
32 |
|
|
33 |
return Convert.ToBase64String(oEncoding.GetBytes(EncodingText)); |
|
34 |
|
|
35 |
} |
|
36 |
} |
|
37 |
} |
ConvertService/ServiceBase/Markus.Service.StationController/Markus.Service.StationController.csproj | ||
---|---|---|
93 | 93 |
<Reference Include="Microsoft.Expression.Interactions, Version=4.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> |
94 | 94 |
<HintPath>..\packages\Expression.Blend.Sdk.WPF.1.0.1\lib\net45\Microsoft.Expression.Interactions.dll</HintPath> |
95 | 95 |
</Reference> |
96 |
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL"> |
|
97 |
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath> |
|
98 |
</Reference> |
|
96 | 99 |
<Reference Include="System" /> |
97 | 100 |
<Reference Include="System.ComponentModel.DataAnnotations" /> |
98 | 101 |
<Reference Include="System.Data" /> |
... | ... | |
164 | 167 |
<Compile Include="Data\MenuItem.cs" /> |
165 | 168 |
<Compile Include="Data\SelectedCountItem.cs" /> |
166 | 169 |
<Compile Include="Data\StatusViewItem.cs" /> |
170 |
<Compile Include="Data\ViewInfo.cs" /> |
|
167 | 171 |
<Compile Include="Extensions\ConvertItemChangeValue.cs" /> |
172 |
<Compile Include="Extensions\MarkusAPI.cs" /> |
|
168 | 173 |
<Compile Include="Extensions\DataExport.cs" /> |
169 | 174 |
<Compile Include="Extensions\GetStatusTypeEnums.cs" /> |
170 | 175 |
<Compile Include="Extensions\VisualTreeHelper.cs" /> |
ConvertService/ServiceBase/Markus.Service.StationController/packages.config | ||
---|---|---|
9 | 9 |
<package id="MaterialDesignColors" version="1.2.0" targetFramework="net45" /> |
10 | 10 |
<package id="MaterialDesignThemes" version="2.6.0" targetFramework="net45" /> |
11 | 11 |
<package id="Microsoft.CSharp" version="4.5.0" targetFramework="net45" /> |
12 |
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net45" /> |
|
12 | 13 |
<package id="Salaros.ConfigParser" version="0.3.3" targetFramework="net461" /> |
13 | 14 |
</packages> |
내보내기 Unified diff