public NoticeWindowListsViewModel(bool isAdminId, string groupId)
        {
            _isAdminId = isAdminId;
            if (!_isAdminId)
            {
                isShowBtnAddAttachment = "Collapsed";
            }
            //加载数据
            //inFindNoticeList inData = new inFindNoticeList();
            //inData.token = AntSdkService.AntSdkLoginOutput.token;
            //inData.userId = AntSdkService.AntSdkCurrentUserInfo.userId;
            //inData.version = "";
            //inData.targetId = groupId;
            //ReturnNoticeList rDto = new ReturnNoticeList();
            var    errorCode = 0;
            string errorMsg  = "";
            //TODO:AntSdk_Modify
            //DONE:AntSdk_Modify
            var resultNotices = AntSdkService.GetGroupNotifications(AntSdkService.AntSdkCurrentUserInfo.userId, groupId, ref errorCode, ref errorMsg);

            //bool b = false;//new HttpService().SearchNoticeList(inData, ref rDto, ref errorMsg);
            if (resultNotices != null && resultNotices.Length > 0)
            {
                NoticeModel nAdd = null;
                foreach (var notice in resultNotices)
                {
                    AntSdkContact_User user = AntSdkService.AntSdkListContactsEntity.users.Find(c => c.userId == notice.createBy);
                    if (user != null)
                    {
                        notice.createBy = user.userName;
                    }
                    if (!_isAdminId)
                    {
                        nAdd = new NoticeModel();
                        //id = Guid.NewGuid().ToString().Replace("-", "");
                        nAdd.NotificationId = notice.notificationId;

                        if (notice.hasAttach == "1")
                        {
                            isShowAttch          = "Visible";
                            nAdd.IsAdjunctNotice = true;
                        }
                        else
                        {
                            isShowAttch          = "Collapsed";
                            nAdd.IsAdjunctNotice = false;
                        }

                        nAdd.NoticeTitle = notice.title;
                        //nAdd.NoticeContent = notice.;

                        nAdd.Explain = notice.createBy + "  编辑于  " + DataConverter.FormatTimeByTimeStamp(notice.createTime);
                        _noticeList.Add(nAdd);
                    }
                    else
                    {
                        nAdd = new NoticeModel();
                        if (notice.hasAttach == "1")
                        {
                            isShowAttch          = "Visible";
                            nAdd.IsAdjunctNotice = true;
                        }
                        else
                        {
                            isShowAttch          = "Collapsed";
                            nAdd.IsAdjunctNotice = false;
                        }

                        nAdd.NotificationId        = notice.notificationId;
                        nAdd.IsbtnDeleteVisibility = true;
                        nAdd.NoticeTitle           = notice.title;
                        //nAdd.NoticeContent = notice.content;
                        nAdd.Explain = notice.createBy + "  编辑于  " + DataConverter.FormatTimeByTimeStamp(notice.createTime);
                        _noticeList.Add(nAdd);
                    }
                }
            }
            else
            {
                if (!string.IsNullOrEmpty(errorMsg))
                {
                    Application.Current.Dispatcher.Invoke(new Action(() => MessageBoxWindow.Show("公告加载失败!", GlobalVariable.WarnOrSuccess.Warn)));
                }
                else
                {
                    NoticeNoWindowViewModelVisibility = Visibility.Visible;
                }
            }
        }