protected void province_Select(object sender, DirectEventArgs e) { string province = cbProvince.Text; //城市数据 var cityList = AreaCodeService.GetAreaCodeByCity(3, province); Store5.DataSource = cityList; Store5.DataBind(); cbCity.Clear(); cbArea.Clear(); }
protected void city_Select(object sender, DirectEventArgs e) { string city = cbCity.Text; string province = cbProvince.Text; //地区数据 var areaList = AreaCodeService.GetAreaCodeByCity(4, province + "/" + city); Store6.DataSource = areaList; Store6.DataBind(); cbArea.Clear(); }
protected void city_Select(object sender, Ext.Net.DirectEventArgs e) { List <BusinessLogic.Codes.AreaCode> list = new List <BusinessLogic.Codes.AreaCode>(); var citys = cbCity.SelectedItems; //地区数据 foreach (var item in citys) { var reginList = AreaCodeService.GetAreaCodeByCity(4, "/" + item.Text + "/"); list.AddRange(reginList); } regionStore.DataSource = list; regionStore.DataBind(); cbRegion.Clear(); }
protected void province_Select(object sender, Ext.Net.DirectEventArgs e) { List <BusinessLogic.Codes.AreaCode> list = new List <BusinessLogic.Codes.AreaCode>(); var pros = cbProvince.SelectedItems; //城市数据 foreach (var item in pros) { var cityList = AreaCodeService.GetAreaCodeByCity(3, "/" + item.Text + "/"); list.AddRange(cityList); } cityStore.DataSource = list; cityStore.DataBind(); cbCity.Clear(); cbRegion.Clear(); }