//-------------------------------- protected void Page_Load(object sender, EventArgs e) { if (!B_ARoleAuth.Check(ZLEnum.Auth.shop, "OrderList")) { function.WriteErrMsg("没有权限进行此项操作"); } Order_RPT.SPage = SelPage; if (!IsPostBack) { if (!string.IsNullOrEmpty(Request["UserID"])) { UserID_T.Text = Request["UserID"]; } if (!string.IsNullOrEmpty(Request["storeType"])) { StoreType_DP.SelectedValue = Request["storeType"]; } DataRow countdr = cpBll.SelOrderCount(StoreType_DP.SelectedValue, OrderType).Rows[0]; order_all_l.Text += "(" + countdr["all"] + ")"; order_unpaid_l.Text += "(" + countdr["unpaid"] + ")"; order_paid_l.Text += "(" + countdr["paid"] + ")"; order_unexp_l.Text += "(" + countdr["unexp"] + ")"; order_exped_l.Text += "(" + countdr["exped"] + ")"; order_finished_l.Text += "(" + countdr["finished"] + ")"; order_unrefund_l.Text += "(" + countdr["unrefund"] + ")"; order_refunded_l.Text += "(" + countdr["refunded"] + ")"; order_recycle_l.Text += "(" + countdr["recycle"] + ")"; Order_RPT.DataBind(); if (Filter.Equals("recycle")) { op_recycle.Visible = true; } else { op_normal.Visible = true; } } }
protected void Page_Load(object sender, EventArgs e) { B_Admin.CheckIsLogged(Request.RawUrl); if (!B_ARoleAuth.Check(ZLEnum.Auth.shop, "OrderList")) { function.WriteErrMsg("没有权限进行此项操作"); } if (!IsPostBack) { if (!string.IsNullOrEmpty(Request["UserID"])) { UserID_T.Text = Request["UserID"]; } DataRow countdr = cpBll.SelOrderCount().Rows[0]; order_all_l.Text += "(" + countdr["all"] + ")"; order_unexp_l.Text += "(" + countdr["unexp"] + ")"; order_unpaid_l.Text += "(" + countdr["unpaid"] + ")"; order_exped_l.Text += "(" + countdr["exped"] + ")"; order_finished_l.Text += "(" + countdr["finished"] + ")"; order_unrefund_l.Text += "(" + countdr["unrefund"] + ")"; order_refunded_l.Text += "(" + countdr["refunded"] + ")"; order_recycle_l.Text += "(" + countdr["recycle"] + ")"; MyBind(); if (Filter.Equals("recycle")) { op_recycle.Visible = true; } else { op_normal.Visible = true; } //string bread = "<li><a href='ProductManage.aspx'>商城管理</a></li><li><a href='OrderList.aspx'>订单管理</a></li><li class='active'><a href='OrderList.aspx'>订单列表</a>"; //bread += " [<a href='AddOrder.aspx?" + Request.QueryString + "' >添加订单</a>]"; //Call.SetBreadCrumb(Master, bread); } }