Esempio n. 1
0
 /// <summary>
 /// 绑定
 /// </summary>
 public void Binds()
 {
     Hi.Model.DIS_Suggest OrderModel = OrderBll.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
     this.lblAuditUserID.InnerText = Common.GetUserName(this.UserID);
     this.hidAuditUserID.Value     = this.UserID.ToString();
     this.lblContent.InnerText     = OrderModel.Remark;
 }
Esempio n. 2
0
    /// <summary>
    /// 绑定
    /// </summary>
    public void Bind()
    {
        Hi.Model.DIS_Suggest model = OrderBll.GetModel(int.Parse(Request.QueryString["ID"].ToString()));

        this.lblDisName.InnerText    = Common.GetDis(model.DisID, "DisName");
        this.lblCreateUser.InnerText = Common.GetUserName(model.DisUserID);
        this.lblState.InnerText      = model.IsAnswer == 1 ? "已回复" : "未回复";
        this.lblCreateDate.InnerText = model.CreateDate.ToString("yyyy-MM-dd");
        this.lblTitle.InnerText      = model.Title;
        this.lblContent.InnerText    = model.Remark;
        this.lblCompRemark.InnerText = model.CompRemark;
        this.lblCompUser.InnerText   = Common.GetUserName(model.CompUserID);
        this.lblReplyDate.InnerText  = model.ReplyDate.ToString("yyyy-MM-dd");

        if (model.IsAnswer == 0)
        {
            this.CompRemark.Visible  = false;
            this.lblCompUser.Visible = false;
            this.CompRepk.Visible    = false;
        }
        else
        {
            this.libtnEdit.Attributes.Add("style", "display:none;");
        }
    }