Admin/OrdersEdit.aspx.cs

(开头部分) 6KB

这里只显示每个文件的开头 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;
using System.Text;

public partial class Admin_OrdersEdit : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!Page.IsPostBack)
        {    
            this.DropDownList1.Items.Add("已发货");
            this.DropDownList1.Items.Add("已完成");
            this.DropDownList1.Items.Add("已取消");
            if (Request.QueryString["oid"] != null && Request.QueryString["oid"].Trim() != "")
            {
                int OID = (Convert.ToInt32(Request.QueryString["oid"]));
                ShowInfo(OID);
            }
        }
    }
    private void ShowInfo(int OID)
    {
        string sql = "select * from orders where oid=" + OID;
        DataSet ds = ClassDB.GetDataSet(sql);
        if (ds.Tables[0].Rows.Count > 0)
        {  
            if (ds.Tables[0].Rows[0]["MUserName"] != null && ds.Tables[0].Rows[0]["MUserName"].ToString() != "")
            {
                this.txtMUserName.Text = ds.Tables[0].Rows[0]["MUserName"].ToString();
            }
            if (ds.Tables[0].Rows[0]["OGoodsPrice"] != null && ds.Tables[0].Rows[0]["OGoodsPrice"].ToString() != "")
            {
                this.txtOGoodsPrice.Text = ds.Tables[0].Rows[0]["OGoodsPrice"].ToString();
            }
            if (ds.Tables[0].Rows[0]["OTotalPrice"] != null && ds.Tables[0].Rows[0]["OTotalPrice"].ToString() != "")
            {
                this.txtOTotalPrice.Text = ds.Tables[0].Rows[0]["OTotalPrice"].ToString();
            }
            if (ds.Tables[0].Rows[0]["OReceiver"] != null && ds.Tables[0].Rows[0]["OReceiver"].ToString() != "")
            {
                this.txtOReceiver.Text = ds.Tables[0].Rows[0]["OReceiver"].ToString();
            }
            if (ds.Tables[0].Rows[0]["OTel"] != null && ds.Tables[0].Rows[0]["OTel"].ToString() != "")
            {
                this.txtOTel.Text = ds.Tables[0].Rows[0]["OTel"].ToString();
            }
            if (ds.Tables[0].Rows[0]["OAddress"] != null && ds.Tables[0].Rows[0]["OAddress"].ToString() != "")
            {
                this.txtOAddress.Text = ds.Tables[0].Rows[0]["OAddress"].ToString();
            }
            if (ds.Tables[0].Rows[0]["OPostCard"] != null && ds.Tables[0].Rows[0]["OPostCard"].ToString() != "")
            {
后面还有 105 行代码,购买后查看完整代码

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

AI 解读 AI

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

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