개정판 0cda2a88
ID | 0cda2a885008c0503d20d124631932685c72d462 |
상위 | b4b23404 |
하위 | 65d2042f, 2c629eec, 4cb62752, 71208c63, 606884bf, 64374bd8, 7f8a2ff4, 20ef6ffe, b2c6901f, 2c3eae15, 77190232, 6b24246c |
markus 성능개선
- 일정 페이지범위를 local 저장소에 저장
- Markup데이터를 페이지 로딩전 미리 로드
Change-Id: Ib6ef3d770a360c40acf01d6de04668bee653eee4
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 |
mainmenu.gridViewMarkup.Rebind();
|
|
104 | 107 |
TempFile.Remove(); //임시파일삭제 |
105 | 108 |
} |
106 | 109 |
catch (Exception) |
... | ... | |
152 | 155 |
} |
153 | 156 |
} |
154 | 157 | |
155 |
public void PageAngleSave(string project_no, List<DOCPAGE> _mldocpage) |
|
158 |
public async void PageAngleSave(string project_no, List<DOCPAGE> _mldocpage)
|
|
156 | 159 |
{ |
157 | 160 |
try |
158 | 161 |
{ |
159 |
Logger.sendReqLog("SavePageAngle: ", project_no + "," + _mldocpage, 1); |
|
160 |
Logger.sendResLog("SavePageAngle", Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.SavePageAngle(project_no, _mldocpage).ToString(), 1); |
|
162 |
var result = await Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseTaskClient.SavePageAngleAsync(project_no, _mldocpage); |
|
161 | 163 |
Common.ViewerDataModel.Instance.RotationDocs.Clear(); |
164 | ||
165 |
Logger.sendReqLog("SavePageAngle: ", project_no + "," + _mldocpage, 1); |
|
166 |
Logger.sendResLog("SavePageAngle", result.ToString(), 1); |
|
167 |
|
|
162 | 168 |
} |
163 | 169 |
catch (Exception) |
164 | 170 |
{ |
내보내기 Unified diff