개정판 05fd750b
ConvertDatabase 수정
Change-Id: I02ef7e37ba84d4faafc85dea14371dc731cd79b0
ConvertService/ServiceBase/Markus.Service.DataBase/ConvertDatabase.cs | ||
---|---|---|
9 | 9 |
using System.Windows; |
10 | 10 |
using System.Linq.Expressions; |
11 | 11 |
using Markus.Service.Interface; |
12 |
using Markus.Service.DataBase.Data; |
|
13 |
using Markus.Service.DataBase.Extensions; |
|
14 |
|
|
12 | 15 |
|
13 | 16 |
namespace Markus.Service.DataBase |
14 | 17 |
{ |
... | ... | |
124 | 127 |
DocumnetNo = item.DOCUMENT_NO, |
125 | 128 |
DocumnetName = item.DOCUMENT_NAME, |
126 | 129 |
GroupNo = item.GROUP_NO, |
127 |
DocumentID = item.DOCUMENT_ID |
|
130 |
DocumentID = item.DOCUMENT_ID, |
|
131 |
|
|
132 |
MarkusLink = Markus.Service.DataBase.Extensions.MarkusAPI.CreateMarkusParam(item.PROJECT_NO, item.DOCUMENT_ID, "doftech") |
|
128 | 133 |
}; |
129 | 134 |
convertItems.Add(convertitem); |
130 | 135 |
} |
... | ... | |
192 | 197 |
Revision = item.REVISION, |
193 | 198 |
DocumnetNo = item.DOCUMENT_NO, |
194 | 199 |
DocumnetName = item.DOCUMENT_NAME, |
195 |
GroupNo = item.GROUP_NO |
|
200 |
GroupNo = item.GROUP_NO, |
|
201 |
|
|
202 |
MarkusLink = MarkusAPI.CreateMarkusParam(item.PROJECT_NO, item.DOCUMENT_ID, "doftech") |
|
196 | 203 |
}; |
197 | 204 |
|
198 | 205 |
StatusKeep.Add(convertitem); |
... | ... | |
264 | 271 |
Revision = item.REVISION, |
265 | 272 |
DocumnetNo = item.DOCUMENT_NO, |
266 | 273 |
DocumnetName = item.DOCUMENT_NAME, |
267 |
GroupNo = item.GROUP_NO |
|
274 |
GroupNo = item.GROUP_NO, |
|
275 |
|
|
276 |
MarkusLink = Markus.Service.DataBase.Extensions.MarkusAPI.CreateMarkusParam(item.PROJECT_NO, item.DOCUMENT_ID, "doftech") |
|
268 | 277 |
}; |
269 | 278 |
StatusKeep.Add(convertitem); |
270 | 279 |
} |
... | ... | |
369 | 378 |
|
370 | 379 |
#endregion |
371 | 380 |
|
381 |
#region MarkusLink |
|
382 |
|
|
383 |
|
|
384 |
////// userID는 관리자 계정인 doftech |
|
385 |
////string markusLink = "kcom://" + MarkusAPI.CreateMarkusParam(projectNo, documentID, userID); |
|
386 |
//public static string CreateMarkusParam(string projectNo, string documentID, string userID) |
|
387 |
//{ |
|
388 |
// ViewInfo viewInfo = new ViewInfo(); |
|
389 |
|
|
390 |
// viewInfo.DocumentItemID = documentID; |
|
391 |
// viewInfo.ProjectNO = projectNo; |
|
392 |
// viewInfo.UserID = userID; |
|
393 |
|
|
394 |
// return ParamEncoding(JsonConvert.SerializeObject(viewInfo)); |
|
395 |
|
|
396 |
//} |
|
397 |
|
|
398 |
//public static string ParamEncoding(string EncodingText, System.Text.Encoding oEncoding = null) |
|
399 |
//{ |
|
400 |
|
|
401 |
// if (oEncoding == null) |
|
402 |
// oEncoding = System.Text.Encoding.UTF8; |
|
403 |
|
|
404 |
// return Convert.ToBase64String(oEncoding.GetBytes(EncodingText)); |
|
405 |
|
|
406 |
//} |
|
407 |
|
|
408 |
|
|
409 |
#endregion |
|
410 |
|
|
372 | 411 |
#endregion |
373 | 412 |
|
374 | 413 |
#region DataBaseByStatusViewModel Function |
내보내기 Unified diff