markus / KCOM / Events / TeamConsolidateCommand.cs @ 102476f6
이력 | 보기 | 이력해설 | 다운로드 (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 TeamConsolidateCommand |
16 |
{ |
17 |
private static readonly TeamConsolidateCommand _instance = new TeamConsolidateCommand(); |
18 |
|
19 |
// Explicit static constructor to tell C# compiler |
20 |
// not to mark type as beforefieldinit |
21 |
static TeamConsolidateCommand() |
22 |
{ |
23 |
} |
24 |
|
25 |
private TeamConsolidateCommand() |
26 |
{ |
27 |
} |
28 |
|
29 |
public static TeamConsolidateCommand 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 |
public void Execute(List<MarkupInfoItem> MarkupInfoList) |
42 |
{ |
43 |
try |
44 |
{ |
45 |
ViewerDataModel.Instance.IsConsolidate = true; |
46 |
/// save current working controls |
47 |
Common.ViewerDataModel.Instance.SystemMain.dzTopMenu._SaveEvent(null, null); |
48 |
|
49 |
string project_no = App.ViewInfo.ProjectNO; |
50 |
string doc_id = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu._DocInfo.ID; |
51 |
string user_id = App.ViewInfo.UserID; |
52 |
Logger.sendReqLog("TeamConsolidate", project_no + "," + user_id + "," + doc_id + "," + MarkupInfoList, 1); |
53 |
Logger.sendResLog("TeamConsolidate", Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.TeamConsolidate(project_no, user_id, doc_id, MarkupInfoList).ToString(), 1); |
54 |
|
55 |
Logger.sendReqLog("GetMarkupInfoItemsAsync", App.ViewInfo.ProjectNO + "," + doc_id, 1); |
56 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetMarkupInfoItemsAsync(App.ViewInfo.ProjectNO, doc_id); |
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 |
} |