using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using BLL;
namespace ComResProSystem
{
    public partial class ShowWorkPro:BasePage
    {
        BaseBLL bll = new BaseBLL();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                string ID = Request.QueryString["ID"];
                List<object> list = bll.SelectObject(typeof(Model.WorkPro), "WorkPro", "Theme,Contents,AddUser,AddTime", "ID=" + ID);
                Model.WorkPro pro = (Model.WorkPro)list[0];
                Lb_Theme.Text = pro.Theme;
                Lb_AddUser.Text = pro.AddUser;
                Lb_AddTime.Text = pro.AddTime;
                Tb_Contents.Text = pro.Contents;
            }
        }
    }
}