コード例 #1
0
ファイル: Modify.aspx.cs プロジェクト: liangyoh/Bsam.Api
 private void ShowInfo(int id)
 {
     Bsam.Core.Model.Models.BLL.Guestbook   bll   = new Bsam.Core.Model.Models.BLL.Guestbook();
     Bsam.Core.Model.Models.Model.Guestbook model = bll.GetModel(id);
     this.lblid.Text         = model.id.ToString();
     this.txtblogId.Text     = model.blogId.ToString();
     this.txtcreatedate.Text = model.createdate.ToString();
     this.txtusername.Text   = model.username;
     this.txtphone.Text      = model.phone;
     this.txtQQ.Text         = model.QQ;
     this.txtbody.Text       = model.body;
     this.txtip.Text         = model.ip;
     this.chkisshow.Checked  = model.isshow;
 }
コード例 #2
0
ファイル: Show.aspx.cs プロジェクト: liangyoh/Bsam.Api
 private void ShowInfo(int id)
 {
     Bsam.Core.Model.Models.BLL.Guestbook   bll   = new Bsam.Core.Model.Models.BLL.Guestbook();
     Bsam.Core.Model.Models.Model.Guestbook model = bll.GetModel(id);
     this.lblid.Text         = model.id.ToString();
     this.lblblogId.Text     = model.blogId.ToString();
     this.lblcreatedate.Text = model.createdate.ToString();
     this.lblusername.Text   = model.username;
     this.lblphone.Text      = model.phone;
     this.lblQQ.Text         = model.QQ;
     this.lblbody.Text       = model.body;
     this.lblip.Text         = model.ip;
     this.lblisshow.Text     = model.isshow?"是":"否";
 }