/// <summary> /// 初始化地址信息 /// </summary> /// <param name="id"></param> protected void initADDRESS(string id) { Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member(); var model = bll.GetAddress(id); if (model != null) { contactname.Text = model.ContactName; ADDRESS.Text = string.Format("{0} {1} {2} {3}", model.AddressProvinceName, model.AddressCityName, model.AddressCountryName, model.AddressInfo); zpcode.Text = model.ZpCode; mobileNum.Text = model.MobileNum; telNum.Text = model.TelNum; } }
/// <summary> /// 初始化地址信息 /// </summary> /// <param name="id"></param> protected void initADDRESS(string id) { Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member(); var model = bll.GetAddress(id); if (model != null) { contactname.Text = model.ContactName; ADDRESS.Text = string.Format("{0} {1} {2} {3}", model.AddressProvinceName, model.AddressCityName, model.AddressCountryName, model.AddressInfo); zpcode.Text = model.ZpCode; mobileNum.Text = model.MobileNum; telNum.Text = model.TelNum; } }
/// <summary> /// 初始化编辑地址信息 /// </summary> /// <param name="id"></param> protected void initPage(string id) { Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member(); var model = bll.GetAddress(id); if (model != null) { contactname.Value = model.ContactName; xSelect = model.AddressCountry; xCityId = model.AddressCity; xProvinceId = model.AddressProvince; addressinfo.Value = model.AddressInfo; zpcode.Value = model.ZpCode; mobileNum.Value = model.MobileNum; telNum.Value = model.TelNum; isdefault.Checked = model.IsDefault; mark = model.IsDefault ? 1 : 0; } }
/// <summary> /// 初始化编辑地址信息 /// </summary> /// <param name="id"></param> protected void initPage(string id) { Eyousoft_yhq.BLL.Member bll = new Eyousoft_yhq.BLL.Member(); var model = bll.GetAddress(id); if (model != null) { contactname.Value = model.ContactName; xSelect = model.AddressCountry; xCityId = model.AddressCity; xProvinceId = model.AddressProvince; addressinfo.Value = model.AddressInfo; zpcode.Value = model.ZpCode; mobileNum.Value = model.MobileNum; telNum.Value = model.TelNum; isdefault.Checked = model.IsDefault; mark = model.IsDefault ? 1 : 0; } }