Web/Admin/shop/ShopList.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
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.Common;
using WMPT.SQLServerDAL;
using WMPT.Model;
// 商家列表管理
// CopyRight (c) 2009-2010 HangJing Teconology. All Rights Reserved.
// zjf@iWMPT.com 餐品信息
// 2010-07-12
public partial class Admin_Shop_ShopList :AdminPageBase
{
private string SqlWhere
{
get
{
object o = ViewState["SqlWhere"];
return (o == null) ? "" : Convert.ToString(o);
}
set
{
ViewState["SqlWhere"] = value;
}
}
Points bll = new Points();
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
WebUtility.SetDDLCity(DDLArea);
SqlWhere = "1=1 and InUse = 'Y'";
SqlWhere = new RightsTool().getShopWhere(SqlWhere);
BindData();
}
}
/// <summary>
/// 绑定指定的数据
/// </summary>
protected void BindData()
{
this.AspNetPager1.RecordCount = bll.GetCount(SqlWhere);
this.rtpTogolist.DataSource = bll.GetList(AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, SqlWhere, "InTime", 1);
this.rtpTogolist.DataBind();
后面还有 155 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
