CmsWeb/Admin/product/couponlist.aspx.cs

(开头部分) 5KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using Cms.DBUtility;
public partial class Admin_order_orderlist : System.Web.UI.Page
{

    Cms.BLL.sc_Coupon bllorder = new Cms.BLL.sc_Coupon();
    public DataSet ds;
    public SqlDataAdapter dr;
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            //登录验证
            adminUser.GetLoginState();

            //登录信息
            HttpCookie cookie = System.Web.HttpContext.Current.Request.Cookies["admin"];

            if (cookie != null)
            {
                Application["adminname"] = (string)cookie.Values["adminname"];
            }
            else if (Session["adminname"] != null)
            {
                Application["adminname"] = (string)Session["adminname"];
            }
           

            Bind();
           
           
        }
    }

    /// <summary>
    /// 绑定内容
    /// </summary>
    public void Bind()
    {
        string where = "select * from sc_Coupon  order by id desc";
        this.AspNetPager1.AlwaysShow = true;
        this.AspNetPager1.PageSize = 10;
        this.AspNetPager1.RecordCount = bllorder.GetRecordCount("");
        this.RepeaterDataBind(where);

    
        Cms.BLL.C_Column cm=new Cms.BLL.C_Column();
        string classname = cm.GetModel(86).className;
        bool bladd = adminUser.setpurview(classname, "add");
        bool blEdit = adminUser.setpurview(classname, "Edit");
        bool blDelete = adminUser.setpurview(classname, "Delete");

        if (!bladd)
后面还有 138 行代码,购买后查看完整代码

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

AI 解读

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

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