예제 #1
0
 private void ShowInfo(int Id)
 {
     Bsam.Core.Model.Models.BLL.Permission   bll   = new Bsam.Core.Model.Models.BLL.Permission();
     Bsam.Core.Model.Models.Model.Permission model = bll.GetModel(Id);
     this.lblId.Text           = model.Id.ToString();
     this.txtCode.Text         = model.Code;
     this.txtName.Text         = model.Name;
     this.chkIsButton.Checked  = model.IsButton;
     this.chkIsHide.Checked    = model.IsHide;
     this.txtFunc.Text         = model.Func;
     this.txtPid.Text          = model.Pid.ToString();
     this.txtMid.Text          = model.Mid.ToString();
     this.txtOrderSort.Text    = model.OrderSort.ToString();
     this.txtIcon.Text         = model.Icon;
     this.txtDescription.Text  = model.Description;
     this.chkEnabled.Checked   = model.Enabled;
     this.txtCreateId.Text     = model.CreateId.ToString();
     this.txtCreateBy.Text     = model.CreateBy;
     this.txtCreateTime.Text   = model.CreateTime.ToString();
     this.txtModifyId.Text     = model.ModifyId.ToString();
     this.txtModifyBy.Text     = model.ModifyBy;
     this.txtModifyTime.Text   = model.ModifyTime.ToString();
     this.chkIsDeleted.Checked = model.IsDeleted;
 }
예제 #2
0
 private void ShowInfo(int Id)
 {
     Bsam.Core.Model.Models.BLL.Permission   bll   = new Bsam.Core.Model.Models.BLL.Permission();
     Bsam.Core.Model.Models.Model.Permission model = bll.GetModel(Id);
     this.lblId.Text          = model.Id.ToString();
     this.lblCode.Text        = model.Code;
     this.lblName.Text        = model.Name;
     this.lblIsButton.Text    = model.IsButton?"是":"否";
     this.lblIsHide.Text      = model.IsHide?"是":"否";
     this.lblFunc.Text        = model.Func;
     this.lblPid.Text         = model.Pid.ToString();
     this.lblMid.Text         = model.Mid.ToString();
     this.lblOrderSort.Text   = model.OrderSort.ToString();
     this.lblIcon.Text        = model.Icon;
     this.lblDescription.Text = model.Description;
     this.lblEnabled.Text     = model.Enabled?"是":"否";
     this.lblCreateId.Text    = model.CreateId.ToString();
     this.lblCreateBy.Text    = model.CreateBy;
     this.lblCreateTime.Text  = model.CreateTime.ToString();
     this.lblModifyId.Text    = model.ModifyId.ToString();
     this.lblModifyBy.Text    = model.ModifyBy;
     this.lblModifyTime.Text  = model.ModifyTime.ToString();
     this.lblIsDeleted.Text   = model.IsDeleted?"是":"否";
 }