Web/admin/SelectGroupPrice.aspx.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using Seven.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.admin
{
    public partial class SelectGroupPrice : ManageBasePage
    {
      
        BLL.groupbuy_price pricebll = new BLL.groupbuy_price();
        int CurPage = 1;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                MODEL.session_manage managemodel = new MODEL.session_manage();
                managemodel = System.Web.HttpContext.Current.Session[ManageBasePage.Session_Manage] as MODEL.session_manage;

                if (managemodel == null)
                {
                    Response.Redirect("~/admin/Login.aspx");
                }
                else
                {
                    if (managemodel.classid == 1)
                    { }
                    else
                    {
                        Response.Redirect("~/admin/main.aspx");
                    }
                }

                Bind();
            }
        }

        private void Bind()
        {
            string strWhere = " 1=1 ";
            string groupnum = Request["groupnum"];
            if (!string.IsNullOrEmpty(groupnum))
                strWhere += " and groupnum='" + groupnum + "'";
            else
            {
                Response.Redirect("SelectGroup.aspx");
            }
            PagedDataSource objPds = new PagedDataSource();
            objPds.PageSize = 10;
            objPds.DataSource = pricebll.GetList(strWhere).Tables[0].DefaultView;
            objPds.AllowPaging = true;

            lblPageCount.Text = objPds.PageCount.ToString();
            if (Request.QueryString["Page"] != null)
                CurPage = Convert.ToInt32(Request.QueryString["Page"]);
            else
                CurPage = 1;
后面还有 77 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。