Beispiel #1
0
    public void BindDate()
    {
        CountryCity2.SelectCountry("中国", "", "", "");

        //会员编号
        string ags = BLL.CommonClass.CommonDataBLL.GetMemberNumber();

        txtNumber.Text = "会员编号:" + ags;
    }
Beispiel #2
0
    protected void rbtAddress_SelectedIndexChanged(object sender, EventArgs e)
    {
        string asg = this.rbtAddress.SelectedValue;

        string[] addr = asg.Split(' ');

        //ddth.SelectedValue = addr[6];
        //DDLSendType.SelectedValue = addr[5];
        CountryCity2.SelectCountry(addr[0], addr[1], addr[2], addr[3]);
        Txtdz.Text         = addr[4];
        txtConName.Text    = addr[addr.Length - 2];
        txtOtherPhone.Text = addr[addr.Length - 1];
    }
Beispiel #3
0
    public void BindDate()
    {
        CountryCity2.SelectCountry("中国", "", "", "");
        if (Session["UserType"] != null && Session["UserType"].ToString() != "3")
        {
            if (Session["UserType"].ToString() == "2")
            {
                //top.Visible = false;
                //bottom.Visible = false;
                //STop1.Visible = true;
                //SLeft1.Visible = true;
            }
            else
            {
                //    top.Visible = false;
                //    bottom.Visible = false;
                //    STop1.Visible = false;
                //    SLeft1.Visible = false;
            }
        }
        else
        {
            //top.Visible = true;
            //bottom.Visible = true;
            //STop1.Visible = false;
            //SLeft1.Visible = false;
        }

        // dplCardType.SelectedIndex = 1;

        //会员编号
        string ags = BLL.CommonClass.CommonDataBLL.GetMemberNumber();

        txtNumber.Text          = ags;
        HFNumber.Value          = ags;
        this.txtNumber.ReadOnly = true;
        txtDirect.Text          = Session["Member"].ToString();
        hiddirect.Value         = Session["Member"].ToString();
        DataTable dts = DAL.DBHelper.ExecuteDataTable("select top 1 * from config order by createdate desc");

        if (dts.Rows != null && dts.Rows.Count > 0)
        {
            tz300.Text       = Convert.ToInt32(dts.Rows[0]["para1"]).ToString();
            tz3000.Text      = Convert.ToInt32(dts.Rows[0]["para2"]).ToString();
            tz21000.Text     = Convert.ToInt32(dts.Rows[0]["para3"]).ToString();
            hidtzmoney.Value = Convert.ToInt32(dts.Rows[0]["para1"]).ToString();
        }
    }
Beispiel #4
0
    public void ReaderMemberInfo(string bianhao, string OrderId)
    {
        MemberInfoModel mim = new MemberInfoModel();

        DataTable dtmb = RegistermemberBLL.Getcontryofmember(bianhao);

        if (dtmb != null && dtmb.Rows.Count > 0)
        {
            Txtyb.Text = dtmb.Rows[0]["postcode"].ToString();


            mim.PostalCode = dtmb.Rows[0]["postalCode"].ToString();
            mim.HomeTele   = dtmb.Rows[0]["homeTele"].ToString();
            mim.MobileTele = dtmb.Rows[0]["MobileTele"].ToString();
            mim.Email      = dtmb.Rows[0]["Email"].ToString();
        }

        DataTable dtorder = RegistermemberBLL.Getorderinfoofmember(OrderId);

        if (dtorder != null && dtorder.Rows.Count > 0)
        {
            CountryCity2.SelectCountry(dtorder.Rows[0]["Country"].ToString(), dtorder.Rows[0]["Province"].ToString(), dtorder.Rows[0]["City"].ToString(), dtorder.Rows[0]["Xian"].ToString());
            Txtdz.Text           = Encryption.Encryption.GetDecipherAddress(dtorder.Rows[0]["ConAddress"].ToString());
            mim.Address          = Encryption.Encryption.GetDecipherAddress(dtorder.Rows[0]["ConAddress"].ToString());
            mim.CPCCode          = dtorder.Rows[0]["ccpccode"].ToString();
            ViewState["cpccode"] = dtorder.Rows[0]["ccpccode"].ToString();
            ddth.SelectedValue   = dtorder.Rows[0]["sendType"].ToString();

            Ddzf.SelectedValue      = dtorder.Rows[0]["DefrayType"].ToString();
            ViewState["DefrayType"] = dtorder.Rows[0]["DefrayType"].ToString();
            if (dtorder.Rows[0]["defrayType"].ToString() == "2")
            {
                this.txtdzbh.Text = dtorder.Rows[0]["electronicAccountId"].ToString();
            }
            DDLSendType.SelectedValue = dtorder.Rows[0]["SendWay"].ToString();
        }

        Session["mim"] = mim;
    }
Beispiel #5
0
    /// <summary>
    /// 注册过来的新会员
    /// </summary>
    private void GetBindAddress()
    {
        DataTable dt = BLL.CommonClass.CommonDataBLL.GetBindAddress(luo.MemBh);

        if (dt.Rows.Count > 0)
        {
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                string code   = dt.Rows[i][0].ToString().Substring(0, 8);
                string addres = BLL.CommonClass.CommonDataBLL.GetAddressByCode(code);
                addres += " " + dt.Rows[i][0].ToString().Substring(8, dt.Rows[i][0].ToString().Length - 8);
                addres += " " + dt.Rows[i][2].ToString();
                addres += " " + dt.Rows[i][3].ToString();
                addres += " " + Encryption.Encryption.GetDecipherName(dt.Rows[i][4].ToString());
                addres += " " + dt.Rows[i][5].ToString();
                this.rbtAddress.Items.Add(addres);
            }
            this.panel1.Visible = true;


            if (Session["mbreginfo"] != null) //注册过来的时候,默认的是新地址
            {
                this.rbtAddress.SelectedIndex = dt.Rows.Count;
            }
            else
            {
                this.rbtAddress.SelectedIndex = 0;
            }
            if (rbtAddress.SelectedIndex != dt.Rows.Count)
            {
                string   asg  = this.rbtAddress.SelectedItem.Text.Trim();
                string[] addr = asg.Split(' ');
                if (addr.Length == 3)
                {
                    this.txtPostCode.Text = DAL.CommonDataDAL.GetZipCode(addr[0], addr[1], addr[2]);
                }
                else
                {
                    this.txtPostCode.Text = "";
                }
                Txtdz.Text                = addr[4];
                ddth.SelectedValue        = addr[6];
                DDLSendType.SelectedValue = addr[5];
                CountryCity2.SelectCountry(addr[0], addr[1], addr[2], addr[3]);
                txtConName.Text    = addr[addr.Length - 2];
                txtOtherPhone.Text = addr[addr.Length - 1];
            }
            else
            {
                panel2.Style.Add("display", "");
            }
        }
        else
        {
            this.rbtAddress.Items.Add(GetTran("000200", "新地址"));

            this.rbtAddress.SelectedIndex = 0;
        }

        if (Session["mbreginfo"] == null)
        {
            ltPayMoney.Text = ((double.Parse(ltYunfei.Text) + double.Parse(ltPrice.Text)) * i).ToString("0.00");
        }
        else
        {
            ltPayMoney.Text = ((double.Parse(ltYunfei.Text) + double.Parse(ltPrice.Text)) * i).ToString("0.00");
        }
    }