Web/admin/orders/orderview.aspx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class admin_orders_orderview : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            ShowInfo();
        }
    }

    private void ShowInfo()
    {

        UBW.BLL.orders bll = new UBW.BLL.orders();
        UBW.Model.orders model = bll.GetModel(int.Parse(Request.QueryString["id"].ToString()));
        if (model != null)
        {
            lblpid.Text = model.pid.ToString(); ;
            lblquan.Text = model.quan.ToString(); ;
            lbloprice.Text = model.oprice.ToString(); ;
            lblpay.Text = model.pay.ToString(); ;
            lblatime.Text = model.atime.ToString(); ;
            lbllname.Text = model.lname.ToString(); ;

            UBW.BLL.books bll2 = new UBW.BLL.books();
            UBW.Model.books model2 = bll2.GetModel(model.pid);
            if (model != null)
            {
                lblbname.Text = model2.bname.ToString(); ;

                lblauthor.Text = model2.author.ToString(); ;
                imgpic.ImageUrl = "../../uploads/" + model2.pic.ToString(); ;
            }
        }



    }


}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。