Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!EX_Admin.Power("express_log_list", "打印清单列表"))
            {
                PageReturnMsg = PageNoPowerMsg();
            }

            key    = RequestTool.RequestString("key");
            Status = RequestTool.RequestString("Status");
            id     = RequestTool.RequestInt("id", 0);
            Tid    = RequestTool.RequestInt("Tid", 0);
            Lebi_Express_Log modellog = B_Lebi_Express_Log.GetModel(id);

            Transport_Name = modellog.Transport_Name;
            PageSize       = RequestTool.getpageSize(25);
            string where   = "Express_Log_Id = " + id;
            if (key != "")
            {
                where += " and (Order_Code like lbsql{'%" + key + "%'} or Order_Id in (select Transport_Name from [Lebi_Order] where id = Order_Id and Transport_Name like lbsql{'%" + key + "%'}))";
            }
            if (Status != "")
            {
                where += " and Status = " + Status;
            }
            models = B_Lebi_Express_LogList.GetList(where, "id desc", PageSize, page);
            int recordCount = B_Lebi_Express_LogList.Counts(where);

            PageString = Pager.GetPaginationString("?page={0}&Tid=" + Tid + "&id=" + id + "&Status=" + Status + "&key=" + key, page, PageSize, recordCount);
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Power("supplier_express_print", "打印清单"))
            {
                PageReturnMsg = PageNoPowerMsg();
            }
            PageSize     = RequestTool.getpageSize(25);
            key          = RequestTool.RequestString("key");
            Status       = RequestTool.RequestString("Status");
            string where = "Supplier_id = " + CurrentSupplier.id + "";
            if (key != "")
            {
                where += " and (Number like lbsql{'%" + key + "%'} or Transport_Name like lbsql{'%" + key + "%'})";
            }
            if (Status != "")
            {
                where += " and Status = " + Status;
            }
            models = B_Lebi_Express_Log.GetList(where, "id desc", PageSize, page);
            int recordCount = B_Lebi_Express_Log.Counts(where);

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