Ejemplo n.º 1
0
 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()
     }));
 }
Ejemplo n.º 2
0
        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);
        }