Web/Admin/Banner.ascx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

using WMPT.Model;
using WMPT.Common;
using WMPT.SQLServerDAL;

public partial class HomeDemo_Banner : System.Web.UI.UserControl
{
    Custorder bll = new Custorder();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            WMPT.Model.EAdminInfo model = UserHelp.GetAdmin();
            if (model != null)
            {
                this.snUsername.InnerHtml =model.AdminName;
                string[] Weeks = { "日", "一", "二", "三", "四", "五", "六" };
                this.snDate.InnerHtml = DateTime.Now.ToLongDateString() + " 星期" + Weeks[(int)DateTime.Now.DayOfWeek];
            }
            else
            {
                Response.Redirect("~/Admin/login.aspx");
            }
            string sql = "OrderStatus = 2 ";
            int count = bll.GetCount(sql);
            tcount.InnerHtml = "<font color='red'>" + count + "</font>";

            string path = Request.Url.PathAndQuery.ToLower();

            //主要用來判斷商家
            if (path.IndexOf("/basic") > 0)
            {

            }
            else
            {
                //WebUtility.checkAccess(model, path);
                //访问权限
                WebUtility.checkOperator(1);
            }
        }

    }
}

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

AI 解读 AI

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

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