Ejemplo n.º 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();
 }
Ejemplo n.º 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();

        }
Ejemplo n.º 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;
     }
 }
Ejemplo n.º 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;
     }
     
 }
Ejemplo n.º 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>");
            }
        }
Ejemplo n.º 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>");
            }

        }