markus / KCOM / Events / ConsolidateCommand.cs @ 97eba451
이력 | 보기 | 이력해설 | 다운로드 (2.25 KB)
1 |
using IKCOM; |
---|---|
2 |
using KCOM.Common; |
3 |
using KCOMDataModel.Common; |
4 |
using KCOMDataModel.DataModel; |
5 |
using MarkupToPDF.Common; |
6 |
using MarkupToPDF.Controls.Parsing; |
7 |
using System; |
8 |
using System.Collections.Generic; |
9 |
using System.Linq; |
10 |
using System.Text; |
11 |
using System.Windows.Controls; |
12 |
|
13 |
namespace KCOM.Events |
14 |
{ |
15 |
public class ConsolidateCommand |
16 |
{ |
17 |
private static readonly ConsolidateCommand _instance = new ConsolidateCommand(); |
18 |
|
19 |
// Explicit static constructor to tell C# compiler |
20 |
// not to mark type as beforefieldinit |
21 |
static ConsolidateCommand() |
22 |
{ |
23 |
} |
24 |
|
25 |
private ConsolidateCommand() |
26 |
{ |
27 |
} |
28 |
|
29 |
public static ConsolidateCommand Instance |
30 |
{ |
31 |
get |
32 |
{ |
33 |
return _instance; |
34 |
} |
35 |
} |
36 |
|
37 |
/// <summary> |
38 |
/// save comments related to given markup information |
39 |
/// </summary> |
40 |
/// <param name="UserState"></param> |
41 |
/// <param name="iPageNo"></param> |
42 |
public void Execute(List<MarkupInfoItem> InfoList, int iPageNo) |
43 |
{ |
44 |
try |
45 |
{ |
46 |
ViewerDataModel.Instance.IsConsolidate = true; |
47 |
string sDocID = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu._DocInfo.ID; |
48 |
/// 현재 작업 내용을 저장 |
49 |
Common.ViewerDataModel.Instance.SystemMain.dzTopMenu._SaveEvent(null, null); |
50 |
ViewerDataModel.Instance.IsConsolidate = false; |
51 |
|
52 |
Logger.sendReqLog("Consolidate", App.ViewInfo.ProjectNO + "," + App.ViewInfo.UserID + "," + sDocID + "," + InfoList, 1); |
53 |
Logger.sendResLog("Consolidate", Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.Consolidate(App.ViewInfo.ProjectNO, App.ViewInfo.UserID, sDocID, InfoList).ToString(), 1); |
54 |
|
55 |
Logger.sendReqLog("GetMarkupInfoItemsAsync", App.ViewInfo.ProjectNO + "," + sDocID, 1); |
56 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetMarkupInfoItemsAsync(App.ViewInfo.ProjectNO, sDocID); |
57 |
} |
58 |
catch (Exception ex) |
59 |
{ |
60 |
Common.ViewerDataModel.Instance.SystemMain.DialogMessage_Alert(string.Format("{0}", ex.StackTrace), "Alert"); |
61 |
throw ex; |
62 |
} |
63 |
} |
64 |
} |
65 |
} |