示例#1
0
 /// <summary>
 /// 绑定
 /// </summary>
 public void Bind()
 {
     QPS.NEW.BLL.Document dc = new QPS.NEW.BLL.Document();
     ds = dc.SelectList();
     dgExamProj.DataSource = ds;
     dgExamProj.DataBind();
 }
示例#2
0
        /// <summary>
        /// 绑定
        /// </summary>
        public void Bind()
        {
            QPS.NEW.BLL.Document dc = new QPS.NEW.BLL.Document();
            ds = dc.SelectList();
            dgExamProj.DataSource = ds;
            dgExamProj.DataBind();

        }
示例#3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         string               ID  = Convert.ToString(Request["id"]);
         NEW.Model.Document   dc  = new QPS.NEW.Model.Document();
         QPS.NEW.BLL.Document Bdc = new QPS.NEW.BLL.Document();
         dc = Bdc.GetModel(Convert.ToInt32(ID));
         this.txtTitle.Text = dc.DTity;
         this.Content.Text  = dc.DContent;
     }
 }
示例#4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         string ID = Convert.ToString(Request["id"]);
         NEW.Model.Document dc = new QPS.NEW.Model.Document();
         QPS.NEW.BLL.Document Bdc = new QPS.NEW.BLL.Document();
         dc = Bdc.GetModel(Convert.ToInt32(ID));
         this.txtTitle.Text = dc.DTity;
         this.Content.Text = dc.DContent;
     }
     
 }
示例#5
0
        protected void bntQueding_Click(object sender, EventArgs e)
        {
            string id    = Request["ID"].ToString();
            string title = this.txtTitle.Text;
            string con   = this.Content.Text;

            NEW.Model.Document mdc = new QPS.NEW.Model.Document();
            mdc.Id       = Convert.ToInt32(id);
            mdc.DTity    = title;
            mdc.DContent = con;
            mdc.DTime    = DateTime.Now.ToString();
            QPS.NEW.BLL.Document Bdc = new QPS.NEW.BLL.Document();
            if (Bdc.Update(mdc))
            {
                Response.Write("<script>alert('修改成功!!');window.location.href = 'DocumentInfro.aspx';</script>");
            }
            else
            {
                Response.Write("<script>alert('修改失败!!');</script>");
            }
        }
示例#6
0
        protected void bntQueding_Click(object sender, EventArgs e)
        {
            string id = Request["ID"].ToString();
            string title = this.txtTitle.Text;
            string con = this.Content.Text;
            NEW.Model.Document mdc = new QPS.NEW.Model.Document();
            mdc.Id = Convert.ToInt32(id);
            mdc.DTity = title;
            mdc.DContent = con;
            mdc.DTime = DateTime.Now.ToString();
            QPS.NEW.BLL.Document Bdc = new QPS.NEW.BLL.Document();
            if (Bdc.Update(mdc))
            {
                Response.Write("<script>alert('修改成功!!');window.location.href = 'DocumentInfro.aspx';</script>");
            }
            else
            {
                Response.Write("<script>alert('修改失败!!');</script>");
            }

        }