개정판 0f065e57
issue #745 markus client log
KCOM/Services/BaseServices.cs | ||
---|---|---|
57 | 57 |
BaseClient = new ServiceDeepViewClient(App._binding, App._EndPoint); |
58 | 58 |
|
59 | 59 |
BaseClient.GetDocInfoCompleted += BaseClient_GetDocInfoCompleted; //문서 섬네일, 페이지크기, 마크업 정보 [3] |
60 |
BaseClient.GetConversionStateCompleted += BaseClient_GetConversionStateCompleted; //컨버팅의 여부 [2] |
|
61 |
BaseClient.GetSystemDataCompleted += BaseClient_GetSystemDataCompleted; //시스템 정보 [1] |
|
60 |
BaseClient.GetConversionStateCompleted += BaseClient_GetConversionStateCompleted; //컨버팅의 여부 [2]
|
|
61 |
BaseClient.GetSystemDataCompleted += BaseClient_GetSystemDataCompleted; //시스템 정보 [1]
|
|
62 | 62 |
BaseClient.GetDocumentItemInfoCompleted += BaseClient_GetDocumentItemInfoCompleted; // 문서 자체의 정보 [4] |
63 |
BaseClient.GetMarkupInfoItemsCompleted += BaseClient_GetMarkupInfoItemsCompleted; |
|
64 |
BaseClient.GetDeptDataCompleted += BaseClient_GetDeptDataCompleted; |
|
65 |
BaseClient.DeleteMarkupCompleted += BaseClient_DeleteMarkupCompleted; |
|
63 |
BaseClient.GetMarkupInfoItemsCompleted += BaseClient_GetMarkupInfoItemsCompleted;
|
|
64 |
BaseClient.GetDeptDataCompleted += BaseClient_GetDeptDataCompleted;
|
|
65 |
BaseClient.DeleteMarkupCompleted += BaseClient_DeleteMarkupCompleted;
|
|
66 | 66 |
BaseClient.GetVPRevisionHistoryCompleted += BaseClient_GetVPRevisionHistoryCompleted; |
67 |
BaseClient.SetFinalPDFCompleted += BaseClient_SetFinalPDFCompleted; |
|
68 |
BaseClient.GetCompareRectCompleted += BaseClient_GetCompareRectCompleted; |
|
69 |
BaseClient.DeleteMarkupCompleted += BaseClient_DeleteMarkupCompleted; |
|
70 |
BaseClient.DelFavoriteVPCompleted += BaseClient_DelFavoriteVPCompleted; |
|
71 |
BaseClient.EditFavoriteVPCompleted += BaseClient_EditFavoriteVPCompleted;
|
|
67 |
BaseClient.SetFinalPDFCompleted += BaseClient_SetFinalPDFCompleted;
|
|
68 |
BaseClient.GetCompareRectCompleted += BaseClient_GetCompareRectCompleted;
|
|
69 |
BaseClient.DeleteMarkupCompleted += BaseClient_DeleteMarkupCompleted;
|
|
70 |
BaseClient.DelFavoriteVPCompleted += BaseClient_DelFavoriteVPCompleted;
|
|
71 |
BaseClient.EditFavoriteVPCompleted += BaseClient_EditFavoriteVPCompleted; |
|
72 | 72 |
} |
73 | 73 |
|
74 | 74 |
|
75 | 75 |
|
76 | 76 |
private void BaseClient_EditFavoriteVPCompleted(object sender, EditFavoriteVPCompletedEventArgs e) |
77 | 77 |
{ |
78 |
Logger.sendResLog("EditFavoriteVPCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
79 |
|
|
78 | 80 |
if (e.Error == null && e.Result != null) |
79 | 81 |
{ |
82 |
Logger.sendReqLog("GetFavoriteVPAsync", App.ViewInfo.ProjectNO + "," + App.ViewInfo.UserID + "," + App.ViewInfo.DocumentItemID, 1); |
|
80 | 83 |
BaseClient.GetFavoriteVPAsync(App.ViewInfo.ProjectNO, App.ViewInfo.UserID, App.ViewInfo.DocumentItemID); |
81 | 84 |
} |
82 | 85 |
else |
... | ... | |
87 | 90 |
|
88 | 91 |
private void BaseClient_DelFavoriteVPCompleted(object sender, DelFavoriteVPCompletedEventArgs e) |
89 | 92 |
{ |
93 |
Logger.sendResLog("DelFavoriteVPCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
94 |
|
|
90 | 95 |
if (e.Error == null && e.Result != null) |
91 | 96 |
{ |
97 |
Logger.sendReqLog("GetFavoriteVPAsync", App.ViewInfo.ProjectNO + "," + App.ViewInfo.UserID + "," + App.ViewInfo.DocumentItemID, 1); |
|
92 | 98 |
BaseClient.GetFavoriteVPAsync(App.ViewInfo.ProjectNO, App.ViewInfo.UserID, App.ViewInfo.DocumentItemID); |
93 | 99 |
} |
94 | 100 |
else |
... | ... | |
100 | 106 |
|
101 | 107 |
private void BaseClient_GetCompareRectCompleted(object sender, GetCompareRectCompletedEventArgs e) |
102 | 108 |
{ |
109 |
Logger.sendResLog("GetCompareRectCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
110 |
|
|
103 | 111 |
if (e.Error != null || e.Result == null) |
104 | 112 |
{ |
105 | 113 |
DialogMessage_Alert("Compare 기능을 원활히 실행하기 위한 데이터가 부족합니다", "안내"); |
... | ... | |
132 | 140 |
|
133 | 141 |
private void BaseClient_SetFinalPDFCompleted(object sender, SetFinalPDFCompletedEventArgs e) |
134 | 142 |
{ |
143 |
Logger.sendResLog("SetFinalPDFCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
135 | 144 |
|
136 | 145 |
if (e.Error !=null || e.Result.Status == FinalStatus.Error) |
137 | 146 |
{ |
... | ... | |
145 | 154 |
|
146 | 155 |
private void BaseClient_GetVPRevisionHistoryCompleted(object sender, GetVPRevisionHistoryCompletedEventArgs e) |
147 | 156 |
{ |
157 |
Logger.sendResLog("GetVPRevisionHistoryCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
158 |
|
|
148 | 159 |
if (e.Result != null && e.Error == null) |
149 | 160 |
{ |
150 | 161 |
gridViewHistory.ItemsSource = e.Result; |
... | ... | |
154 | 165 |
|
155 | 166 |
private void BaseClient_DeleteMarkupCompleted(object sender, DeleteMarkupCompletedEventArgs e) |
156 | 167 |
{ |
168 |
Logger.sendResLog("DeleteMarkupCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
169 |
|
|
157 | 170 |
SetDisplayColor(ViewerDataModel.Instance._markupInfoList.ToList(), App.ViewInfo.UserID); |
158 | 171 |
} |
159 | 172 |
|
160 | 173 |
private void BaseClient_GetDeptDataCompleted(object sender, GetDeptDataCompletedEventArgs e) |
161 | 174 |
{ |
175 |
Logger.sendResLog("GetDeptDataCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
176 |
|
|
162 | 177 |
if (e.Result != null) |
163 | 178 |
{ |
164 | 179 |
e.Result.Sort(); |
... | ... | |
169 | 184 |
|
170 | 185 |
private void BaseClient_GetMarkupInfoItemsCompleted(object sender, GetMarkupInfoItemsCompletedEventArgs e) |
171 | 186 |
{ |
187 |
Logger.sendResLog("GetMarkupInfoItemsCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
188 |
|
|
172 | 189 |
ViewerDataModel.Instance.MarkupControls_USER.Clear(); |
173 | 190 |
ViewerDataModel.Instance.MarkupControls.Clear(); |
174 | 191 |
if (e.Result != null) |
... | ... | |
589 | 606 |
|
590 | 607 |
private void BaseClient_GetDocumentItemInfoCompleted(object sender, GetDocumentItemInfoCompletedEventArgs e) |
591 | 608 |
{ |
609 |
Logger.sendResLog("GetDocumentItemInfoCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
610 |
|
|
592 | 611 |
if (e.Result != null) |
593 | 612 |
{ |
594 | 613 |
_DocItem = e.Result; |
... | ... | |
598 | 617 |
//장원 |
599 | 618 |
_ViewInfo.UserID = _ViewInfo.UserID.Replace(@"DAELIM\", ""); |
600 | 619 |
} |
620 |
Logger.sendReqLog("GetDocInfoAsync", _ViewInfo.ProjectNO + "," + _ViewInfo.DocumentItemID , 1); |
|
601 | 621 |
BaseClient.GetDocInfoAsync(new KCOM_BasicParam { projectNo = _ViewInfo.ProjectNO, documentID = _ViewInfo.DocumentItemID }); |
602 | 622 |
} |
603 | 623 |
else |
604 | 624 |
{ |
605 | 625 |
BaseClient.GetCheckSystemAdminCompleted += (sen, ea) => |
606 | 626 |
{ |
627 |
Logger.sendResLog("GetCheckSystemAdminCompleted", "UserState : " + ea.UserState + "\r Result :" + ea.Result + "\r Cancelled :" + ea.Cancelled + "\r Error :" + ea.Error, 1); |
|
628 |
|
|
607 | 629 |
if (ea.Error == null) |
608 | 630 |
{ |
609 | 631 |
if (ea.Result) |
610 | 632 |
{ |
611 | 633 |
this._ViewInfo.isAdmin = true; |
634 |
Logger.sendReqLog("GetDocInfoAsync", _ViewInfo.ProjectNO + "," + _ViewInfo.DocumentItemID, 1); |
|
612 | 635 |
BaseClient.GetDocInfoAsync(new KCOM_BasicParam { projectNo = _ViewInfo.ProjectNO, documentID = _ViewInfo.DocumentItemID }); |
613 | 636 |
} |
614 | 637 |
else |
... | ... | |
624 | 647 |
//System.Windows.Browser.HtmlPage.Window.Invoke("close"); |
625 | 648 |
} |
626 | 649 |
}; |
650 |
Logger.sendReqLog("GetCheckSystemAdminAsync", _ViewInfo.UserID, 1); |
|
627 | 651 |
BaseClient.GetCheckSystemAdminAsync(this._ViewInfo.UserID); |
628 | 652 |
} |
629 | 653 |
} |
630 | 654 |
|
631 | 655 |
private void BaseClient_GetSystemDataCompleted(object sender, GetSystemDataCompletedEventArgs e) |
632 | 656 |
{ |
657 |
Logger.sendResLog("GetSystemDataCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
658 |
|
|
633 | 659 |
if (e.Error == null && e.Result != null) |
634 | 660 |
{ |
635 | 661 |
App.SystemInfo = e.Result; |
636 | 662 |
|
637 | 663 |
//App.urlPort_DB = App.SystemInfo.HostPort; |
638 | 664 |
//App.urlHost_DB = App.SystemInfo.HostName; |
639 |
|
|
665 |
Logger.sendReqLog("GetConversionStateAsync", _ViewInfo.ProjectNO + "," + _ViewInfo.DocumentItemID, 1); |
|
640 | 666 |
BaseClient.GetConversionStateAsync(new KCOM_BasicParam { projectNo = _ViewInfo.ProjectNO, documentID = _ViewInfo.DocumentItemID }); |
641 | 667 |
|
642 | 668 |
//if (App.urlHost.Contains("localhost")) |
... | ... | |
648 | 674 |
|
649 | 675 |
private void BaseClient_GetConversionStateCompleted(object sender, GetConversionStateCompletedEventArgs e) |
650 | 676 |
{ |
677 |
Logger.sendResLog("GetConversionStateCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
678 |
|
|
651 | 679 |
if (e.Error == null && e.Result != null && e.Result) |
652 | 680 |
{ |
681 |
Logger.sendReqLog("GetDocumentItemInfoAsync", _ViewInfo.ProjectNO + "," + _ViewInfo.DocumentItemID + "," + _ViewInfo.UserID, 1); |
|
682 |
|
|
653 | 683 |
BaseClient.GetDocumentItemInfoAsync(new KCOM_BasicParam { projectNo = _ViewInfo.ProjectNO, documentID = _ViewInfo.DocumentItemID, userID = _ViewInfo.UserID }); |
654 | 684 |
|
655 | 685 |
if (App.ViewInfo != null && App.ViewInfo.ProjectNO != "") |
656 | 686 |
{ |
657 |
|
|
687 |
Logger.sendReqLog("GetMember", _ViewInfo.ProjectNO + "," + _ViewInfo.UserID, 1); |
|
658 | 688 |
userData = BaseClient.GetMember(App.ViewInfo.ProjectNO, App.ViewInfo.UserID); |
659 | 689 |
if (userData != null) |
660 | 690 |
{ |
691 |
Logger.sendReqLog("GetDeptDataAsync", userData.DEPARTMENT, 1); |
|
661 | 692 |
BaseClient.GetDeptDataAsync(userData.DEPARTMENT); |
662 | 693 |
} |
663 | 694 |
else |
664 | 695 |
{ |
665 | 696 |
userData = new MEMBER(); |
666 | 697 |
userData.DEPARTMENT = "ALL"; |
698 |
Logger.sendReqLog("GetDeptDataAsync", userData.DEPARTMENT, 1); |
|
667 | 699 |
BaseClient.GetDeptDataAsync(userData.DEPARTMENT); |
668 | 700 |
} |
669 | 701 |
} |
... | ... | |
683 | 715 |
|
684 | 716 |
private void BaseClient_GetDocInfoCompleted(object sender, GetDocInfoCompletedEventArgs e) |
685 | 717 |
{ |
718 |
Logger.sendResLog("GetDocInfoCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
719 |
|
|
686 | 720 |
if (e.Error != null) |
687 | 721 |
{ |
688 | 722 |
DialogMessage_Alert("페이지정보를 가져올 수 없습니다.", "Alert"); |
... | ... | |
700 | 734 |
{ |
701 | 735 |
ViewerDataModel.Instance.Document_Info.Add(item); |
702 | 736 |
} |
737 |
Logger.sendReqLog("GetMarkupInfoItemsAsync", _ViewInfo.ProjectNO + "," + _DocInfo.ID, 1); |
|
703 | 738 |
BaseClient.GetMarkupInfoItemsAsync(_ViewInfo.ProjectNO, _DocInfo.ID); |
704 | 739 |
CurrentDoc = new Common.DocumentSet |
705 | 740 |
{ |
... | ... | |
724 | 759 |
|
725 | 760 |
//ViewerDataModel.Instance.SystemMain.dzMainMenu.TempLoad(); |
726 | 761 |
|
762 |
Logger.sendReqLog("GetVPRevisionHistoryAsync", CurrentDoc.ProjectNo + "," + CurrentDoc.Document_NO + "," + CurrentDoc.Document_Id, 1); |
|
727 | 763 |
BaseClient.GetVPRevisionHistoryAsync(CurrentDoc.ProjectNo, CurrentDoc.Document_NO, CurrentDoc.Document_Id); |
728 | 764 |
} |
729 | 765 |
|
... | ... | |
735 | 771 |
{ |
736 | 772 |
ViewerDataModel.Instance.SystemMain.dzTopMenu.btnTopStamp.Visibility = Visibility.Collapsed; |
737 | 773 |
} |
774 |
Logger.sendReqLog("GetSystemDataAsync", "", 1); |
|
738 | 775 |
BaseClient.GetSystemDataAsync(); |
739 | 776 |
} |
740 | 777 |
|
내보내기 Unified diff