개정판 b2d0f316
Feature: 선택한 객체를 앞으로(+)/뒤로(-) 보내기 기능 추가
Change-Id: I9130a93cfdb2d079f28258f3d669a6f532695f89
KCOM/Events/SaveCommand.cs | ||
---|---|---|
80 | 80 |
|
81 | 81 |
try |
82 | 82 |
{ |
83 |
|
|
84 |
SelectionSet.Instance.UnSelect(Common.ViewerDataModel.Instance.SystemMain.dzMainMenu); |
|
85 | 83 |
var mainmenu = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu; |
86 | 84 |
|
87 | 85 |
foreach (var UserState in UserStates) |
88 | 86 |
{ |
89 | 87 |
List<MARKUP_DATA> markupdata = new List<MARKUP_DATA>(); |
90 |
ViewerDataModel.Instance.MyMarkupList.Where(d => d.MarkupInfoID == UserState.MarkupInfoID).ToList().GroupBy(p => p.ID).Select(g => g.First()).ToList().ForEach(value => |
|
88 |
ViewerDataModel.Instance.MyMarkupList.Where(d => d.MarkupInfoID == UserState.MarkupInfoID).ToList() |
|
89 |
.GroupBy(p => p.ID).Select(g => g.First()) |
|
90 |
.OrderBy(x => x.ZIndex).ToList().ForEach(value => |
|
91 | 91 |
{ |
92 | 92 |
markupdata.Add(new MARKUP_DATA() |
93 | 93 |
{ |
... | ... | |
103 | 103 |
try |
104 | 104 |
{ |
105 | 105 |
var SaveResult = await ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseTaskClient.SaveMarkupDataAsync(UserState, Project_No, document_id, user_id, markupdata); |
106 |
|
|
107 | 106 |
result = SaveResult; |
108 | 107 |
} |
109 | 108 |
catch(Exception ex) |
110 | 109 |
{ |
110 |
#region 저장에 실패했을때 다시 시도한다.(다시 시도한다고 될까?) |
|
111 | 111 |
var client = new KcomService.ServiceDeepViewClient(App._binding, App._EndPoint); |
112 |
|
|
113 | 112 |
var SaveResult = await client.SaveMarkupDataAsync(UserState, Project_No, document_id, user_id, markupdata); |
114 | 113 |
result = SaveResult; |
114 |
#endregion |
|
115 | 115 |
|
116 | 116 |
if (!SaveResult) |
117 | 117 |
{ |
... | ... | |
128 | 128 |
mainmenu.gridViewMarkup.Rebind(); |
129 | 129 |
//TempFile.Remove(); //임시파일삭제 |
130 | 130 |
} |
131 |
catch (Exception) |
|
131 |
catch (Exception ex)
|
|
132 | 132 |
{ |
133 |
throw; |
|
133 |
throw new InvalidOperationException(ex.Message);
|
|
134 | 134 |
} |
135 | 135 |
|
136 | 136 |
return result; |
내보내기 Unified diff