Exemplo n.º 1
0
        public DataTable get_list(int psize)
        {
            int page = 1;
            int pagesize = psize;
            PageCurrent pc = new PageCurrent();
            page = pc.get("page");
            DataTable dt;
            if (typeId > 0)
            {
                int recordcount = findcount("article", "classId=" + typeId.ToString());

                pageBox = pc.page_list("?page=", pagesize, recordcount);


                dt = find("article", page, pagesize, "id desc",
                    "classId", 1, 8, typeId
                    );

            }
            else
            {
                int recordcount = findcount("article", "");

                pageBox = pc.page_list("?page=", pagesize, recordcount);


                dt = find("article", page, pagesize, "id desc"
                    );
            }
            return dt;
            
        }
Exemplo n.º 2
0
 protected void setBind(object sender, EventArgs e)
 {
     AlbumDal al = new AlbumDal();
     int page = 1;
     int pagesize = 10;
     PageCurrent pc = new PageCurrent();
     page = pc.get("page");
     DataTable dt = al.GetList(page, pagesize);
     int recordcount = findcount("album");
     Pageer.value = pc.page_list("?page=", pagesize, recordcount);
     detail.DataSource = dt;
     detail.DataBind();
 }
Exemplo n.º 3
0
        private void setBind()
        {
            int pagesize = 10;
            int page = 1;
            PageCurrent pc = new PageCurrent();
            page = pc.get("page");
            int recordcount = findcount("JM");

            Pageer.value = pc.page_list("?page=", pagesize, recordcount);

            DataTable dt = find("JM", page, pagesize);
            list.DataSource = dt;
            list.DataBind();
        }
Exemplo n.º 4
0
        public DataTable get_list()
        {
            int pagesize = 9;
            PageCurrent pc = new PageCurrent();
            int page = pc.get("page");
            int recordcount = findcount("product");

            pageBox = pc.page_list("?page=", pagesize, recordcount);


            DataTable dt = find("product", page, pagesize,"id desc");
            return dt;

        }
Exemplo n.º 5
0
Arquivo: Search.cs Projeto: joleye/1.6
        public List<ProductInfo> search()
        {
            ProductDal pro = new ProductDal();
            int id = 0;
            gnum(ref id, "tid");
            int page = 1;
            int pagesize = 12;
            PageCurrent pc = new PageCurrent();
            page = pc.get("page");
            List<JoleYe.Model.ProductInfo> list = pro.view_list(id,page,pagesize);

            int recordcount = pro.recordcount;
            pageBox = pc.page_list("?page=", pagesize, recordcount);

            return list;
        }
Exemplo n.º 6
0
Arquivo: Search.cs Projeto: joleye/1.6
        public DataTable get_list()
        {
            int id = 0;
            gnum(ref id,"tid");
            int page = 1;
            int pagesize = 12;
            PageCurrent pc = new PageCurrent();
            page = pc.get("page");

            int recordcount = findcount("produce","typeId="+id);

            pageBox = pc.page_list("?page=", pagesize, recordcount);
            DataTable dt = find("produce", page, pagesize,"showId,id desc",
                "typeId",1,8,id.ToString());
            //DataTable dt = new DataTable();
            return dt;
        }
Exemplo n.º 7
0
        private void setBind(object sender, EventArgs e)
        {
            int pagesize = 10;
            int page = 1;

            PageCurrent pc = new PageCurrent();
            page = pc.get("page");
            int classid = 0;
            gnum(ref classid, "classid");

            ArticleDal dal = new ArticleDal();
            detail.DataSource = dal.get_list(classid, page, pagesize);
            detail.DataBind();

            int recordcount = dal.getcount;

            Pageer.value = pc.page_list("?classid=" + classid + "&page=", pagesize, recordcount);  
        }
Exemplo n.º 8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string app = gform("app");

            MemberDal mb = new MemberDal();
            if (app == "drop")
            {
                int id = gformNum("id");
                mb.drop(id);
                showMessage("删除成功");
            }
            int page = 1;
            gnum(ref page, "page");
            int pagesize = 10;
            
            list.DataSource = mb.get_list(page,pagesize);
            list.DataBind();

            int recordcount = mb.findcount("member", "");
            PageCurrent pg = new PageCurrent();
            pageBox = pg.page_list("?page=", pagesize, recordcount);
            
        }
Exemplo n.º 9
0
        private void setBind()
        {
            int pagesize = 10;
            int page = 1;
            int recordcount=2;
            PageCurrent pc = new PageCurrent();
            page = pc.get("page");
            wd.Value = keyword;


            //DataTable dt = find("view_product", page, pagesize, " showId ,id desc");
            ProductDal p = new ProductDal();
                


                
            Pageer.value = pc.page_list("?page=", pagesize, recordcount);
            detail.DataSource = p.view_list(page, pagesize, 0, keyword);
            detail.DataBind();
        }