using Central.Control.Domain; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MES.Production.Service.ServiceImp { /// /// Service 省市级联处理类 /// add 作者: 季健国 QQ:181589805 by 2016-05-22 /// public class CodeAreaManage : RepositoryBase, IService.ICodeAreaManage { /// /// 获取所有省份信息 /// public IQueryable LoadProvince() { return this.LoadAll(p => p.LEVELS == 1); } /// /// 根据省份ID获取城市信息 /// public IQueryable LoadCity(string provinceId) { return this.LoadAll(p => p.LEVELS == 2 && p.PID == provinceId); } /// /// 根据城市信息获取所有县级市信息 /// public IQueryable LoadCountry(string cityId) { return this.LoadAll(p => p.LEVELS == 3 && p.PID == cityId); } /// /// 根据县级市ID获取乡镇信息 /// public IQueryable LoadCommunity(string countryId) { return this.LoadAll(p => p.LEVELS == 4 && p.PID == countryId); } } }