개정판 0f065e57
issue #745 markus client log
KCOM/Controls/CheckList.xaml.cs | ||
---|---|---|
110 | 110 |
string doc_no = (Application.Current.MainWindow as MainWindow).dzMainMenu._DocItem.DOCUMENT_NO; |
111 | 111 |
string project_no = App.ViewInfo.ProjectNO; |
112 | 112 |
string user_id = App.ViewInfo.UserID; |
113 |
|
|
114 |
Logger.sendReqLog("GetUserCheckList: ", project_no + "," + user_id + "," + doc_no , 1); |
|
115 |
|
|
113 | 116 |
items = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetUserCheckList(project_no, user_id, doc_no); |
117 |
if(items.Count() > 0) |
|
118 |
{ |
|
119 |
Logger.sendResLog("GetUserCheckList", "TRUE", 1); |
|
120 |
} |
|
121 |
else |
|
122 |
{ |
|
123 |
Logger.sendResLog("GetUserCheckList", "FALSE", 1); |
|
124 |
} |
|
125 |
|
|
114 | 126 |
if (Lists.Count == 0) |
115 | 127 |
{ |
116 | 128 |
foreach (var item in items) |
... | ... | |
126 | 138 |
customer.REVISION = item.REVISION; |
127 | 139 |
|
128 | 140 |
#region history |
129 |
var history = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetCheckListHistory(project_no, item.ID); |
|
141 |
Logger.sendReqLog("GetCheckListHistory: ", project_no + "," + item.ID , 1); |
|
142 |
var history = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetCheckListHistory(project_no, item.ID); |
|
143 |
|
|
144 |
if (history.Count() > 0) |
|
145 |
{ |
|
146 |
Logger.sendResLog("GetCheckListHistory", "TRUE", 1); |
|
147 |
} |
|
148 |
else |
|
149 |
{ |
|
150 |
Logger.sendResLog("GetCheckListHistory", "FALSE", 1); |
|
151 |
} |
|
152 |
|
|
130 | 153 |
foreach (var rev in history) |
131 | 154 |
{ |
132 | 155 |
if (rev.REVISION == "A") |
... | ... | |
372 | 395 |
int w = 2; |
373 | 396 |
string project_no = App.ViewInfo.ProjectNO; |
374 | 397 |
worksheet.Cells[2, w + 8] = project_no; |
398 |
Logger.sendReqLog("GetProjectName: ", project_no , 1); |
|
399 |
|
|
375 | 400 |
string project_name = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetProjectName(project_no); |
401 |
if (project_name != null || project_name != "") |
|
402 |
{ |
|
403 |
Logger.sendResLog("GetProjectName", "TRUE", 1); |
|
404 |
} |
|
405 |
else |
|
406 |
{ |
|
407 |
Logger.sendResLog("GetProjectName", "FALSE", 1); |
|
408 |
} |
|
376 | 409 |
worksheet.Cells[3, w + 8] = project_name; |
377 | 410 |
|
378 | 411 |
worksheet.Cells[4, w + 8] = (Application.Current.MainWindow as MainWindow).dzMainMenu._DocItem.DOCUMENT_NO; |
... | ... | |
577 | 610 |
|
578 | 611 |
string project_no = App.ViewInfo.ProjectNO; |
579 | 612 |
|
613 |
Logger.sendReqLog("GetPreRevSelect: ", project_no + "," + Current_DocNo + "," + Current_Revision, 1); |
|
614 |
|
|
580 | 615 |
List<DOCUMENT_ITEM> list = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetPreRevSelect(project_no, Current_DocNo, Current_Revision); |
616 |
if (list.Count() > 0) |
|
617 |
{ |
|
618 |
Logger.sendResLog("GetPreRevSelect", "TRUE", 1); |
|
619 |
} |
|
620 |
else |
|
621 |
{ |
|
622 |
Logger.sendResLog("GetPreRevSelect", "FALSE", 1); |
|
623 |
} |
|
581 | 624 |
foreach (var I in list) |
582 | 625 |
{ |
583 | 626 |
if (int.Parse(I.GROUP_NO) < Current_Slip) |
... | ... | |
618 | 661 |
string Check_ID = (item as Customer).ID.ToString(); |
619 | 662 |
string state = ""; |
620 | 663 |
|
664 |
Logger.sendReqLog("GetCheckList: ", App.ViewInfo.ProjectNO + "," + Check_ID , 1); |
|
621 | 665 |
Check_value = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetCheckList(App.ViewInfo.ProjectNO, Check_ID); |
622 |
|
|
666 |
if (Check_value != null) |
|
667 |
{ |
|
668 |
Logger.sendResLog("GetCheckList", "TRUE", 1); |
|
669 |
} |
|
670 |
else |
|
671 |
{ |
|
672 |
Logger.sendResLog("GetCheckList", "FALSE", 1); |
|
673 |
} |
|
674 |
|
|
623 | 675 |
if (Check_value != null) |
624 | 676 |
{ |
625 | 677 |
if ((item as Customer).STATUS.ToUpper() == "TRUE") |
... | ... | |
649 | 701 |
else |
650 | 702 |
description = Check_value.STATUS_DESC_CLOSE; |
651 | 703 |
|
652 |
var history = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetCheckListHistory(App.ViewInfo.ProjectNO, Check_ID); |
|
653 |
|
|
704 |
Logger.sendReqLog("GetCheckListHistory: ", App.ViewInfo.ProjectNO + "," + Check_ID, 1); |
|
705 |
var history = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetCheckListHistory(App.ViewInfo.ProjectNO, Check_ID); |
|
706 |
if (history.Count() > 0) |
|
707 |
{ |
|
708 |
Logger.sendResLog("GetCheckList", "TRUE", 1); |
|
709 |
} |
|
710 |
else |
|
711 |
{ |
|
712 |
Logger.sendResLog("GetCheckList", "FALSE", 1); |
|
713 |
} |
|
654 | 714 |
Check_History = history.Where(info => info.REVISION == ViewerDataModel.Instance.SystemMain.dzMainMenu.CurrentDoc.Revision).FirstOrDefault(); |
655 | 715 |
|
656 | 716 |
List<string> validation = new List<string>(); |
... | ... | |
688 | 748 |
CREATE_TIME = DateTime.Now, |
689 | 749 |
UPDATE_TIME = DateTime.Now |
690 | 750 |
}; |
691 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.AddCheckListHistory(App.ViewInfo.ProjectNO, Check_History); |
|
751 |
|
|
752 |
Logger.sendReqLog("AddCheckListHistory: ", App.ViewInfo.ProjectNO + "," + Check_History, 1); |
|
753 |
Logger.sendResLog("AddCheckListHistory", Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.AddCheckListHistory(App.ViewInfo.ProjectNO, Check_History).ToString(), 1); |
|
754 |
//Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.AddCheckListHistory(App.ViewInfo.ProjectNO, Check_History); |
|
692 | 755 |
|
693 | 756 |
Check_value.REVISION = Current_Revision; |
694 | 757 |
} |
... | ... | |
701 | 764 |
Check_History.REMARK = Check_value.REMARK; |
702 | 765 |
Check_History.REPLY = Check_value.REPLY; |
703 | 766 |
Check_History.UPDATE_TIME = DateTime.Now; |
704 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SaveCheckListHistory(App.ViewInfo.ProjectNO, ViewerDataModel.Instance.SystemMain.dzMainMenu.CurrentDoc.Revision, Check_History); |
|
767 |
|
|
768 |
Logger.sendReqLog("SaveCheckListHistory: ", App.ViewInfo.ProjectNO + "," + ViewerDataModel.Instance.SystemMain.dzMainMenu.CurrentDoc.Revision + "," + Check_History, 1); |
|
769 |
Logger.sendResLog("SaveCheckListHistory", Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SaveCheckListHistory(App.ViewInfo.ProjectNO, ViewerDataModel.Instance.SystemMain.dzMainMenu.CurrentDoc.Revision, Check_History).ToString(), 1); |
|
770 |
|
|
771 |
//Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SaveCheckListHistory(App.ViewInfo.ProjectNO, ViewerDataModel.Instance.SystemMain.dzMainMenu.CurrentDoc.Revision, Check_History); |
|
705 | 772 |
} |
706 | 773 |
} |
707 | 774 |
validation = new List<string>(); |
708 | 775 |
} |
709 | 776 |
} |
710 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SaveCheckList(App.ViewInfo.ProjectNO, Check_ID, Check_value); |
|
777 |
|
|
778 |
Logger.sendReqLog("SaveCheckList: ", App.ViewInfo.ProjectNO + "," + Check_ID + "," + Check_value, 1); |
|
779 |
Logger.sendResLog("SaveCheckList", Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SaveCheckList(App.ViewInfo.ProjectNO, Check_ID, Check_value).ToString(), 1); |
|
780 |
//Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SaveCheckList(App.ViewInfo.ProjectNO, Check_ID, Check_value); |
|
711 | 781 |
} |
712 | 782 |
|
713 | 783 |
DataBind(); |
... | ... | |
988 | 1058 |
|
989 | 1059 |
private void SyncEvent(object sender, MouseButtonEventArgs e) |
990 | 1060 |
{ |
1061 |
|
|
1062 |
Logger.sendReqLog("GetVPRevisionFirstOrDefault: ", App.ViewInfo.ProjectNO + "," + old_DocID, 1); |
|
991 | 1063 |
var _vpList = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetVPRevisionFirstOrDefault(App.ViewInfo.ProjectNO, old_DocID); |
1064 |
if(_vpList != null) |
|
1065 |
{ |
|
1066 |
Logger.sendResLog("GetVPRevisionFirstOrDefault", "TRUE", 1); |
|
1067 |
} |
|
1068 |
else |
|
1069 |
{ |
|
1070 |
Logger.sendResLog("GetVPRevisionFirstOrDefault", "FALSE", 1); |
|
1071 |
} |
|
1072 |
|
|
992 | 1073 |
|
993 | 1074 |
if (old_DocID == "") |
994 | 1075 |
{ |
KCOM/Controls/CheckList_Detail.xaml.cs | ||
---|---|---|
47 | 47 |
public void DataBind() |
48 | 48 |
{ |
49 | 49 |
CHECK_LIST_HISTORY Check_Item = new CHECK_LIST_HISTORY(); |
50 |
|
|
51 |
Logger.sendReqLog("GetCheckListHistoryFirstOrDefault: ", App.ViewInfo.ProjectNO + "," + CheckID + "," + Rev, 1); |
|
50 | 52 |
Check_Item = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetCheckListHistoryFirstOrDefault(App.ViewInfo.ProjectNO, CheckID, Rev); |
51 | 53 |
if (Check_Item != null) |
52 | 54 |
{ |
55 |
Logger.sendResLog("GetCheckListHistoryFirstOrDefault", "TRUE", 1); |
|
56 |
} |
|
57 |
else |
|
58 |
{ |
|
59 |
Logger.sendResLog("GetCheckListHistoryFirstOrDefault", "FALSE", 1); |
|
60 |
} |
|
61 |
if (Check_Item != null) |
|
62 |
{ |
|
53 | 63 |
BitmapImage bitmapImage = new BitmapImage(); |
54 | 64 |
using (var mem = new MemoryStream(Convert.FromBase64String(Check_Item.IMAGE_URL))) |
55 | 65 |
{ |
KCOM/Controls/FavoritePanel.xaml.cs | ||
---|---|---|
41 | 41 |
InitializeComponent(); |
42 | 42 |
//System.Diagnostics.Debug.WriteLine("FavoritePanel() : " + sw.ElapsedMilliseconds.ToString() + "ms"); |
43 | 43 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetFavoriteVPCompleted += BaseClient_GetFavoriteVPCompleted; |
44 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.EditFavoriteVPCompleted += BaseClient_EditFavoriteVPCompleted; |
|
45 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.DeleteMarkupCompleted += BaseClient_DeleteMarkupCompleted; |
|
46 |
|
|
44 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.EditFavoriteVPCompleted += BaseClient_EditFavoriteVPCompleted; |
|
45 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.DeleteMarkupCompleted += BaseClient_DeleteMarkupCompleted; |
|
47 | 46 |
if (!IsLoaded) |
48 | 47 |
{ |
49 | 48 |
if (App.ViewInfo != null && App.ViewInfo.ProjectNO != "") |
50 | 49 |
{ |
50 |
Logger.sendReqLog("GetFavoriteVPAsync: ", App.ViewInfo.ProjectNO + "," + App.ViewInfo.UserID + "," + App.ViewInfo.DocumentItemID, 1); |
|
51 | 51 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetFavoriteVPAsync(App.ViewInfo.ProjectNO, App.ViewInfo.UserID, App.ViewInfo.DocumentItemID); |
52 | 52 |
//autoSearchSymbol.Visibility = Visibility.Visible; |
53 | 53 |
} |
... | ... | |
65 | 65 |
{ |
66 | 66 |
if (e.Error == null && e.Result != null) |
67 | 67 |
{ |
68 |
Logger.sendReqLog("GetFavoriteVPAsync: ", App.ViewInfo.ProjectNO + "," + App.ViewInfo.UserID + "," + App.ViewInfo.DocumentItemID, 1); |
|
68 | 69 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetFavoriteVPAsync(App.ViewInfo.ProjectNO, App.ViewInfo.UserID, App.ViewInfo.DocumentItemID); |
69 | 70 |
} |
70 | 71 |
else |
71 | 72 |
{ |
72 | 73 |
|
73 | 74 |
} |
75 |
Logger.sendResLog("DeleteMarkupCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
74 | 76 |
} |
75 | 77 |
private void BaseClient_EditFavoriteVPCompleted(object sender, ServiceDeepView.EditFavoriteVPCompletedEventArgs e) |
76 | 78 |
{ |
77 | 79 |
if (e.Error == null && e.Result != null) |
78 | 80 |
{ |
81 |
Logger.sendReqLog("GetFavoriteVPAsync: ", App.ViewInfo.ProjectNO + "," + App.ViewInfo.UserID + "," + App.ViewInfo.DocumentItemID, 1); |
|
79 | 82 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetFavoriteVPAsync(App.ViewInfo.ProjectNO, App.ViewInfo.UserID, App.ViewInfo.DocumentItemID); |
80 | 83 |
} |
84 |
Logger.sendResLog("EditFavoriteVPCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
81 | 85 |
} |
82 | 86 |
|
83 | 87 |
private void BaseClient_GetFavoriteVPCompleted(object sender, ServiceDeepView.GetFavoriteVPCompletedEventArgs e) |
... | ... | |
103 | 107 |
ViewerDataModel.Instance.SystemMain.dzMainMenu.pageNavigator._FavoriteSet = InVp; |
104 | 108 |
} |
105 | 109 |
} |
110 |
Logger.sendResLog("GetFavoriteVPCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
106 | 111 |
} |
107 | 112 |
|
108 | 113 |
private void cbState_Loaded(object sender, RoutedEventArgs e) |
... | ... | |
194 | 199 |
{ |
195 | 200 |
if (addFavorite.DialogResult == true) |
196 | 201 |
{ |
202 |
Logger.sendReqLog("GetFavoriteVPAsync: ", App.ViewInfo.ProjectNO + "," + App.ViewInfo.UserID + "," + App.ViewInfo.DocumentItemID, 1); |
|
197 | 203 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetFavoriteVPAsync(App.ViewInfo.ProjectNO, App.ViewInfo.UserID, App.ViewInfo.DocumentItemID); |
198 | 204 |
} |
199 | 205 |
}; |
... | ... | |
241 | 247 |
|
242 | 248 |
if (favoInstance.MEMBER_USER_ID == App.ViewInfo.UserID) |
243 | 249 |
{ |
250 |
Logger.sendReqLog("DelFavoriteVPAsync: ", favoInstance.PROJECT_NO + "," + favoInstance.MEMBER_USER_ID + "," + favoInstance.PAGE_NO, 1); |
|
244 | 251 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.DelFavoriteVPAsync(favoInstance.PROJECT_NO, favoInstance.MEMBER_USER_ID, favoInstance.PAGE_NO, |
245 | 252 |
favoInstance.ID); |
246 | 253 |
} |
... | ... | |
267 | 274 |
{ |
268 | 275 |
if (addFavorite.DialogResult == true) |
269 | 276 |
{ |
277 |
Logger.sendReqLog("GetFavoriteVPAsync: ", App.ViewInfo.ProjectNO + "," + App.ViewInfo.UserID + "," + App.ViewInfo.DocumentItemID, 1); |
|
270 | 278 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetFavoriteVPAsync(App.ViewInfo.ProjectNO, App.ViewInfo.UserID, App.ViewInfo.DocumentItemID); |
271 | 279 |
} |
272 | 280 |
}; |
KCOM/Controls/Symbol.xaml.cs | ||
---|---|---|
279 | 279 |
return; |
280 | 280 |
} |
281 | 281 |
string delItem_ID = (lstSymbolPrivate.SelectedItem as Symbol_Custom).ID; |
282 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.DeleteSymbolCompleted += BaseClient_DeleteSymbolCompleted; |
|
282 |
|
|
283 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.DeleteSymbolCompleted += BaseClient_DeleteSymbolCompleted; |
|
284 |
Logger.sendReqLog("DeleteSymbolAsync: ", delItem_ID, 1); |
|
283 | 285 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.DeleteSymbolAsync(delItem_ID); |
284 | 286 |
|
285 | 287 |
} |
286 | 288 |
|
287 | 289 |
private void BaseClient_DeleteSymbolCompleted(object sender, ServiceDeepView.DeleteSymbolCompletedEventArgs e) |
288 | 290 |
{ |
291 |
Logger.sendResLog("DeleteSymbolCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
289 | 292 |
DataBind(); |
290 | 293 |
} |
291 | 294 |
#endregion |
... | ... | |
301 | 304 |
|
302 | 305 |
try |
303 | 306 |
{ |
307 |
Logger.sendReqLog("GetSymbolData: ", id + "," + RadTab.SelectedIndex, 1); |
|
304 | 308 |
Data_ = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetSymbolData(id, RadTab.SelectedIndex); |
309 |
if (Data_ != null || Data_ != "") |
|
310 |
{ |
|
311 |
Logger.sendResLog("GetSymbolData", "TRUE", 1); |
|
312 |
} |
|
313 |
else |
|
314 |
{ |
|
315 |
Logger.sendResLog("GetSymbolData", "FALSE", 1); |
|
316 |
} |
|
305 | 317 |
|
306 | 318 |
if (Data_.Contains("|DZ|")) |
307 | 319 |
{ |
... | ... | |
379 | 391 |
string _name = args.PromptResult; |
380 | 392 |
|
381 | 393 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.RenameSymbolCompleted += BaseClient_RenameSymbolCompleted; |
382 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.RenameSymbolAsync(_id, _name); |
|
383 |
|
|
394 |
|
|
395 |
Logger.sendReqLog("RenameSymbolAsync: ", _id + "," + _name, 1); |
|
396 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.RenameSymbolAsync(_id, _name); |
|
384 | 397 |
} |
385 | 398 |
} |
386 | 399 |
|
387 | 400 |
private void BaseClient_RenameSymbolCompleted(object sender, ServiceDeepView.RenameSymbolCompletedEventArgs e) |
388 | 401 |
{ |
402 |
Logger.sendResLog("RenameSymbolCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
389 | 403 |
DataBind(); |
390 | 404 |
} |
391 | 405 |
#endregion |
KCOM/Controls/addToFavoriteWindow_Internal.xaml.cs | ||
---|---|---|
67 | 67 |
tbDescription.Text = instanceDoc.DESCRIPTION; |
68 | 68 |
cbState.SelectedIndex = instanceDoc.FLAG - 1; |
69 | 69 |
btnOK.Content = "MODIFY"; |
70 |
|
|
71 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.EditFavoriteVPCompleted += BaseClient_EditFavoriteVPCompleted; |
|
70 |
|
|
71 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.EditFavoriteVPCompleted += BaseClient_EditFavoriteVPCompleted;
|
|
72 | 72 |
} |
73 | 73 |
else |
74 | 74 |
{ |
... | ... | |
80 | 80 |
|
81 | 81 |
private void BaseClient_EditFavoriteVPCompleted(object sender, ServiceDeepView.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 | 84 |
this.Close(); |
84 | 85 |
} |
85 | 86 |
|
86 | 87 |
void _Client_SetFavoriteVPCompleted(object sender, ServiceDeepView.SetFavoriteVPCompletedEventArgs e) |
87 | 88 |
{ |
89 |
Logger.sendResLog("SetFavoriteVPCompleted", "UserState : " + e.UserState + "\r Result :" + e.Result + "\r Cancelled :" + e.Cancelled + "\r Error :" + e.Error, 1); |
|
88 | 90 |
if (e.Error != null || !e.Result) |
89 | 91 |
{ |
90 | 92 |
//미입력 |
91 | 93 |
} |
92 | 94 |
else |
93 | 95 |
{ |
96 |
Logger.sendReqLog("GetFavoriteVPAsync" ,App.ViewInfo.ProjectNO + "," + App.ViewInfo.UserID + "," + App.ViewInfo.DocumentItemID, 1); |
|
94 | 97 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetFavoriteVPAsync(App.ViewInfo.ProjectNO, App.ViewInfo.UserID, App.ViewInfo.DocumentItemID); |
95 | 98 |
|
96 | 99 |
} |
... | ... | |
109 | 112 |
{ |
110 | 113 |
FAVORITE_FLAG flag = (FAVORITE_FLAG)Enum.Parse(typeof(FAVORITE_FLAG), cbState.Text, true); |
111 | 114 |
|
115 |
Logger.sendReqLog("EditFavoriteVPAsync", App.ViewInfo.ProjectNO + "," + App.ViewInfo.UserID + "," +instanceDoc.ID + "," +Convert.ToInt32(flag) + "," +tbDescription.Text, 1); |
|
112 | 116 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.EditFavoriteVPAsync(App.ViewInfo.ProjectNO, App.ViewInfo.UserID, instanceDoc.ID, Convert.ToInt32(flag), tbDescription.Text); |
113 | 117 |
} |
114 | 118 |
} |
KCOM/Events/Implementation/TopMenuEvent.cs | ||
---|---|---|
564 | 564 |
PrintWindow.Header = Type; |
565 | 565 |
|
566 | 566 |
List<IKCOM.MarkupInfoItem> markupinfo = new List<IKCOM.MarkupInfoItem>(); |
567 |
|
|
568 |
Logger.sendReqLog("GetPrintDocItemList: ", App.ViewInfo.ProjectNO + "," + App.ViewInfo.DocumentItemID + "," + ViewerDataModel.Instance._markupInfoList.ToList(), 1); |
|
567 | 569 |
markupinfo = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetPrintDocItemList(App.ViewInfo.ProjectNO, App.ViewInfo.DocumentItemID, ViewerDataModel.Instance._markupInfoList.ToList()); |
568 | 570 |
|
571 |
if (markupinfo.Count() > 0) |
|
572 |
{ |
|
573 |
Logger.sendResLog("GetPrintDocItemList", "TRUE", 1); |
|
574 |
} |
|
575 |
else |
|
576 |
{ |
|
577 |
Logger.sendResLog("GetPrintDocItemList", "FALSE", 1); |
|
578 |
} |
|
579 |
|
|
569 | 580 |
var Tile_Url = string.Format(@"{0}/TileSource/{1}_Tile/{2}/{3}/", |
570 | 581 |
App.SystemInfo.HostName, |
571 | 582 |
App.ViewInfo.ProjectNO, |
KCOM/Events/Load.cs | ||
---|---|---|
46 | 46 |
{ |
47 | 47 |
LayerControl layerControl = new LayerControl(); |
48 | 48 |
List<string> markupdata = new List<string>(); |
49 |
|
|
50 |
Logger.sendReqLog("GetMarkupDataListperPage: ", App.ViewInfo.ProjectNO + "," + Markupinfoid + "," + Page_No, 1); |
|
49 | 51 |
markupdata = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetMarkupDataListperPage(App.ViewInfo.ProjectNO, Markupinfoid, Page_No); |
52 |
|
|
53 |
if (markupdata.Count() > 0) |
|
54 |
{ |
|
55 |
Logger.sendResLog("GetMarkupDataListperPage", "TRUE", 1); |
|
56 |
} |
|
57 |
else |
|
58 |
{ |
|
59 |
Logger.sendResLog("GetMarkupDataListperPage", "FALSE", 1); |
|
60 |
} |
|
61 |
|
|
50 | 62 |
foreach (string data in markupdata) |
51 | 63 |
{ |
52 | 64 |
layerControl.ProjectNo = App.ViewInfo.ProjectNO; |
KCOM/Events/Save.cs | ||
---|---|---|
112 | 112 |
|
113 | 113 |
}); |
114 | 114 |
|
115 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SaveMarkupData(UserState, Project_No, document_id, user_id, ml_markupdata); |
|
115 |
Logger.sendReqLog("GetMarkupDataListperPage: ", UserState + "," + Project_No + "," + document_id + "," + user_id + "," + ml_markupdata, 1); |
|
116 |
Logger.sendResLog("GetMarkupDataListperPage", Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SaveMarkupData(UserState, Project_No, document_id, user_id, ml_markupdata).ToString(), 1); |
|
117 |
//Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SaveMarkupData(UserState, Project_No, document_id, user_id, ml_markupdata); |
|
116 | 118 |
temp.Remove(); //임시파일삭제 |
117 | 119 |
} |
118 | 120 |
catch (Exception) |
... | ... | |
136 | 138 |
IMAGE_URL = Url, |
137 | 139 |
DATA = Data |
138 | 140 |
}; |
141 |
|
|
142 |
Logger.sendReqLog("SaveSymbolAsync: ", symbol_private.ID + "," + symbol_private.MEMBER_USER_ID + "," + symbol_private.NAME + "," + symbol_private.IMAGE_URL + "," + symbol_private.DATA, 1); |
|
139 | 143 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SaveSymbolAsync(symbol_private); |
140 | 144 |
} |
141 | 145 |
catch(Exception) |
... | ... | |
148 | 152 |
{ |
149 | 153 |
try |
150 | 154 |
{ |
151 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SavePageAngle(project_no, _mldocpage); |
|
155 |
|
|
156 |
Logger.sendReqLog("SavePageAngle: ", project_no + "," + _mldocpage, 1); |
|
157 |
Logger.sendResLog("SavePageAngle", Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SavePageAngle(project_no, _mldocpage).ToString(), 1); |
|
152 | 158 |
Common.ViewerDataModel.Instance.RotationDocs.Clear(); |
153 | 159 |
} |
154 | 160 |
catch (Exception) |
KCOM/KCOM.csproj | ||
---|---|---|
238 | 238 |
<Compile Include="Controls\Symbol.xaml.cs"> |
239 | 239 |
<DependentUpon>Symbol.xaml</DependentUpon> |
240 | 240 |
</Compile> |
241 |
<Compile Include="Logger.cs" /> |
|
241 | 242 |
<Compile Include="Messenger\ConversationView.xaml.cs"> |
242 | 243 |
<DependentUpon>ConversationView.xaml</DependentUpon> |
243 | 244 |
</Compile> |
KCOM/Logger.cs | ||
---|---|---|
1 |
using System; |
|
2 |
using System.Collections.Generic; |
|
3 |
using System.Diagnostics; |
|
4 |
using System.IO; |
|
5 |
using System.Linq; |
|
6 |
using System.Text; |
|
7 |
|
|
8 |
namespace KCOM |
|
9 |
{ |
|
10 |
class Logger |
|
11 |
{ |
|
12 |
|
|
13 |
public static void sendReqLog(string name, string text, int Loglevel) |
|
14 |
{ |
|
15 |
try |
|
16 |
{ |
|
17 |
int lv = global::KCOM.Properties.Settings.Default.loglevel; |
|
18 |
if (lv >= Loglevel) //세팅의 로그 레벨보다 낮거나 같으면 남김 |
|
19 |
{ |
|
20 |
// string Msg = (string)text + " / " + DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") + "\r\n"; |
|
21 |
string Msg = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") + "\t" + "REQ" + "\t" + name + "(" + (string)text + ")" + "\r\n"; |
|
22 |
string Dir = AppDomain.CurrentDomain.BaseDirectory + "Log"; |
|
23 |
|
|
24 |
if (Directory.Exists(Dir) == false) |
|
25 |
{ |
|
26 |
Directory.CreateDirectory(Dir); |
|
27 |
} |
|
28 |
|
|
29 |
int min = DateTime.Now.Minute / 1; |
|
30 |
|
|
31 |
string path = Dir + "/" + "Log_" + DateTime.Now.ToString("yyyy-MM-dd HH-") + min + ".txt"; |
|
32 |
File.AppendAllText(path, Msg); |
|
33 |
} |
|
34 |
} |
|
35 |
catch (Exception e) |
|
36 |
{ |
|
37 |
Debug.WriteLine(e); |
|
38 |
} |
|
39 |
} |
|
40 |
|
|
41 |
public static void sendResLog(string name, string text, int Loglevel) |
|
42 |
{ |
|
43 |
try |
|
44 |
{ |
|
45 |
int lv = global::KCOM.Properties.Settings.Default.loglevel; |
|
46 |
if (lv >= Loglevel) //세팅의 로그 레벨보다 낮거나 같으면 남김 |
|
47 |
{ |
|
48 |
// string Msg = (string)text + " / " + DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") + "\r\n"; |
|
49 |
string Msg = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") + "\t" + "RES" + "\t" + name + "(" + (string)text + ")" + "\r\n"; |
|
50 |
string Dir = AppDomain.CurrentDomain.BaseDirectory + "Log"; |
|
51 |
|
|
52 |
if (Directory.Exists(Dir) == false) |
|
53 |
{ |
|
54 |
Directory.CreateDirectory(Dir); |
|
55 |
} |
|
56 |
|
|
57 |
int min = DateTime.Now.Minute / 1; |
|
58 |
|
|
59 |
string path = Dir + "/" + "Log_" + DateTime.Now.ToString("yyyy-MM-dd HH-") + min + ".txt"; |
|
60 |
File.AppendAllText(path, Msg); |
|
61 |
} |
|
62 |
} |
|
63 |
catch (Exception e) |
|
64 |
{ |
|
65 |
Debug.WriteLine(e); |
|
66 |
} |
|
67 |
} |
|
68 |
} |
|
69 |
} |
KCOM/Messenger/ConversationView.xaml.cs | ||
---|---|---|
138 | 138 |
ANGLE = (int)instanceMain.dzMainMenu.rotate.Angle |
139 | 139 |
}; |
140 | 140 |
|
141 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.AddMessage(App.ViewInfo.ProjectNO, message);
|
|
142 |
|
|
143 |
List<KCOMDataModel.DataModel.TALK> messagelist = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetMessage(App.ViewInfo.ProjectNO, App.ViewInfo.DocumentItemID);
|
|
141 |
Logger.sendReqLog("AddMessage: ", App.ViewInfo.ProjectNO + "," + message, 1);
|
|
142 |
Logger.sendResLog("AddMessage", Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.AddMessage(App.ViewInfo.ProjectNO, message).ToString(), 1); |
|
143 |
//Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.AddMessage(App.ViewInfo.ProjectNO, message);
|
|
144 | 144 |
|
145 |
Logger.sendReqLog("GetMessage: ", App.ViewInfo.ProjectNO + "," + App.ViewInfo.DocumentItemID, 1); |
|
146 |
List<KCOMDataModel.DataModel.TALK> messagelist = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetMessage(App.ViewInfo.ProjectNO, App.ViewInfo.DocumentItemID); |
|
147 |
if(messagelist.Count() > 0) |
|
148 |
{ |
|
149 |
Logger.sendResLog("GetMessage", "TRUE", 1); |
|
150 |
} |
|
151 |
else |
|
152 |
{ |
|
153 |
Logger.sendResLog("GetMessage", "FALSE", 1); |
|
154 |
} |
|
145 | 155 |
messagelist.ForEach(a => |
146 | 156 |
{ |
147 | 157 |
Common.ViewerDataModel.Instance.k_talkMessageSet.Add(a); |
... | ... | |
184 | 194 |
ClickAnchorCommand = new Telerik.Windows.Controls.DelegateCommand(SaveAuthorization); |
185 | 195 |
if (string.IsNullOrEmpty(App.UserName)) |
186 | 196 |
{ |
197 |
Logger.sendReqLog("GetMember: ", App.ViewInfo.ProjectNO + "," + App.ViewInfo.UserID, 1); |
|
187 | 198 |
App.UserName = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetMember(App.ViewInfo.ProjectNO, App.ViewInfo.UserID).NAME; |
199 |
if(App.UserName != null || App.UserName != "") |
|
200 |
{ |
|
201 |
Logger.sendResLog("AddMessage", "TRUE", 1); |
|
202 |
} |
|
203 |
else |
|
204 |
{ |
|
205 |
Logger.sendResLog("AddMessage", "FALSE", 1); |
|
206 |
} |
|
188 | 207 |
} |
189 | 208 |
if (Common.ViewerDataModel.Instance.k_talkMessageSet.Count() == 0) |
190 | 209 |
{ |
210 |
Logger.sendReqLog("GetMessage: ", App.ViewInfo.ProjectNO + "," + App.ViewInfo.DocumentItemID, 1); |
|
191 | 211 |
List<KCOMDataModel.DataModel.TALK> messagelist = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetMessage(App.ViewInfo.ProjectNO, App.ViewInfo.DocumentItemID); |
192 |
|
|
212 |
if (messagelist.Count() > 0) |
|
213 |
{ |
|
214 |
Logger.sendResLog("GetMessage", "TRUE", 1); |
|
215 |
} |
|
216 |
else |
|
217 |
{ |
|
218 |
Logger.sendResLog("GetMessage", "FALSE", 1); |
|
219 |
} |
|
193 | 220 |
messagelist.ForEach(a => |
194 | 221 |
{ |
195 | 222 |
Common.ViewerDataModel.Instance.k_talkMessageSet.Add(a); |
... | ... | |
235 | 262 |
DOCUMENT_ID = App.ViewInfo.DocumentItemID |
236 | 263 |
}; |
237 | 264 |
|
238 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.AddMessage(App.ViewInfo.ProjectNO, message); |
|
265 |
Logger.sendReqLog("AddMessage", App.ViewInfo.ProjectNO + "," + message, 1); |
|
266 |
Logger.sendResLog("AddMessage", Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.AddMessage(App.ViewInfo.ProjectNO, message).ToString(), 1); |
|
267 |
//Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.AddMessage(App.ViewInfo.ProjectNO, message); |
|
239 | 268 |
|
240 |
List<KCOMDataModel.DataModel.TALK> messagelist = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetMessage(App.ViewInfo.ProjectNO, App.ViewInfo.DocumentItemID); |
|
269 |
Logger.sendReqLog("GetMessage: ", App.ViewInfo.ProjectNO + "," + App.ViewInfo.DocumentItemID, 1); |
|
270 |
List<KCOMDataModel.DataModel.TALK> messagelist = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetMessage(App.ViewInfo.ProjectNO, App.ViewInfo.DocumentItemID); |
|
271 |
if (messagelist.Count() > 0) |
|
272 |
{ |
|
273 |
Logger.sendResLog("GetMessage", "TRUE", 1); |
|
274 |
} |
|
275 |
else |
|
276 |
{ |
|
277 |
Logger.sendResLog("GetMessage", "FALSE", 1); |
|
278 |
} |
|
241 | 279 |
|
242 | 280 |
messagelist.ForEach(a => |
243 | 281 |
{ |
KCOM/Properties/Settings.Designer.cs | ||
---|---|---|
25 | 25 |
|
26 | 26 |
[global::System.Configuration.UserScopedSettingAttribute()] |
27 | 27 |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
28 |
[global::System.Configuration.DefaultSettingValueAttribute("http://www.devdoftech.co.kr:5978")]
|
|
28 |
[global::System.Configuration.DefaultSettingValueAttribute("http://localhost:13009")]
|
|
29 | 29 |
public string BaseClientAddress { |
30 | 30 |
get { |
31 | 31 |
return ((string)(this["BaseClientAddress"])); |
... | ... | |
192 | 192 |
this["SaveInterval"] = value; |
193 | 193 |
} |
194 | 194 |
} |
195 |
|
|
196 |
[global::System.Configuration.UserScopedSettingAttribute()] |
|
197 |
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] |
|
198 |
[global::System.Configuration.DefaultSettingValueAttribute("1")] |
|
199 |
public int loglevel { |
|
200 |
get { |
|
201 |
return ((int)(this["loglevel"])); |
|
202 |
} |
|
203 |
set { |
|
204 |
this["loglevel"] = value; |
|
205 |
} |
|
206 |
} |
|
195 | 207 |
} |
196 | 208 |
} |
KCOM/Properties/Settings.settings | ||
---|---|---|
3 | 3 |
<Profiles /> |
4 | 4 |
<Settings> |
5 | 5 |
<Setting Name="BaseClientAddress" Type="System.String" Scope="User"> |
6 |
<Value Profile="(Default)">http://www.devdoftech.co.kr:5978</Value>
|
|
6 |
<Value Profile="(Default)">http://localhost:13009</Value>
|
|
7 | 7 |
</Setting> |
8 | 8 |
<Setting Name="KCOM_kr_co_devdoftech_cloud_FileUpload" Type="(Web Service URL)" Scope="Application"> |
9 | 9 |
<Value Profile="(Default)">http://www.devdoftech.co.kr:5977/ImageUpload/FileUpload.asmx</Value> |
... | ... | |
50 | 50 |
<Setting Name="SaveInterval" Type="System.Double" Scope="User"> |
51 | 51 |
<Value Profile="(Default)">5</Value> |
52 | 52 |
</Setting> |
53 |
<Setting Name="loglevel" Type="System.Int32" Scope="User"> |
|
54 |
<Value Profile="(Default)">1</Value> |
|
55 |
</Setting> |
|
53 | 56 |
</Settings> |
54 | 57 |
</SettingsFile> |
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 |
|
KCOM/Views/MainMenu.xaml.cs | ||
---|---|---|
347 | 347 |
App.Custom_ViewInfoId = infoId; |
348 | 348 |
} |
349 | 349 |
} |
350 |
Logger.sendReqLog("DeleteMarkupAsync", App.ViewInfo.ProjectNO + "," + item.MarkupInfoID, 1); |
|
350 | 351 |
BaseClient.DeleteMarkupAsync(App.ViewInfo.ProjectNO, item.MarkupInfoID); |
351 | 352 |
} |
352 | 353 |
|
... | ... | |
4836 | 4837 |
{ |
4837 | 4838 |
markupInfoItems.Add(item); |
4838 | 4839 |
} |
4839 |
this.BaseClient.TeamConsolidate(project_no, user_id, doc_id, markupInfoItems); |
|
4840 |
Logger.sendReqLog("TeamConsolidate", project_no + "," + user_id + "," + doc_id + "," + markupInfoItems, 1); |
|
4841 |
Logger.sendResLog("TeamConsolidate", this.BaseClient.TeamConsolidate(project_no, user_id, doc_id, markupInfoItems).ToString(), 1); |
|
4842 |
//this.BaseClient.TeamConsolidate(project_no, user_id, doc_id, markupInfoItems); |
|
4840 | 4843 |
|
4844 |
Logger.sendReqLog("GetMarkupInfoItemsAsync", App.ViewInfo.ProjectNO + "," + _DocInfo.ID, 1); |
|
4841 | 4845 |
this.BaseClient.GetMarkupInfoItemsAsync(App.ViewInfo.ProjectNO, _DocInfo.ID); |
4842 | 4846 |
} |
4843 | 4847 |
} |
... | ... | |
4863 | 4867 |
{ |
4864 | 4868 |
markupInfoItems.Add(item); |
4865 | 4869 |
} |
4866 |
this.BaseClient.Consolidate(project_no, user_id, doc_id, markupInfoItems); |
|
4867 |
|
|
4870 |
Logger.sendReqLog("Consolidate", project_no + "," + user_id + "," + doc_id + "," + markupInfoItems, 1); |
|
4871 |
Logger.sendResLog("Consolidate", this.BaseClient.Consolidate(project_no, user_id, doc_id, markupInfoItems).ToString(), 1); |
|
4872 |
//this.BaseClient.Consolidate(project_no, user_id, doc_id, markupInfoItems); |
|
4873 |
|
|
4874 |
Logger.sendReqLog("GetMarkupInfoItemsAsync", App.ViewInfo.ProjectNO + "," + _DocInfo.ID, 1); |
|
4868 | 4875 |
this.BaseClient.GetMarkupInfoItemsAsync(App.ViewInfo.ProjectNO, _DocInfo.ID); |
4869 | 4876 |
|
4870 | 4877 |
} |
... | ... | |
4916 | 4923 |
var item = gridViewMarkup.Items.Cast<MarkupInfoItem>().Where(d => d.Consolidate == 1 && d.AvoidConsolidate == 0).FirstOrDefault(); |
4917 | 4924 |
if (item != null) |
4918 | 4925 |
{ |
4926 |
Logger.sendReqLog("SetFinalPDFAsync", _ViewInfo.ProjectNO + "," + _DocInfo.ID + "," + item.MarkupInfoID + "," + _ViewInfo.UserID, 1); |
|
4927 |
|
|
4919 | 4928 |
BaseClient.SetFinalPDFAsync(_ViewInfo.ProjectNO, _DocInfo.ID, item.MarkupInfoID, _ViewInfo.UserID); |
4920 | 4929 |
} |
4921 | 4930 |
else |
... | ... | |
4953 | 4962 |
ViewerDataModel.Instance.PageNumber = 1; |
4954 | 4963 |
} |
4955 | 4964 |
|
4965 |
Logger.sendReqLog("GetCompareRectAsync", _ViewInfo.ProjectNO + "," + _ViewInfo.DocumentItemID + "," + CurrentRev.DOCUMENT_ID + |
|
4966 |
"," + pageNavigator.CurrentPage.PageNumber.ToString() + "," + ViewerDataModel.Instance.PageNumber.ToString() + "," + |
|
4967 |
userData.COMPANY != "EXT" ? "true" : "false" , 1); |
|
4968 |
|
|
4956 | 4969 |
BaseClient.GetCompareRectAsync(_ViewInfo.ProjectNO, _ViewInfo.DocumentItemID, CurrentRev.DOCUMENT_ID, pageNavigator.CurrentPage.PageNumber.ToString(), ViewerDataModel.Instance.PageNumber.ToString(), userData.COMPANY != "EXT" ? "true" : "false"); |
4957 | 4970 |
} |
4958 | 4971 |
else |
... | ... | |
5275 | 5288 |
tlSyncPageNum.Text = String.Format("Current Page : {0}", pageNavigator.CurrentPage.PageNumber); |
5276 | 5289 |
gridViewHistory_Busy.IsBusy = false; |
5277 | 5290 |
} |
5278 |
}; |
|
5291 |
|
|
5292 |
Logger.sendResLog("GetSyncMarkupInfoItemsCompleted", "UserState : " + ea.UserState + "\r Result :" + ea.Result + "\r Cancelled :" + ea.Cancelled + "\r Error :" + ea.Error, 1); |
|
5293 |
}; |
|
5279 | 5294 |
BaseClient.GetSyncMarkupInfoItemsAsync(_ViewInfo.ProjectNO, CurrentRev.DOCUMENT_ID, _ViewInfo.UserID); |
5295 |
Logger.sendReqLog("GetSyncMarkupInfoItemsAsync", _ViewInfo.ProjectNO + "," + CurrentRev.DOCUMENT_ID + "," + _ViewInfo.UserID, 1); |
|
5280 | 5296 |
} |
5281 | 5297 |
} |
5282 | 5298 |
|
... | ... | |
5336 | 5352 |
|
5337 | 5353 |
tlSyncRev.Text = String.Format("Rev. {0}", CurrentRev.RevNo); |
5338 | 5354 |
tlSyncPageNum.Text = String.Format("Current Page : {0}", pageNavigator.CurrentPage.PageNumber); |
5339 |
gridViewHistory_Busy.IsBusy = false; |
|
5355 |
gridViewHistory_Busy.IsBusy = false;
|
|
5340 | 5356 |
} |
5357 |
Logger.sendResLog("GetSyncMarkupInfoItemsCompleted", "UserState : " + ea.UserState + "\r Result :" + ea.Result + "\r Cancelled :" + ea.Cancelled + "\r Error :" + ea.Error, 1); |
|
5358 |
|
|
5341 | 5359 |
}; |
5342 |
BaseClient.GetSyncMarkupInfoItemsAsync(_ViewInfo.ProjectNO, CurrentRev.DOCUMENT_ID, _ViewInfo.UserID); |
|
5343 |
|
|
5344 |
|
|
5360 |
Logger.sendReqLog("GetSyncMarkupInfoItemsAsync", _ViewInfo.ProjectNO + "," + CurrentRev.DOCUMENT_ID + "," + _ViewInfo.UserID, 1); |
|
5361 |
BaseClient.GetSyncMarkupInfoItemsAsync(_ViewInfo.ProjectNO, CurrentRev.DOCUMENT_ID, _ViewInfo.UserID); |
|
5345 | 5362 |
} |
5346 | 5363 |
|
5347 | 5364 |
private void PdfLink_ButtonDown(object sender, MouseButtonEventArgs e) |
... | ... | |
5560 | 5577 |
KCOMDataModel.DataModel.CHECK_LIST Item = new KCOMDataModel.DataModel.CHECK_LIST(); |
5561 | 5578 |
string projectno = App.ViewInfo.ProjectNO; |
5562 | 5579 |
string checklist_id = ViewerDataModel.Instance.CheckList_ID; |
5580 |
|
|
5581 |
Logger.sendReqLog("GetCheckList", projectno + "," + checklist_id, 1); |
|
5563 | 5582 |
Item = this.BaseClient.GetCheckList(projectno, checklist_id); |
5583 |
if(Item != null) |
|
5584 |
{ |
|
5585 |
Logger.sendResLog("GetCheckList", "TRUE", 1); |
|
5586 |
} |
|
5587 |
else |
|
5588 |
{ |
|
5589 |
Logger.sendResLog("GetCheckList", "FALSE", 1); |
|
5590 |
} |
|
5591 |
|
|
5564 | 5592 |
if (Item == null) |
5565 | 5593 |
{ |
5566 | 5594 |
check_ = new KCOMDataModel.DataModel.CHECK_LIST |
... | ... | |
5579 | 5607 |
DOCUMENT_NO = _DocItem.DOCUMENT_NO, |
5580 | 5608 |
STATUS_DESC_OPEN = "Vendor 반영 필요", |
5581 | 5609 |
}; |
5582 |
this.BaseClient.AddCheckList(projectno, check_); |
|
5610 |
Logger.sendReqLog("AddCheckList", projectno + "," + check_, 1); |
|
5611 |
Logger.sendResLog("AddCheckList", this.BaseClient.AddCheckList(projectno, check_).ToString(), 1); |
|
5612 |
//this.BaseClient.AddCheckList(projectno, check_); |
|
5583 | 5613 |
} |
5584 | 5614 |
else |
5585 | 5615 |
{ |
5586 | 5616 |
Item.IMAGE_URL = Result; |
5587 | 5617 |
Item.IMAGE_ANCHOR = x + "," + y + "," + width + "," + height; |
5588 |
Item.PAGENUMBER = this.pageNavigator.CurrentPage.PageNumber; |
|
5589 |
this.BaseClient.SaveCheckList(projectno, checklist_id, Item); |
|
5618 |
Item.PAGENUMBER = this.pageNavigator.CurrentPage.PageNumber; |
|
5619 |
Logger.sendReqLog("SaveCheckList", projectno + "," + checklist_id + "," + Item, 1); |
|
5620 |
Logger.sendResLog("SaveCheckList", this.BaseClient.SaveCheckList(projectno, checklist_id, Item).ToString(), 1); |
|
5621 |
//this.BaseClient.SaveCheckList(projectno, checklist_id, Item); |
|
5590 | 5622 |
} |
5591 | 5623 |
|
5592 | 5624 |
} |
KCOM/app.config | ||
---|---|---|
45 | 45 |
<userSettings> |
46 | 46 |
<KCOM.Properties.Settings> |
47 | 47 |
<setting name="BaseClientAddress" serializeAs="String"> |
48 |
<value>http://www.devdoftech.co.kr:5978</value>
|
|
48 |
<value>http://localhost:13009</value>
|
|
49 | 49 |
</setting> |
50 | 50 |
<setting name="HubAddress" serializeAs="String"> |
51 | 51 |
<value>http://www.devdoftech.co.kr:5100/</value> |
... | ... | |
68 | 68 |
<setting name="SaveInterval" serializeAs="String"> |
69 | 69 |
<value>5</value> |
70 | 70 |
</setting> |
71 |
<setting name="loglevel" serializeAs="String"> |
|
72 |
<value>1</value> |
|
73 |
</setting> |
|
71 | 74 |
</KCOM.Properties.Settings> |
72 | 75 |
</userSettings> |
73 | 76 |
<system.serviceModel> |
내보내기 Unified diff