918博天堂

Server : Microsoft-IIS/10.0
System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586
User : jxgj ( 0)
PHP Version : 7.0.33
Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server
Directory :  D:/tmp_aspnet/root/a99112df/ca2a8923/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : D:/tmp_aspnet/root/a99112df/ca2a8923/App_Web_0w-n_hot.13.cs
?#pragma checksum "D:\wwwroot\ldxynb\wwwroot\xyy\myshopcar.aspx.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "E33471FD62B1CC347883F75A2AB96988"

#line 1 "D:\wwwroot\ldxynb\wwwroot\xyy\myshopcar.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 CoreClass;
using System.Data.OleDb;

public partial class xyy_myshopcar : System.Web.UI.Page
{

    #region 界说
    public string newsHtml;
    public DBCommon DB = new DBCommon();
    public PublicFunction pubfun = new PublicFunction();
    yingshi dy = new yingshi();
    public int classid = 0;
    public int channelid = 0;


    public string classidname = "";

    public int classidss = 0;


    public string dddname = "";
    public string dddnamehref = "";

    public string tianlename = "";
    public string caddtimes = "";

    public string namew = "";

    #endregion



    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Session["delddl"] != null)
            {





                if (Request["scid"] != null && Request["scid"].ToString() != "")    // 一  增长到 自己购物车
                {
                    dy.user("delete from Cased  where infoid=" + Request["scid"].ToString() );
                }





                namew = "当前用户:<span style='color: red'>" + Session["delddl"].ToString() + "<span style='color:#cccccc; font-size:12px;'>(幼我中心)</span></span>";

                TextBox1.Text = Session["delddl"].ToString();


                // 1,登录后  获取 客户收货信息

                string sjr = TextBox1.Text = Session["sjr"].ToString();
                string sjh = TextBox2.Text = Session["sjh"].ToString();
                string dz = TextBox3.Text = Session["dz"].ToString();


                if (Session["zh"] != null && Session["mm"] != null)
                {

                    TextBox4.Text = Session["zh"].ToString();
                    //TextBox5.Text = Session["mm"].ToString();
                    TextBox5.Text = "......";
                    

                }

            //    if (Request["carid"] != null && Request["carid"].ToString() != "")    // 一  增长到 自己购物车
            //    {
            //        // 2,读取 商品库里的 商品参数
            //        DataSet dt_car = new DataSet();
            //        dt_car = dy.chaxun("select * from info where infoid=" + Request["carid"].ToString());
            //        if (dt_car.Tables[0].Rows.Count > 0)
            //        {
            //            string mc = dt_car.Tables[0].Rows[0]["title"].ToString(); //衣服名称
            //            string ysgg = dt_car.Tables[0].Rows[0]["url"].ToString();  //色彩规格
            //            string cm = dt_car.Tables[0].Rows[0]["econtent"].ToString();    //尺码
            //            int jg =Convert.ToInt32(dt_car.Tables[0].Rows[0]["hits"].ToString());  //价值

            //            string pic = dt_car.Tables[0].Rows[0]["pic"].ToString();  //图片蹊径


            //            int shuliang = 1;  //数量  
            //            string ddzt = "0";      //订单状态  0:购物车, 1:已付款 

            //            // bz1 收件人 bz2 手机号  bz3 地址

            //            // bz4 产品名称  bz5 色彩规格  bz6 尺码

            //            // bz7 价值 bz8 数量  bz9 订单状态

            //            // bz10 产品图片

            //            // bz11 属于谁的  购物陈凤的 产品

            //            int ChannelId = 6; //特定类别,订单治理

                      
            //            // 3,判断若是是 沉复增长 统一个产品  只增长数量
            //            DataSet dt_c2ar = new DataSet();
            //            dt_c2ar = dy.chaxun("select * from Cased where bz4='" + mc + "'  and bz5='" + ysgg + "' and bz6='" + cm + "' and bz11='" + Session["delddl"].ToString() + "'  ");
            //            if (dt_c2ar.Tables[0].Rows.Count > 0)
            //            {
            //                dy.user("update Cased set bz8=bz8+1  where bz4='" + mc + "'  and bz5='" + ysgg + "' and bz6='" + cm + "' and bz11='" + Session["delddl"].ToString() + "'  ");
            //            }
            //            else
            //            {
            //                dy.user("Insert into Cased(Classid,bz1,bz2,bz3,bz4,bz5,bz6,bz7,bz8,bz9,bz10,bz11,ChannelId) values(112,'" + sjr + "','" + sjh + "','" + dz + "','" + mc + "','" + ysgg + "','" + cm + "'," + jg + "," + shuliang + ",'" + ddzt + "','" + pic + "','" + Session["delddl"].ToString() + "'," + ChannelId + "   )");

                        
            //            }


            //        }
                   

            //    }

                // 二 加载 我的订单

                string dengname = Session["delddl"].ToString();
                DataSet dt_goucheshop = new DataSet();

                dt_goucheshop = dy.chaxun("select * from Cased where hot=-1 and bz11='" + Session["delddl"].ToString() + "' order by addtime desc  ");

                if (dt_goucheshop.Tables[0].Rows.Count > 0)
                {
                    Repeater1.DataSource = dt_goucheshop.Tables[0];
                    Repeater1.DataBind();

                }
                
              



 

            }
            else
            {
                dy.java("请先登录!", "../denglu/denglu.aspx");
            }

        }

    }






    public string toals(string sl1, string sl2)
    {
        return Convert.ToString(Convert.ToInt32(sl1) * Convert.ToInt32(sl2));
    }


    public string wuliudanhaobangd(string wuliudanhaobangd)
    {
        if (wuliudanhaobangd == "" || wuliudanhaobangd =="0")
        {
            return "暂未发货...";
        }
        else
        {
            return "物流单号:"+ wuliudanhaobangd;
        }

       
    }
    


    protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
    {
        //if (dtd.Tables[0].Rows.Count > 0)
        //{
        //    Session["delddl"] = username.Value.Replace("'", "");

            dy.java("祝贺您下单成功,我们会尽快发货!", "../shop/chuxingdaibu.aspx");
        //}
        //else
        //{
        //    dy.java("登录失败!", "denglu.aspx");
        //}
    }




}


#line default
#line hidden