Web/Admin/ShopCard/ShopCardList.aspx.cs

(开头部分) 7KB

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

/*********************************************************************
 * CopyRight (c) 2009-2010 HangJing Teconology. All Rights Reserved.
 Admin_card_cardlist
 * Function : 
 *  at 2010-12-26 15:04:37.
 
*********************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

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

/// <summary>
/// 店铺券
/// </summary>
public partial class Admin_card_cardlistShopCardList : System.Web.UI.Page
{
    ShopCard dal = new ShopCard();
    protected string SqlWhere
    {
        set
        {
            ViewState["sqlwhere"] = value;
        }
        get
        {
            return ViewState["sqlwhere"] == null ? "" : ViewState["sqlwhere"].ToString();
        }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {
            SqlWhere = " 1=1";
            int id = HjNetHelper.GetQueryInt("id", 0);
            if (id > 0)
            {
                SqlWhere += " and batid = '" + id + "'";
            }
            int state =  HjNetHelper.GetQueryInt("state", 0);
            if (state != 0)
            {
                SqlWhere += " and  state = " + state;
            }
            //管理员
            IList<EAdminInfo> adminlist = new EAdmin().GetList(1000, 1, "1=1");
            WebUtility.BindList("id", "adminname", adminlist, ddladmin);
            GetData();
        }
    }

    protected void GetData()
    {
后面还有 168 行代码,购买后查看完整代码

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

AI 解读 AI

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

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