예제 #1
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;
    }