|
@@ -100,10 +100,10 @@ namespace MySystem
|
|
string province_code = "", city_code = "", district_code = "";
|
|
string province_code = "", city_code = "", district_code = "";
|
|
string province = "", city = "", district = "";
|
|
string province = "", city = "", district = "";
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
WebCMSEntities db = new WebCMSEntities();
|
|
- OpenBankCityTable cityItem = db.OpenBankCityTable.FirstOrDefault(m => m.CityName.EndsWith(bizAddressCode));
|
|
|
|
|
|
+ HaoDaAreaCode cityItem = db.HaoDaAreaCode.FirstOrDefault(m => m.CityName.EndsWith(bizAddressCode));
|
|
if (cityItem != null)
|
|
if (cityItem != null)
|
|
{
|
|
{
|
|
- district_code = cityItem.Code;
|
|
|
|
|
|
+ district_code = cityItem.CityCode;
|
|
city_code = district_code.Substring(0, 4) + "00";
|
|
city_code = district_code.Substring(0, 4) + "00";
|
|
province_code = district_code.Substring(0, 2) + "0000";
|
|
province_code = district_code.Substring(0, 2) + "0000";
|
|
string[] CityNames = cityItem.CityName.Split(',');
|
|
string[] CityNames = cityItem.CityName.Split(',');
|