private void ShowInfo(int _id) { Model.wx_wq_pinpai model = bll.GetModel(_id); this.txtLogo.Text = model.logo; this.imgLogo.ImageUrl = model.logo; this.txtName.Text = model.name; this.txtSort_id.Text = model.sort_id.ToString(); this.txtWebsite.Text = model.website; this.txtSummary.InnerText = model.remark; }
private void ShowInfo(int _id) { BLL.wx_wq_pinpai ppBll = new BLL.wx_wq_pinpai(); BLL.wx_wq_chexi cxBll = new BLL.wx_wq_chexi(); Model.wx_wq_yyOrder model = bll.GetModel(_id); if (type == 1)//保养 { this.pelShow.Visible = true; this.lblCarnum.Text = model.carnum; this.lblKm.Text = model.km.ToString(); } else //试驾 { this.pelShow.Visible = false; } string pinpai = ppBll.GetModel(MyCommFun.Obj2Int(model.pid)).name; string chexi = cxBll.GetModel(MyCommFun.Obj2Int(model.xid)).Name; this.lblObj.Text = pinpai + "/" + chexi; this.lblremark.Text = model.remark; this.lblTelephone.Text = model.telephone.ToString(); this.lblYYPerson.Text = model.Name; this.lblYytime.Text = MyCommFun.Obj2DateTime(model.yydate).ToString("yyyy-MM-dd") + "/" + model.yytime; this.lblXdtime.Text = MyCommFun.Obj2DateTime(model.createdate).ToString("yyyy年MM月dd日 hh:mm:ss点"); this.txtfSummary.InnerText = model.kfremark; this.ddlStatus.SelectedValue = model.ddstatus; }
protected void Page_Load(object sender, EventArgs e) { wid = MXRequest.GetQueryInt("wid"); pid = MXRequest.GetQueryInt("pid"); openid = MXRequest.GetQueryString("openid"); if (!IsPostBack) { BLL.wx_wq_pinpai ppBll = new BLL.wx_wq_pinpai(); BLL.wx_wq_chexi cxBll = new BLL.wx_wq_chexi(); Model.wx_wq_pinpai ppModel = ppBll.GetModel(pid); ppLogo = ppModel.logo; pinpai = ppModel.name; this.rptList.DataSource = cxBll.GetList(string.Format(" wid={0} and pid={1} order by sort_id asc,id asc", wid, pid)); this.rptList.DataBind(); } }