首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

省地县的二级联动

2012-11-07 
省市县的二级联动??????????public?class?AreaLinkageDao?{ ????????/** ???????*?根据省ID查询城市信息 ?

省市县的二级联动

    ?

    ?

    ?

      ?

      ?

      ?

      ?

        ?

        ?

        ?

          public?class?AreaLinkageDao?{ ????????/** ???????*?根据省ID查询城市信息 ???????*? ???????*?@param?parameter ???????*?@param?servletContext ???????*?@return ???????*/ ??????public?List?areaLinkage(String?provinceId,?ServletContext?servletContext) ??????????????throws?Exception?{ ??????????RootDaoInterface?rootDao?=?(RootDaoInterface)?DataSourceHelper ??????????????????.getDaoInterfae(servletContext); ??????????String?sql?=?"select?id,city_code,city_name?from?tb_area_city?where?pid?=??"; ??????????return?rootDao.preparedQuery(sql,?new?String[]?{?provinceId?}); ??????} ????}??

        ?

        来自:http://waynett.iteye.com/blog/815257

热点排行