프로젝트

일반

사용자정보

개정판 0af41bf0

ID0af41bf067cd3be68831b35bef98a5acf83426d2
상위 582896d2
하위 e05fe8ab

김동진이(가) 5년 이상 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)