private void ShowInfo(int ID) { Maticsoft.BLL.ArtsMatter bll = new Maticsoft.BLL.ArtsMatter(); Maticsoft.Model.ArtsMatter model = bll.GetModel(ID); this.lblID.Text = model.ID.ToString(); this.txtTitle.Text = model.Title; this.txtContent.Text = model.Content; this.txtTime.Text = model.Time.ToString(); this.txtAttachment.Text = model.Attachment; this.txtGroupID.Text = model.GroupID.ToString(); this.chkIsOpen.Checked = model.IsOpen; this.txtClick.Text = model.Click.ToString(); this.lblNo.Text = model.No.ToString(); this.txtMark.Text = model.Mark.ToString(); this.txtS1.Text = model.S1; }
private void ShowInfo(int ID) { Maticsoft.BLL.ArtsMatter bll = new Maticsoft.BLL.ArtsMatter(); Maticsoft.Model.ArtsMatter model = bll.GetModel(ID); this.lblID.Text = model.ID.ToString(); this.lblTitle.Text = model.Title; this.lblContent.Text = model.Content; this.lblTime.Text = model.Time.ToString(); this.lblAttachment.Text = model.Attachment; this.lblGroupID.Text = model.GroupID.ToString(); this.lblIsOpen.Text = model.IsOpen?"是":"否"; this.lblClick.Text = model.Click.ToString(); this.lblNo.Text = model.No.ToString(); this.lblMark.Text = model.Mark.ToString(); this.lblS1.Text = model.S1; }