Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Power("pickup_list", "自提点列表"))
            {
                PageReturnMsg = PageNoPowerMsg();
            }
            key          = RequestTool.RequestString("key");
            PageSize     = RequestTool.getpageSize(25);
            string where = "Supplier_id=" + CurrentSupplier.id + "";
            //if (pid > 0)
            //    where += " and Parentid="+pid;
            if (key != "")
            {
                where += " and [Name] like lbsql{'%" + key + "%'}";
            }
            models = B_Lebi_PickUp.GetList(where, "Sort desc", PageSize, page);
            int recordCount = B_Lebi_PickUp.Counts(where);

            PageString = Shop.Bussiness.Pager.GetPaginationString("?page={0}&key=" + key, page, PageSize, recordCount);
        }