개정판 0af41bf0
issue #000: 등록된 사용자 체크 로직 수정
Change-Id: If9dc00d4cf6e124ac6c1d64699735187014c3e92
KCOM/Messenger/ConversationView.xaml.cs | ||
---|---|---|
194 | 194 |
main = this.ParentOfType<MainWindow>(); |
195 | 195 |
if (App.ParameterMode) |
196 | 196 |
{ |
197 |
ClickAnchorCommand = new Telerik.Windows.Controls.DelegateCommand(SaveAuthorization); |
|
198 |
if (string.IsNullOrEmpty(App.UserName)) |
|
197 |
try |
|
199 | 198 |
{ |
200 |
Logger.sendReqLog("GetMember: ", App.ViewInfo.ProjectNO + "," + App.ViewInfo.UserID, 1); |
|
201 |
App.UserName = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetMember(App.ViewInfo.ProjectNO, App.ViewInfo.UserID).NAME; |
|
202 |
if (App.UserName != null || App.UserName != "") |
|
199 |
ClickAnchorCommand = new Telerik.Windows.Controls.DelegateCommand(SaveAuthorization); |
|
200 |
if (string.IsNullOrEmpty(App.UserName) && Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.userData == null) |
|
203 | 201 |
{ |
204 |
Logger.sendResLog("AddMessage", "TRUE", 1); |
|
202 |
var member = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetMember(App.ViewInfo.ProjectNO, App.ViewInfo.UserID); |
|
203 |
if (member != null) |
|
204 |
App.UserName = member.NAME; |
|
205 | 205 |
} |
206 |
else
|
|
206 |
if (Common.ViewerDataModel.Instance.k_talkMessageSet.Count() == 0)
|
|
207 | 207 |
{ |
208 |
Logger.sendResLog("AddMessage", "FALSE", 1); |
|
208 |
Logger.sendReqLog("GetMessage: ", App.ViewInfo.ProjectNO + "," + App.ViewInfo.DocumentItemID, 1); |
|
209 |
List<KCOMDataModel.DataModel.TALK> messagelist = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetMessage(App.ViewInfo.ProjectNO, App.ViewInfo.DocumentItemID); |
|
210 |
Logger.sendResLog("GetMessage", "messagelist.Count:" + messagelist.Count(), 1); |
|
211 |
|
|
212 |
messagelist.ForEach(a => |
|
213 |
{ |
|
214 |
Common.ViewerDataModel.Instance.k_talkMessageSet.Add(a); |
|
215 |
}); |
|
216 |
(lstMessage.Parent as ScrollViewer).ScrollToEnd(); |
|
209 | 217 |
} |
218 |
tbContent.KeyDown += async (s, ea) => await OnKeyDownHandler(s, ea); |
|
210 | 219 |
} |
211 |
if (Common.ViewerDataModel.Instance.k_talkMessageSet.Count() == 0)
|
|
220 |
catch (Exception)
|
|
212 | 221 |
{ |
213 |
Logger.sendReqLog("GetMessage: ", App.ViewInfo.ProjectNO + "," + App.ViewInfo.DocumentItemID, 1); |
|
214 |
List<KCOMDataModel.DataModel.TALK> messagelist = Common.ViewerDataModel.Instance.SystemMain.dzMainMenu.BaseClient.GetMessage(App.ViewInfo.ProjectNO, App.ViewInfo.DocumentItemID); |
|
215 |
if (messagelist.Count() > 0) |
|
216 |
{ |
|
217 |
Logger.sendResLog("GetMessage", "TRUE", 1); |
|
218 |
} |
|
219 |
else |
|
220 |
{ |
|
221 |
Logger.sendResLog("GetMessage", "FALSE", 1); |
|
222 |
} |
|
223 |
messagelist.ForEach(a => |
|
224 |
{ |
|
225 |
Common.ViewerDataModel.Instance.k_talkMessageSet.Add(a); |
|
226 |
}); |
|
227 |
(lstMessage.Parent as ScrollViewer).ScrollToEnd(); |
|
222 |
throw; |
|
228 | 223 |
} |
229 |
tbContent.KeyDown += async (s, ea) => await OnKeyDownHandler(s, ea); |
|
230 |
|
|
231 | 224 |
} |
232 | 225 |
} |
233 | 226 |
|
내보내기 Unified diff