public void Set_ShopInfo() { if (this.HidSid.Value != "") { Chain.Model.SysShop shop = new Chain.BLL.SysShop().GetModel(int.Parse(this.HidSid.Value)); this.lblFrmTitle.Text = this.lblFrmTitle.Text + "--" + shop.ShopName + " 商家编辑"; int AreaID = shop.ShopAreaID; Chain.Model.SysArea area = new Chain.BLL.SysArea().GetModel(AreaID); this.txtShopName.Value = shop.ShopName; this.txtShopID.Value = shop.ShopID.ToString(); this.txtShopContactMan.Value = shop.ShopContactMan; this.txtShopTelephone.Value = shop.ShopTelephone; this.txtShopAddress.Value = shop.ShopAddress; this.txtShopRemark.Value = shop.ShopRemark; this.txtShopPrintTitle.Value = shop.ShopPrintTitle; this.txtShopPrintFoot.Value = shop.ShopPrintFoot; if (shop.ShopState) { this.radChooseYes.Checked = true; } else { this.radChooseNo.Checked = true; } } else { this.lblFrmTitle.Text = this.lblFrmTitle.Text + "-- 商家设置"; } }
public string GetMemAddress(object province, object city, object county, object village, object address) { Chain.BLL.SysArea bllArea = new Chain.BLL.SysArea(); return(string.Concat(new string[] { bllArea.GetNameByID(int.Parse(province.ToString())), "省", bllArea.GetNameByID(int.Parse(city.ToString())), "市", bllArea.GetNameByID(int.Parse(county.ToString())), bllArea.GetNameByID(int.Parse(village.ToString())), address.ToString() })); }
public string GetMemAddress(string province, string city, string county, string village, string address) { Chain.BLL.SysArea bllArea = new Chain.BLL.SysArea(); string result = ""; if (province != null && city != null && county != null && village != null) { if (province != "" && province != "请选择" && city != "" && city != "请选择" && county != "" && county != "请选择" && village != "" && village != "请选择" && address != "") { result = string.Concat(new string[] { bllArea.GetNameByID(int.Parse(province.ToString())), "省", bllArea.GetNameByID(int.Parse(city.ToString())), "市", bllArea.GetNameByID(int.Parse(county.ToString())), bllArea.GetNameByID(int.Parse(village.ToString())), address.ToString() }); } } return(result); }