从数据库中读取地区代号,翻译成实际的地址
IEnumerable<string> values = RegionHelper.GetFullRegion(storeById.RegionId.Value, ",").Split(new char[] { ',' }).Take<string>(3);
public static string GetFullRegion(int currentRegionId, string separator)
{
XmlNode node = FindNode(currentRegionId);
if (node == null)
{
return string.Empty;
}
//搜索街道,然后循环搜索,直至地区位置
//街道,区+街道,省+区+街道
string str = node.Attributes["name"].Value;
for (XmlNode node2 = node.ParentNode; node2.Name != "region"; node2 = node2.ParentNode)
{
//区+街道,省+区+街道,地区+省+区+街道,
str = node2.Attributes["name"].Value + separat