개정판 2c634aed
popup style 변경 & 프로젝트 정리
Change-Id: I708256b20df780f169e92b020919b436152a07c9
ConvertService/ServiceBase/Markus.Service.StationController/ViewModel/FinalPDFViewModel.cs | ||
---|---|---|
1 | 1 |
using Markus.Message; |
2 |
using Markus.Service.DataBase; |
|
3 | 2 |
using Markus.Service.Extensions; |
4 | 3 |
using Markus.Service.StationController.Data; |
5 | 4 |
using Markus.Service.StationController.Behaviors; |
... | ... | |
24 | 23 |
using System.Windows.Data; |
25 | 24 |
using System.Windows.Controls; |
26 | 25 |
using System.IO; |
26 |
using Newtonsoft.Json; |
|
27 | 27 |
|
28 | 28 |
namespace Markus.Service.StationController.ViewModel |
29 | 29 |
{ |
... | ... | |
1174 | 1174 |
{ |
1175 | 1175 |
string[] ConvertPath = new string[2]; |
1176 | 1176 |
ConvertPath[0] = GetConvertPath(PROJECT_NO, DOCUMENT_ID); |
1177 |
ConvertPath[1] = "kcom://" + Markus.Service.DataBase.Extensions.MarkusAPI.CreateMarkusParam(PROJECT_NO, DOCUMENT_ID, "doftech");
|
|
1177 |
ConvertPath[1] = "kcom://" + CreateMarkusParam(PROJECT_NO, DOCUMENT_ID, "doftech"); |
|
1178 | 1178 |
|
1179 | 1179 |
return ConvertPath; |
1180 | 1180 |
} |
1181 | 1181 |
|
1182 |
public static string CreateMarkusParam(string projectNo, string documentID, string userID) |
|
1183 |
{ |
|
1184 |
ViewInfo viewInfo = new ViewInfo(); |
|
1185 |
|
|
1186 |
viewInfo.DocumentItemID = documentID; |
|
1187 |
viewInfo.ProjectNO = projectNo; |
|
1188 |
viewInfo.UserID = userID; |
|
1189 |
|
|
1190 |
return ParamEncoding(JsonConvert.SerializeObject(viewInfo)); |
|
1191 |
|
|
1192 |
} |
|
1193 |
|
|
1194 |
public static string ParamEncoding(string EncodingText, System.Text.Encoding oEncoding = null) |
|
1195 |
{ |
|
1196 |
|
|
1197 |
if (oEncoding == null) |
|
1198 |
oEncoding = System.Text.Encoding.UTF8; |
|
1199 |
|
|
1200 |
return Convert.ToBase64String(oEncoding.GetBytes(EncodingText)); |
|
1201 |
|
|
1202 |
} |
|
1203 |
|
|
1182 | 1204 |
#region Convert Path |
1183 | 1205 |
|
1184 | 1206 |
private string GetConvertPath(string ProjectNo, string DocumentID) |
내보내기 Unified diff