private void ShowInfo(int Id) { Bsam.Core.Model.Models.BLL.Module bll = new Bsam.Core.Model.Models.BLL.Module(); Bsam.Core.Model.Models.Model.Module model = bll.GetModel(Id); this.lblId.Text = model.Id.ToString(); this.lblIsDeleted.Text = model.IsDeleted?"是":"否"; this.lblParentId.Text = model.ParentId.ToString(); this.lblName.Text = model.Name; this.lblLinkUrl.Text = model.LinkUrl; this.lblArea.Text = model.Area; this.lblController.Text = model.Controller; this.lblAction.Text = model.Action; this.lblIcon.Text = model.Icon; this.lblCode.Text = model.Code; this.lblOrderSort.Text = model.OrderSort.ToString(); this.lblDescription.Text = model.Description; this.lblIsMenu.Text = model.IsMenu?"是":"否"; 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(); }
private void ShowInfo(int Id) { Bsam.Core.Model.Models.BLL.Module bll = new Bsam.Core.Model.Models.BLL.Module(); Bsam.Core.Model.Models.Model.Module model = bll.GetModel(Id); this.lblId.Text = model.Id.ToString(); this.chkIsDeleted.Checked = model.IsDeleted; this.txtParentId.Text = model.ParentId.ToString(); this.txtName.Text = model.Name; this.txtLinkUrl.Text = model.LinkUrl; this.txtArea.Text = model.Area; this.txtController.Text = model.Controller; this.txtAction.Text = model.Action; this.txtIcon.Text = model.Icon; this.txtCode.Text = model.Code; this.txtOrderSort.Text = model.OrderSort.ToString(); this.txtDescription.Text = model.Description; this.chkIsMenu.Checked = model.IsMenu; 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(); }