Web/admin/orderlist.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
namespace ClothesShop.Web.admin
{
public partial class orderlist : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
if (user.IsLogin() == true && user.getUserRole() == 2)
{
if (!this.IsPostBack)
{
this.Bind();
}
}
else
{
this.Response.Redirect("logins.aspx");
}
}
ClothesShop.BLL.userinfo user = new ClothesShop.BLL.userinfo();
ClothesShop.BLL.order ord = new ClothesShop.BLL.order();
private void Bind()
{
DataTable table = ord.selectorderlist(this.usernametb.Text.Trim(),int.Parse(this.stateddl.SelectedValue.ToString()));
this.orderlistgv.DataSource = table.DefaultView;
this.orderlistgv.DataBind();
}
protected void orderlistgv_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
DataRowView drv = e.Row.DataItem as DataRowView;
Label label = e.Row.Cells[4].FindControl("statelabel") as Label;
LinkButton lb = e.Row.Cells[8].FindControl("operatelinkbutton") as LinkButton;
switch (drv["state"].ToString())
{
case "0":
{
label.Text = "取消订单";
lb.Text = "恢复订单";
break;
}
case "1":
{
label.Text = "等待发货";
lb.Text = "商家发货";
后面还有 75 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。