protected void btnReplyReplyReceivedMessages_Click(object sender, EventArgs e) { SendMessageInfo target = new SendMessageInfo(); ReceiveMessageInfo receiveMessage = NoticeHelper.GetReceiveMessage(receiveMessageId); target.Title = txtTitle.Text; target.PublishContent = txtContes.Text; target.ReceiveMessageId = new long?(receiveMessageId); target.Addresser = "admin"; target.Addressee = receiveMessage.Addresser; ValidationResults results = Hishop.Components.Validation.Validation.Validate <SendMessageInfo>(target, new string[] { "ValSendMessage" }); string msg = string.Empty; if (!results.IsValid) { foreach (ValidationResult result in (IEnumerable <ValidationResult>)results) { msg = msg + Formatter.FormatErrorMessage(result.Message); } ShowMsg(msg, false); } else if (NoticeHelper.ReplyMessage(target)) { txtTitle.Text = ""; txtContes.Text = ""; ShowMsg("成功回复客户消息", true); BindReplyReceivedMessages(); txtTitle.Text = string.Empty; txtContes.Text = string.Empty; } else { ShowMsg("回复客户消息失败", false); } }