/// <summary> /// 数据绑定公告信息 /// </summary>ss private void AfficheInfoBind() { ArricheInfoDt = BulletinInfoBLL.GetInstance().GetBulletinInfoDt(CurrentUser); if (ArricheInfoDt != null) { this.bindingSource1.DataSource = ArricheInfoDt.DefaultView; } }
/// <summary> /// 初始化显示信息 /// </summary> /// <param name="strBulietin_Id">公告ID</param> private void IniData(string strBulletionID) { //清空文本 IniTextClear(); //获取公告对象 model = BulletinInfoBLL.GetInstance().GetBulletinInfoModel(strBulletionID); if (model != null) { this.labTitle.Text = model.Title; this.webContent.DocumentText = model.Content.ToString(); this.labReadName.Text = model.ReadName; this.labISSUER_NAME.Text = model.IsSuerName; this.labISSUE_DATE.Text = model.IsSuerDate; //修改已阅读状态 1未阅读 2已阅读 if (model.IsRead.Equals("1")) { BulletinInfoBLL.GetInstance().ModifyBulletinReceiver(model.ReceiverId); } } }