개정판 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 |
{ |
내보내기 Unified diff