Web/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
{
public partial class orderlist : BasePage
{
protected void Page_Load(object sender, EventArgs e)
{
if (user.IsLogin() == true)
{
if (!this.IsPostBack)
{
this.Bind();
}
}
else
{
this.Response.Redirect("login_1.aspx");
}
}
ClothesShop.BLL.userinfo user = new ClothesShop.BLL.userinfo();
ClothesShop.BLL.order ord = new ClothesShop.BLL.order();
private void Bind()
{
DataTable table = ord.getordersbyuserid(user.getUserID());
this.orderrepeater.DataSource = table.DefaultView;
this.orderrepeater.DataBind();
this.ordercountlabel.Text = this.orderrepeater.Items.Count.ToString();
double pricecout = 0.0;
foreach (RepeaterItem item in this.orderrepeater.Items)
{
pricecout += double.Parse((item.FindControl("orderpricelabel") as Label).Text);
}
this.pricecountlabel.Text = pricecout.ToString();
}
protected void orderrepeater_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.AlternatingItem || e.Item.ItemType == ListItemType.Item)
{
DataRowView drv = e.Item.DataItem as DataRowView;
Label label = e.Item.FindControl("statelabel") as Label;
LinkButton lb = e.Item.FindControl("opratelinkbutton") as LinkButton;
switch (drv["state"].ToString())
{
后面还有 70 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
