CmsWeb/Admin/product/productlist.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 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_Product bllorder = new Cms.BLL.sc_Product();
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_Product 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(84).className;
bool bladd = adminUser.setpurview(classname, "add");
bool blEdit = adminUser.setpurview(classname, "Edit");
bool blDelete = adminUser.setpurview(classname, "Delete");
if (!bladd)
后面还有 146 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
