개정판 eeb0a39c
Master 변경
Change-Id: I88bac84fa474fd4c174dc1fffa19eae5303ba2bc
KCOM/Events/SaveCommand.cs | ||
---|---|---|
72 | 72 |
/// </summary> |
73 | 73 |
/// <param name="UserState"></param> |
74 | 74 |
/// <param name="iPageNo"></param> |
75 |
public void Execute(ICollection<MarkupInfoItem> UserStates) |
|
75 |
public async void Execute(ICollection<MarkupInfoItem> UserStates)
|
|
76 | 76 |
{ |
77 | 77 |
try |
78 | 78 |
{ |
79 |
var mainmenu = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu; |
|
80 |
var client = mainmenu.BaseTaskClient; |
|
81 |
|
|
79 | 82 |
foreach (var UserState in UserStates) |
80 | 83 |
{ |
81 | 84 |
List<MARKUP_DATA> markupdata = new List<MARKUP_DATA>(); |
... | ... | |
93 | 96 |
|
94 | 97 |
|
95 | 98 |
|
96 |
var SaveResult = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SaveMarkupData(UserState, Project_No, document_id, user_id, markupdata);
|
|
99 |
var SaveResult = await client.SaveMarkupDataAsync(UserState, Project_No, document_id, user_id, markupdata);
|
|
97 | 100 |
|
98 | 101 |
Logger.sendResLog("SaveCommand.Instance.Execute" , $"SaveMarkupData Call Project : {Project_No} DocID :{document_id} User ID {user_id} result {SaveResult}",1); |
99 | 102 |
|
100 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.MarkupitemViewUpdate(UserState.MarkupInfoID);
|
|
103 |
mainmenu.MarkupitemViewUpdate(UserState.MarkupInfoID);
|
|
101 | 104 |
} |
102 | 105 |
//User Information List Rebind |
103 |
Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.gridViewMarkup.Rebind(); |
|
106 |
|
|
107 |
mainmenu.gridViewMarkup.Rebind(); |
|
104 | 108 |
TempFile.Remove(); //임시파일삭제 |
109 |
|
|
105 | 110 |
} |
106 | 111 |
catch (Exception) |
107 | 112 |
{ |
... | ... | |
152 | 157 |
} |
153 | 158 |
} |
154 | 159 |
|
155 |
public void PageAngleSave(string project_no, List<DOCPAGE> _mldocpage) |
|
160 |
public async void PageAngleSave(string project_no, List<DOCPAGE> _mldocpage)
|
|
156 | 161 |
{ |
157 | 162 |
try |
158 | 163 |
{ |
159 |
Logger.sendReqLog("SavePageAngle: ", project_no + "," + _mldocpage, 1); |
|
160 |
Logger.sendResLog("SavePageAngle", Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SavePageAngle(project_no, _mldocpage).ToString(), 1); |
|
164 |
var result = await Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseTaskClient.SavePageAngleAsync(project_no, _mldocpage); |
|
161 | 165 |
Common.ViewerDataModel.Instance.RotationDocs.Clear(); |
166 |
|
|
167 |
Logger.sendReqLog("SavePageAngle: ", project_no + "," + _mldocpage, 1); |
|
168 |
Logger.sendResLog("SavePageAngle", result.ToString(), 1); |
|
169 |
|
|
162 | 170 |
} |
163 | 171 |
catch (Exception) |
164 | 172 |
{ |
내보내기 Unified diff