예제 #1
0
 private void ShowInfo(int ID)
 {
     Maticsoft.BLL.WorksGroup   bll   = new Maticsoft.BLL.WorksGroup();
     Maticsoft.Model.WorksGroup model = bll.GetModel(ID);
     this.lblID.Text    = model.ID.ToString();
     this.txtTitle.Text = model.Title;
     this.txtAtlas.Text = model.Atlas;
     this.txtTime.Text  = model.Time.ToString();
     this.txtInfo.Text  = model.Info;
     this.lblNo.Text    = model.No.ToString();
     this.txtMark.Text  = model.Mark.ToString();
     this.txtClick.Text = model.Click.ToString();
 }
예제 #2
0
        private void Bind()
        {
            int Id = 0;

            if (Request.QueryString["Id"] != null)
            {
                Id = int.Parse(Request.QueryString["Id"]);
            }
            else
            {
                return;
            }
            Maticsoft.BLL.WorksGroup   bll   = new Maticsoft.BLL.WorksGroup();
            Maticsoft.Model.WorksGroup model = bll.GetModel(Id);
            txtNo.Text      = model.No.ToString();
            txtClick.Text   = model.Click.ToString();
            txtMark.Text    = model.Mark.ToString();
            txtTitle.Text   = model.Title;
            txtTime.Text    = model.Time.ToString();
            txtsum.Text     = model.Info;
            Image1.ImageUrl = model.Atlas;
            label2.Text     = model.ID.ToString();
        }