Exemple #1
0
    public void bindDate(int _Page)
    {
        string RecordCount = "0",
               PageCount   = "0",
               PageIndex   = _Page == 0 ? Common.Q_Int("Page", 0).ToString() : _Page.ToString();

        WebControl.CreatCheckTable(showTable, "id,name,title,sweet,addtime", "编号,商品名称,标题,甜度,添加时间", dp.C_Pagination(new string[] { PageIndex, "50", "id,name,title,sweet,addtime", "prdct_info", " tag=0", "ID DESC" }, ref RecordCount, ref PageCount), "goodsadd.aspx?id=", "goods", true);
        paging.InnerHtml = WebControl.Pagination(Common.S_Int(PageIndex), Common.S_Int(RecordCount), Common.S_Int(PageCount));
    }
Exemple #2
0
    public void bindDate(int _Page)
    {
        string RecordCount = "0",
               PageCount   = "0",
               PageIndex   = _Page == 0 ? Common.Q_Int("Page", 0).ToString() : _Page.ToString();

        WebControl.CreatCheckTable(showTable, "id,codeno,uid,states,money,num,uname,provience,city,area,address,tel,addtime", "编号,订单编号,会员id,订单状态,总价,总数量,收件人姓名,省,市,县,地址,电话,添加时间", dp.C_Pagination(new string[] { PageIndex, "50", "id,codeno,uid,case states when '0' then '订单未支付' when '1' then '支付未发货'when '2' then '发货未确认'when '3' then '确认未评价' else '完成' end as states,money,num,uname,provience,city,area,address,tel,addtime", "order_info", " tag=0", "ID DESC" }, ref RecordCount, ref PageCount), "", "order_info", false);
        paging.InnerHtml = WebControl.Pagination(Common.S_Int(PageIndex), Common.S_Int(RecordCount), Common.S_Int(PageCount));
    }
    public void bindDate(int _Page)
    {
        string RecordCount = "0",
               PageCount   = "0",
               Swhere      = string.Empty,
               PageIndex   = _Page == 0 ? Common.Q_Int("Page", 0).ToString() : _Page.ToString();

        if (string.IsNullOrEmpty(Request["id"]))
        {
            Response.Redirect("goodslist.aspx");
            return;
        }
        else
        {
            Swhere = " pid =" + Request["id"] + " and  tag = 0 ";
        }
        WebControl.CreatCheckTable(showsp, "id,name,omoney,nmoney,num,addtime", "编号,规格名称,原价,现价,数量,添加时间", dp.C_Pagination(new string[] { PageIndex, "50", "id,name,omoney,nmoney,num,addtime", "prdct_type_info", Swhere, "ID DESC" }, ref RecordCount, ref PageCount), "", "", false);
        paging.InnerHtml = WebControl.Pagination(Common.S_Int(PageIndex), Common.S_Int(RecordCount), Common.S_Int(PageCount));
    }