public ActionResult SelectArea(int?ID) { ProvinceClient Province_Clinet = (ProvinceClient)ClientFactory.GetClient(ClientType.Type.Province); List <Car_Province> List_Province = Province_Clinet.SelectAllProvinces().ToList(); Province_Clinet.Close(); return(View(List_Province)); }
private void CB_ProviceBind() { List <String> List_Province = new List <string>(); List_Province.Clear(); List_Province.Add("<—请选择省份—>"); List <Car_Province> List_Car_Province = Province_Client.SelectAllProvinces().ToList(); foreach (Car_Province Temp in List_Car_Province) { List_Province.Add(Temp.Province_Name); } CB_Province.DataSource = List_Province; }
public Form_VersionManage() { InitializeComponent(); Mark = false; CarSummery_Client = (CarSummeryClient)ClientFactory.GetClient(ClientType.Type.CarSummery); Province_Client = (ProvinceClient)ClientFactory.GetClient(ClientType.Type.Province); City_Client = (CityClient)ClientFactory.GetClient(ClientType.Type.City); Shop_Client = (ShopClient)ClientFactory.GetClient(ClientType.Type.Shop); Brand_Client = (BrandClient)ClientFactory.GetClient(ClientType.Type.Brand); Type_Client = (TypeClient)ClientFactory.GetClient(ClientType.Type.Type); Version_Client = (VersionClient)ClientFactory.GetClient(ClientType.Type.Version); List_VersionInfo = CarSummery_Client.SelectAllCar().ToList(); List_Car_Province = Province_Client.SelectAllProvinces().ToList(); List_City = City_Client.SelectAllCitys().ToList(); List_Shop = Shop_Client.SelectAllShops().ToList(); List_Brand = Brand_Client.SelectAllBrands().ToList(); List_Type = Type_Client.SelectAllTypes().ToList(); CB_ProviceBind(); CB_BrandBind(); CB_TypeBind(); BT_UpdateVersion.Visible = false; }