📄 operlist.aspx.cs
字号:
using System;
using System.Collections;
using System.Configuration;
using System.Data;
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.Collections.Generic;
namespace YXShop.Web.Admin.Orders
{
public partial class operList : System.Web.UI.Page
{
public static string orderId = "";
public string userName = "";
public string customName = "";
public YXShop.Model.Orders orderModel = null;
YXShop.BLL.UserInAndExp uiaeBll = new YXShop.BLL.UserInAndExp();
YXShop.BLL.InvoiceItem invoBll = new YXShop.BLL.InvoiceItem();
YXShop.BLL.Consignment consBll = new YXShop.BLL.Consignment();
YXShop.BLL.OrderTransfer tranBll = new YXShop.BLL.OrderTransfer();
YXShop.BLL.Orders bll = new YXShop.BLL.Orders();
protected void Page_Load(object sender, EventArgs e)
{
//是不是管理员
if (Session["AdminID"] == null)
{
Response.Redirect("../index.aspx", true);
}
else
{
if (string.IsNullOrEmpty(Session["AdminID"].ToString()))
{
Response.Redirect("../index.aspx", true);
}
}
if ((!IsPostBack) || ((Request["Event"] != null) && (Request["Event"] != "")))
{
//初始化信息(订单信息,银行信息,支付信息)
if (!string.IsNullOrEmpty(Request.QueryString["OrderID"]))
{
//bindOrderInfo(YXShop.Common.WebUtility.replaceStr(Request.QueryString["OrderID"]));
orderId = YXShop.Common.WebUtility.replaceStr(Request.QueryString["OrderID"]);
BindMoneyInfo(2);
}
else
{
Response.Redirect("orderList.aspx");
}
}
}
private void BindMoneyInfo(int userID)
{
Repeater1.DataSource = uiaeBll.GetLista(userID);
Repeater1.DataBind();
}
private void BindInvoInfo(string orderID)
{
string str = String.Format(" OrderID = '{0}'", orderId);
Repeater2.DataSource = invoBll.GetList(str);
Repeater2.DataBind();
}
private void BindGoodsInfo(string orderID)
{
string str = String.Format(" OrderID = '{0}'", orderId);
Repeater3.DataSource = consBll.GetList(str);
Repeater3.DataBind();
}
private void BindTransferInfo(string orderID)
{
string str = String.Format(" OrderID = '{0}'", orderId);
Repeater4.DataSource = tranBll.GetList(str);
Repeater4.DataBind();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -