private void ShowInfo(int _id) { Model.wx_wq_czgh model = bll.GetModel(_id); this.txtNewscover.Text = model.newscover; this.imgNewscover.ImageUrl = model.newscover; this.txtSummary.InnerText = model.remark; this.txtTitle.Text = model.title; }
protected void Page_Load(object sender, EventArgs e) { wid = MXRequest.GetQueryInt("wid"); openid = MXRequest.GetQueryString("openid"); if (!IsPostBack) { BLL.wx_wq_czgh ghBll = new BLL.wx_wq_czgh(); ghModel = ghBll.GetModelList("wid=" + wid)[0]; } }
private bool DoEdit(int _id) { Model.wx_userweixin weixin = GetWeiXinCode(); Model.wx_wq_czgh model = bll.GetModel(_id); bool result = false; model.remark = this.txtSummary.InnerText; model.newscover = this.txtNewscover.Text; model.title = this.txtTitle.Text; if (bll.Update(model)) { AddAdminLog(MXEnums.ActionEnum.Edit.ToString(), "修改车主关怀内容id:" + model.Id); //记录日志 result = true; } return(result); }
private bool DoAdd() { Model.wx_userweixin weixin = GetWeiXinCode(); Model.wx_wq_czgh model = new Model.wx_wq_czgh(); bool result = false; model.remark = this.txtSummary.InnerText; model.sort_id = 99; model.title = this.txtTitle.Text; model.wid = weixin.id; model.createdate = DateTime.Now; model.newscover = this.txtNewscover.Text; if (bll.Add(model) > 0) { AddAdminLog(MXEnums.ActionEnum.Add.ToString(), "添加车主关怀:" + model.title); //记录日志 result = true; } return(result); }