프로젝트

일반

사용자정보

개정판 664ea2e1

ID664ea2e1cd505cbe9d76095ca8e3f8de5f2e9bd2
상위 9d5b4bc2
하위 5e1e22ff

김태성이(가) 4년 이상 전에 추가함

Markus에서 markusupdate를 변경하도록 수정

Change-Id: I4c2fe33f46732a9dc6b1fe683771c5acbcfd5d36

차이점 보기:

KCOM/Services/BaseServices.cs
80 80

  
81 81
        private void BaseClient_EditFavoriteVPCompleted(object sender, EditFavoriteVPCompletedEventArgs e)
82 82
        {
83
            Logger.sendResLog("EditFavoriteVPCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
83
            //Logger.sendResLog("EditFavoriteVPCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
84 84
            
85 85
            if (e.Error == null && e.Result != false)
86 86
            {
87
                Logger.sendReqLog("GetFavoriteVPAsync", App.ViewInfo.ProjectNO + "," + App.ViewInfo.UserID + "," + App.ViewInfo.DocumentItemID, 1);
87
                //Logger.sendReqLog("GetFavoriteVPAsync", App.ViewInfo.ProjectNO + "," + App.ViewInfo.UserID + "," + App.ViewInfo.DocumentItemID, 1);
88 88
                BaseClient.GetFavoriteVPAsync(App.ViewInfo.ProjectNO, App.ViewInfo.UserID, App.ViewInfo.DocumentItemID);
89 89
            }
90 90
            else
......
95 95

  
96 96
        private void BaseClient_DelFavoriteVPCompleted(object sender, DelFavoriteVPCompletedEventArgs e)
97 97
        {
98
            Logger.sendResLog("DelFavoriteVPCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
98
            //Logger.sendResLog("DelFavoriteVPCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
99 99

  
100 100
            if (e.Error == null && e.Result != false)
101 101
            {
102
                Logger.sendReqLog("GetFavoriteVPAsync", App.ViewInfo.ProjectNO + "," + App.ViewInfo.UserID + "," + App.ViewInfo.DocumentItemID, 1);
102
                //Logger.sendReqLog("GetFavoriteVPAsync", App.ViewInfo.ProjectNO + "," + App.ViewInfo.UserID + "," + App.ViewInfo.DocumentItemID, 1);
103 103
                BaseClient.GetFavoriteVPAsync(App.ViewInfo.ProjectNO, App.ViewInfo.UserID, App.ViewInfo.DocumentItemID);
104 104
            }
105 105
            else
......
154 154

  
155 155
        private void BaseClient_SetFinalPDFCompleted(object sender, SetFinalPDFCompletedEventArgs e)
156 156
        {
157
            Logger.sendResLog("SetFinalPDFCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
157
            //Logger.sendResLog("SetFinalPDFCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
158 158
            string errormsg = CommonLib.Common.GetAlertMessageString("SetFinalPDFError", "MSG", "최종 파일을 만드는데 문제가 발생하였습니다");
159 159
            string successmsg = CommonLib.Common.GetAlertMessageString("SetFinalPDFSuccess", "MSG", "최종 파일 생성 중입니다. 문서관리시스템을 확인해주세요");
160 160
            if (e.Error != null || e.Result.Status == FinalStatus.Error)
......
169 169

  
170 170
        private void BaseClient_GetVPRevisionHistoryCompleted(object sender, GetVPRevisionHistoryCompletedEventArgs e)
171 171
        {
172
            Logger.sendResLog("GetVPRevisionHistoryCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
172
            //Logger.sendResLog("GetVPRevisionHistoryCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result?.Count + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
173 173

  
174 174
            if (e.Result != null && e.Error == null)
175 175
            {
......
206 206

  
207 207
        private void BaseClient_DeleteMarkupCompleted(object sender, DeleteMarkupCompletedEventArgs e)
208 208
        {
209
            Logger.sendResLog("DeleteMarkupCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
209
            //Logger.sendResLog("DeleteMarkupCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
210 210

  
211 211
            foreach(var info in ViewerDataModel.Instance._markupInfoList)
212 212
            {
......
226 226
        {
227 227
            if (e.Error == null)
228 228
            {
229
                Logger.sendResLog("GetDeptDataCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
229
                //Logger.sendResLog("GetDeptDataCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result?.Count + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
230 230
            }
231 231
            else
232 232
            {
233
                Logger.sendResLog("GetDeptDataCompleted",  "\r Error :" + e.Error, 1);
233
                //Logger.sendResLog("GetDeptDataCompleted",  "\r Error :" + e.Error, 1);
234 234
            }
235 235

  
236 236
            if (e.Result != null)
......
249 249
        /// <param name="e"></param>
250 250
        private async void BaseClient_GetDocInfoCompleted(object sender, GetDocInfoCompletedEventArgs e)
251 251
        {
252
            //Logger.sendResLog("GetDocInfoCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
252
            ////Logger.sendResLog("GetDocInfoCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
253 253

  
254 254
            if (e.Error != null)
255 255
            {
......
269 269
                {
270 270
                    ViewerDataModel.Instance.Document_Info.Add(item);
271 271
                }
272
                Logger.sendReqLog("GetMarkupInfoItemsAsync", _ViewInfo.ProjectNO + "," + _DocInfo.ID, 1);
272
                //Logger.sendReqLog("GetMarkupInfoItemsAsync", _ViewInfo.ProjectNO + "," + _DocInfo.ID, 1);
273 273
                CurrentDoc = new Common.DocumentSet
274 274
                {
275 275
                    docInfo = _DocInfo,
......
319 319

  
320 320
            #endregion
321 321

  
322
            Logger.sendReqLog("GetVPRevisionHistoryAsync", CurrentDoc.ProjectNo + "," + CurrentDoc.Document_NO + "," + CurrentDoc.Document_Id, 1);
322
            //Logger.sendReqLog("GetVPRevisionHistoryAsync", CurrentDoc.ProjectNo + "," + CurrentDoc.Document_NO + "," + CurrentDoc.Document_Id, 1);
323 323
            BaseClient.GetVPRevisionHistoryAsync(CurrentDoc.ProjectNo, CurrentDoc.Document_NO, CurrentDoc.Document_Id);
324 324

  
325 325
        }
......
334 334
        /// <param name="e"></param>
335 335
        private void BaseClient_GetMarkupInfoItemsCompleted(object sender, GetMarkupInfoItemsCompletedEventArgs e)
336 336
        {
337
            Logger.sendResLog("GetMarkupInfoItemsCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
337
            //Logger.sendResLog("GetMarkupInfoItemsCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result?.Count + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
338 338

  
339 339
            ViewerDataModel.Instance.MarkupControls_USER.Clear();
340 340
            ViewerDataModel.Instance.MarkupControls.Clear();
......
728 728

  
729 729
        private void BaseClient_GetDocumentItemInfoCompleted(object sender, GetDocumentItemInfoCompletedEventArgs e)
730 730
        {
731
            Logger.sendResLog("GetDocumentItemInfoCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
731
            //Logger.sendResLog("GetDocumentItemInfoCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result?.DOCUMENT_ID + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
732 732

  
733 733
            if (e.Result != null)
734 734
            {
......
739 739
                    //장원
740 740
                    _ViewInfo.UserID = _ViewInfo.UserID.Replace(@"DAELIM\", "");
741 741
                }
742
                Logger.sendReqLog("GetDocInfoAsync", _ViewInfo.ProjectNO + "," + _ViewInfo.DocumentItemID, 1);
742
                ////Logger.sendReqLog("GetDocInfoAsync", _ViewInfo.ProjectNO + "," + _ViewInfo.DocumentItemID, 1);
743 743
                BaseClient.GetDocInfoAsync(new KCOM_BasicParam { projectNo = _ViewInfo.ProjectNO, documentID = _ViewInfo.DocumentItemID });
744 744
            }
745 745
            else
......
748 748

  
749 749
                BaseClient.GetCheckSystemAdminCompleted += (sen, ea) =>
750 750
                {
751
                    Logger.sendResLog("GetCheckSystemAdminCompleted", "UserState : " + ea.UserState + "\r Result :" + ea.Result + "\r Cancelled :" + ea.Cancelled + "\r Error :" + ea.Error, 1);
751
                    //Logger.sendResLog("GetCheckSystemAdminCompleted", "UserState : " + ea.UserState + "\r Result :" + ea.Result + "\r Cancelled :" + ea.Cancelled + "\r Error :" + ea.Error, 1);
752 752

  
753 753
                    if (ea.Error == null)
754 754
                    {
755 755
                        if (ea.Result)
756 756
                        {
757 757
                            this._ViewInfo.isAdmin = true;
758
                            Logger.sendReqLog("GetDocInfoAsync", _ViewInfo.ProjectNO + "," + _ViewInfo.DocumentItemID, 1);
758
                            //Logger.sendReqLog("GetDocInfoAsync", _ViewInfo.ProjectNO + "," + _ViewInfo.DocumentItemID, 1);
759 759
                            BaseClient.GetDocInfoAsync(new KCOM_BasicParam { projectNo = _ViewInfo.ProjectNO, documentID = _ViewInfo.DocumentItemID });
760 760
                        }
761 761
                        else
......
771 771
                        //System.Windows.Browser.HtmlPage.Window.Invoke("close");
772 772
                    }
773 773
                };
774
                Logger.sendReqLog("GetCheckSystemAdminAsync", _ViewInfo.UserID, 1);
774
                //Logger.sendReqLog("GetCheckSystemAdminAsync", _ViewInfo.UserID, 1);
775 775
                BaseClient.GetCheckSystemAdminAsync(this._ViewInfo.UserID);
776 776
            }
777 777
        }
778 778

  
779 779
        private void BaseClient_GetSystemDataCompleted(object sender, GetSystemDataCompletedEventArgs e)
780 780
        {
781
            Logger.sendResLog("GetSystemDataCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
781
            //Logger.sendResLog("GetSystemDataCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
782 782

  
783 783
            if (e.Error == null && e.Result != null)
784 784
            {
......
786 786

  
787 787
                //App.urlPort_DB = App.SystemInfo.HostPort;
788 788
                //App.urlHost_DB = App.SystemInfo.HostName;
789
                Logger.sendReqLog("GetConversionStateAsync", _ViewInfo.ProjectNO + "," + _ViewInfo.DocumentItemID, 1);
789
                //Logger.sendReqLog("GetConversionStateAsync", _ViewInfo.ProjectNO + "," + _ViewInfo.DocumentItemID, 1);
790 790
                BaseClient.GetConversionStateAsync(new KCOM_BasicParam { projectNo = _ViewInfo.ProjectNO, documentID = _ViewInfo.DocumentItemID });
791 791

  
792 792
                //if (App.urlHost.Contains("localhost"))
......
799 799
        private void BaseClient_GetConversionStateCompleted(object sender, GetConversionStateCompletedEventArgs e)
800 800
        {
801 801
            
802
            Logger.sendResLog("GetConversionStateCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
802
            //Logger.sendResLog("GetConversionStateCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1);
803 803
            string failedmsg = CommonLib.Common.GetAlertMessageString("GetConversionStateFailed", "MSG", "Too Many V/P Files are uploading instantaneously, This V/P file can not be open now. Please feel free to re-open wait a moment again!\n\n현재 일시적으로 많은 양의 V/P가 등록되고 있어 이 문서를 열람할 수 없습니다.\n잠시만 기다려 주신 후 다시 열람하여 주시기 바랍니다");
804 804
            if (e.Error == null && e.Result == true)
805 805
            {
806
                Logger.sendReqLog("GetDocumentItemInfoAsync", _ViewInfo.ProjectNO + "," + _ViewInfo.DocumentItemID + "," + _ViewInfo.UserID, 1);
806
                //Logger.sendReqLog("GetDocumentItemInfoAsync", _ViewInfo.ProjectNO + "," + _ViewInfo.DocumentItemID + "," + _ViewInfo.UserID, 1);
807 807

  
808 808
                BaseClient.GetDocumentItemInfoAsync(new KCOM_BasicParam { projectNo = _ViewInfo.ProjectNO, documentID = _ViewInfo.DocumentItemID, userID = _ViewInfo.UserID });
809 809

  
810 810
                if (App.ViewInfo != null && App.ViewInfo.ProjectNO != "")
811 811
                {
812
                    Logger.sendReqLog("GetMember", _ViewInfo.ProjectNO + "," + _ViewInfo.UserID, 1);
812
                    //Logger.sendReqLog("GetMember", _ViewInfo.ProjectNO + "," + _ViewInfo.UserID, 1);
813 813
                    userData = BaseClient.GetMember(App.ViewInfo.ProjectNO, App.ViewInfo.UserID);
814 814
                    if (userData != null)
815 815
                    {
816
                        Logger.sendReqLog("GetDeptDataAsync", userData.DEPARTMENT, 1);
816
                        //Logger.sendReqLog("GetDeptDataAsync", userData.DEPARTMENT, 1);
817 817
                        BaseClient.GetDeptDataAsync(userData.DEPARTMENT);
818 818
                    }
819 819
                    else
820 820
                    {
821 821
                        userData = new MEMBER();
822 822
                        userData.DEPARTMENT = "ALL";
823
                        Logger.sendReqLog("GetDeptDataAsync", userData.DEPARTMENT, 1);
823
                        //Logger.sendReqLog("GetDeptDataAsync", userData.DEPARTMENT, 1);
824 824
                        BaseClient.GetDeptDataAsync(userData.DEPARTMENT);
825 825
                    }
826 826
                }
......
847 847
            }
848 848
            catch(Exception ex)
849 849
            {
850
                App.FileLogger.Fatal(ex);
850

  
851
                //App.FileLogger.Fatal(ex);
851 852
            }
852 853

  
853
            Logger.sendReqLog("GetSystemDataAsync", "", 1);
854
            //Logger.sendReqLog("GetSystemDataAsync", "", 1);
855

  
854 856
            BaseClient.GetSystemDataAsync();
855 857
        }
856 858

  

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)