// 将指定城市设为默认城市 /// <summary> /// 将指定城市设为默认城市 /// </summary> /// <param name="cityName"></param> /// <returns></returns> public bool SetDefaultCity(string cityName, out string errMsg) { errMsg = ""; try { ArrayList mySql = new ArrayList(); mySql.Add("UPDATE dbo_LoadCity SET dbo_LoadCity.IsDefault = 0 Where LangType='" + _lang + "'"); mySql.Add("UPDATE dbo_LoadCity SET dbo_LoadCity.IsDefault = 1 Where LangType='" + _lang + "' and LoadCity= '" + cityName + "'"); _dao.ExecuteSqlTran(mySql, _dao.GetConnLoadIndex()); return(true); } catch (Exception exc) { errMsg = exc.Message; return(false); } }