Exemple #1
0
 /// <summary>
 /// 页面初始化方法
 /// </summary>
 /// <param name="id">记录ID</param>
 protected void DataInit(int id)
 {
     //声明留言操作对象
     EyouSoft.BLL.CompanyStructure.CustomerMessageReply bll = new EyouSoft.BLL.CompanyStructure.CustomerMessageReply();
     //声明回复信息对象
     EyouSoft.Model.CompanyStructure.CustomerMessageReplyModel model = bll.GetReplyByMessageId(SiteUserInfo.TourCompany.TourCompanyId, id, true);
     if (model != null && model.MessageInfo != null)
     {
         //标题
         this.lblTitle.Text = model.MessageInfo.MessageTitle;
         //留言时间
         this.lblMsgDate.Text = model.MessageInfo.MessageTime == null ? "" : Convert.ToDateTime(model.MessageInfo.MessageTime).ToString("yyyy-MM-dd");
         //留言人名
         this.lblMsgMan.Text = model.MessageInfo.MessagePersonName;
         //留言内容
         this.lblMsg.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.MessageInfo.MessageContent);
         //留言回复状态
         this.lblState.Text = model.MessageInfo.ReplyState.ToString();
         //回复内容
         this.lblReplyMsg.Text = EyouSoft.Common.Function.StringValidate.TextToHtml(model.ReplyContent);
         //回复人名
         this.lblReplyMan.Text = model.ReplyPersonName;
         //回复时间
         this.lblReplyDate.Text = model.ReplyTime == null ? "" : Convert.ToDateTime(model.ReplyTime).ToString("yyyy-MM-dd");
     }
 }
Exemple #2
0
 /// <summary>
 /// 页面初始化
 /// </summary>
 /// <param name="id">记录ID</param>
 private void DataInit(int id)
 {
     EyouSoft.Model.CompanyStructure.CustomerMessageReplyModel model = bll.GetReplyByMessageId(SiteUserInfo.CompanyID, id, false);
     if (model != null)
     {
         this.lblTitle.Text   = model.MessageInfo.MessageTitle;
         this.lblMsgDate.Text = model.MessageInfo.MessageTime == null ? "" : Convert.ToDateTime(model.MessageInfo.MessageTime).ToString("yyyy-MM-dd");
         this.lblMsgMan.Text  = model.MessageInfo.MessagePersonName;
         this.lblMsg.Text     = model.MessageInfo.MessageContent;
         this.lblState.Text   = model.MessageInfo.ReplyState.ToString();
         //回复内容
         this.txtReplyMsg.Text = model.ReplyContent;
         //回复人
         this.txtReplyMan.Text = model.ReplyPersonName == null ? "": model.ReplyPersonName;
         //回复时间
         this.txtReplyDate.Text = model.ReplyTime == null ? "" : Convert.ToDateTime(model.ReplyTime).ToString("yyyy-MM-dd");
     }
 }