프로젝트

일반

사용자정보

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

markus / KCOM / Events / TeamConsolidateCommand.cs @ 51c6ce90

이력 | 보기 | 이력해설 | 다운로드 (2.84 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 77cdac33 taeseongkim
using System.Threading.Tasks;
12 102476f6 humkyung
using System.Windows.Controls;
13
14
namespace KCOM.Events
15
{
16
    public class TeamConsolidateCommand
17
    {
18
        private static readonly TeamConsolidateCommand _instance = new TeamConsolidateCommand();
19
20
        // Explicit static constructor to tell C# compiler
21
        // not to mark type as beforefieldinit
22
        static TeamConsolidateCommand()
23
        {
24
        }
25
26
        private TeamConsolidateCommand()
27
        {
28
        }
29
30
        public static TeamConsolidateCommand Instance
31
        {
32
            get
33
            {
34
                return _instance;
35
            }
36
        }
37
38
        /// <summary>
39
        /// save comments related to given markup information
40
        /// </summary>
41
        /// <param name="UserState"></param>
42
        public void Execute(List<MarkupInfoItem> MarkupInfoList)
43
        {
44
            try
45
            {
46 77cdac33 taeseongkim
           
47 102476f6 humkyung
                ViewerDataModel.Instance.IsConsolidate = true;
48
                /// save current working controls
49 77cdac33 taeseongkim
                //Common.ViewerDataModel.Instance.SystemMain.dzTopMenu._SaveEvent(null, null);
50
               //Common.ViewerDataModel.Instance.SystemMain.dzTopMenu.ExecuteSaveCommand(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu);
51
52 8ab0d0b1 송근호
                ViewerDataModel.Instance.IsConsolidate = false;
53 77cdac33 taeseongkim
54 102476f6 humkyung
                string doc_id = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu._DocInfo.ID;
55
                string user_id = App.ViewInfo.UserID;
56 664ea2e1 taeseongkim
                //Logger.sendReqLog("TeamConsolidate", project_no + "," + user_id + "," + doc_id + "," + MarkupInfoList, 1);
57
                //Logger.sendResLog("TeamConsolidate", Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.TeamConsolidate(project_no, user_id, doc_id, MarkupInfoList).ToString(), 1);
58 77cdac33 taeseongkim
                var result = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.TeamConsolidate(App.ViewInfo.ProjectNO, user_id, doc_id, MarkupInfoList);
59 664ea2e1 taeseongkim
                //Logger.sendReqLog("GetMarkupInfoItemsAsync", App.ViewInfo.ProjectNO + "," + doc_id, 1);
60 77cdac33 taeseongkim
61
                if (result)
62
                {
63
                    Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetMarkupInfoItemsAsync(App.ViewInfo.ProjectNO, doc_id);
64
                }
65
                else
66
                {
67
                    Common.ViewerDataModel.Instance.SystemMain.DialogMessage_Alert("System Error", "Alert");
68
                }
69 102476f6 humkyung
            }
70
            catch(Exception ex)
71
            {
72
                Common.ViewerDataModel.Instance.SystemMain.DialogMessage_Alert(string.Format("{0}", ex.StackTrace), "Alert");
73
                throw ex;
74
            }
75
        }
76
    }
77
}
클립보드 이미지 추가 (최대 크기: 500 MB)