예제 #1
0
        public void BindShow()
        {
            DataSet dse = new DataSet();
            QPS.NEW.BLL.Poster pt = new QPS.NEW.BLL.Poster();
            dse = pt.GetList("  id =" + tempID + " ");
            this.txName.Text = dse.Tables[0].Rows[0]["Url"].ToString();
            this.Photo.Text = dse.Tables[0].Rows[0]["PhotoUrL"].ToString();

        }
예제 #2
0
        public void BindShow()
        {
            DataSet dse = new DataSet();

            QPS.NEW.BLL.Poster pt = new QPS.NEW.BLL.Poster();
            dse = pt.GetList("  id =" + tempID + " ");
            this.txName.Text = dse.Tables[0].Rows[0]["Url"].ToString();
            this.Photo.Text  = dse.Tables[0].Rows[0]["PhotoUrL"].ToString();
        }
예제 #3
0
        //绑定
        public void Bind()
        {
            int currentpage = Convert.ToInt32(Request["CurrentPage"]);
            int check = 1;
            currentpage = (currentpage < 1) ? 1 : currentpage;
            if (this.Pager1.CurrentIndex > 0)
            {
                currentpage = this.Pager1.CurrentIndex;
            }
            int pageSize = this.Pager1.PageSize;

            QPS.NEW.BLL.Poster poster = new QPS.NEW.BLL.Poster();
            ds = poster.Select(pageSize, currentpage);
            dgExamProj.DataSource = ds;
            this.Pager1.ItemCount = poster.GetCount();
            dgExamProj.DataBind();
        }
예제 #4
0
        //绑定
        public void Bind()
        {
            int currentpage = Convert.ToInt32(Request["CurrentPage"]);
            int check       = 1;

            currentpage = (currentpage < 1) ? 1 : currentpage;
            if (this.Pager1.CurrentIndex > 0)
            {
                currentpage = this.Pager1.CurrentIndex;
            }
            int pageSize = this.Pager1.PageSize;

            QPS.NEW.BLL.Poster poster = new QPS.NEW.BLL.Poster();
            ds = poster.Select(pageSize, currentpage);
            dgExamProj.DataSource = ds;
            this.Pager1.ItemCount = poster.GetCount();
            dgExamProj.DataBind();
        }
예제 #5
0
        //修改
        protected void btnupdate_Click(object sender, EventArgs e)
        {
            string id = Request["ID"].ToString();

            string name = this.txName.Text; //链接地址
            string imagePath = this.Photo.Text;

            QPS.NEW.Model.Poster mpt = new QPS.NEW.Model.Poster();
            mpt.Id = Convert.ToInt32(id);
            mpt.URL = name;
            mpt.URL = imagePath;

            QPS.NEW.BLL.Poster pt =new QPS.NEW.BLL.Poster ();
            //rm.Add(Mro);
            if (pt.Update(mpt))
            {
                Response.Write("<script>alert('修改成功!!');</script>");
            }
            else
            {
                Response.Write("<script>alert('修改失败!!');</script>");
            }
        }
예제 #6
0
        //修改
        protected void btnupdate_Click(object sender, EventArgs e)
        {
            string id = Request["ID"].ToString();

            string name      = this.txName.Text; //链接地址
            string imagePath = this.Photo.Text;

            QPS.NEW.Model.Poster mpt = new QPS.NEW.Model.Poster();
            mpt.Id  = Convert.ToInt32(id);
            mpt.URL = name;
            mpt.URL = imagePath;

            QPS.NEW.BLL.Poster pt = new QPS.NEW.BLL.Poster();
            //rm.Add(Mro);
            if (pt.Update(mpt))
            {
                Response.Write("<script>alert('修改成功!!');</script>");
            }
            else
            {
                Response.Write("<script>alert('修改失败!!');</script>");
            }
        }