프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / KCOM / Events / TeamConsolidateCommand.cs @ f65e6c02

이력 | 보기 | 이력해설 | 다운로드 (2.35 KB)

1 102476f6 humkyung
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 8ab0d0b1 송근호
                
49
                ViewerDataModel.Instance.IsConsolidate = false;
50 102476f6 humkyung
                string project_no = App.ViewInfo.ProjectNO;
51
                string doc_id = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu._DocInfo.ID;
52
                string user_id = App.ViewInfo.UserID;
53
                Logger.sendReqLog("TeamConsolidate", project_no + "," + user_id + "," + doc_id + "," + MarkupInfoList, 1);
54
                Logger.sendResLog("TeamConsolidate", Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.TeamConsolidate(project_no, user_id, doc_id, MarkupInfoList).ToString(), 1);
55
56
                Logger.sendReqLog("GetMarkupInfoItemsAsync", App.ViewInfo.ProjectNO + "," + doc_id, 1);
57 8ab0d0b1 송근호
                
58 102476f6 humkyung
                Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetMarkupInfoItemsAsync(App.ViewInfo.ProjectNO, doc_id);
59
            }
60
            catch(Exception ex)
61
            {
62
                Common.ViewerDataModel.Instance.SystemMain.DialogMessage_Alert(string.Format("{0}", ex.StackTrace), "Alert");
63
                throw ex;
64
            }
65
        }
66
    }
67
}
클립보드 이미지 추가 (최대 크기: 500 MB)