NongJiaLe.Web/Member/ConsultDetail.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Shopping.Common;
using Shopping;
using Shopping.Model;
namespace Shopping.Web.Member
{
public partial class ConsultDetail : MemberPage
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindData();
}
}
/// <summary>
/// 绑定数据
/// </summary>
private void BindData()
{
int consultId = Utils.StrToInt(Requests.Query("id"));
Consult model = ConsultBLL.GetConsultInfo(consultId, onlineUserInfo.UserID);
if (model != null)
{
consultContent.Text = model.Content;
string replyResult = " <font color=\"red\">尚未得到客服回复,请您耐心等待!</font> ";
if (model.IsReply == 1)
{
replyResult = model.ReplyContent;
model.ReplyIsRead = 1;
}
Literal1.Text = replyResult;
ConsultBLL.UpdateConsult(model);
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
