/// <summary>
        /// 得到该微帐号的lbs配置信息
        /// </summary>
        public WechatBuilder.Model.wx_lbs_setting GetSettingByWid(int wid)
        {

            StringBuilder strSql = new StringBuilder();
            strSql.Append("select  top 1 id,wid,searchRadius,bannerPicUrl from wx_lbs_setting ");
            strSql.Append(" where [email protected]");
            SqlParameter[] parameters = {
					new SqlParameter("@wid", SqlDbType.Int,4)
			};
            parameters[0].Value = wid;

            WechatBuilder.Model.wx_lbs_setting model = new WechatBuilder.Model.wx_lbs_setting();
            DataSet ds = DbHelperSQL.Query(strSql.ToString(), parameters);
            if (ds.Tables[0].Rows.Count > 0)
            {
                return DataRowToModel(ds.Tables[0].Rows[0]);
            }
            else
            {
                return null;
            }
        }
		/// <summary>
		/// 得到一个对象实体
		/// </summary>
		public WechatBuilder.Model.wx_lbs_setting DataRowToModel(DataRow row)
		{
			WechatBuilder.Model.wx_lbs_setting model=new WechatBuilder.Model.wx_lbs_setting();
			if (row != null)
			{
				if(row["id"]!=null && row["id"].ToString()!="")
				{
					model.id=int.Parse(row["id"].ToString());
				}
				if(row["wid"]!=null && row["wid"].ToString()!="")
				{
					model.wid=int.Parse(row["wid"].ToString());
				}
				if(row["searchRadius"]!=null && row["searchRadius"].ToString()!="")
				{
					model.searchRadius=decimal.Parse(row["searchRadius"].ToString());
				}
				if(row["bannerPicUrl"]!=null)
				{
					model.bannerPicUrl=row["bannerPicUrl"].ToString();
				}
			}
			return model;
		}